oracle.xml.classgen
Class CGDocument
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
Constructor Summary |
protected |
CGDocument(java.lang.String doctype, DTD dtd)
Constructor for the Root element of the DTD |
Method Summary |
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 |
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
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
Copyright © 1997, 2004, Oracle. All rights reserved.