| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private final List | |
| private final String | |
| private final String | |
| private final Node | |
| private final Stack |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| public Map | Returns: a map of the attributes of this NodeReturns a map of the attributes of this Node. |
| public void | |
| private void | buildChildren(final GroovyObject builder, final Map<K, V> namespaceMap, final Map<String, String> namespaceTagHints)
|
| public Iterator | Returns: an iterator over the child nodes of this NodeReturns an iterator over the child nodes of this Node. |
| public List | |
| private static String | |
| private static String | |
| public List | Returns: the list of String values from this nodeReturns the list of any direct String nodes of this node. |
| public String | |
| public String | |
| public Node | |
| protected void | replaceBody(final Object
the new body newValue)Replaces the current body of this Node with the passed object. |
| public void | |
| public String | Returns: a string containing the text of the children of this NodeReturns a string containing the text of the children of this Node. |
| public Writer | writeTo(final Writer
the Writer to which this Writable should output its data. out)Implements groovy. |
| attributeNamespaces | back to summary |
|---|---|
| private final Map<K, V> attributeNamespaces | |
| attributes | back to summary |
|---|---|
| private final Map<K, V> attributes | |
| children | back to summary |
|---|---|
| private final List<E> children | |
| name | back to summary |
|---|---|
| private final String name | |
| namespaceURI | back to summary |
|---|---|
| private final String namespaceURI | |
| parent | back to summary |
|---|---|
| private final Node parent | |
| replacementNodeStack | back to summary |
|---|---|
| private final Stack<E> replacementNodeStack | |
| Node | back to summary |
|---|---|
| public Node(final Node parent, final String name, final Map<K, V> attributes, final Map<K, V> attributeNamespaces, final String namespaceURI) | |
| addChild | back to summary |
|---|---|
| public void addChild(final Object child) Adds an object as a new child to this Node.
| |
| appendNode | back to summary |
|---|---|
| protected void appendNode(final Object newValue, final GPathResult result) | |
| attributes | back to summary |
|---|---|
| public Map Returns a map of the attributes of this Node.
| |
| build | back to summary |
|---|---|
| public void build(final GroovyObject builder, final Map<K, V> namespaceMap, final Map<String, String> namespaceTagHints) | |
| buildChildren | back to summary |
|---|---|
| private void buildChildren(final GroovyObject builder, final Map<K, V> namespaceMap, final Map<String, String> namespaceTagHints) | |
| childNodes | back to summary |
|---|---|
| public Iterator Returns an iterator over the child nodes of this Node.
| |
| children | back to summary |
|---|---|
| public List Returns a list of the children of this Node.
| |
| findNamespaceTag | back to summary |
|---|---|
| private static String findNamespaceTag(final Map<K, V> tagMap, final Object namespaceURI) | |
| getTagFor | back to summary |
|---|---|
| private static String getTagFor(final Object namespaceURI, final Map<K, V> current, final Map<K, V> pending, final Map<K, V> local, final Map<K, V> tagHints, final List<E> newTags, final GroovyObject builder) | |
| localText | back to summary |
|---|---|
| public List Returns the list of any direct String nodes of this node. | |
| name | back to summary |
|---|---|
| public String name() Returns the name of this Node.
| |
| namespaceURI | back to summary |
|---|---|
| public String namespaceURI() Returns the URI of the namespace of this Node.
| |
| parent | back to summary |
|---|---|
| public Node parent() Returns the parent of this Node.
| |
| replaceBody | back to summary |
|---|---|
| protected void replaceBody(final Object newValue) Replaces the current body of this Node with the passed object.
| |
| replaceNode | back to summary |
|---|---|
| public void replaceNode(final Closure<V> replacementClosure, final GPathResult result) | |
| text | back to summary |
|---|---|
| public String text() Returns a string containing the text of the children of this Node.
| |
| writeTo | back to summary |
|---|---|
| public Writer writeTo(final Writer out) throws IOException Implements groovy. Doc from groovy. Writes this object to the given writer. This is used to defer content creation until the point when it is streamed to the output destination. Oftentimes, content will be defined but not necessarily created (as is may be the case with a Closure definition.) In that case, the output is then 'deferred' to the point when it is serialized to the writer. This class may be used whenever an object should be responsible for creating its own textual representation, but creating the entire output as a single String would be inefficient (such as outputting a multi-gigabyte XML document.)
| |