oracle.xml.parser.schema
Class XSDParser

oracle.xml.parser.schema.XSDConstants
  |
  +--oracle.xml.parser.schema.XSDParser

public class XSDParser
extends XSDConstants
implements XMLDocumentHandler


Constructor Summary
XSDParser()
          XSDParser constructor.
 
Method Summary
TypeMethod
 void cDATASection(char[] ch, int start, int length)
          Receive notification of a CDATA Section.
 void characters(char[] ch, int start, int length)
          Propagate notification of character data inside an element.
 void comment(java.lang.String data)
          Receive notification of a comment.
 void endDoctype()
          Propagate notification of end of the DTD.
 void endDocument()
          Propagate notification of the end of the document.
 void endElement(NSName elem)
          Receive notification of the end of an element.
 void endElement(java.lang.String name)
          Propagate notification of the end of an element.
 XMLDocumentHandler getHandler()
          Gets an XMLDocumentHandler object (next pipe-line handler)
 void ignorableWhitespace(char[] ch, int start, int length)
          Propagates notification of ignorable whitespace in element content.
 void processingInstruction(java.lang.String target, java.lang.String data)
          Propagates notification of a processing instruction.
 void setDoctype(DTD dtd)
          Receive notification of a DTD (Document Type node).
 void setDocumentLocator(Locator locator)
          Propagates Locator object for document events.
 void setError(XMLError he)
          Sets an XMLError object as current err.
 void setHandler(XMLDocumentHandler h)
          Sets an XMLDocumentHandler object as next pipe-line 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 a XML Declaration.
 void setXMLSchema(java.lang.Object s)
          Sets an XMLSchema object as current schema.
 void startDocument()
          Propagate notification of the beginning of the document.
 void startElement(NSName elem, SAXAttrList attrlist)
          Propagate notification of the beginning of an element.
 void startElement(java.lang.String name, AttributeList atts)
          Propagate notification of the beginning of an element.
 

Constructor Detail

XSDParser

public XSDParser()
          throws XSDException
XSDParser constructor.
Method Detail

setHandler

public void setHandler(XMLDocumentHandler h)
                throws SAXException
Sets an XMLDocumentHandler object as next pipe-line handler.
Specified by:
setHandler in interface XMLDocumentHandler
Parameters:
h - XMLDocumentHandler objec object
Throws:
SAXException - A SAXException could be thrown.

getHandler

public XMLDocumentHandler getHandler()
Gets an XMLDocumentHandler object (next pipe-line handler)
Specified by:
getHandler in interface XMLDocumentHandler
Returns:
XMLDocumentHandler objec object

setError

public void setError(XMLError he)
              throws SAXException
Sets an XMLError object as current err.
Specified by:
setError in interface XMLDocumentHandler
Parameters:
he - XMLError object
Throws:
SAXException - A SAXException could be thrown.

setXMLSchema

public void setXMLSchema(java.lang.Object s)
                  throws SAXException
Sets an XMLSchema object as current schema.
Specified by:
setXMLSchema in interface XMLDocumentHandler
Parameters:
s - XMLSchema object
Throws:
SAXException - A SAXException could be thrown.

startElement

public void startElement(NSName elem,
                         SAXAttrList attrlist)
                  throws SAXException
Propagate notification of the beginning of an element.
Specified by:
startElement in interface XMLDocumentHandler
Parameters:
elem - NSName object
attrlist - SAXAttrList for the element
Throws:
SAXException - A SAXException could be thrown.
See Also:
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)

endElement

public void endElement(NSName elem)
                throws SAXException
Receive notification of the end of an element. The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).

Specified by:
endElement in interface XMLDocumentHandler
Parameters:
elem - NSName object
Throws:
SAXException - A SAXException could be thrown.
See Also:
DocumentHandler.endElement(java.lang.String)

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Propagate notification of character data inside an element.
Parameters:
ch - The characters.
start - The start position in the character array.
length - The number of characters to use from the character array.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
DocumentHandler.characters(char[], int, int)

startElement

public void startElement(java.lang.String name,
                         AttributeList atts)
                  throws SAXException
Propagate notification of the beginning of an element.
Parameters:
name - The element type name.
atts - The attributes attached to the element, if any.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

endElement

public void endElement(java.lang.String name)
                throws SAXException
Propagate notification of the end of an element.
Parameters:
name - The element type name
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setXMLDecl

public void setXMLDecl(java.lang.String version,
                       java.lang.String standalone,
                       java.lang.String encoding)
                throws SAXException
Receive notification of a XML Declaration.
Specified by:
setXMLDecl in interface XMLDocumentHandler
Parameters:
version - The version number
standalone - The standalone value (or null, if not specifed)
encoding - The encoding name (or null, if not specifed)
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setTextDecl

public void setTextDecl(java.lang.String version,
                        java.lang.String encoding)
                 throws SAXException
Receive notification of a Text XML Declaration.
Specified by:
setTextDecl in interface XMLDocumentHandler
Parameters:
version - The version number (or null, if not specified)
encoding - The encoding name
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

comment

public void comment(java.lang.String data)
             throws SAXException
Receive notification of a comment.
Specified by:
comment in interface XMLDocumentHandler
Parameters:
data - The comment data, or null if none was supplied.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

cDATASection

public void cDATASection(char[] ch,
                         int start,
                         int length)
                  throws SAXException
Receive notification of a CDATA Section.
Specified by:
cDATASection in interface XMLDocumentHandler
Parameters:
ch - The CDATA section characters.
start - The start position in the character array.
length - The number of characters to use from the character array.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setDoctype

public void setDoctype(DTD dtd)
                throws SAXException
Receive notification of a DTD (Document Type node).
Specified by:
setDoctype in interface XMLDocumentHandler
Parameters:
DTD - The DTD node
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

endDoctype

public void endDoctype()
                throws SAXException
Propagate notification of end of the DTD.
Specified by:
endDoctype in interface XMLDocumentHandler
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

startDocument

public void startDocument()
                   throws SAXException
Propagate notification of the beginning of the document.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
DocumentHandler.startDocument()

endDocument

public void endDocument()
                 throws SAXException
Propagate notification of the end of the document.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.
See Also:
DocumentHandler.endDocument()

setDocumentLocator

public void setDocumentLocator(Locator locator)
Propagates Locator object for document events.
Parameters:
locator - A locator for all SAX document events.
See Also:
DocumentHandler.setDocumentLocator(org.xml.sax.Locator), Locator

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws SAXException
Propagates notification of a processing instruction.
Parameters:
target - The processing instruction target.
data - The processing instruction data, or null if none is supplied.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Propagates notification of ignorable whitespace in element content.
Parameters:
ch - The whitespace characters.
start - The start position in the character array.
length - The number of characters to use from the character array.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.