Package com.bea.xml.stream.filters
Class NameFilter
- java.lang.Object
-
- com.bea.xml.stream.filters.NameFilter
-
- All Implemented Interfaces:
javax.xml.stream.EventFilter,javax.xml.stream.StreamFilter
public class NameFilter extends java.lang.Object implements javax.xml.stream.EventFilter, javax.xml.stream.StreamFilter
-
-
Constructor Summary
Constructors Constructor Description NameFilter(javax.xml.namespace.QName name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(javax.xml.stream.events.XMLEvent e)Tests whether this event is part of this stream.booleanaccept(javax.xml.stream.XMLStreamReader r)Tests whether the current state is part of this stream.
-
-
-
Method Detail
-
accept
public boolean accept(javax.xml.stream.events.XMLEvent e)
Description copied from interface:javax.xml.stream.EventFilterTests whether this event is part of this stream. This method will return true if this filter accepts this event and false otherwise.- Specified by:
acceptin interfacejavax.xml.stream.EventFilter- Parameters:
e- the event to test- Returns:
- true if this filter accepts this event, false otherwise
-
accept
public boolean accept(javax.xml.stream.XMLStreamReader r)
Description copied from interface:javax.xml.stream.StreamFilterTests whether the current state is part of this stream. This method will return true if this filter accepts this event and false otherwise. The method should not change the state of the reader when accepting a state.- Specified by:
acceptin interfacejavax.xml.stream.StreamFilter- Parameters:
r- the event to test- Returns:
- true if this filter accepts this event, false otherwise
-
-