Class XPathQueryAttributeItem
java.lang.Object
eu.europa.esig.dss.xml.common.xpath.item.AbstractXPathQueryItem
eu.europa.esig.dss.xml.common.xpath.item.XPathQueryAttributeItem
- All Implemented Interfaces:
XPathQueryItem
Gets XPath expression item allowing to access an attribute value of the current element.
This class is normally used for attribute value extraction, as an alternative to
XPathQueryByAttribute-
Constructor Summary
ConstructorsConstructorDescriptionXPathQueryAttributeItem(DSSAttribute attribute) Default constructor to extract an element containing the given attribute (any value is accepted) -
Method Summary
Modifier and TypeMethodDescriptionGets the corresponding DSSAttributeGets 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
-
XPathQueryAttributeItem
Default constructor to extract an element containing the given attribute (any value is accepted)- Parameters:
attribute-DSSAttribute
-
-
Method Details
-
getAttribute
-
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
-