anderix.text
Class XmlElement

java.lang.Object
  extended by anderix.text.XmlElement

public class XmlElement
extends java.lang.Object


Constructor Summary
XmlElement(java.lang.String tagName)
           
 
Method Summary
 void addChildElement(XmlElement element)
           
 java.lang.String getAttribute(java.lang.String name)
           
 XmlElement[] getChildElements()
           
 XmlElement[] getChildElementsByTagName(java.lang.String tagName)
           
 java.lang.String getTagName()
           
 java.lang.String getText()
           
 void setAttribute(java.lang.String name, java.lang.String value)
           
 void setTagName(java.lang.String tagName)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlElement

public XmlElement(java.lang.String tagName)
Method Detail

getTagName

public java.lang.String getTagName()

setTagName

public void setTagName(java.lang.String tagName)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getAttribute

public java.lang.String getAttribute(java.lang.String name)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)

addChildElement

public void addChildElement(XmlElement element)

getChildElements

public XmlElement[] getChildElements()

getChildElementsByTagName

public XmlElement[] getChildElementsByTagName(java.lang.String tagName)