org.forester.io.parsers.phyloxml
Class XmlElement
java.lang.Object
org.forester.io.parsers.phyloxml.XmlElement
public class XmlElement
- extends Object
Field Summary |
static boolean |
DEBUG
|
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
XmlElement
public XmlElement(String namespaceUri,
String localName,
String qualifiedName,
Attributes attributes)
addChildElement
public void addChildElement(XmlElement element)
appendValue
public void appendValue(String value)
getAttribute
public String getAttribute(String attribute_name)
getAttributes
public HashMap<String,String> getAttributes()
getChildElement
public XmlElement getChildElement(int i)
getNumberOfChildElements
public int getNumberOfChildElements()
getParent
public XmlElement getParent()
getQualifiedName
public String getQualifiedName()
getValueAsBoolean
public boolean getValueAsBoolean()
throws PhylogenyParserException
- Throws:
PhylogenyParserException
getValueAsDouble
public double getValueAsDouble()
throws PhylogenyParserException
- Throws:
PhylogenyParserException
getValueAsInt
public int getValueAsInt()
throws PhylogenyParserException
- Throws:
PhylogenyParserException
getValueAsString
public String getValueAsString()
isHasAttribute
public boolean isHasAttribute(String attribute_name)
isHasValue
public boolean isHasValue()
setValue
public void setValue(String value)
- [Careful, this does not call "new String(...)"]
- Parameters:
value
-
toString
public String toString()
- Overrides:
toString
in class Object