01: package javax.xml.stream;
02:
03: import javax.xml.stream.events.XMLEvent;
04:
05: /**
06: * This interface declares a simple filter interface that one can
07: * create to filter XMLEventReaders
08: * @version 1.0
09: * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
10: */
11: public interface EventFilter {
12: /**
13: * Tests whether this event is part of this stream. This method
14: * will return true if this filter accepts this event and false
15: * otherwise.
16: *
17: * @param event the event to test
18: * @return true if this filter accepts this event, false otherwise
19: */
20: public boolean accept(XMLEvent event);
21: }
|