|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.util.slurpersupport.Node
public class Node extends Object
Represents a node.
Constructor Summary | |
Node(Node parent, String name, Map attributes, Map attributeNamespaces, String namespaceURI)
@param parent the parent node |
Method Summary | |
---|---|
void
|
addChild(Object child)
|
protected void
|
appendNode(Object newValue, GPathResult result)
|
Map
|
attributes()
|
void
|
build(GroovyObject builder, Map namespaceMap, Map namespaceTagHints)
|
Iterator
|
childNodes()
|
List
|
children()
|
String
|
name()
|
String
|
namespaceURI()
|
protected void
|
replaceBody(Object newValue)
|
void
|
replaceNode(Closure replacementClosure, GPathResult result)
|
String
|
text()
|
Writer
|
writeTo(Writer out)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public Node(Node parent, String name, Map attributes, Map attributeNamespaces, String namespaceURI)
parent
- the parent nodename
- the name for the nodeattributes
- the attributes for the nodeattributeNamespaces
- the namespace mappings for attributesnamespaceURI
- the namespace URI if any
Method Detail |
---|
public void addChild(Object child)
protected void appendNode(Object newValue, GPathResult result)
public Map attributes()
public void build(GroovyObject builder, Map namespaceMap, Map namespaceTagHints)
public Iterator childNodes()
public List children()
public String name()
public String namespaceURI()
protected void replaceBody(Object newValue)
public void replaceNode(Closure replacementClosure, GPathResult result)
public String text()
public Writer writeTo(Writer out)
Copyright © 2003-2011 The Codehaus. All rights reserved.