|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.SourceFactory
This class creates the Java Source classes for Schema components
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(ComplexType type,
SGStateInfo sgState)
Creates the necessary JClass and ClassInfo objects for the given ComplexType. |
JClass[] |
createSourceCode(ElementDecl element,
SGStateInfo sgState)
Creates a new ClassInfo for the given XML Schema element declaration |
JClass[] |
createSourceCode(Group group,
SGStateInfo sgState)
Creates a new ClassInfo for the given XML Schema type declaration. |
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 |
setTestable(boolean testable)
Sets whether or not to create the XML marshalling framework specific methods (marshall, unmarshall, validate) in the generated classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SourceFactory()
public SourceFactory(FieldInfoFactory infoFactory)
infoFactory
- the FieldInfoFactory to useMethod Detail |
public void setCreateMarshalMethods(boolean createMarshalMethods)
createMarshalMethods
- a boolean, when true indicates
to generated the marshalling framework methodspublic void setTestable(boolean testable)
public JClass[] createSourceCode(ElementDecl element, SGStateInfo sgState)
element
- the XML Schema element declaration to create the
ClassInfo forpublic JClass[] createSourceCode(ComplexType type, SGStateInfo sgState)
type
- the XML Schema type declaration to create the
JClass and ClassInfo objects for
public JClass createSourceCode(SimpleType simpleType, SGStateInfo sgState)
sgState
- the current SGStateInfo (cannot be null).
public JClass[] createSourceCode(Group group, SGStateInfo sgState)
public static void createEqualsMethod(JClass jclass)
jclass
- the Jclass in which we create the equals methodpublic static void createTestableMethods(JClass jclass)
jclass
- the JCLass which will implement the CastorTestable Interfaceorg.exolab.castor.tests.framework.CastorTestable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |