|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.xml.dom.DOMCategory
public class DOMCategory extends java.lang.Object
Category class which adds GPath style operations to Java's DOM classes.
Method Summary | |
---|---|
static org.w3c.dom.Element
|
appendNode(org.w3c.dom.Element self, java.lang.Object name)
|
static org.w3c.dom.Element
|
appendNode(org.w3c.dom.Element self, java.lang.Object name, java.util.Map attributes)
|
static org.w3c.dom.Element
|
appendNode(org.w3c.dom.Element self, java.lang.Object name, java.lang.String value)
|
static org.w3c.dom.Element
|
appendNode(org.w3c.dom.Element self, java.lang.Object name, java.util.Map attributes, java.lang.String value)
|
static org.w3c.dom.NamedNodeMap
|
attributes(org.w3c.dom.Element element)
|
static NodeList
|
breadthFirst(org.w3c.dom.Element self)
|
static NodeList
|
children(org.w3c.dom.Element self)
|
static NodeList
|
depthFirst(org.w3c.dom.Element self)
|
static java.lang.Object
|
get(org.w3c.dom.Element element, java.lang.String elementName)
|
static java.lang.Object
|
get(NodeList nodeList, java.lang.String elementName)
|
static java.lang.Object
|
get(org.w3c.dom.NamedNodeMap nodeMap, java.lang.String elementName)
|
static Node
|
getAt(Node o, int i)
|
static Node
|
getAt(DOMCategory.NodeListsHolder o, int i)
|
static Node
|
getAt(DOMCategory.NodesHolder o, int i)
|
static NodeList
|
getAt(Node o, IntRange r)
|
static NodeList
|
getAt(DOMCategory.NodeListsHolder o, IntRange r)
|
static NodeList
|
getAt(DOMCategory.NodesHolder o, IntRange r)
|
static boolean
|
isEmpty(NodeList self)
|
static java.util.List
|
list(NodeList self)
|
static java.lang.String
|
name(org.w3c.dom.Element element)
|
static Node
|
parent(Node node)
|
static void
|
plus(org.w3c.dom.Element self, Closure c)
|
static void
|
plus(NodeList self, Closure c)
|
static void
|
putAt(org.w3c.dom.Element self, java.lang.String property, java.lang.Object value)
|
static Node
|
replaceNode(DOMCategory.NodesHolder self, Closure c)
|
static Node
|
replaceNode(Node self, Closure c)
|
static void
|
setValue(org.w3c.dom.Element self, java.lang.String value)
|
static int
|
size(org.w3c.dom.NamedNodeMap namedNodeMap)
|
static int
|
size(NodeList self)
|
static java.lang.String
|
text(Node node)
|
static java.lang.String
|
text(NodeList nodeList)
|
static java.lang.String
|
toString(java.lang.Object o)
|
static java.lang.Object
|
xpath(Node self, java.lang.String expression, javax.xml.namespace.QName returnType)
|
static java.lang.String
|
xpath(Node self, java.lang.String expression)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public static org.w3c.dom.Element appendNode(org.w3c.dom.Element self, java.lang.Object name)
public static org.w3c.dom.Element appendNode(org.w3c.dom.Element self, java.lang.Object name, java.util.Map attributes)
public static org.w3c.dom.Element appendNode(org.w3c.dom.Element self, java.lang.Object name, java.lang.String value)
public static org.w3c.dom.Element appendNode(org.w3c.dom.Element self, java.lang.Object name, java.util.Map attributes, java.lang.String value)
public static org.w3c.dom.NamedNodeMap attributes(org.w3c.dom.Element element)
public static NodeList breadthFirst(org.w3c.dom.Element self)
public static NodeList children(org.w3c.dom.Element self)
public static NodeList depthFirst(org.w3c.dom.Element self)
public static java.lang.Object get(org.w3c.dom.Element element, java.lang.String elementName)
public static java.lang.Object get(NodeList nodeList, java.lang.String elementName)
public static java.lang.Object get(org.w3c.dom.NamedNodeMap nodeMap, java.lang.String elementName)
public static Node getAt(Node o, int i)
public static Node getAt(DOMCategory.NodeListsHolder o, int i)
public static Node getAt(DOMCategory.NodesHolder o, int i)
public static NodeList getAt(Node o, IntRange r)
public static NodeList getAt(DOMCategory.NodeListsHolder o, IntRange r)
public static NodeList getAt(DOMCategory.NodesHolder o, IntRange r)
public static boolean isEmpty(NodeList self)
public static java.util.List list(NodeList self)
public static java.lang.String name(org.w3c.dom.Element element)
public static Node parent(Node node)
public static void plus(org.w3c.dom.Element self, Closure c)
public static void plus(NodeList self, Closure c)
public static void putAt(org.w3c.dom.Element self, java.lang.String property, java.lang.Object value)
public static Node replaceNode(DOMCategory.NodesHolder self, Closure c)
public static Node replaceNode(Node self, Closure c)
public static void setValue(org.w3c.dom.Element self, java.lang.String value)
public static int size(org.w3c.dom.NamedNodeMap namedNodeMap)
public static int size(NodeList self)
public static java.lang.String text(Node node)
public static java.lang.String text(NodeList nodeList)
public static java.lang.String toString(java.lang.Object o)
public static java.lang.Object xpath(Node self, java.lang.String expression, javax.xml.namespace.QName returnType)
public static java.lang.String xpath(Node self, java.lang.String expression)
Groovy Documentation