|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.util.BaseSourceGenerator | +--org.enhydra.zeus.util.DTDSourceGenerator
This is a standalone "utility" class. It allows source code generation from a DTD.
Fields inherited from class org.enhydra.zeus.util.BaseSourceGenerator |
collapseSimpleElements, constraintsReader, ignoreIDAttributes, javaPackage, outputDir |
Constructor Summary | |
DTDSourceGenerator()
This sets up defaults for the generator. |
Method Summary | |
protected java.util.List |
getConstraintBindings()
This defines a contract for subclasses to allow them to get the Zeus objects to
generate code from. |
protected Generator |
getGenerator()
This handles the process of creating a
for use in data binding. |
static void |
main(java.lang.String[] args)
This provides command-line class generation. |
Methods inherited from class org.enhydra.zeus.util.BaseSourceGenerator |
generate, setCollapseSimpleElements, setCollapseSimpleElements, setConstraintsInput, setConstraintsInput, setConstraintsInput, setConstraintsInput, setJavaPackage, setOutputDir, setOutputDir |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.enhydra.zeus.util.SourceGenerator |
generate, setCollapseSimpleElements, setCollapseSimpleElements, setConstraintsInput, setConstraintsInput, setConstraintsInput, setConstraintsInput, setJavaPackage, setOutputDir, setOutputDir |
Constructor Detail |
public DTDSourceGenerator()
This sets up defaults for the generator.
Method Detail |
protected java.util.List getConstraintBindings() throws java.io.IOException
This defines a contract for subclasses to allow them to get the
Zeus
objects to
generate code from.
Binding
getConstraintBindings
in class BaseSourceGenerator
List
- a list of the Binding
objects to generate code from.IOException
- - when binding creation failsprotected Generator getGenerator()
This handles the process of creating a
for use in data binding.
Generator
This version returns determines the Generator
implementation to use based on user input.
getGenerator
in class BaseSourceGenerator
Generator
- the Generator
to use.public static void main(java.lang.String[] args)
This provides command-line class generation.
args
- String
array of command-line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |