net.sf.swan.xml.input.event
Class SAXDocumentContext
java.lang.Object
|
+--net.sf.swan.xml.input.event.EventContext
|
+--net.sf.swan.xml.input.event.DocumentContext
|
+--net.sf.swan.xml.input.event.SAXDocumentContext
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- Direct Known Subclasses:
- TraceSAXDocumentContext
- public class SAXDocumentContext
- extends DocumentContext
- implements org.xml.sax.ContentHandler
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
protected void |
cleanup()
|
void |
clear()
|
ElementContext |
currentElement()
|
ContextEvent |
currentEvent()
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
ErrorHandler |
getErrorHandler()
|
org.xml.sax.Locator |
getLocator()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
protected void |
processText()
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setErrorHandler(ErrorHandler handler)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
java.lang.String |
toString()
|
Methods inherited from class net.sf.swan.xml.input.event.DocumentContext |
addDocumentListener, fireEndDocument, fireStartDocument, getContextProperty, getDocumentContext, getDocumentListeners, getInitialContextMapCapacity, putContextProperty, release, removeDocumentListener, setInitialContextMapCapacity |
Methods inherited from class net.sf.swan.xml.input.event.EventContext |
addContextListener, connectEvent, fireEndElement, fireProcessingInstruction, fireStartElement, fireTextEvent, getClientState, getListeners, getProperty, putClientState, putProperty, removeContextListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XML_NAMESPACE
public static final java.lang.String XML_NAMESPACE
textBuffer
protected final java.lang.StringBuffer textBuffer
SAXDocumentContext
public SAXDocumentContext()
getLocator
public org.xml.sax.Locator getLocator()
- Overrides:
getLocator
in class DocumentContext
currentElement
public ElementContext currentElement()
- Overrides:
currentElement
in class DocumentContext
currentEvent
public ContextEvent currentEvent()
- Overrides:
currentEvent
in class DocumentContext
clear
public void clear()
getErrorHandler
public ErrorHandler getErrorHandler()
- Overrides:
getErrorHandler
in class DocumentContext
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
toString
public java.lang.String toString()
- Overrides:
toString
in class DocumentContext
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
startDocument
public void startDocument()
throws EventContextException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
endDocument
public void endDocument()
throws EventContextException
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws EventContextException
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
throws EventContextException
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws EventContextException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws EventContextException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
characters
public void characters(char[] ch,
int start,
int length)
throws EventContextException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws EventContextException
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws EventContextException
- Specified by:
processingInstruction
in interface org.xml.sax.ContentHandler
skippedEntity
public void skippedEntity(java.lang.String name)
throws EventContextException
- Specified by:
skippedEntity
in interface org.xml.sax.ContentHandler
cleanup
protected void cleanup()
processText
protected void processText()
throws EventContextException