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 XPathExpressionBuilderall()Defines if to search all element occurrencesXPathExpressionBuilderall(boolean all)Defines if to search all element occurrencesXPathExpressionBuilderattribute(DSSAttribute attribute)Defines the attribute to searchStringbuild()Builds the XPath expressionXPathExpressionBuilderelement(DSSElement element)Defines the element to searchXPathExpressionBuilderelements(DSSElement[] elements)Defines the element path to searchXPathExpressionBuilderfromCurrentPosition()Starts XPath from the current positionXPathExpressionBuilderfromCurrentPosition(boolean fromCurrentPosition)Defines if to start XPath from the current positionXPathExpressionBuildernotParentOf(DSSElement notParentOf)Defines that the looking element shall not be a parent ofnotParentOfelement
-
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-DSSElementto search- Returns:
- this
XPathExpressionBuilder
-
elements
Defines the element path to search- Parameters:
elements- aDSSElements chain to search- Returns:
- this
XPathExpressionBuilder
-
notParentOf
Defines that the looking element shall not be a parent ofnotParentOfelement- Parameters:
notParentOf-DSSElementchild 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:
StringXPath expression
-