|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.xml.classgen.DTDClassGenerator
This class is used by the DTD compiler to generate classes
| Constructor Summary |
DTDClassGenerator()
Default constructor for DTDClassGenerator. |
| Method Summary |
| Type | Method |
|---|---|
void |
generate(DTD dtd,
java.lang.String doctype)
Traverses the DTD with element doctype as root
and generates Java classes |
void |
setGenerateComments(boolean comments)
Switch to determine whether to generate java doc comments Default - TRUE |
void |
setJavaPackage(java.util.Vector packageName)
Sets the package for the classes generated Default - No package |
void |
setOutputDirectory(java.lang.String dir)
Sets the output directory where the java source code for the DTD are generated. |
void |
setSerializationMode(boolean yes)
Switch to determine if the DTD should be saved as a serialized object or as text file. |
void |
setValidationMode(boolean yes)
Switch to determine whether the classes generated should validate the XML Document being constructed Default - TRUE |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DTDClassGenerator()
| Method Detail |
public void setGenerateComments(boolean comments)
comments - boolean flagpublic void setValidationMode(boolean yes)
yes - boolean flagpublic void setOutputDirectory(java.lang.String dir)
dir - Output directorypublic void setSerializationMode(boolean yes)
yes - boolean flagpublic void setJavaPackage(java.util.Vector packageName)
packageName - Name of the package
public void generate(DTD dtd,
java.lang.String doctype)
doctype as root
and generates Java classesDTD - The DTD used to generate the classesdoctype - Name of the root Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||