|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.servletspy.Node
A Node
represents the result of a serialization process.
Constructor Summary | |
Node(Node pParent,
java.lang.String pName)
Constructor. |
|
Node(Node pParent,
java.lang.String pName,
java.lang.String pValue)
Constructor. |
|
Node(java.lang.String pName,
java.lang.String pValue)
Constructor. |
Method Summary | |
void |
addChildNode(Node pChild)
Adds a child node. |
java.util.Iterator |
childNodes()
Returns the childs. |
int |
compareTo(java.lang.Object pArg)
|
java.lang.String |
getDebugHint()
For debugging purpose only. |
java.lang.String |
getName()
|
int |
getNumberOfChild()
Returns the number of childs. |
Node |
getParent()
|
Node |
getReference()
Returns the reference node. |
java.lang.String |
getValue()
|
boolean |
hasChildNodes()
|
boolean |
hasReference()
Returns true if and only if this node does not hold a serialization graph, but points to an other node representing an already performed serialization. |
void |
setDebugHint(java.lang.String pHint)
For debugging purpose only. |
void |
setReference(Node pReferenceNode)
Sets the reference node. |
void |
setValue(java.lang.String pValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Node(java.lang.String pName, java.lang.String pValue)
pName
- The node namepValue
- The initial value of the nodepublic Node(Node pParent, java.lang.String pName)
pParent
- The parent nodepName
- The node namepublic Node(Node pParent, java.lang.String pName, java.lang.String pValue)
pParent
- The parent nodepName
- The node namepValue
- The initial value of the nodeMethod Detail |
public int compareTo(java.lang.Object pArg)
compareTo
in interface java.lang.Comparable
public java.lang.String getValue()
public void setValue(java.lang.String pValue)
pValue
- The value to set.public java.lang.String getName()
public Node getParent()
public boolean hasChildNodes()
public void addChildNode(Node pChild)
pChild
- The child.public java.util.Iterator childNodes()
public int getNumberOfChild()
public void setReference(Node pReferenceNode)
pReferenceNode
- The refernce node, a pointer to another node in the
serialization graph representing an already processed subject.public Node getReference()
public boolean hasReference()
public void setDebugHint(java.lang.String pHint)
pHint
- A hintpublic java.lang.String getDebugHint()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |