net.sf.swan.xml.input.components
Class StartElementFilters
java.lang.Object
|
+--net.sf.swan.xml.input.components.StartElementFilters
- All Implemented Interfaces:
- DocumentListener
- public class StartElementFilters
- extends java.lang.Object
- implements DocumentListener
Utility for grouping a set of ContextListeners into a set of filters
that inspect StartElementEvents
before other ContextListeners see them. A Filters
object
should be added as the first ContextListener
to the DocumentContext
. It will then attach
an adapter to each ElementContext
to ensure it is first to see events. Each filter will receive only the
StartElementEvents
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartElementFilters
public StartElementFilters()
StartElementFilters
public StartElementFilters(ContextListener filter)
add
public void add(ContextListener filter)
startDocument
public void startDocument(DocumentContext context)
throws EventContextException
- Specified by:
startDocument
in interface DocumentListener
endDocument
public void endDocument(DocumentContext context)
throws EventContextException
- Specified by:
endDocument
in interface DocumentListener