|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpal.xml.ElementFactory
public class ElementFactory
This class provides static methods for creating DOM Elements from PAL Objects. Arguably each object in PAL should be allowed to generate a DOM Element representation itself -- however I have decided to restrict the PAL's dependence on the DOM specification to this package only.
Field Summary |
---|
Constructor Summary | |
---|---|
ElementFactory()
|
Method Summary | |
---|---|
static org.w3c.dom.Element |
createAlignmentElement(Alignment a,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createAttributeElement(Attribute a,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createDemographicModelElement(DemographicModel demo,
org.w3c.dom.Document document)
Creates an XML element representing a demographic model. |
static org.w3c.dom.Element |
createEdgeNodeElement(Node node,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createFrequenciesElement(double[] frequencies,
org.w3c.dom.Document d)
Creates a DOM element associated with the given document representing the given equilibrium frequencies of a rate matrix. |
static org.w3c.dom.Element |
createMutationRateModelElement(MutationRateModel muModel,
org.w3c.dom.Document document)
Creates an XML element representing a mutation rate model. |
static org.w3c.dom.Element |
createNodeElement(Node node,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createNodeElement(Node node,
org.w3c.dom.Document document,
boolean includeEdges)
|
static org.w3c.dom.Element |
createParameterElement(java.lang.String name,
double value,
org.w3c.dom.Document document)
Creates an XML element representing a parameter. |
static org.w3c.dom.Element |
createRateMatrixElement(RateMatrix matrix,
org.w3c.dom.Document d)
|
static org.w3c.dom.Element |
createSequenceElement(Identifier id,
java.lang.String sequence,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createTimeDataElement(TimeOrderCharacterData tocd,
org.w3c.dom.Document document)
|
static org.w3c.dom.Element |
createTreeElement(Tree tree,
org.w3c.dom.Document document,
boolean includeEdges)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementFactory()
Method Detail |
---|
public static org.w3c.dom.Element createAlignmentElement(Alignment a, org.w3c.dom.Document document)
public static org.w3c.dom.Element createAttributeElement(Attribute a, org.w3c.dom.Document document)
public static org.w3c.dom.Element createDemographicModelElement(DemographicModel demo, org.w3c.dom.Document document)
public static org.w3c.dom.Element createEdgeNodeElement(Node node, org.w3c.dom.Document document)
public static org.w3c.dom.Element createFrequenciesElement(double[] frequencies, org.w3c.dom.Document d)
public static org.w3c.dom.Element createMutationRateModelElement(MutationRateModel muModel, org.w3c.dom.Document document)
public static org.w3c.dom.Element createNodeElement(Node node, org.w3c.dom.Document document)
public static org.w3c.dom.Element createNodeElement(Node node, org.w3c.dom.Document document, boolean includeEdges)
public static org.w3c.dom.Element createParameterElement(java.lang.String name, double value, org.w3c.dom.Document document)
public static org.w3c.dom.Element createRateMatrixElement(RateMatrix matrix, org.w3c.dom.Document d)
public static org.w3c.dom.Element createSequenceElement(Identifier id, java.lang.String sequence, org.w3c.dom.Document document)
public static org.w3c.dom.Element createTimeDataElement(TimeOrderCharacterData tocd, org.w3c.dom.Document document)
public static org.w3c.dom.Element createTreeElement(Tree tree, org.w3c.dom.Document document, boolean includeEdges)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |