Package org.codehaus.staxmate.in
Class ElementFilter
java.lang.Object
org.codehaus.staxmate.in.SMFilter
org.codehaus.staxmate.in.SimpleFilter
org.codehaus.staxmate.in.ElementFilter
This is a simple element-only filter, that accepts those element
nodes that match the given element name.
-
Field Summary
FieldsFields inherited from class org.codehaus.staxmate.in.SimpleFilter
mAllowedTypes
-
Constructor Summary
ConstructorsConstructorDescriptionElementFilter
(String localName) ElementFilter
(String nsURI, String localName) ElementFilter
(QName elemName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(SMEvent evt, SMInputCursor caller) Methods iterators call to check whether specified event should be return, or filtered out.Methods inherited from class org.codehaus.staxmate.in.SimpleFilter
extend
-
Field Details
-
mNsURI
-
mLocalName
-
-
Constructor Details
-
ElementFilter
-
ElementFilter
-
ElementFilter
-
-
Method Details
-
accept
Description copied from class:SMFilter
Methods iterators call to check whether specified event should be return, or filtered out.- Overrides:
accept
in classSimpleFilter
- Parameters:
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)- Returns:
- If true, event is to be returned; if false, it should be filtered out.
- Throws:
XMLStreamException
-