Class AbstractXPathQuery
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.AbstractXPathQuery
- All Implemented Interfaces:
XPathQuery
- Direct Known Subclasses:
AllFromCurrentPositionXPathQuery, AllXPathQuery, FromCurrentPositionXPathQuery
Abstract representation of the XPathChain expression. Contains common code and implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the first part of the XPath expression (usually the first element of the XPath string)Gets a string representation of the XPath expressionprotected abstract StringGets the beginning string 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()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface XPathQuery
isAll, isFromCurrentPositionModifier and TypeMethodDescriptionbooleanisAll()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.
-
Constructor Details
-
AbstractXPathQuery
protected AbstractXPathQuery()Default constructor
-
-
Method Details
-
getFirstXPathQueryItem
Description copied from interface:XPathQueryGets the first part of the XPath expression (usually the first element of the XPath string)- Specified by:
getFirstXPathQueryItemin interfaceXPathQuery- Returns:
XPathQueryItem
-
setNextItem
Description copied from interface:XPathQuerySets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathItemas part of the XPath expression- Specified by:
setNextItemin interfaceXPathQuery- Parameters:
nextItem-XPathQueryItemto set- Returns:
- this
XPathQuery
-
isEmpty
public boolean isEmpty()Description copied from interface:XPathQueryReturns whether the XPath expression contains any XPath item definitions- Specified by:
isEmptyin interfaceXPathQuery- Returns:
- TRUE if the XPath expression is empty, FALSE otherwise
-
getQueryString
Description copied from interface:XPathQueryGets a string representation of the XPath expression- Specified by:
getQueryStringin interfaceXPathQuery- Returns:
String
-
getXPathPreamble
-
toString
-