public class NodeFilter
extends java.lang.Object
XMLTreeWalker
.Constructor and Description |
---|
NodeFilter(java.lang.String filterName,
java.lang.String nodeName) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeFilter(java.lang.String attrName,
java.lang.String attrValue)
Add a filter on an attribute.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAttributeFilters()
Return the attribute filters.
|
java.lang.String |
getFilterName()
Return the name of the filter.
|
java.lang.String |
getNodeName()
Return the name of the node.
|
int |
hashCode() |
boolean |
isCompatibleWithNode(XMLNode node)
Retur true if a node is comatible with the filter.
|
java.lang.String |
toString() |
public NodeFilter(java.lang.String filterName, java.lang.String nodeName)
public java.lang.String getFilterName()
public java.lang.String getNodeName()
public java.lang.String toString()
toString
in class java.lang.Object
public void addAttributeFilter(java.lang.String attrName, java.lang.String attrValue)
attrName
- the attribute nameattrValue
- the attribute valuepublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAttributeFilters()
public boolean isCompatibleWithNode(XMLNode node)
node
- the nodepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence