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:
- getErrorHandlerin class- SAXDocumentContext
 
putClientState
public void putClientState(java.lang.Object value)
- Description copied from class: EventContext
- Associate arbitrary state with this ElementContext- 
- Overrides:
- putClientStatein 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:
- putPropertyin 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:
- putContextPropertyin class- DocumentContext
 
startDocument
public void startDocument()
                   throws EventContextException
- 
- Overrides:
- startDocumentin 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:
- startElementin class- SAXDocumentContext
 
endElement
public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws EventContextException
- 
- Overrides:
- endElementin class- SAXDocumentContext
 
processingInstruction
public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws EventContextException
- 
- Overrides:
- processingInstructionin 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:
- connectEventin 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:
- toStringin class- SAXDocumentContext
 
processText
protected void processText()
                    throws EventContextException
- 
- Overrides:
- processTextin class- SAXDocumentContext
 
fireStartDocument
protected void fireStartDocument()
                          throws EventContextException
- 
- Overrides:
- fireStartDocumentin class- DocumentContext
 
fireEndDocument
protected void fireEndDocument()
                        throws EventContextException
- 
- Overrides:
- fireEndDocumentin class- DocumentContext
 
fireStartElement
protected void fireStartElement(StartElementEvent event)
                         throws EventContextException
- 
- Overrides:
- fireStartElementin class- EventContext
 
fireEndElement
protected void fireEndElement(EndElementEvent event)
                       throws EventContextException
- 
- Overrides:
- fireEndElementin class- EventContext
 
fireTextEvent
protected void fireTextEvent(TextEvent event)
                      throws EventContextException
- 
- Overrides:
- fireTextEventin class- EventContext
 
fireProcessingInstruction
protected void fireProcessingInstruction(ProcessingInstructionEvent event)
                                  throws EventContextException
- 
- Overrides:
- fireProcessingInstructionin class- EventContext