Package eu.europa.esig.dss.definition
Class XPathExpressionBuilder
java.lang.Object
eu.europa.esig.dss.definition.XPathExpressionBuilder
public class XPathExpressionBuilder extends Object
Builds an XPath expression
-
Constructor Summary
Constructors Constructor Description XPathExpressionBuilder()
-
Method Summary
Modifier and Type Method Description XPathExpressionBuilder
all()
Defines if to search all element occurrencesXPathExpressionBuilder
all(boolean all)
Defines if to search all element occurrencesXPathExpressionBuilder
attribute(DSSAttribute attribute)
Defines the attribute to searchString
build()
Builds the XPath expressionXPathExpressionBuilder
element(DSSElement element)
Defines the element to searchXPathExpressionBuilder
elements(DSSElement[] elements)
Defines the element path to searchXPathExpressionBuilder
fromCurrentPosition()
Starts XPath from the current positionXPathExpressionBuilder
fromCurrentPosition(boolean fromCurrentPosition)
Defines if to start XPath from the current positionXPathExpressionBuilder
notParentOf(DSSElement notParentOf)
Defines that the looking element shall not be a parent ofnotParentOf
element
-
Constructor Details
-
XPathExpressionBuilder
public XPathExpressionBuilder()
-
-
Method Details
-
fromCurrentPosition
Starts XPath from the current position- Returns:
- this
XPathExpressionBuilder
-
fromCurrentPosition
Defines if to start XPath from the current position- Parameters:
fromCurrentPosition
- if to start XPath from the current position- Returns:
- this
XPathExpressionBuilder
-
all
Defines if to search all element occurrences- Returns:
- this
XPathExpressionBuilder
-
all
Defines if to search all element occurrences- Parameters:
all
- if to search all element occurrences- Returns:
- this
XPathExpressionBuilder
-
element
Defines the element to search- Parameters:
element
-DSSElement
to search- Returns:
- this
XPathExpressionBuilder
-
elements
Defines the element path to search- Parameters:
elements
- aDSSElement
s chain to search- Returns:
- this
XPathExpressionBuilder
-
notParentOf
Defines that the looking element shall not be a parent ofnotParentOf
element- Parameters:
notParentOf
-DSSElement
child element that shall not be present- Returns:
- this
XPathExpressionBuilder
-
attribute
Defines the attribute to search- Parameters:
attribute
-DSSAttribute
- Returns:
- this
XPathExpressionBuilder
-
build
Builds the XPath expression- Returns:
String
XPath expression
-