|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.portal.util.XPathUtil
public class XPathUtil
| Constructor Summary | |
|---|---|
XPathUtil()
Constructor |
|
| Method Summary | |
|---|---|
Node |
getNode(Node startNode,
Map<String,String> namespaces,
String xPathStr)
Returns a single Node for the given xpath under a Node |
NodeList |
getNodes(InputStream in,
Map<String,String> namespaces,
String xPathStr)
Parses an InputStream and returns a NodeList of the given xpath |
NodeList |
getNodes(Node startNode,
Map<String,String> namespaces,
String xPathStr)
Returns a NodeList for the given xpath under a Node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPathUtil()
| Method Detail |
|---|
public NodeList getNodes(InputStream in,
Map<String,String> namespaces,
String xPathStr)
throws IOException,
SAXException,
ParserConfigurationException,
XPathExpressionException
InputStream and returns a NodeList of the given xpath
in - the InputStream of the XML structurenamespaces - Map of namespacesxPathStr - String with the xpath expression
NodeList that is the result of the xpath expression
IOException - if the input cannot be read
SAXException - if the input is malformed XML
ParserConfigurationException
XPathExpressionException - in case of an invalid xpath
public NodeList getNodes(Node startNode,
Map<String,String> namespaces,
String xPathStr)
throws XPathExpressionException
NodeList for the given xpath under a Node
startNode - the Node that is the root of the xpathnamespaces - Map of namespacesxPathStr - String with the xpath expression
NodeList that is the result of the xpath expression
XPathExpressionException - in case of an invalid xpath
public Node getNode(Node startNode,
Map<String,String> namespaces,
String xPathStr)
throws XPathExpressionException
Node for the given xpath under a Node
startNode - the Node that is the root of the xpathnamespaces - Map of namespacesxPathStr - String with the xpath expression
Node that is the result of the xpath expression
XPathExpressionException - in case of an invalid xpath
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||