|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
Map |
attributes
|
Object |
name
|
Node |
parent
|
long |
serialVersionUID
|
Object |
value
|
Constructor Summary | |
Node(Node parent, Object name)
|
|
Node(Node parent, Object name, Object value)
|
|
Node(Node parent, Object name, Map attributes)
|
|
Node(Node parent, Object name, Map attributes, Object value)
|
Method Summary | |
---|---|
boolean |
append(Node child)
|
Node |
appendNode(Object name, Map attributes)
|
Node |
appendNode(Object name)
|
Node |
appendNode(Object name, Object value)
|
Node |
appendNode(Object name, Map attributes, Object value)
|
Object |
attribute(Object key)
|
Map |
attributes()
|
List |
breadthFirst()
Provide a collection of all the nodes in the tree using a breadth-first traversal. |
List |
breadthFirstRest()
|
List |
children()
|
List |
depthFirst()
Provide a collection of all the nodes in the tree using a depth first traversal. |
List |
depthFirstRest()
|
Object |
get(String key)
Provides lookup of elements by non-namespaced name |
NodeList |
getAt(QName name)
Provides lookup of elements by QName. |
NodeList |
getByName(String name)
Provides lookup of elements by name. |
List |
getDirectChildren()
|
List |
getParentList(Node parent)
|
Iterator |
iterator()
|
Object |
name()
|
Node |
parent()
|
void |
print(PrintWriter out)
|
boolean |
remove(Node child)
|
static void |
setMetaClass(MetaClass metaClass)
|
void |
setValue(Object value)
|
String |
text()
|
String |
toString()
|
Object |
value()
|
Constructor Detail |
---|
public Node(Node parent, Object name)
public Node(Node parent, Object name, Object value)
public Node(Node parent, Object name, Map attributes)
public Node(Node parent, Object name, Map attributes, Object value)
Method Detail |
---|
public boolean append(Node child)
public Node appendNode(Object name, Map attributes)
public Node appendNode(Object name)
public Node appendNode(Object name, Object value)
public Node appendNode(Object name, Map attributes, Object value)
public Object attribute(Object key)
public Map attributes()
public List breadthFirst()
List breadthFirstRest()
public List children()
public List depthFirst()
List depthFirstRest()
public Object get(String key)
public NodeList getAt(QName name)
NodeList getByName(String name)
List getDirectChildren()
List getParentList(Node parent)
public Iterator iterator()
public Object name()
public Node parent()
public void print(PrintWriter out)
public boolean remove(Node child)
static void setMetaClass(MetaClass metaClass)
public void setValue(Object value)
public String text()
public String toString()
public Object value()