Class NameFilter

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

public class NameFilter extends Object implements EventFilter, StreamFilter
  • Constructor Details

    • NameFilter

      public NameFilter(QName name)
  • Method Details

    • 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