Package org.codehaus.staxmate.in
Class SMFilterFactory
java.lang.Object
org.codehaus.staxmate.in.SMFilterFactory
- All Implemented Interfaces:
XMLStreamConstants
Simple factory that can be used to get instances of simple default
filters.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final SimpleFilter
Filter that only passes through element events.(package private) static final SimpleFilter
(package private) static final SimpleFilter
(package private) static final SimpleFilter
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final SMFilter
static final SMFilter
getElementOnlyFilter
(String elemLocalName) static final SMFilter
getElementOnlyFilter
(QName elemName) static final SMFilter
static final SMFilter
static final SMFilter
-
Field Details
-
sNonIgnorableTextFilter
-
sTextOnlyFilter
-
sElementOnlyFilter
Filter that only passes through element events. Since end events are in general only passed by flattening iterators, this won't mean that nested iterators get end element events. -
sMixedFilter
-
-
Constructor Details
-
SMFilterFactory
public SMFilterFactory()
-
-
Method Details
-
getTextOnlyFilter
-
getNonIgnorableTextFilter
-
getElementOnlyFilter
-
getElementOnlyFilter
-
getElementOnlyFilter
-
getMixedFilter
- Returns:
- Filter that will pass element events as well as all text events (including ignorable white space).
-