|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Generator is the portion of Zeus that will convert
a set of constraints, visible through a ,
and output them as generated Java classes (to a
Binding.
Result
| Field Summary | |
static java.lang.String |
DEFAULT_COLLECTION_CLASS
The default Collection class |
| Method Summary | |
void |
generate(Binding binding,
java.io.File directory)
This will convert from a set of constraints to Java classes. |
java.lang.String |
getCollectionClass()
This will return the current class used for Collection
properties. |
java.lang.String |
getJavaPackage()
Returns the Java package to unmarshall classes to. |
void |
setCollectionClass(java.lang.String collectionClass)
This will set the Collection class to use anytime that
a collection of values need to be stored. |
void |
setJavaPackage(java.lang.String javaPackage)
Sets the Java package to generate new classes within. |
| Field Detail |
public static final java.lang.String DEFAULT_COLLECTION_CLASS
Collection class| Method Detail |
public void generate(Binding binding,
java.io.File directory)
throws java.io.IOException
This will convert from a set of constraints to Java classes.
It accesses those constraints through the
interface, which provides
them in a representation-independent format, and then
converts them into Java code, which is output to the
supplied Binding.
Result
binder - Binder with ability to convert from
constraints to Zeus Bindings.directory - File to output generated classes
to.IOException - - when errors in writing to the
supplied Result occur.public void setCollectionClass(java.lang.String collectionClass)
This will set the Collection class to use anytime that
a collection of values need to be stored. The default value for
this class is stored in .
The class specified should be an implementation of the
DEFAULT_COLLECTION_CLASSjava.util.Collection interface.
collectionClass - String name of collection to use.public java.lang.String getCollectionClass()
This will return the current class used for Collection
properties.
String - name of class used for Collections.public java.lang.String getJavaPackage()
Returns the Java package to unmarshall classes to.
String - the Java package to unmarshall to.public void setJavaPackage(java.lang.String javaPackage)
Sets the Java package to generate new classes within. For example, supplying the value com.foo.bar to this method and then generating classes, those classes would all be in the com.foo.bar package after generation.
javaPackage - String the Java package to
generate classes within.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||