|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.sstu.xml.XPathUtil
public final class XPathUtil
XPathUtil class is utility class for XPath Expressions.
| Method Summary | |
|---|---|
static boolean |
exists(Node context,
String xPath)
Checks if given XPath exists in given context. |
static Element |
getElement(Node context,
String xPath)
Search for element for given XPath in given context. |
static Element[] |
getElements(Node context,
String xPath)
Search for elements for given XPath in given context. |
static Node |
getNode(Node context,
String xPath)
Search for node for given XPath in given context. |
static Node[] |
getNodes(Node context,
String xPath)
Search for nodes for given XPath in given context. |
static Number |
getNumber(Node context,
String xPath)
Search for number for given XPath in given context. |
static String |
getText(Node context,
String xPath)
Search for text for given XPath in given context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Element getElement(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
Element found
XmlException - if some error occurs
public static Node getNode(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
Node found
XmlException - if some error occurs
public static Element[] getElements(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
Elements found
XmlException - if some error occurs
public static Node[] getNodes(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
Nodes found
XmlException - if some error occurs
public static String getText(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
XmlException - if some error occurs
public static Number getNumber(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
XmlException - if some error occurs
public static boolean exists(Node context,
String xPath)
throws XmlException
context - context NodexPath - XPath expression
XmlException - if some error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||