org.exolab.castor.builder
class SGStateInfo extends ClassInfoResolverImpl
Version: $Revision: 1.6 $ $Date: 2005/06/23 04:13:21 $
| Field Summary | |
|---|---|
| static int | NORMAL_STATUS |
| protected String | packageName
The package used when creating new classes.
|
| static int | STOP_STATUS |
| Constructor Summary | |
|---|---|
| protected | SGStateInfo(Schema schema, SourceGenerator sgen)
Creates a new SGStateInfo
|
| Method Summary | |
|---|---|
| void | bindSourceCode(Annotated annotated, JClass[] classes)
Binds the given Annotated structure with it's
generated source classes
|
| Properties | getCDRFile(String filename)
Returns the CDRFile (Properties file) associated
with the given filename
|
| Enumeration | getCDRFilenames()
Returns the set of CDR file names
|
| FactoryState | getCurrentFactoryState()
Returns the current FactoryState that
holds information about the classes being generated. |
| Dialog | getDialog()
Returns the Dialog used for interacting with the user
|
| MappingRoot | getMapping(String filename)
Returns the Mapping file associated with
the given filename
|
| Enumeration | getMappingFilenames()
Returns the set of mapping filenames
|
| JClass | getProcessed(String className)
Returns the processed JClass with the given name. |
| Schema | getSchema() |
| JClass[] | getSourceCode(Annotated annotated)
Returns the array of JClass for the given Annotated structure
or null if no bindings have been specified for the given
Structure.
|
| JClass | getSourceCode(String className)
Returns the JClass with the given name or null
if no bindings have been specified for a JClass
with the name.
|
| SourceGenerator | getSourceGenerator()
Returns the SourceGenerator instance being used |
| int | getStatusCode()
Returns the current status
|
| boolean | getSuppressNonFatalWarnings() |
| void | markAsProcessed(JClass jClass)
Marks the given JClass as having been processed. |
| boolean | processed(JClass jClass)
Returns true if the given JClass has been marked as processed |
| boolean | processed(String className)
Returns true if a JClass with the given name has been marked as
processed
|
| boolean | promptForOverwrite() |
| void | setCDRFile(String filename, Properties props)
Sets the CDR (ClassDescriptorResolver) file associated with
the given filename
|
| void | setCurrentFactoryState(FactoryState state)
Sets the current FactoryState. |
| void | setDialog(Dialog dialog)
Sets the Dialog used for interacting with the user
|
| void | setMapping(String filename, MappingRoot mapping)
Sets the Mapping file associated with
the given filename
|
| void | setPromptForOverwrite(boolean promptForOverwrite) |
| void | setStatusCode(int status)
Sets the current status code to the given one
|
| void | setSuppressNonFatalWarnings(boolean suppressNonFatalWarnings) |
| void | setVerbose(boolean verbose)
Sets whether or not the source code generator prints
additional messages during generating source code |
| boolean | verbose()
Returns the value of the verbose flag. |
Parameters: schema the Schema to generate source for sgen the SourceGenerator instance
Parameters: annotated the Annotated structure to add JClass bindings for classes the JClass[] to bind
Parameters: filename
Returns: the Properties file
Returns: the set of CDR file names
Returns: the current FactoryState
Returns: the Dialog, or null if none has been set.
Returns: the Mapping file
Returns: the set of mapping filenames
Parameters: className the JClass name to check against
Returns: the JClass with the given name
Returns: the JClass array
Parameters: className the name of the JClass
Returns: the JClass if found
Returns: the current status
Parameters: jClass the JClass to mark as having been processed.
Parameters: jClass the JClass to check for being marked as processed
Parameters: className the JClass name to check against
Parameters: filename the filename associated with the CDR file props the Properties file
Parameters: state the current FactoryState
See Also: SGStateInfo
Parameters: dialog the Dialog to use
Parameters: filename the filename associated with the Mapping mapping the MappingRoot
Parameters: status the new status code
Parameters: verbose a boolean, when true indicates to print additional messages
Returns: the value of the verbose flag.