public class Node extends Object implements groovy.lang.Writable
Constructor and Description |
---|
Node(Node parent,
String name,
Map attributes,
Map attributeNamespaces,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Object child) |
protected void |
appendNode(Object newValue,
GPathResult result) |
Map |
attributes() |
void |
build(groovy.lang.GroovyObject builder,
Map namespaceMap,
Map<String,String> namespaceTagHints) |
Iterator |
childNodes() |
List |
children() |
String |
name() |
String |
namespaceURI() |
protected void |
replaceBody(Object newValue) |
void |
replaceNode(groovy.lang.Closure replacementClosure,
GPathResult result) |
String |
text() |
Writer |
writeTo(Writer out) |
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 anypublic String name()
public String namespaceURI()
public Map attributes()
public List children()
public void addChild(Object child)
public void replaceNode(groovy.lang.Closure replacementClosure, GPathResult result)
protected void replaceBody(Object newValue)
protected void appendNode(Object newValue, GPathResult result)
public String text()
public Iterator childNodes()
public Writer writeTo(Writer out) throws IOException
writeTo
in interface groovy.lang.Writable
IOException