public class SimpleFilter extends SMFilter
Constructor and Description |
---|
SimpleFilter(int typeFlags) |
SimpleFilter(SMEvent eventToMatch) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(SMEvent evt,
SMInputCursor caller)
Methods iterators call to check whether specified event should
be return, or filtered out.
|
SimpleFilter |
extend(int additionalFlags,
int removeFlags) |
public SimpleFilter(int typeFlags)
public SimpleFilter(SMEvent eventToMatch)
public SimpleFilter extend(int additionalFlags, int removeFlags)
public boolean accept(SMEvent evt, SMInputCursor caller) throws javax.xml.stream.XMLStreamException
SMFilter
accept
in class SMFilter
evt
- Enumerated (type of the) event that would be passed/filteredcaller
- Iterator that is calling this filter. Note that at
this point it is possible that not all state information
of iterator have been updated; however, its stream reader
should be accessible, as well as tracked element information
PRIOR to current node (which may or may not be a start element)javax.xml.stream.XMLStreamException
Copyright © 2015 FasterXML. All rights reserved.