Package org.cybergarage.xml
Class Node
- java.lang.Object
-
- org.cybergarage.xml.Node
-
public class Node extends Object
-
-
Method Summary
-
-
-
Method Detail
-
setParentNode
public void setParentNode(Node node)
-
getParentNode
public Node getParentNode()
-
getRootNode
public Node getRootNode()
-
setName
public void setName(String name)
-
getName
public String getName()
-
isName
public boolean isName(String value)
-
setValue
public void setValue(String value)
-
setValue
public void setValue(int value)
-
addValue
public void addValue(String value)
-
getValue
public String getValue()
-
getNAttributes
public int getNAttributes()
-
getAttribute
public Attribute getAttribute(int index)
-
addAttribute
public void addAttribute(Attribute attr)
-
insertAttributeAt
public void insertAttributeAt(Attribute attr, int index)
-
removeAttribute
public boolean removeAttribute(Attribute attr)
-
removeAttribute
public boolean removeAttribute(String name)
-
removeAllAttributes
public void removeAllAttributes()
-
hasAttributes
public boolean hasAttributes()
-
setAttribute
public void setAttribute(String name, int value)
-
getAttributeIntegerValue
public int getAttributeIntegerValue(String name)
-
set
public boolean set(Node otherNode)
-
getNNodes
public int getNNodes()
-
getNode
public Node getNode(int index)
-
addNode
public void addNode(Node node)
-
insertNode
public void insertNode(Node node, int index)
-
getIndex
public int getIndex(String name)
-
removeNode
public boolean removeNode(Node node)
-
removeNode
public boolean removeNode(String name)
-
removeAllNodes
public void removeAllNodes()
-
hasNodes
public boolean hasNodes()
-
hasNode
public boolean hasNode(String name)
-
setNode
public void setNode(String name)
-
setUserData
public void setUserData(Object data)
-
getUserData
public Object getUserData()
-
getIndentLevelString
public String getIndentLevelString(int nIndentLevel)
InovokegetIndentLevelString(int, String)
with" "
as String- See Also:
getIndentLevelString(int, String)
-
getIndentLevelString
public String getIndentLevelString(int nIndentLevel, String space)
- Parameters:
nIndentLevel
- the level of indentation to producespace
- the String to use for the intendation- Returns:
- an indentation String
- Since:
- 1.8.0
-
outputAttributes
public void outputAttributes(PrintWriter ps)
-
output
public void output(PrintWriter ps, int indentLevel, boolean hasChildNode)
-
toXMLString
public String toXMLString(boolean hasChildNode)
-
toXMLString
public String toXMLString()
-
print
public void print(boolean hasChildNode)
-
print
public void print()
-
-