org.exolab.castor.builder
public class SourceFactory extends Object
Version: $Revision: 1.5 $ $Date: 2003/06/03 18:50:36 $
Constructor Summary | |
---|---|
SourceFactory()
Creates a new SourceFactory using the default FieldInfo factory.
| |
SourceFactory(FieldInfoFactory infoFactory)
Creates a new SourceFactory with the given FieldInfoFactory |
Method Summary | |
---|---|
static void | createEqualsMethod(JClass jclass)
Create an 'equals' method on the given
JClass |
JClass[] | createSourceCode(XMLBindingComponent component, SGStateInfo sgState)
Creates a new ClassInfo for the given XMLBindingComponent.
|
JClass | createSourceCode(SimpleType simpleType, SGStateInfo sgState)
Creates the Java source code to support the given Simpletype
|
static void | createTestableMethods(JClass jclass)
Implement org.exolab.castor.tests.framework.CastorTestable im the
given JClass |
void | setCreateMarshalMethods(boolean createMarshalMethods)
Sets whether or not to create the XML marshalling framework specific
methods (marshall, unmarshall, validate) in the generated classes.
|
void | setSAX1(boolean sax1)
Sets to true if SAX1 should be used in the marshall method. |
void | setTestable(boolean testable)
Sets whether or not to create the XML marshalling framework specific
methods (marshall, unmarshall, validate) in the generated classes.
|
Parameters: infoFactory the FieldInfoFactory to use
Parameters: jclass the Jclass in which we create the equals method
Parameters: component the XMLBindingComponent that abstracts all XML Schema definition for a XML Schema component. sgState The given state of the SourceGenerator.
Returns: an array of JClasses reflecting the given XMLBindingComponent.
Parameters: simpleType the Simpletype to create the Java source for sgState the current SGStateInfo (cannot be null).
Returns: the JClass representation of the given Simpletype
Parameters: jclass the JCLass which will implement the CastorTestable Interface
See Also: org.exolab.castor.tests.framework.CastorTestable
Parameters: createMarshalMethods a boolean, when true indicates to generated the marshalling framework methods
Parameters: sax1 true if SAX1 should be used.
Parameters: testable a boolean, when true indicates to generate testing framework methods