Class XPathQueryElementItem
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryItem
eu.europa.esig.dss.xml.common.xpath.item.XPathQueryElementItem
- All Implemented Interfaces:
XPathQueryItem
Represents a single element to look for within an XPath expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the DSSElementGets 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 processingprotected booleanThis method executes the XPath query item requirement, and returns whether thenodesatisfies the ruleMethods inherited from class AbstractXPathQueryItem
addParameter, getLocalName, getParameters, isEmpty, matchNode, nextItem, setNextItem, toStringModifier 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 anysetNextItem(XPathQueryItem nextItem) Sets the nexteu.europa.esig.dss.xml.common.definition.xpath.item.XPathChainItemas part of the XPath expressiontoString()
-
Constructor Details
-
XPathQueryElementItem
Default constructor- Parameters:
element-DSSElement
-
-
Method Details
-
getElement
-
process
Description copied from class:AbstractXPathQueryItemThis method executes the XPath query item requirement, and returns whether thenodesatisfies the rule- Specified by:
processin classAbstractXPathQueryItem- Parameters:
node-Nodeto verify- Returns:
- TRUE if the condition matches, FALSE otherwise
-
isElementRelated
public boolean isElementRelated()Description copied from interface:XPathQueryItemGets whether XPath query item is related to an Element node processing- 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- Returns:
- TRUE if XPath query item is related to an Attribute node processing, FALSE otherwise
-
getQueryString
Description copied from interface:XPathQueryItemGets a string representation of the XPath expression chain item- Returns:
String
-