Class FromCurrentPositionXPathQuery
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.AbstractXPathQuery
eu.europa.esig.dss.xml.common.xpath.FromCurrentPositionXPathQuery
- All Implemented Interfaces:
XPathQuery
Gets elements matching the XPath expression starting from the current element.
The XPath expression path must much completely to success.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the beginning string of the XPath expressionbooleanisAll()Gets whether all descendants matching the XPath expression are to be returned.booleanGets whether the XPath expression execution starts from a node at the current position. if FALSE, the execution starts from the root element of the XML document.Methods inherited from class AbstractXPathQuery
getFirstXPathQueryItem, getQueryString, isEmpty, setNextItem, toStringModifier and TypeMethodDescriptionGets the first part of the XPath expression (usually the first element of the XPath string)Gets a string representation of the XPath expressionbooleanisEmpty()Returns whether the XPath expression contains any XPath item definitionssetNextItem(XPathQueryItem nextItem) Sets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathItemas part of the XPath expressiontoString()
-
Constructor Details
-
FromCurrentPositionXPathQuery
public FromCurrentPositionXPathQuery()Default constructor
-
-
Method Details
-
getXPathPreamble
Description copied from class:AbstractXPathQueryGets the beginning string of the XPath expression- Specified by:
getXPathPreamblein classAbstractXPathQuery- Returns:
String
-
isAll
public boolean isAll()Description copied from interface:XPathQueryGets whether all descendants matching the XPath expression are to be returned. If FALSE, only the children of the current element matching the XPath expression are extracted.- Returns:
- whether all descendants matching the XPath expression are to be returned
-
isFromCurrentPosition
public boolean isFromCurrentPosition()Description copied from interface:XPathQueryGets whether the XPath expression execution starts from a node at the current position. if FALSE, the execution starts from the root element of the XML document.- Returns:
- whether the XPath expression execution starts from a node at the current position
-