marytts.util.dom
Class NameNodeFilter

java.lang.Object
  extended by marytts.util.dom.NameNodeFilter
All Implemented Interfaces:
org.w3c.dom.traversal.NodeFilter

public class NameNodeFilter
extends java.lang.Object
implements org.w3c.dom.traversal.NodeFilter

A NodeFilter accepting only nodes with a given name.

Author:
Marc Schröder

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
 
Constructor Summary
NameNodeFilter(java.lang.String... names)
           
 
Method Summary
 short acceptNode(org.w3c.dom.Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameNodeFilter

public NameNodeFilter(java.lang.String... names)
Method Detail

acceptNode

public short acceptNode(org.w3c.dom.Node n)
Specified by:
acceptNode in interface org.w3c.dom.traversal.NodeFilter