|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.util.ClassInfoResolverImpl
org.exolab.castor.builder.SGStateInfo
A class for maintaining state for the SourceGenerator
Field Summary | |
static int |
NORMAL_STATUS
|
protected java.lang.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 |
(package private) FactoryState |
getCurrentFactoryState()
Returns the current FactoryState that holds information about the classes being generated. |
(package private) Dialog |
getDialog()
Returns the Dialog used for interacting with the user |
(package private) JClass |
getProcessed(java.lang.String className)
Returns the processed JClass with the given name. |
(package private) 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. |
(package private) SourceGenerator |
getSourceGenerator()
Returns the SourceGenerator instance being used |
int |
getStatusCode()
Returns the current status |
(package private) boolean |
getSuppressNonFatalWarnings()
|
(package private) void |
markAsProcessed(JClass jClass)
Marks the given JClass as having been processed. |
(package private) boolean |
processed(JClass jClass)
Returns true if the given JClass has been marked as processed |
(package private) boolean |
processed(java.lang.String className)
Returns true if a JClass with the given name has been marked as processed |
(package private) boolean |
promptForOverwrite()
|
(package private) void |
setCurrentFactoryState(FactoryState state)
Sets the current FactoryState. |
(package private) void |
setDialog(Dialog dialog)
Sets the Dialog used for interacting with the user |
(package private) void |
setPromptForOverwrite(boolean promptForOverwrite)
|
(package private) void |
setStatusCode(int status)
Sets the current status code to the given one |
(package private) void |
setSuppressNonFatalWarnings(boolean suppressNonFatalWarnings)
|
(package private) void |
setVerbose(boolean verbose)
Sets whether or not the source code generator prints additional messages during generating source code |
(package private) boolean |
verbose()
Returns the value of the verbose flag. |
Methods inherited from class org.exolab.castor.builder.util.ClassInfoResolverImpl |
bindReference, keys, resolve |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NORMAL_STATUS
public static final int STOP_STATUS
protected java.lang.String packageName
Constructor Detail |
protected SGStateInfo(Schema schema, SourceGenerator sgen)
schema
- the Schema to generate source forsgen
- the SourceGenerator instanceMethod Detail |
public void bindSourceCode(Annotated annotated, JClass[] classes)
annotated
- the Annotated structure to add JClass bindings forclasses
- the JClass[] to bindJClass getProcessed(java.lang.String className)
className
- the JClass name to check against
public JClass[] getSourceCode(Annotated annotated)
public int getStatusCode()
void markAsProcessed(JClass jClass)
jClass
- the JClass to mark as having been processed.boolean processed(JClass jClass)
jClass
- the JClass to check for being marked as processedboolean processed(java.lang.String className)
className
- the JClass name to check againstboolean promptForOverwrite()
void setPromptForOverwrite(boolean promptForOverwrite)
Schema getSchema()
SourceGenerator getSourceGenerator()
boolean getSuppressNonFatalWarnings()
void setSuppressNonFatalWarnings(boolean suppressNonFatalWarnings)
Dialog getDialog()
void setDialog(Dialog dialog)
dialog
- the Dialog to usevoid setStatusCode(int status)
status
- the new status codevoid setVerbose(boolean verbose)
verbose
- a boolean, when true indicates to
print additional messagesboolean verbose()
FactoryState getCurrentFactoryState()
void setCurrentFactoryState(FactoryState state)
state
- the current FactoryStategetCurrentFactoryState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |