| java.lang.Object dom.traversal.NameNodeFilter
NameNodeFilter | public class NameNodeFilter implements NodeFilter(Code) | | An example filter which enables the client to set a name value
accept those node names which match (or explicitly not match)
the set name value.
|
Method Summary | |
public short | acceptNode(Node n) acceptNode determines if this filter accepts a node name or not. | public boolean | getMatch() Return match value. | public String | getName() Return the name to compare with node name. | public void | setMatch(boolean match) Controls whether the node name is accepted when it does match
the setName value, or when it does not match the setName value. | public void | setName(String name) The name to compare with the node name. |
acceptNode | public short acceptNode(Node n)(Code) | | acceptNode determines if this filter accepts a node name or not.
|
getMatch | public boolean getMatch()(Code) | | Return match value.
|
getName | public String getName()(Code) | | Return the name to compare with node name. If null, all node names
are successfully matched.
|
setMatch | public void setMatch(boolean match)(Code) | | Controls whether the node name is accepted when it does match
the setName value, or when it does not match the setName value.
If the setName value is null this match value does not matter, and
all names will match.
If match is true, the node name is accepted when it matches.
If match is false, the node name is accepted when does not match.
|
setName | public void setName(String name)(Code) | | The name to compare with the node name. If null, all node names
are successfully matched.
|
|
|