|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.xml.sax.DefaultHandler
Default base class for real-time handling of XML events.
Constructor Summary | |
DefaultHandler()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receives notification of character data. |
void |
endDocument()
Receives notification of the end of a document. |
void |
endElement(java.lang.CharSequence namespaceURI,
java.lang.CharSequence localName,
java.lang.CharSequence qName)
Receives notification of the end of an element. |
void |
endPrefixMapping(java.lang.CharSequence prefix)
Ends the scope of a prefix-URI mapping. |
void |
error(org.xml.sax.SAXParseException e)
Receives notification of recoverable parser error. |
void |
fatalError(org.xml.sax.SAXParseException e)
Reports a fatal XML parsing error. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receives notification of ignorable whitespace in element content. |
void |
processingInstruction(java.lang.CharSequence target,
java.lang.CharSequence data)
Receives notification of a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Receives an object for locating the origin of SAX document events. |
void |
skippedEntity(java.lang.CharSequence name)
Receives notification of a skipped entity. |
void |
startDocument()
Receives notification of the beginning of a document. |
void |
startElement(java.lang.CharSequence namespaceURI,
java.lang.CharSequence localName,
java.lang.CharSequence qName,
Attributes atts)
Receives notification of the beginning of an element. |
protected void |
startElement(java.lang.CharSequence uri,
java.lang.CharSequence localName,
java.lang.CharSequence qName,
org.xml.sax.Attributes atts)
Generates compile-time error if startElement is not
correctly overriden. |
void |
startPrefixMapping(java.lang.CharSequence prefix,
java.lang.CharSequence uri)
Begins the scope of a prefix-URI Namespace mapping. |
void |
warning(org.xml.sax.SAXParseException e)
Receives notification of a warning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultHandler()
Method Detail |
public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
e
- the warning information encapsulated in a SAX parse exception.
org.xml.sax.SAXException
- any SAX exception.public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
e
- the error information encapsulated in a SAX parse exception.
org.xml.sax.SAXException
- any SAX exception.public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
e
- the error information encapsulated in a SAX parse exception.
org.xml.sax.SAXException
- any SAX exception.public void setDocumentLocator(org.xml.sax.Locator locator)
ContentHandler
setDocumentLocator
in interface ContentHandler
locator
- the document locator.public void startDocument() throws org.xml.sax.SAXException
ContentHandler
startDocument
in interface ContentHandler
org.xml.sax.SAXException
- any SAX exception.public void endDocument() throws org.xml.sax.SAXException
ContentHandler
endDocument
in interface ContentHandler
org.xml.sax.SAXException
- any SAX exception.public void startPrefixMapping(java.lang.CharSequence prefix, java.lang.CharSequence uri) throws org.xml.sax.SAXException
ContentHandler
startPrefixMapping
in interface ContentHandler
prefix
- the Namespace prefix being declared.uri
- the namespace URI the prefix is mapped to.
org.xml.sax.SAXException
- any SAX exception.public void endPrefixMapping(java.lang.CharSequence prefix) throws org.xml.sax.SAXException
ContentHandler
endPrefixMapping
in interface ContentHandler
prefix
- the prefix that was being mapping.
org.xml.sax.SAXException
- any SAX exception.public void startElement(java.lang.CharSequence namespaceURI, java.lang.CharSequence localName, java.lang.CharSequence qName, Attributes atts) throws org.xml.sax.SAXException
ContentHandler
startElement
in interface ContentHandler
namespaceURI
- the namespace URI, or an empty character sequence if the
element has no Namespace URI or if namespace processing is not
being performed.localName
- the local name (without prefix), or an empty character
sequence if namespace processing is not being performed.qName
- the qualified name (with prefix), or an empty character
sequence if qualified names are not available.atts
- the attributes attached to the element. If there are no
attributes, it shall be an empty Attributes
object.
org.xml.sax.SAXException
- any SAX exception.public void endElement(java.lang.CharSequence namespaceURI, java.lang.CharSequence localName, java.lang.CharSequence qName) throws org.xml.sax.SAXException
ContentHandler
endElement
in interface ContentHandler
namespaceURI
- the namespace URI, or an empty character sequence if the
element has no Namespace URI or if namespace processing is not
being performed.localName
- the local name (without prefix), or an empty character
sequence if namespace processing is not being performed.qName
- the qualified XML 1.0 name (with prefix), or an empty
character sequence if qualified names are not available.
org.xml.sax.SAXException
- any SAX exception.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ContentHandler
characters
in interface ContentHandler
ch
- the characters from the XML document.start
- the start position in the array.length
- the number of characters to read from the array.
org.xml.sax.SAXException
- any SAX exception.public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ContentHandler
ignorableWhitespace
in interface ContentHandler
ch
- the characters from the XML document.start
- the start position in the array.length
- the number of characters to read from the array.
org.xml.sax.SAXException
- any SAX exception.public void processingInstruction(java.lang.CharSequence target, java.lang.CharSequence data) throws org.xml.sax.SAXException
ContentHandler
processingInstruction
in interface ContentHandler
target
- the processing instruction target.data
- the processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target.
org.xml.sax.SAXException
- any SAX exception.public void skippedEntity(java.lang.CharSequence name) throws org.xml.sax.SAXException
ContentHandler
skippedEntity
in interface ContentHandler
name
- the name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the character sequence
"[dtd]".
org.xml.sax.SAXException
- any SAX exception.protected final void startElement(java.lang.CharSequence uri, java.lang.CharSequence localName, java.lang.CharSequence qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
is not
correctly overriden. This method generates a compile-error
"final method cannot be overridden"
if
org.xml.sax.Attributes
is used instead of
com.dautelle.xml.sax.Attributes
(common mistake).
uri
- the namespace URI, or an empty character sequence if the
element has no Namespace URI or if namespace processing is not
being performed.localName
- the local name (without prefix), or an empty character
sequence if namespace processing is not being performed.qName
- the qualified name (with prefix), or an empty character
sequence if qualified names are not available.atts
- the attributes attached to the element. If there are no
attributes, it shall be an empty Attributes
object.
org.xml.sax.SAXException
- any SAX exception.
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |