public class XMLSymbolFilter extends PathPatternMatcher
"xml.symbols.filters": [ // Declaration of symbols filter for maven 'pom.xml' to show all text nodes in the Outline. { "pattern": "pom.xml", "expressions" :[ { "xpath": "//text()" } ] }, // Declaration of symbols filter for Spring beans to show all @id of the elements in the Outline. { "pattern": "bean*.xml", "expressions" :[ { "xpath": "//@id" } ] } ]
Modifier and Type | Field and Description |
---|---|
static XMLSymbolFilter |
DEFAULT |
Constructor and Description |
---|
XMLSymbolFilter() |
Modifier and Type | Method and Description |
---|---|
XMLSymbolExpressionFilter[] |
getExpressions()
Returns the expression list filter.
|
boolean |
hasFilterFor(IXPathNodeMatcher.MatcherType matcherType)
Returns true if the filter have an expression for the given type (element,
attribute, text) and false otherwise.
|
boolean |
isNodeSymbol(DOMNode node)
Returns true if the given node is a symbol and false otherwise.
|
void |
setExpressions(XMLSymbolExpressionFilter[] expressions)
Set the expression list filter.
|
equals, getPathMatcher, getPattern, matches, matches, setPathMatcher, setPattern
public static final XMLSymbolFilter DEFAULT
public void setExpressions(XMLSymbolExpressionFilter[] expressions)
expressions
- the expression list filter.public XMLSymbolExpressionFilter[] getExpressions()
public boolean isNodeSymbol(DOMNode node)
node
- the DOM node.public boolean hasFilterFor(IXPathNodeMatcher.MatcherType matcherType)
matcherType
- the matcher type.Copyright © 2020. All rights reserved.