Package com.bea.xml.stream.filters
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 TypeMethodDescriptionboolean
Tests whether this event is part of this stream.boolean
Tests whether the current state is part of this stream.void
addType
(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.EventFilter
Tests whether this event is part of this stream. This method will return true if this filter accepts this event and false otherwise.- Specified by:
accept
in 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.StreamFilter
Tests 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:
accept
in interfaceStreamFilter
- Parameters:
r
- the event to test- Returns:
- true if this filter accepts this event, false otherwise
-