public abstract class SMFilter extends Object
Note: instances can do other things too (keep track of things they iterate over) if they are stateful; for example, collect text, or validate structure, although main purpose is filtering.
| Constructor and Description |
|---|
SMFilter() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(SMEvent evt,
SMInputCursor caller)
Methods iterators call to check whether specified event should
be return, or filtered out.
|
public abstract boolean accept(SMEvent evt, SMInputCursor caller) throws XMLStreamException
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)XMLStreamExceptionCopyright © 2025 FasterXML. All rights reserved.