Class AbstractXPathQueryParameter
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryItem
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryParameter
- All Implemented Interfaces:
XPathQueryItem, XPathQueryParameter
- Direct Known Subclasses:
XPathQueryAttributeParameter, XPathQueryNotChildOfParameter
public abstract class AbstractXPathQueryParameter
extends AbstractXPathQueryItem
implements XPathQueryParameter
Abstract implementation of a XPathQueryParameter containing common methods and logic
-
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 anybooleanThis method verifies whether the givennodematches the XPathQueryItemMethods inherited from class AbstractXPathQueryItem
getLocalName, isEmpty, nextItem, process, setNextItem, toStringModifier and TypeMethodDescriptionprotected StringgetLocalName(Node node) Gets the local name of a Node, without prefix, if anybooleanisEmpty()Gets whether the XPath query item is emptynextItem()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
-
AbstractXPathQueryParameter
protected AbstractXPathQueryParameter()Default constructor
-
-
Method Details
-
addParameter
Description copied from interface:XPathQueryItemAdds a parameter to the given XPath query item- Specified by:
addParameterin interfaceXPathQueryItem- Overrides:
addParameterin classAbstractXPathQueryItem- Parameters:
parameter-XPathQueryParameter
-
getParameters
Description copied from interface:XPathQueryItemGets parameters related to the given XPathQueryItem, if any- Specified by:
getParametersin interfaceXPathQueryItem- Overrides:
getParametersin classAbstractXPathQueryItem- Returns:
- a list of
XPathQueryParameters
-
matchNode
Description copied from interface:XPathQueryItemThis method verifies whether the givennodematches the XPathQueryItem- Specified by:
matchNodein interfaceXPathQueryItem- Overrides:
matchNodein classAbstractXPathQueryItem- Parameters:
node-Nodeto be evaluated against the XPath Query Item- Returns:
- TRUE if the Node matches the value, FALSE otherwise
-