|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbase.tree.JDOMAdapterNode
public class JDOMAdapterNode
Wraps an XML element. Will return find children of this element if any.
http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/index.html
Field Summary | |
---|---|
org.jdom.Element |
node
the Element encapsulated by this node |
Constructor Summary | |
---|---|
JDOMAdapterNode(org.jdom.Element node)
Creates a new instance of the JDOMAdapterNode class |
Method Summary | |
---|---|
JDOMAdapterNode |
child(int searchIndex)
Returns an adapter node given a valid index found through the method: public int index(JDOMAdapterNode child) |
int |
childCount()
Return the number of children for this element/node |
int |
index(JDOMAdapterNode child)
Finds index of child in this node. |
java.lang.String |
toString()
Tricky toString which allows for copying entire elements and their children from the xml viewer. |
java.lang.String |
toString(int r)
used recursively to space the xml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public org.jdom.Element node
Constructor Detail |
---|
public JDOMAdapterNode(org.jdom.Element node)
Element
- nodeMethod Detail |
---|
public int index(JDOMAdapterNode child)
child
- The child to look for
public JDOMAdapterNode child(int searchIndex)
searchIndex
- find this by calling index(JDOMAdapterNode)
public int childCount()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int r)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |