4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper Class Reference

Helper class with util XPath methods. More...

Collaboration diagram for cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper:
Collaboration graph

Static Public Member Functions

static XPathExpression XPathStringToExpression (String XPathString) throws XPathExpressionException
 
static NodeList evaluateXPath (Document document, XPathExpression expr) throws XPathExpressionException
 
static int XPathIndexOfNode (Node node)
 
static String XPathStringOfNode (Node node)
 
static Node getNode (Document document, String path) throws XPathExpressionException
 

Static Public Attributes

static final String DOCUMENT_XPATH = "/"
 

Detailed Description

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.

Member Function Documentation

static NodeList cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.evaluateXPath ( Document  document,
XPathExpression  expr 
) throws XPathExpressionException
static

Method for evaluating XPath expression

Parameters
documentXML document in which XPath will be evaluated
exprXPath 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
documentDocument
pathXPath of the node
Returns
node
Exceptions
XPathExpressionException

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
nodenode to be examined
Returns
index of node amongst siblings, beginning with 1

Definition at line 71 of file XPathHelper.java.

Here is the caller graph for this function:

static String cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.XPathStringOfNode ( Node  node)
static

Method for getting XPath string representation of node in document

Parameters
nodenode whose XPath is being searched for
Returns
string representation of XPath

Definition at line 144 of file XPathHelper.java.

Here is the call graph for this function:

Here is the caller graph for this function:

static XPathExpression cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.XPathStringToExpression ( String  XPathString) throws XPathExpressionException
static

Method for converting XPath string into XPath expression

Parameters
XPathStringstring representation of XPath
Returns
XPath expression

Definition at line 40 of file XPathHelper.java.

Member Data Documentation

final String cz.vutbr.fit.knot.annotations.fragmentUpdater.XPathHelper.DOCUMENT_XPATH = "/"
static

Definition at line 32 of file XPathHelper.java.


The documentation for this class was generated from the following file: