sunlabs.brazil.sunlabs

Class XmlTree.Node

public static class XmlTree.Node extends Object

This describes a node of the XML tree
Constructor Summary
Node(String tag, boolean singleton, StringMap attributes, XmlTree.Node parent, int type, int index)
Method Summary
voidaddChild(XmlTree.Node child)
voidappendCdata(String s)
intchildCount()
StringgetAttribute(String name)
StringMapgetAttributes()
StringgetCdata()
XmlTree.NodegetChild(int i)
intgetIndex()
XmlTree.NodegetParent()
StringgetTag()
booleanisSingle()
voidputAttribute(String key, String value)
voidsetCdata(String s)
voidsetSingle(boolean s)
StringtoString()

Constructor Detail

Node

public Node(String tag, boolean singleton, StringMap attributes, XmlTree.Node parent, int type, int index)

Method Detail

addChild

public void addChild(XmlTree.Node child)

appendCdata

public void appendCdata(String s)

childCount

public int childCount()

getAttribute

public String getAttribute(String name)

getAttributes

public StringMap getAttributes()

getCdata

public String getCdata()

getChild

public XmlTree.Node getChild(int i)

getIndex

public int getIndex()

getParent

public XmlTree.Node getParent()

getTag

public String getTag()

isSingle

public boolean isSingle()

putAttribute

public void putAttribute(String key, String value)

setCdata

public void setCdata(String s)

setSingle

public void setSingle(boolean s)

toString

public String toString()