|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.NodeUtils
Some common utilities for manipulating DOM nodes.
Constructor Summary | |
NodeUtils()
|
Method Summary | |
static java.lang.String |
asText(org.w3c.dom.NodeList rootNodes)
Converts the DOM trees rooted at the specified nodes to text, ignoring any HTML tags. |
static int |
getAttributeValue(org.w3c.dom.Node node,
java.lang.String attributeName,
int defaultValue)
get the attribute with the given name from the given node as an int value |
static java.lang.String |
getNodeAttribute(org.w3c.dom.Node node,
java.lang.String attributeName)
get the attribute with the given name from the given node |
static java.lang.String |
getNodeAttribute(org.w3c.dom.Node node,
java.lang.String attributeName,
java.lang.String defaultValue)
get the attribute with the given name from the given node |
static boolean |
isNodeAttributePresent(org.w3c.dom.Node node,
java.lang.String attributeName)
check whether the given Attribute in the Node is Present |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeUtils()
Method Detail |
public static int getAttributeValue(org.w3c.dom.Node node, java.lang.String attributeName, int defaultValue)
node
- - the node to look inattributeName
- - the attribute's name to look fordefaultValue
-
public static java.lang.String getNodeAttribute(org.w3c.dom.Node node, java.lang.String attributeName)
node
- - the node to look inattributeName
- - the attribute's name to look for
public static java.lang.String getNodeAttribute(org.w3c.dom.Node node, java.lang.String attributeName, java.lang.String defaultValue)
node
- - the node to look inattributeName
- - the attribute's name to look fordefaultValue
-
public static boolean isNodeAttributePresent(org.w3c.dom.Node node, java.lang.String attributeName)
node
- - the node to checkattributeName
- - the attribute name to check
public static java.lang.String asText(org.w3c.dom.NodeList rootNodes)
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |