Public Member Functions | |
void | bindSourceCode (Annotated annotated, JClass[] classes) |
JClass[] | getSourceCode (Annotated annotated) |
int | getStatusCode () |
Static Public Attributes | |
static final int | NORMAL_STATUS = 0 |
static final int | STOP_STATUS = 1 |
Protected Member Functions | |
SGStateInfo (Schema schema, SourceGenerator sgen) | |
Protected Attributes | |
String | packageName = null |
Package Functions | |
JClass | getProcessed (String className) |
void | markAsProcessed (JClass jClass) |
boolean | processed (JClass jClass) |
boolean | processed (String className) |
boolean | promptForOverwrite () |
void | setPromptForOverwrite (boolean promptForOverwrite) |
Schema | getSchema () |
SourceGenerator | getSourceGenerator () |
boolean | getSuppressNonFatalWarnings () |
void | setSuppressNonFatalWarnings (boolean suppressNonFatalWarnings) |
Dialog | getDialog () |
void | setDialog (Dialog dialog) |
void | setStatusCode (int status) |
void | setVerbose (boolean verbose) |
boolean | verbose () |
FactoryState | getCurrentFactoryState () |
void | setCurrentFactoryState (FactoryState state) |
A class for maintaining state for the SourceGenerator
org.exolab.castor.builder.SGStateInfo.SGStateInfo | ( | Schema | schema, | |
SourceGenerator | sgen | |||
) | [protected] |
Creates a new SGStateInfo
schema | the Schema to generate source for | |
sgen | the SourceGenerator instance |
References org.exolab.castor.builder.SGStateInfo.packageName.
Binds the given Annotated structure with it's generated source classes
annotated | the Annotated structure to add JClass bindings for | |
classes | the JClass[] to bind |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
FactoryState org.exolab.castor.builder.SGStateInfo.getCurrentFactoryState | ( | ) | [package] |
Returns the current FactoryState that holds information about the classes being generated.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
Dialog org.exolab.castor.builder.SGStateInfo.getDialog | ( | ) | [package] |
Returns the Dialog used for interacting with the user
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
JClass org.exolab.castor.builder.SGStateInfo.getProcessed | ( | String | className | ) | [package] |
Returns the processed JClass with the given name. If no such JClass has been marked as processed, null is returned.
className | the JClass name to check against |
References org.exolab.javasource.JStructure.getName().
Schema org.exolab.castor.builder.SGStateInfo.getSchema | ( | ) | [package] |
Returns the array of JClass for the given Annotated structure or null if no bindings have been specified for the given Structure.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
SourceGenerator org.exolab.castor.builder.SGStateInfo.getSourceGenerator | ( | ) | [package] |
Returns the SourceGenerator instance being used
Referenced by org.exolab.castor.builder.FactoryState.FactoryState().
int org.exolab.castor.builder.SGStateInfo.getStatusCode | ( | ) |
Returns the current status
boolean org.exolab.castor.builder.SGStateInfo.getSuppressNonFatalWarnings | ( | ) | [package] |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
void org.exolab.castor.builder.SGStateInfo.markAsProcessed | ( | JClass | jClass | ) | [package] |
Marks the given JClass as having been processed.
jClass | the JClass to mark as having been processed. |
boolean org.exolab.castor.builder.SGStateInfo.processed | ( | JClass | jClass | ) | [package] |
Returns true if the given JClass has been marked as processed
jClass | the JClass to check for being marked as processed |
boolean org.exolab.castor.builder.SGStateInfo.processed | ( | String | className | ) | [package] |
Returns true if a JClass with the given name has been marked as processed
className | the JClass name to check against |
References org.exolab.javasource.JStructure.getName().
boolean org.exolab.castor.builder.SGStateInfo.promptForOverwrite | ( | ) | [package] |
void org.exolab.castor.builder.SGStateInfo.setCurrentFactoryState | ( | FactoryState | state | ) | [package] |
Sets the current FactoryState.
state | the current FactoryState |
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
void org.exolab.castor.builder.SGStateInfo.setDialog | ( | Dialog | dialog | ) | [package] |
Sets the Dialog used for interacting with the user
dialog | the Dialog to use |
Referenced by org.exolab.castor.builder.SourceGenerator.generateSource().
void org.exolab.castor.builder.SGStateInfo.setPromptForOverwrite | ( | boolean | promptForOverwrite | ) | [package] |
Referenced by org.exolab.castor.builder.SourceGenerator.generateSource().
void org.exolab.castor.builder.SGStateInfo.setStatusCode | ( | int | status | ) | [package] |
Sets the XMLBindingComponent that this SGStateInfo is working on. Returns the XMLBindingComponent this SGStateInfo is working on.
status | the new status code |
void org.exolab.castor.builder.SGStateInfo.setSuppressNonFatalWarnings | ( | boolean | suppressNonFatalWarnings | ) | [package] |
Referenced by org.exolab.castor.builder.SourceGenerator.generateSource().
void org.exolab.castor.builder.SGStateInfo.setVerbose | ( | boolean | verbose | ) | [package] |
Sets whether or not the source code generator prints additional messages during generating source code
verbose | a boolean, when true indicates to print additional messages |
Referenced by org.exolab.castor.builder.SourceGenerator.generateSource().
boolean org.exolab.castor.builder.SGStateInfo.verbose | ( | ) | [package] |
Returns the value of the verbose flag. A true value indicates that additional messages may be printed during processing
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode().
final int org.exolab.castor.builder.SGStateInfo.NORMAL_STATUS = 0 [static] |
String org.exolab.castor.builder.SGStateInfo.packageName = null [protected] |
The package used when creating new classes.
Referenced by org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.builder.SourceGenerator.generateSource(), and org.exolab.castor.builder.SGStateInfo.SGStateInfo().
final int org.exolab.castor.builder.SGStateInfo.STOP_STATUS = 1 [static] |