oracle.xml.classgen
Class CGDocument

java.lang.Object
  |
  +--oracle.xml.classgen.CGNode
        |
        +--oracle.xml.classgen.CGDocument

public abstract class CGDocument
extends CGNode
implements java.io.Externalizable

Serves as the base document class for the DTD compiler generated classes

See Also:
Serialized Form

Fields inherited from class oracle.xml.classgen.CGNode
isValidating
 
Constructor Summary
TypeConstructor
protected CGDocument(java.lang.String doctype, DTD dtd)
          Constructor for the Root element of the DTD
 
Method Summary
TypeMethod
protected  void print(java.io.OutputStream out)
          Prints the constructed XML Document
protected  void print(java.io.OutputStream out, java.lang.String enc)
          Prints the constructed XML Document
protected  void readExternal(java.io.ObjectInput inArg, oracle.xml.comp.CXMLContext cxmlContext)
          This function reads the compressed stream and creates the object corresponding to the root element.
 
Methods inherited from class oracle.xml.classgen.CGNode
addCDATASection, addData, addNode, deleteData, getAttribute, getCGDocument, getData, getDTDNode, getElementNode, getNode, readExternal, setAttribute, setDocument, setElementNode, storeID, storeIDREF, validateContent, validEntity, validID, validNMTOKEN, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CGDocument

protected CGDocument(java.lang.String doctype,
                     DTD dtd)
Constructor for the Root element of the DTD
Parameters:
doctype - Name of the root Element of the DTD
dtd - The DTD used to generate the classes
Method Detail

print

protected void print(java.io.OutputStream out)
              throws InvalidContentException
Prints the constructed XML Document
Parameters:
out - Output stream to which the document will be printed
Throws:
InvalidContentException - Throw exception if the document's content do not match the grammer specified by DTD (The validation mode should be set to TRUE)
See Also:
DTDClassGenerator.setValidationMode(boolean)

print

protected void print(java.io.OutputStream out,
                     java.lang.String enc)
              throws InvalidContentException
Prints the constructed XML Document
Parameters:
out - Output stream to which the document will be printed
enc - Encoding of the output stream
Throws:
InvalidContentException - Throw exception if the document's content do not match the grammer specified by DTD (The validation mode should be set to TRUE)
See Also:
DTDClassGenerator.setValidationMode(boolean)

readExternal

protected void readExternal(java.io.ObjectInput inArg,
                            oracle.xml.comp.CXMLContext cxmlContext)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
This function reads the compressed stream and creates the object corresponding to the root element.
Parameters:
in - ObjectInput passes to read the compressed stream
cxmlContext - The context of the compressed stream