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 |
isInlineAttribute()
Returns true if the filter which matches an element attribute node must consider it
an inline attribute and show it on the same line as the owning element and false otherwise.
|
boolean |
isShowAttributeName()
Returns true if the filter which matches an element attribute node should show
the attribute name or not, the attribute value will always be shown, 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 |
setInlineAttribute(boolean inlineAttribute)
Set whether or not a matched filter for an element attribute must be considered
an inline attribute and shown on the same line as the owning element.
|
void |
setShowAttributeName(boolean showAttributeName)
Set whether or not a matched filter for an element attribute should show
the attribute name or not, the attribute value will always be shown.
|
void |
setXpath(String xpath)
Set the XPath expression.
|
public String getXpath()
public void setXpath(String xpath)
xpath
- the XPath expression.public boolean isInlineAttribute()
public void setInlineAttribute(boolean inlineAttribute)
inlineAttribute
- whether or not a matched filter for an element attribute must be
considered an inline attribute and shown on the same line as the
owning element.public boolean isShowAttributeName()
public void setShowAttributeName(boolean showAttributeName)
showAttributeName
- whether or not a matched filter for an element attribute
should show the attribute name or not, the attribute value
will always be shown.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 © 2022. All rights reserved.