Package com.bea.xml.stream.filters
Class TypeFilter
- java.lang.Object
-
- com.bea.xml.stream.filters.TypeFilter
-
- All Implemented Interfaces:
javax.xml.stream.EventFilter,javax.xml.stream.StreamFilter
public class TypeFilter extends java.lang.Object implements javax.xml.stream.EventFilter, javax.xml.stream.StreamFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean[]types
-
Constructor Summary
Constructors Constructor Description TypeFilter()
-
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.voidaddType(int type)
-
-
-
Method Detail
-
addType
public void addType(int type)
-
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
-
-