Class TypeFilter
java.lang.Object
com.bea.xml.stream.filters.TypeFilter
- All Implemented Interfaces:
EventFilter, StreamFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether this event is part of this stream.booleanTests whether the current state is part of this stream.voidaddType(int type)
-
Field Details
-
types
protected boolean[] types
-
-
Constructor Details
-
TypeFilter
public TypeFilter()
-
-
Method Details
-
addType
public void addType(int type) -
accept
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 interfaceEventFilter- Parameters:
e- the event to test- Returns:
- true if this filter accepts this event, false otherwise
-
accept
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 interfaceStreamFilter- Parameters:
r- the event to test- Returns:
- true if this filter accepts this event, false otherwise
-