|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openxml.dom.traversal.AttrValueNodeFilter
public final class AttrValueNodeFilter
Implements an attribute value filter. When this filter is used with a node iterator, the iterator will only return elements which have this attribute and can match the attribute's value.
A node filter can be shared by multiple iterators. When a filters
is reused, it is better to retrieve a copy of the filter from
a static list. This mechanism is supported by calling the static
method lookup(java.lang.String, java.lang.String) and should be used for named filters that
are routinely reused.
NodeFilter,
NodeIterator| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
short |
acceptNode(Node node)
|
static org.w3c.dom.traversal.NodeFilter |
lookup(String attrName,
String attrValue)
Returns a node filter for the specified attribute name and value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public short acceptNode(Node node)
acceptNode in interface org.w3c.dom.traversal.NodeFilter
public static org.w3c.dom.traversal.NodeFilter lookup(String attrName,
String attrValue)
attrName - The filtered attribute's nameattrValue - The filtered attribute's value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||