Class XPathExpressionBuilder
java.lang.Object
eu.europa.esig.dss.xml.common.definition.XPathExpressionBuilder
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with empty configuration -
Method Summary
Modifier and TypeMethodDescriptionall()
Defines if to search all element occurrencesall
(boolean all) Defines if to search all element occurrencesattribute
(DSSAttribute attribute) Defines the attribute to searchbuild()
Builds the XPath expressionelement
(DSSElement element) Defines the element to searchelements
(DSSElement[] elements) Defines the element path to searchStarts XPath from the current positionfromCurrentPosition
(boolean fromCurrentPosition) Defines if to start XPath from the current positionnotParentOf
(DSSElement notParentOf) Defines that the looking element shall not be a parent ofnotParentOf
element
-
Constructor Details
-
XPathExpressionBuilder
public XPathExpressionBuilder()Default constructor instantiating object with empty configuration
-
-
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
-