public class NodeFilter extends Object
XMLNodesIterator
.Constructor and Description |
---|
NodeFilter(String filterName,
String nodeName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributeFilter(String attrName,
String attrValue)
Add a filer on an attribute.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributeFilters()
Return the filters on attributes
|
String |
getFilterName()
Return the filter name.
|
String |
getNodeName()
Return the name of the node on which the filter is applied.
|
int |
hashCode() |
boolean |
isCompatibleWithNode(XMLNode node)
Return true if this filter is compatible with a specified node.
|
public String getFilterName()
public String getNodeName()
public void addAttributeFilter(String attrName, String attrValue)
attrName
- the attribute nameattrValue
- the attribute valuepublic Map<String,String> getAttributeFilters()
public boolean isCompatibleWithNode(XMLNode node)
node
- the node