public class TStreamElementDefaultHandler extends TSAXElementDefaultHandler implements org.xml.sax.ext.LexicalHandler
SPECIFIER
Constructor and Description |
---|
TStreamElementDefaultHandler(TStreamWritingDeclHandler elementDeclHandler,
TStreamWritingLexicalHandler elementLexicalHandler)
Initializes the instance.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Receive notification of character content for a specific element.
|
void |
clear()
Clears the current given internal parsing state so that a new SAX parsing can be initiated.
|
void |
comment(char[] ch,
int start,
int length)
Report an XML comment anywhere in the document.
|
void |
endCDATA()
Report the end of a CDATA section.
|
void |
endDTD()
Report the end of DTD declarations.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the ending of an element.
|
void |
endEntity(java.lang.String name)
Report the end of an entity.
|
void |
endPrefixMapping(java.lang.String prefix)
Receive notification of the end of prefix mapping for an element.
|
java.util.Iterator<TStreamElement> |
getElementIterator()
Returns an iterator that can be used to navigate over the sequence of TSAXElement instances
that might have been build due to the event handling.
|
TSAXElement |
getFirstElement()
Returns the first element within the sequence of TSAXElement instances that might have
been build due to the event handling.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Receive notification for a processing instruction.
|
void |
startCDATA()
Report the start of a CDATA section.
|
void |
startDocument()
Receive notification for the start of a new document.
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Report the start of DTD declarations, if any.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receive notification of the beginning of an element.
|
void |
startEntity(java.lang.String name)
Report the beginning of an entity in content.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Receive notification of the start of prefix mapping for an element.
|
reset
public TStreamElementDefaultHandler(TStreamWritingDeclHandler elementDeclHandler, TStreamWritingLexicalHandler elementLexicalHandler)
public TSAXElement getFirstElement()
getFirstElement
in class TSAXElementDefaultHandler
public java.util.Iterator<TStreamElement> getElementIterator()
getElementIterator
in class TSAXElementDefaultHandler
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
endPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void clear()
Copyright (c) 2016 Software AG. All Rights Reserved.