DTDClassGenerator - Oracle 9i

Syntax:

Description:

This class is used by the DTD compiler to generate classes

Constructors

DTDClassGenerator():

public DTDClassGenerator()

Default constructor for DTDClassGenerator.

Methods

generate(DTD, String):

public void generate (oracle.xml.parser.v2.DTD dtd, java.lang.String doctype)

Traverses the DTD with element doctype as root and generates Java classes

Parameters

DTD - The DTD used to generate the classes doctype - Name of the root Element

printDocumentMethods():

protected void printDocumentMethods()

setGenerateComments(boolean):

public void setGenerateComments(boolean comments)

Switch to determine whether to generate java doc comments Default - TRUE

Parameters

comments - boolean flag

setJavaPackage(Vector):

public void setJavaPackage (java.util.Vector packageName)

Sets the package for the classes generated Default - No package

Parameters

packageName - Name of the package

setOutputDirectory(String):

public void setOutputDirectory(java.lang.String dir)

Sets the output directory where the java source code for the DTD are generated. Default - current directory

Parameters

dir - Output directory

setSerializationMode(boolean):

public void setSerializationMode(boolean yes)

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)

Parameters

yes - boolean flag

setValidationMode(boolean):

public void setValidationMode(boolean yes)

Switch to determine whether the classes generated should validate the XML Document being constructed Default - TRUE

Parameters

yes - boolean flag

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics