|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 |
Type | Method |
---|---|
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 |
Constructor Detail |
public DefaultXMLDocumentHandler()
Method Detail |
public void startElement(NSName elem, SAXAttrList attrlist) throws SAXException
elem
- NSName objectattrlist
- SAXAttrList for the elementSAXException
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
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.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.endElement(oracle.xml.parser.v2.NSName)
,
Attributes
public void endElement(NSName elem) throws SAXException
elem
- NSName objectSAXException
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
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.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.public void setDoctype(DTD dtd) throws SAXException
public void endDoctype() throws SAXException
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
version
- The version numberstandalone
- The standalone value (or null, if not specifed)encoding
- The encoding name (or null, if not specifed)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
version
- The version number (or null, if not specified)encoding
- The encoding namepublic 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.
data
- The comment data, or null if
none was supplied.public void cDATASection(char[] ch, int start, int length) throws SAXException
The Parser will invoke this method once for each CDATA Section found.
ch
- The CDATA section characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.public void setHandler(XMLDocumentHandler h) throws SAXException
h
- The XMLDocumentHandler nodepublic XMLDocumentHandler getHandler()
public void setError(XMLError he) throws SAXException
he
- The XMLError objectpublic void setXMLSchema(java.lang.Object s) throws SAXException
s
- The XMLSchema objectpublic 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.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.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]".
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |