public class DOMCategory extends Object
Constructor and Description |
---|
DOMCategory() |
Modifier and Type | Method and Description |
---|---|
static Element |
appendNode(Element self,
Object name) |
static Element |
appendNode(Element self,
Object name,
Map attributes) |
static Element |
appendNode(Element self,
Object name,
Map attributes,
String value) |
static Element |
appendNode(Element self,
Object name,
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(NamedNodeMap nodeMap,
String elementName) |
static Object |
get(NodeList nodeList,
String elementName) |
static Node |
getAt(groovy.xml.dom.DOMCategory.NodeListsHolder o,
int i) |
static NodeList |
getAt(groovy.xml.dom.DOMCategory.NodeListsHolder o,
IntRange r) |
static Node |
getAt(groovy.xml.dom.DOMCategory.NodesHolder o,
int i) |
static NodeList |
getAt(groovy.xml.dom.DOMCategory.NodesHolder o,
IntRange r) |
static Node |
getAt(Node o,
int i) |
static NodeList |
getAt(Node o,
IntRange r) |
static boolean |
isEmpty(NodeList self) |
static boolean |
isGlobalKeepIgnorableWhitespace() |
static boolean |
isGlobalTrimWhitespace() |
static List<Node> |
list(NodeList self) |
static List<String> |
localText(Element self)
Returns the list of any direct String nodes of this node.
|
static String |
name(Node node) |
static Node |
parent(Node node) |
static void |
plus(Element self,
Closure c) |
static void |
plus(NodeList self,
Closure c) |
static void |
putAt(Element self,
String property,
Object value) |
static Node |
replaceNode(groovy.xml.dom.DOMCategory.NodesHolder self,
Closure c) |
static Node |
replaceNode(Node self,
Closure c) |
static void |
setGlobalKeepIgnorableWhitespace(boolean keepIgnorableWhitespace)
Whether ignorable whitespace (e.g.
|
static void |
setGlobalTrimWhitespace(boolean trimWhitespace)
Whether text content is trimmed (removing leading and trailing whitespace); default false.
|
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 String |
xpath(Node self,
String expression) |
static Object |
xpath(Node self,
String expression,
QName returnType) |
public static boolean isGlobalTrimWhitespace()
public static void setGlobalTrimWhitespace(boolean trimWhitespace)
trimWhitespace
- the new valuepublic static boolean isGlobalKeepIgnorableWhitespace()
public static void setGlobalKeepIgnorableWhitespace(boolean keepIgnorableWhitespace)
keepIgnorableWhitespace
- the new valuepublic static Object get(NamedNodeMap nodeMap, String elementName)
public static NamedNodeMap attributes(Element element)
public static int size(NamedNodeMap namedNodeMap)
public static Node getAt(groovy.xml.dom.DOMCategory.NodeListsHolder o, int i)
public static Node getAt(groovy.xml.dom.DOMCategory.NodesHolder o, int i)
public static Element appendNode(Element self, Object name, Map attributes, String value)
public static List<String> localText(Element self)
public static int size(NodeList self)
public static boolean isEmpty(NodeList self)