|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.tools.workbench.ProjectClassGenerator
public class ProjectClassGenerator
Purpose: Allow for a class storing a TopLink project's descriptors (meta-data) to be generated. This class can then be used at runtime to deploy the TopLink descriptor's instead of XML files.
Constructor Summary | |
---|---|
ProjectClassGenerator()
Create a new generator. |
|
ProjectClassGenerator(Project project)
Create a new generator to output the project. |
|
ProjectClassGenerator(Project project,
java.lang.String projectClassName,
java.lang.String fileName)
Create a new generator to output to the file. |
|
ProjectClassGenerator(Project project,
java.lang.String projectClassName,
java.io.Writer outputWriter)
Create a new generator to output to the writer. |
Method Summary | |
---|---|
void |
generate()
Generate the project class, output the java source code to the stream or file. |
void |
generate(boolean useUnicode)
Generate the project class, output the java source code to the stream or file. |
java.lang.String |
getClassName()
Return the name of class to be generated. |
java.lang.String |
getOutputFileName()
Return the file name that the generate .java file will be output to. |
java.lang.String |
getOutputPath()
Return the path that the generate .java file will be output to. |
java.io.Writer |
getOutputWriter()
Return the writer the output to. |
java.lang.String |
getPackageName()
Return the package name of class to be generated. |
Project |
getProject()
Return the project to generate from. |
void |
setClassName(java.lang.String newClassName)
Set the name of class to be generated. |
void |
setOutputFileName(java.lang.String newOutputFileName)
Set the file name that the generate .java file will be output to. |
void |
setOutputPath(java.lang.String newOutputPath)
Set the path that the generate .java file will be output to. |
void |
setOutputWriter(java.io.Writer outputWriter)
Set the writer the output to. |
void |
setPackageName(java.lang.String newPackageName)
Set the package name of class to be generated. |
void |
setProject(Project newProject)
Set the project to generate from. |
static void |
write(Project project,
java.lang.String projectClassName,
java.lang.String fileName)
Generate the source code to a project class to the project's descriptor into the file. |
static void |
write(Project project,
java.lang.String projectClassName,
java.io.Writer writer)
Generate the source code to a project class to the project's descriptor into the writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectClassGenerator()
public ProjectClassGenerator(Project project)
public ProjectClassGenerator(Project project, java.lang.String projectClassName, java.io.Writer outputWriter)
public ProjectClassGenerator(Project project, java.lang.String projectClassName, java.lang.String fileName)
Method Detail |
---|
public void generate(boolean useUnicode) throws ValidationException
ValidationException
public void generate() throws ValidationException
ValidationException
public java.lang.String getClassName()
public java.lang.String getOutputFileName()
public java.lang.String getOutputPath()
public java.io.Writer getOutputWriter()
public java.lang.String getPackageName()
public Project getProject()
public void setClassName(java.lang.String newClassName)
public void setOutputFileName(java.lang.String newOutputFileName)
public void setOutputPath(java.lang.String newOutputPath)
public void setOutputWriter(java.io.Writer outputWriter)
public void setPackageName(java.lang.String newPackageName)
public void setProject(Project newProject)
public static void write(Project project, java.lang.String projectClassName, java.io.Writer writer)
public static void write(Project project, java.lang.String projectClassName, java.lang.String fileName)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |