org.forester.io.parsers.phyloxml
Class XmlElement

java.lang.Object
  extended by org.forester.io.parsers.phyloxml.XmlElement

public class XmlElement
extends Object


Field Summary
static boolean DEBUG
           
 
Constructor Summary
XmlElement(String namespaceUri, String localName, String qualifiedName, Attributes attributes)
           
 
Method Summary
 void addChildElement(XmlElement element)
           
 void appendValue(String value)
           
 String getAttribute(String attribute_name)
           
 HashMap<String,String> getAttributes()
           
 XmlElement getChildElement(int i)
           
 int getNumberOfChildElements()
           
 XmlElement getParent()
           
 String getQualifiedName()
           
 boolean getValueAsBoolean()
           
 double getValueAsDouble()
           
 int getValueAsInt()
           
 String getValueAsString()
           
 boolean isHasAttribute(String attribute_name)
           
 boolean isHasValue()
           
 void setValue(String value)
          [Careful, this does not call "new String(...)"]
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

XmlElement

public XmlElement(String namespaceUri,
                  String localName,
                  String qualifiedName,
                  Attributes attributes)
Method Detail

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