public class Attribute extends GPathResult
name, namespaceMap, namespacePrefix, namespaceTagHints, parent
Constructor and Description |
---|
Attribute(java.lang.String name,
java.lang.String value,
GPathResult parent,
java.lang.String namespacePrefix,
java.util.Map namespaceTagHints) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendNode(java.lang.Object newValue) |
void |
build(GroovyObject builder) |
java.util.Iterator |
childNodes() |
GPathResult |
find(Closure closure) |
GPathResult |
findAll(Closure closure) |
java.util.Iterator |
iterator() |
java.lang.String |
name() |
java.util.Iterator |
nodeIterator() |
GPathResult |
parents() |
protected void |
replaceBody(java.lang.Object newValue) |
protected void |
replaceNode(Closure newValue) |
int |
size() |
java.lang.String |
text() |
java.io.Writer |
writeTo(java.io.Writer out)
writes this object to the given stream
|
breadthFirst, children, declareNamespace, depthFirst, equals, getAt, getAt, getBody, getProperty, isEmpty, leftShift, list, lookupNamespace, parent, plus, putAt, setMetaClass, setProperty, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInteger, toLong, toString, toURI, toURL
getMetaClass, invokeMethod
public Attribute(java.lang.String name, java.lang.String value, GPathResult parent, java.lang.String namespacePrefix, java.util.Map namespaceTagHints)
public java.lang.String name()
name
in class GPathResult
public int size()
size
in class GPathResult
public java.lang.String text()
text
in class GPathResult
public GPathResult parents()
parents
in class GPathResult
public java.util.Iterator childNodes()
childNodes
in class GPathResult
public java.util.Iterator iterator()
iterator
in class GPathResult
public GPathResult find(Closure closure)
find
in class GPathResult
public GPathResult findAll(Closure closure)
findAll
in class GPathResult
public java.util.Iterator nodeIterator()
nodeIterator
in class GPathResult
public java.io.Writer writeTo(java.io.Writer out) throws java.io.IOException
Writable
java.io.IOException
public void build(GroovyObject builder)
protected void replaceNode(Closure newValue)
replaceNode
in class GPathResult
protected void replaceBody(java.lang.Object newValue)
replaceBody
in class GPathResult
protected void appendNode(java.lang.Object newValue)
appendNode
in class GPathResult