org.codehaus.staxmate.in
Class SMFilterFactory

java.lang.Object
  extended by org.codehaus.staxmate.in.SMFilterFactory
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants

public final class SMFilterFactory
extends java.lang.Object
implements javax.xml.stream.XMLStreamConstants

Simple factory that can be used to get instances of simple default filters.

Author:
Tatu Saloranta

Field Summary
 
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
SMFilterFactory()
           
 
Method Summary
static SMFilter getElementOnlyFilter()
           
static SMFilter getElementOnlyFilter(javax.xml.namespace.QName elemName)
           
static SMFilter getElementOnlyFilter(java.lang.String elemLocalName)
           
static SMFilter getMixedFilter()
           
static SMFilter getNonIgnorableTextFilter()
           
static SMFilter getTextOnlyFilter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMFilterFactory

public SMFilterFactory()
Method Detail

getTextOnlyFilter

public static final SMFilter getTextOnlyFilter()

getNonIgnorableTextFilter

public static final SMFilter getNonIgnorableTextFilter()

getElementOnlyFilter

public static final SMFilter getElementOnlyFilter()

getElementOnlyFilter

public static final SMFilter getElementOnlyFilter(javax.xml.namespace.QName elemName)

getElementOnlyFilter

public static final SMFilter getElementOnlyFilter(java.lang.String elemLocalName)

getMixedFilter

public static final SMFilter getMixedFilter()
Returns:
Filter that will pass element events as well as all text events (including ignorable white space).