|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.renderer.util.NodeUtil
public class NodeUtil
Utility methods for nodes
.
Constructor Summary | |
---|---|
NodeUtil()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeUtil()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |