|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xrel.xml.NameNodeFilter
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.
Fields inherited from interface org.w3c.dom.traversal.NodeFilter |
FILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP, SHOW_ALL, SHOW_ATTRIBUTE, SHOW_CDATA_SECTION, SHOW_COMMENT, SHOW_DOCUMENT, SHOW_DOCUMENT_FRAGMENT, SHOW_DOCUMENT_TYPE, SHOW_ELEMENT, SHOW_ENTITY, SHOW_ENTITY_REFERENCE, SHOW_NOTATION, SHOW_PROCESSING_INSTRUCTION, SHOW_TEXT |
Constructor Summary | |
NameNodeFilter()
|
Method Summary | |
short |
acceptNode(org.w3c.dom.Node n)
acceptNode determines if this filter accepts a node name or not. |
boolean |
getMatch()
Return match value. |
java.lang.String |
getName()
Return the name to compare with node name. |
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. |
void |
setName(java.lang.String name)
The name to compare with the node name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NameNodeFilter()
Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
public void setMatch(boolean match)
public boolean getMatch()
public short acceptNode(org.w3c.dom.Node n)
acceptNode
in interface org.w3c.dom.traversal.NodeFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |