|
Groovy 2.2.0-beta-1 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.xml.dom.DOMCategory
public class DOMCategory extends Object
Category class which adds GPath style operations to Java's DOM classes.
Method Summary | |
---|---|
static Element
|
appendNode(Element self, Object name)
|
static Element
|
appendNode(Element self, Object name, Map attributes)
|
static Element
|
appendNode(Element self, Object name, String value)
|
static Element
|
appendNode(Element self, Object name, Map attributes, String value)
|
static NamedNodeMap
|
attributes(Element element)
|
static NodeList
|
breadthFirst(Element self)
|
static NodeList
|
children(Element self)
|
static NodeList
|
depthFirst(Element self)
|
static Object
|
get(Element element, String elementName)
|
static Object
|
get(NodeList nodeList, String elementName)
|
static Object
|
get(NamedNodeMap nodeMap, 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, groovy.lang.IntRange r)
|
static NodeList
|
getAt(DOMCategory.NodeListsHolder o, groovy.lang.IntRange r)
|
static NodeList
|
getAt(DOMCategory.NodesHolder o, groovy.lang.IntRange r)
|
static boolean
|
isEmpty(NodeList self)
|
static List
|
list(NodeList self)
|
static String
|
name(Node node)
|
static Node
|
parent(Node node)
|
static void
|
plus(Element self, groovy.lang.Closure c)
|
static void
|
plus(NodeList self, groovy.lang.Closure c)
|
static void
|
putAt(Element self, String property, Object value)
|
static Node
|
replaceNode(DOMCategory.NodesHolder self, groovy.lang.Closure c)
|
static Node
|
replaceNode(Node self, groovy.lang.Closure c)
|
static void
|
setValue(Element self, String value)
|
static int
|
size(NamedNodeMap namedNodeMap)
|
static int
|
size(NodeList self)
|
static String
|
text(Node node)
|
static String
|
text(NodeList nodeList)
|
static String
|
toString(Object o)
|
static Object
|
xpath(Node self, String expression, QName returnType)
|
static String
|
xpath(Node self, String expression)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public static Element appendNode(Element self, Object name)
public static Element appendNode(Element self, Object name, Map attributes)
public static Element appendNode(Element self, Object name, String value)
public static Element appendNode(Element self, Object name, Map attributes, String value)
public static NamedNodeMap attributes(Element element)
public static NodeList breadthFirst(Element self)
public static NodeList children(Element self)
public static NodeList depthFirst(Element self)
public static Object get(Element element, String elementName)
public static Object get(NodeList nodeList, String elementName)
public static Object get(NamedNodeMap nodeMap, 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, groovy.lang.IntRange r)
public static NodeList getAt(DOMCategory.NodeListsHolder o, groovy.lang.IntRange r)
public static NodeList getAt(DOMCategory.NodesHolder o, groovy.lang.IntRange r)
public static boolean isEmpty(NodeList self)
public static List list(NodeList self)
public static String name(Node node)
public static Node parent(Node node)
public static void plus(Element self, groovy.lang.Closure c)
public static void plus(NodeList self, groovy.lang.Closure c)
public static void putAt(Element self, String property, Object value)
public static Node replaceNode(DOMCategory.NodesHolder self, groovy.lang.Closure c)
public static Node replaceNode(Node self, groovy.lang.Closure c)
public static void setValue(Element self, String value)
public static int size(NamedNodeMap namedNodeMap)
public static int size(NodeList self)
public static String text(Node node)
public static String text(NodeList nodeList)
public static String toString(Object o)
public static Object xpath(Node self, String expression, QName returnType)
public static String xpath(Node self, String expression)
Copyright © 2003-2013 The Codehaus. All rights reserved.