|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.xml.xpath.XPathUtil
A utility class that gathers XPath functions together that don't fit under a real class.
Method Summary | |
static String |
describeNode(Node node)
Provide a textual representation of a node, suitable for debugging. |
static Class |
doGetClass(String className)
Get a class object by name without worrying about a ClassNotFound exception. |
static void |
dump(Object obj,
PrintWriter writer,
int indent)
Print in a readable form for debugging. |
static Node |
getNextSibling(Node node)
Helper function to get next sibling of a Node, treating adjacent text nodes as a single text node. |
static short |
getNodeType(Node node)
Returns the DOM Node Type, except Node.CDATA_SECTION_NODE is returned as Node.TEXT_NODE. |
static String |
getNodeValue(Node node)
Return the XPath-defined node value for the passed node. |
static Node |
getPreviousSibling(Node node)
Helper function to get previous sibling of a Node, treating adjacent text nodes as a single text node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static short getNodeType(Node node)
node
- Node whose type is to be returned.
public static String getNodeValue(Node node)
node
- The node whose value is desired.
public static Node getNextSibling(Node node)
node
- Node whose next sibling is to be returned
public static Node getPreviousSibling(Node node)
node
- Node whose previous sibling is to be returned
public static Class doGetClass(String className)
className
- The name of the Class object to get.
public static String describeNode(Node node)
node
- The node to be described.
public static void dump(Object obj, PrintWriter writer, int indent)
obj
- The object to output.writer
- The output device.indent
- Number of tabs to indent the result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |