public abstract class AbstractGenerator extends java.lang.Object implements Generator
| Constructor and Description |
|---|
AbstractGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDetails(JavaManager mgr,
SourceFile file,
SourceClass cls) |
protected static void |
enableTree(java.awt.Component root,
boolean isEnabled) |
protected java.lang.String |
escapeString(java.lang.String inString) |
void |
generate(JavaManager mgr,
SourceFile srcFile)
Tells the Generator to add whatever custom code it requires.
|
javax.swing.JComponent |
getAttributes(java.lang.String baseType)
Provides the Attributes panel supported by this Generator.
|
java.lang.String |
getClassDescription(java.lang.String baseType)
Provides a description of the class being generated by this UIGenerator.
|
protected Context |
getContext() |
java.lang.String[] |
getLibraries(java.lang.String baseType)
Provides a list of JDeveloper libraries required by the code generated by
this Generator for the specified base type.
|
protected Project |
getProject() |
protected Workspace |
getWorkspace() |
void |
setContext(Context ctx)
Sets the context in which the generator is being accessed.
|
void |
setEnabled(boolean isEnabled)
Sets the enabled state of all UI present on the object returned by
getAttributes.
|
boolean |
validateAttributes()
Allows the supplied Attributes panel to be validated.
|
public javax.swing.JComponent getAttributes(java.lang.String baseType)
GeneratorgetAttributes in interface GeneratorbaseType - The base class for which the attributes are requested.JContainer object representing the available
attributes for the base class.public void setEnabled(boolean isEnabled)
GeneratorsetEnabled in interface GeneratorisEnabled - The enabled state to set all UI controls to.public final void generate(JavaManager mgr, SourceFile srcFile)
Generatorpublic java.lang.String getClassDescription(java.lang.String baseType)
GeneratorgetClassDescription in interface GeneratorbaseType - The base class of the class.public java.lang.String[] getLibraries(java.lang.String baseType)
GeneratorgetLibraries in interface GeneratorbaseType - The base class for which the list of libraries are requested.public void setContext(Context ctx)
GeneratorsetContext in interface Generatorctx - the current context.protected Context getContext()
protected Project getProject()
protected Workspace getWorkspace()
public boolean validateAttributes()
GeneratorClassBuilderPanel.validateAndWriteToState(oracle.jdeveloper.wizard.common.BaliWizardState)validateAttributes in interface Generatortrueif the settings in the Attributes panel are
valid, and false otherwise.protected void addDetails(JavaManager mgr, SourceFile file, SourceClass cls)
protected static final void enableTree(java.awt.Component root,
boolean isEnabled)
protected final java.lang.String escapeString(java.lang.String inString)