net.sf.swan.xml.input.event
Class TraceSAXDocumentContext
java.lang.Object
|
+--net.sf.swan.xml.input.event.EventContext
|
+--net.sf.swan.xml.input.event.DocumentContext
|
+--net.sf.swan.xml.input.event.SAXDocumentContext
|
+--net.sf.swan.xml.input.event.TraceSAXDocumentContext
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- public class TraceSAXDocumentContext
- extends SAXDocumentContext
Subclass of SAXDocumentContext
that supports tracing.
- See Also:
TraceHandler
Methods inherited from class net.sf.swan.xml.input.event.SAXDocumentContext |
characters, cleanup, clear, currentElement, currentEvent, endDocument, endPrefixMapping, getLocator, ignorableWhitespace, setDocumentLocator, setErrorHandler, skippedEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TraceSAXDocumentContext
public TraceSAXDocumentContext()
getErrorHandler
public ErrorHandler getErrorHandler()
- Overrides:
getErrorHandler
in class SAXDocumentContext
putClientState
public void putClientState(java.lang.Object value)
- Description copied from class:
EventContext
- Associate arbitrary state with this ElementContext
- Overrides:
putClientState
in class EventContext
putProperty
public java.lang.Object putProperty(java.lang.Object key,
java.lang.Object data)
- Description copied from class:
EventContext
- Put an annotation on this context identified by the supplied key.
- Overrides:
putProperty
in class EventContext
- Following copied from class:
net.sf.swan.xml.input.event.EventContext
- Returns:
- any previous annotation on this context with the same key
putContextProperty
public void putContextProperty(java.lang.Object key,
java.lang.Object data)
- Description copied from class:
EventContext
- Add a context property. Context properties (unlike annotations) are
inherited by descendant contexts.
- Overrides:
putContextProperty
in class DocumentContext
startDocument
public void startDocument()
throws EventContextException
- Overrides:
startDocument
in class SAXDocumentContext
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws EventContextException
- Overrides:
startElement
in class SAXDocumentContext
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws EventContextException
- Overrides:
endElement
in class SAXDocumentContext
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws EventContextException
- Overrides:
processingInstruction
in class SAXDocumentContext
connectEvent
public EventContext connectEvent(ContextEvent event)
- Description copied from class:
EventContext
- Utility to connect an event to this as it's new source context.
- Overrides:
connectEvent
in class EventContext
- Following copied from class:
net.sf.swan.xml.input.event.EventContext
- Returns:
- the previous source context
toString
public java.lang.String toString()
- Overrides:
toString
in class SAXDocumentContext
processText
protected void processText()
throws EventContextException
- Overrides:
processText
in class SAXDocumentContext
fireStartDocument
protected void fireStartDocument()
throws EventContextException
- Overrides:
fireStartDocument
in class DocumentContext
fireEndDocument
protected void fireEndDocument()
throws EventContextException
- Overrides:
fireEndDocument
in class DocumentContext
fireStartElement
protected void fireStartElement(StartElementEvent event)
throws EventContextException
- Overrides:
fireStartElement
in class EventContext
fireEndElement
protected void fireEndElement(EndElementEvent event)
throws EventContextException
- Overrides:
fireEndElement
in class EventContext
fireTextEvent
protected void fireTextEvent(TextEvent event)
throws EventContextException
- Overrides:
fireTextEvent
in class EventContext
fireProcessingInstruction
protected void fireProcessingInstruction(ProcessingInstructionEvent event)
throws EventContextException
- Overrides:
fireProcessingInstruction
in class EventContext