Helper class with util XPath methods.
More...
Helper class with util XPath methods.
Helper class with util XPath methods
- Author
- Lukáš Martinák, Michael Angelov
Definition at line 30 of file XPathHelper.java.
static NodeList cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.evaluateXPath |
( |
Document |
document, |
|
|
XPathExpression |
expr |
|
) |
| throws XPathExpressionException |
|
static |
Method for evaluating XPath expression
- Parameters
-
document | XML document in which XPath will be evaluated |
expr | XPath expression which will be evaluated |
- Returns
- list of nodes matched by XPath expression
Definition at line 56 of file XPathHelper.java.
static Node cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.getNode |
( |
Document |
document, |
|
|
String |
path |
|
) |
| throws XPathExpressionException |
|
static |
Gets the node determined in xpath from the document
- Parameters
-
document | Document |
path | XPath of the node |
- Returns
- node
- Exceptions
-
Definition at line 197 of file XPathHelper.java.
static int cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.XPathIndexOfNode |
( |
Node |
node | ) |
|
|
static |
Method for getting XPath index "[..]" of node amongst siblings
- Parameters
-
- Returns
- index of node amongst siblings, beginning with 1
Definition at line 71 of file XPathHelper.java.
static String cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.XPathStringOfNode |
( |
Node |
node | ) |
|
|
static |
Method for getting XPath string representation of node in document
- Parameters
-
node | node whose XPath is being searched for |
- Returns
- string representation of XPath
Definition at line 144 of file XPathHelper.java.
static XPathExpression cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.XPathStringToExpression |
( |
String |
XPathString | ) |
throws XPathExpressionException |
|
static |
Method for converting XPath string into XPath expression
- Parameters
-
XPathString | string representation of XPath |
- Returns
- XPath expression
Definition at line 40 of file XPathHelper.java.
final String cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.DOCUMENT_XPATH = "/" |
|
static |
The documentation for this class was generated from the following file: