Oracle8i XML Reference Guide Release 3 (8.1.7) Part Number A83730-01 |
|
public abstract class CGDocument extends CGNodejava.lang.Object | +--CGNode
| +--oracle.xml.classgen.CGDocument
Serves as the base document class for the Class Generated generated classes
Inherited Member Summary |
---|
Methods inherited from class CGNode |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public abstract class CGNode extends java.lang.Object java.lang.Object | +--oracle.xml.classgen.CGNode
CGDocument
Serves as the base class for nodes generated by the Class Generated
Member Summary |
|
---|---|
Methods |
|
Sets the base document (root Element) |
Inherited Member Summary |
---|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public void setDocument(CGDocument
d)
Sets the base document (root Element)
d
- Base CGDocument
public class ClassGenerator extends java.lang.Object java.lang.Object | +--oracle.xml.classgen.ClassGenerator
This class is used by the Class Generated to generate classes
Inherited Member Summary |
---|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public ClassGenerator()
Default constructor for ClassGenerator.
public void generate(oracle.xml.classgen.DTD dtd, java.lang.String doctype)
Traverses the DTD with element doctype
as root and generates Java classes
DTD
- The DTD used to generate the classes
doctype
- Name of the root Element
public void setGenerateComments(boolean comments)
Switch to determine whether to generate java doc comments Default - TRUE
comments
- boolean flag
public void setJavaPackage(java.lang.String packageName)
Sets the package for the classes generated Default - No package
packageName
- Name of the package
public void setOutputDirectory(java.lang.String dir)
Sets the output directory Default - current directory
dir
- Output directory
public void setSerializationMode(boolean flag)
Switch to determine if the DTD should be saved as a serialized object or as text file. Serializing the DTD improves the performance when the generated classes are used to author XML files. Default - FALSE (DTD is saved a text file)
flag - boolean flag
public void setValidationMode(boolean flag)
Switch to determine whether the classes generated should validate the XML Document being constructed Default - TRUE
flag - boolean flag
oracle.xml.classgenpublic class InvalidContentException extends java.lang.Exception java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--oracle.xml.classgen.InvalidContentException
java.io.Serializable
Definition of InvalidContentException thrown by dtdcompiler classes
Member Summary |
|
---|---|
Constructors |
|
|
|
|
public InvalidContentException()
public InvalidContentException(java.lang.String s)
|
Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|