org.enhydra.zeus.util
Class DTDSourceGenerator

java.lang.Object
  |
  +--org.enhydra.zeus.util.BaseSourceGenerator
        |
        +--org.enhydra.zeus.util.DTDSourceGenerator
All Implemented Interfaces:
SourceGenerator

public class DTDSourceGenerator
extends BaseSourceGenerator
implements SourceGenerator

This is a standalone "utility" class. It allows source code generation from a DTD.

Author:
Brett McLaughlin

Fields inherited from class org.enhydra.zeus.util.BaseSourceGenerator
collapseSimpleElements, constraintsReader, generateAsSerializable, interfacePackage, javaPackage, namePrefix, 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 Binding objects to generate code from.
static void main(java.lang.String[] args)
           This provides command-line class generation.
 
Methods inherited from class org.enhydra.zeus.util.BaseSourceGenerator
generate, setCollapseSimpleElements, setConstraintsInput, setConstraintsInput, setConstraintsInput, setConstraintsInput, setGenerateAsSerializable, setInterfacePackage, setJavaPackage, setNamePrefix, 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, setConstraintsInput, setConstraintsInput, setConstraintsInput, setConstraintsInput, setGenerateAsSerializable, setInterfacePackage, setJavaPackage, setNamePrefix, setOutputDir, setOutputDir
 

Constructor Detail

DTDSourceGenerator

public DTDSourceGenerator()

This sets up defaults for the generator.

Method Detail

getConstraintBindings

protected java.util.List getConstraintBindings()
                                        throws java.io.IOException

This defines a contract for subclasses to allow them to get the Zeus Binding objects to generate code from.

Overrides:
getConstraintBindings in class BaseSourceGenerator
Returns:
List - a list of the Binding objects to generate code from.
Throws:
IOException - - when binding creation fails

main

public static void main(java.lang.String[] args)

This provides command-line class generation.

Parameters:
args - String array of command-line arguments.


Copyright © 2001 Enhydra. All Rights Reserved.