org.enhydra.zeus.util
Class XSDSourceGenerator

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

public class XSDSourceGenerator
extends BaseSourceGenerator
implements SourceGenerator

This is a standalone "utility" class. It allows source code generation from an XML Schema (XSD).

Author:
Brett McLaughlin

Fields inherited from class org.enhydra.zeus.util.BaseSourceGenerator
collapseSimpleElements, constraintsReader, ignoreIDAttributes, javaPackage, outputDir
 
Constructor Summary
XSDSourceGenerator()
           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, getGenerator, 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

XSDSourceGenerator

public XSDSourceGenerator()

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 © 2002 Enhydra. All Rights Reserved.