Class AbstractXPathQueryItem
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryItem
- All Implemented Interfaces:
XPathQueryItem
- Direct Known Subclasses:
AbstractXPathQueryParameter, XPathQueryAnyItem, XPathQueryAttributeItem, XPathQueryElementItem
Contains common implementation of the XPath expression item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(XPathQueryParameter parameter) Adds a parameter to the given XPath query itemprotected StringgetLocalName(Node node) Gets the local name of a Node, without prefix, if anyGets parameters related to the given XPathQueryItem, if anybooleanisEmpty()Gets whether the XPath query item is emptybooleanThis method verifies whether the givennodematches the XPathQueryItemnextItem()Gets the next XPath chain item, if anyprotected abstract booleanThis method executes the XPath query item requirement, and returns whether thenodesatisfies the rulesetNextItem(XPathQueryItem nextItem) Sets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathChainItemas part of the XPath expressiontoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface XPathQueryItem
getQueryString, isAttributeRelated, isElementRelatedModifier and TypeMethodDescriptionGets 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 processing
-
Constructor Details
-
AbstractXPathQueryItem
protected AbstractXPathQueryItem()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
-
process
-
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
-
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
-
getLocalName
-
toString
-