Class XPathQueryEndItem
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.XPathQueryEndItem
- All Implemented Interfaces:
XPathQueryItem
This XPath Query item is used to indicate the end of an XPath expression.
The use of the item is optional, and it does not impact the XPath Query processing,
but does not allow extension of the XPath Query with other rules or items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(XPathQueryParameter parameter) Adds a parameter to the given XPath query itemGets parameters related to the given XPathQueryItem, if anyGets a string representation of the XPath expression chain itembooleanGets whether XPath query item is related to an Attribute node processingbooleanGets whether XPath query item is related to an Element node processingbooleanisEmpty()Gets whether the XPath query item is emptybooleanThis method verifies whether the givennodematches the XPathQueryItemnextItem()Gets the next XPath chain item, if anysetNextItem(XPathQueryItem nextItem) Sets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathChainItemas part of the XPath expression
-
Constructor Details
-
XPathQueryEndItem
public XPathQueryEndItem()Default constructor
-
-
Method Details
-
nextItem
Description copied from interface:XPathQueryItemGets the next XPath chain item, if any- Specified by:
nextItemin interfaceXPathQueryItem- Returns:
XPathQueryItemif next chain item is present, FALSE otherwise
-
setNextItem
Description copied from interface:XPathQueryItemSets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathChainItemas part of the XPath expression- Specified by:
setNextItemin interfaceXPathQueryItem- Parameters:
nextItem-XPathQueryItemto set- Returns:
XPathQueryItemthat has been set
-
matchNode
Description copied from interface:XPathQueryItemThis method verifies whether the givennodematches the XPathQueryItem- Specified by:
matchNodein interfaceXPathQueryItem- Parameters:
node-Nodeto be evaluated against the XPath Query Item- Returns:
- TRUE if the Node matches the value, FALSE otherwise
-
addParameter
Description copied from interface:XPathQueryItemAdds a parameter to the given XPath query item- Specified by:
addParameterin interfaceXPathQueryItem- Parameters:
parameter-XPathQueryParameter
-
getParameters
Description copied from interface:XPathQueryItemGets parameters related to the given XPathQueryItem, if any- Specified by:
getParametersin interfaceXPathQueryItem- Returns:
- a list of
XPathQueryParameters
-
isElementRelated
public boolean isElementRelated()Description copied from interface:XPathQueryItemGets whether XPath query item is related to an Element node processing- Specified by:
isElementRelatedin interfaceXPathQueryItem- Returns:
- TRUE if XPath query item is related to an Element node processing, FALSE otherwise
-
isAttributeRelated
public boolean isAttributeRelated()Description copied from interface:XPathQueryItemGets whether XPath query item is related to an Attribute node processing- Specified by:
isAttributeRelatedin interfaceXPathQueryItem- Returns:
- TRUE if XPath query item is related to an Attribute node processing, FALSE otherwise
-
isEmpty
public boolean isEmpty()Description copied from interface:XPathQueryItemGets whether the XPath query item is empty- Specified by:
isEmptyin interfaceXPathQueryItem- Returns:
- TRUE if the XPath query item is empty, FALSE otherwise
-
getQueryString
Description copied from interface:XPathQueryItemGets a string representation of the XPath expression chain item- Specified by:
getQueryStringin interfaceXPathQueryItem- Returns:
String
-