public class NodeUtil extends Object
nodes.| Constructor and Description |
|---|
NodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
attributeContains(Node node,
String name,
String value)
Returns true if the named attribute exists and contains the passed in value.
|
static String |
getAttribute(Node node,
String name)
Retrieve the attribute value from the node.
|
static boolean |
getBooleanAttributeValue(Node node,
String attributeName,
boolean defaultValue)
Retrieve the value of an attribute for a node as a boolean.
|
static boolean |
isList(Node node) |
static boolean |
isTextNode(Node node) |
public static String getAttribute(Node node, String name)
NodeContext.getAttribute(String)public static boolean getBooleanAttributeValue(Node node, String attributeName, boolean defaultValue)
node - from which to retrieve the valueattributeName - the attribute to find the value ofdefaultValue - the value to return if no boolean value is found.NodeContext.getBooleanAttributeValue(String, boolean)public static boolean attributeContains(Node node, String name, String value)
public static boolean isTextNode(Node node)
public static boolean isList(Node node)
Copyright © 2019 Atlassian. All rights reserved.