public class ElementFilter extends SimpleFilter
Constructor and Description |
---|
ElementFilter(QName elemName) |
ElementFilter(String localName) |
ElementFilter(String nsURI,
String localName) |
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.
|
extend
public ElementFilter(String localName)
public ElementFilter(QName elemName)
public boolean accept(SMEvent evt, SMInputCursor caller) throws XMLStreamException
SMFilter
accept
in class SimpleFilter
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)XMLStreamException
Copyright © 2018 FasterXML. All rights reserved.