|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.xml.sax.HandlerBase
oracle.xml.parser.v2.DefaultXMLDocumentHandler
This class implements the default behaviour for the XMLDocumentHandler
interface.
Application writers can extend this class when they need to implement only part of the interface
Constructor Summary | |
DefaultXMLDocumentHandler() Constructs a default document handler |
Method Summary | |
void |
cDATASection(char[] ch, int start, int length) Receive notification of a CDATA Section. |
void |
comment(java.lang.String data) Receive notification of a comment. |
void |
endDoctype() Receive notification of end of the DTD. |
void |
endElement(NSName elem) Receive notification of the end of an element. |
void |
endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) Receive notification of the end of an element. |
void |
endPrefixMapping(java.lang.String prefix) End the scope of a prefix-URI mapping. |
XMLDocumentHandler |
getHandler() Get the next pipe-line node handler. |
void |
setDoctype(DTD dtd) Receive notification of DTD. |
void |
setError(XMLError he) Receive notification of a XMLError handler. |
void |
setHandler(XMLDocumentHandler h) Receive notification of a next pipe-line node handler. |
void |
setTextDecl(java.lang.String version, java.lang.String encoding) Receive notification of a Text XML Declaration. |
void |
setXMLDecl(java.lang.String version, java.lang.String standalone, java.lang.String encoding) Receive notification of an XML Declaration. |
void |
setXMLSchema(java.lang.Object s) Receive notification of a XMLSchema object. |
void |
skippedEntity(java.lang.String name) Receive notification of a skipped entity. |
void |
startElement(NSName elem, SAXAttrList attrlist) Receive notification of the beginning of an element. |
void |
startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, Attributes atts) Receive notification of the beginning of an element. |
void |
startPrefixMapping(java.lang.String prefix, java.lang.String uri) Begin the scope of a prefix-URI Namespace mapping. |
Methods inherited from class org.xml.sax.HandlerBase |
characters, endDocument, endElement, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, startElement, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.DocumentHandler |
characters, endDocument, endElement, ignorableWhitespace, processingInstruction, setDocumentLocator, startDocument, startElement |
Constructor Detail |
public DefaultXMLDocumentHandler()
Method Detail |
public void startElement(NSName elem, SAXAttrList attrlist) throws SAXException
startElement
in interface XMLDocumentHandler
elem
- NSName objectattrlist
- SAXAttrList for the elementSAXException
- A SAXException
could be thrown.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, Attributes atts) throws SAXException
localName
- The local name (without prefix), or the empty string if Namespace processing is not being performed.qName
- The qualified name (with prefix), or the empty string 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.SAXException
- Any SAX exception, possibly wrapping another exception.endElement(oracle.xml.parser.v2.NSName)
, Attributes
public void endElement(NSName elem) throws SAXException
endElement
in interface XMLDocumentHandler
elem
- NSName objectSAXException
- A SAXException
could be thrown.DocumentHandler.endElement(java.lang.String)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws SAXException
localName
- The local name (without prefix), or the empty string if Namespace processing is not being performed.qName
- The qualified XML 1.0 name (with prefix), or the empty string if qualified names are not available.SAXException
- Any SAX exception, possibly wrapping another exception.public void setDoctype(DTD dtd) throws SAXException
setDoctype
in interface XMLDocumentHandler
SAXException
- Any SAX exception, possibly wrapping another exception.public void endDoctype() throws SAXException
endDoctype
in interface XMLDocumentHandler
SAXException
- Any SAX exception, possibly wrapping another exception.public void setXMLDecl(java.lang.String version, java.lang.String standalone, java.lang.String encoding) throws SAXException
The Parser will invoke this method once for XML Decl
setXMLDecl
in interface XMLDocumentHandler
version
- The version numberstandalone
- The standalone value (or null, if not specifed)encoding
- The encoding name (or null, if not specifed)SAXException
- Any SAX exception, possibly wrapping another exception.public void setTextDecl(java.lang.String version, java.lang.String encoding) throws SAXException
The Parser will invoke this method once for each text XML Decl
setTextDecl
in interface XMLDocumentHandler
version
- The version number (or null, if not specified)encoding
- The encoding nameSAXException
- Any SAX exception, possibly wrapping another exception.public void comment(java.lang.String data) throws SAXException
The Parser will invoke this method once for each comment found: note that comment may occur before or after the main document element.
comment
in interface XMLDocumentHandler
data
- The comment data, or null if none was supplied.SAXException
- Any SAX exception, possibly wrapping another exception.public void cDATASection(char[] ch, int start, int length) throws SAXException
The Parser will invoke this method once for each CDATA Section found.
cDATASection
in interface XMLDocumentHandler
ch
- The CDATA section characters.start
- The start position in the character array.length
- The number of characters to use from the character array.SAXException
- Any SAX exception, possibly wrapping another exception.public void setHandler(XMLDocumentHandler h) throws SAXException
setHandler
in interface XMLDocumentHandler
h
- The XMLDocumentHandler nodeSAXException
- Any SAX exception, possibly wrapping another exception.public XMLDocumentHandler getHandler()
getHandler
in interface XMLDocumentHandler
public void setError(XMLError he) throws SAXException
setError
in interface XMLDocumentHandler
he
- The XMLError objectSAXException
- Any SAX exception, possibly wrapping another exception.public void setXMLSchema(java.lang.Object s) throws SAXException
setXMLSchema
in interface XMLDocumentHandler
s
- The XMLSchema objectSAXException
- Any SAX exception, possibly wrapping another exception.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws SAXException
prefix
- The Namespace prefix being declared.uri
- The Namespace URI the prefix is mapped to.SAXException
- The client may throw an exception during processing.endPrefixMapping(java.lang.String)
, startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)
public void endPrefixMapping(java.lang.String prefix) throws SAXException
prefix
- The prefix that was being mapping.SAXException
- The client may throw an exception during processing.startPrefixMapping(java.lang.String, java.lang.String)
, endElement(oracle.xml.parser.v2.NSName)
public void skippedEntity(java.lang.String name) throws SAXException
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 string "[dtd]".SAXException
- Any SAX exception, possibly wrapping another exception.
|
Oracle® Application Server XML Java API Reference 10g Release 3 (10.1.3) B28238-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |