sunlabs.brazil.sunlabs
Class XmlTree.Node
java.lang.Object
sunlabs.brazil.sunlabs.XmlTree.Node
- Enclosing class:
- XmlTree
public static class XmlTree.Node
- extends Object
This describes a node of the XML tree
XmlTree.Node
public XmlTree.Node(String tag,
boolean singleton,
StringMap attributes,
XmlTree.Node parent,
int type,
int index)
setCdata
public void setCdata(String s)
putAttribute
public void putAttribute(String key,
String value)
appendCdata
public void appendCdata(String s)
addChild
public void addChild(XmlTree.Node child)
getChild
public XmlTree.Node getChild(int i)
getTag
public String getTag()
getIndex
public int getIndex()
isSingle
public boolean isSingle()
setSingle
public void setSingle(boolean s)
getAttributes
public StringMap getAttributes()
getAttribute
public String getAttribute(String name)
getCdata
public String getCdata()
getParent
public XmlTree.Node getParent()
childCount
public int childCount()
toString
public String toString()
- Overrides:
toString
in class Object