Class TypeFilter

java.lang.Object
com.bea.xml.stream.filters.TypeFilter
All Implemented Interfaces:
EventFilter, StreamFilter

public class TypeFilter extends Object implements EventFilter, StreamFilter
  • Field Details

    • types

      protected boolean[] types
  • Constructor Details

    • TypeFilter

      public TypeFilter()
  • Method Details

    • addType

      public void addType(int type)
    • accept

      public boolean accept(XMLEvent e)
      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 interface EventFilter
      Parameters:
      e - the event to test
      Returns:
      true if this filter accepts this event, false otherwise
    • accept

      public boolean accept(XMLStreamReader r)
      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 interface StreamFilter
      Parameters:
      r - the event to test
      Returns:
      true if this filter accepts this event, false otherwise