public class XMLSymbolExpressionFilter extends Object
Constructor and Description |
---|
XMLSymbolExpressionFilter() |
Modifier and Type | Method and Description |
---|---|
String |
getXpath()
Returns the XPath expression.
|
boolean |
isExcluded()
Returns true if the filter which matches a node must exclude the node as
symbol and false otherwise.
|
boolean |
isFilterFor(IXPathNodeMatcher.MatcherType matcherType)
Return true if the filter have is for the given type (element, attribute,
text) and false otherwise.
|
boolean |
match(Node node)
Returns true if the given node match the XPath expression and false
otherwise.
|
void |
setExcluded(boolean excluded)
Set true if the filter which matches a node must exclude the node as symbol
and false otherwise.
|
void |
setXpath(String xpath)
Set the XPath expression.
|
public String getXpath()
public void setXpath(String xpath)
xpath
- the XPath expression.public boolean isExcluded()
public void setExcluded(boolean excluded)
excluded
- true if the filter which matches a node must exclude the node
as symbol and false otherwise.public boolean match(Node node)
node
- the DOM node.public boolean isFilterFor(IXPathNodeMatcher.MatcherType matcherType)
matcherType
- the matcher type.Copyright © 2021. All rights reserved.