|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.co.westhawk.test.Util
The class Util contains utility methods for DOM nodes.
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static java.lang.String |
getCDataValue(org.w3c.dom.Node node,
java.lang.String tag)
Returns the CDATA value of the subnode of specified node with the specified tag. |
static org.w3c.dom.Node |
getChildNode(org.w3c.dom.Node node,
java.lang.String tag)
Return the child node of the specified node with the specified tag. |
static org.w3c.dom.Element |
getTopElementNode(org.w3c.dom.Document doc)
Returns the first element node of a document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Util()
| Method Detail |
public static java.lang.String getCDataValue(org.w3c.dom.Node node,
java.lang.String tag)
<test>
<host>localhost<host>
</test>
would return localhost, for node being the test
node and tag being host.
node - The parent DOM nodetag - The tag of the node
public static org.w3c.dom.Node getChildNode(org.w3c.dom.Node node,
java.lang.String tag)
node - The parent DOM nodetag - The tag of the node
public static org.w3c.dom.Element getTopElementNode(org.w3c.dom.Document doc)
doc - The DOM document.
|
SNMP Stack 5_1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||