|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.tools.generate_java.CreateJavaFile
public class CreateJavaFile
Description: Base Class for other classes to generate Java class files.
Nested Class Summary | |
---|---|
class |
CreateJavaFile.rankComparator
Description: An inner class which implements the Comparator Interface. |
protected class |
CreateJavaFile.WriteAssociationAttrInformation
Description: Inner class to hold association attribute information. |
protected class |
CreateJavaFile.WriteAttrInformation
Description: Inner class to write attribute information. |
protected class |
CreateJavaFile.WriteRoleInformation
|
Constructor Summary | |
---|---|
protected |
CreateJavaFile(CreateFile createFile)
|
Method Summary | |
---|---|
protected java.lang.String |
getAttrVarName(CreateFile.AttrInformation attr)
Description: Pass through to return the variable name to write out. |
void |
printJavaClassFile(java.lang.String fullOutputDir,
java.lang.String packagePath,
java.io.File header)
Description: From the parsed information creates the file itself. |
protected void |
writeAssnAttrDecl(java.io.FileWriter writer)
Description: Writes the association declarations out to the file. |
protected void |
writeAssnAttrMethods(java.io.FileWriter writer)
Description: Writes the association declarations out to the file. |
protected void |
writeAttrDecl(java.io.FileWriter writer,
java.util.Vector attrInfo,
CreateJavaFile.WriteAttrInformation writeAttr)
Description: Writes the attribute declarations out to the file. |
protected void |
writeAttributeConstructor(java.io.FileWriter writer)
Description: Writes the attribute constructor out to the file. |
protected void |
writeAttrMethods(java.io.FileWriter writer,
java.util.Vector attrInfo,
CreateJavaFile.WriteAttrInformation writeAttr)
Description: Writes the attribute declarations out to the file. |
protected void |
writeClassDecl(java.io.FileWriter writer)
Description: Writes the class declaration out to the file. |
protected void |
writeDataAttrDecl(java.io.FileWriter writer)
Description: Writes the data declarations out to the file. |
protected void |
writeDataAttrMethods(java.io.FileWriter writer)
Description: Writes the data declarations out to the file. |
protected void |
writeDefaultConstructor(java.io.FileWriter writer)
Description: Writes the default constructor out to the file. |
static void |
writeExceptionClass(java.lang.String fullOutputDir,
java.io.File header,
java.io.File mageException)
Description: Writes the exception class template out to a file. |
protected void |
writeImports(java.io.FileWriter writer,
java.lang.String packagePath)
Description: Writes the import list to the file. |
protected void |
writeXMLWriterMethods(java.io.FileWriter writer)
Description: Writes the methods for generating XML from the object data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CreateJavaFile(CreateFile createFile)
Method Detail |
---|
protected java.lang.String getAttrVarName(CreateFile.AttrInformation attr) throws java.lang.Exception
java.lang.Exception
public void printJavaClassFile(java.lang.String fullOutputDir, java.lang.String packagePath, java.io.File header) throws java.lang.Exception
fullOutputDir:
- the full path for the project.packagePath:
- the directory from which to start from.header:
- the preamble copyright and creation information.
java.lang.Exception
protected void writeDefaultConstructor(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeXMLWriterMethods(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeAttributeConstructor(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
public static void writeExceptionClass(java.lang.String fullOutputDir, java.io.File header, java.io.File mageException) throws java.lang.Exception
fullOutputDir:
- the full path for the project.header:
- File for the header information.header:
- File for the MAGEException class.
java.lang.Exception
protected void writeImports(java.io.FileWriter writer, java.lang.String packagePath) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.packagePath:
- string to prepend to the package names.
java.lang.Exception
protected void writeClassDecl(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeDataAttrDecl(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeAssnAttrDecl(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeAttrDecl(java.io.FileWriter writer, java.util.Vector attrInfo, CreateJavaFile.WriteAttrInformation writeAttr) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.attrInfo:
- Vector of the attribute information.attrWriter:
- class to use to do the writing.
java.lang.Exception
protected void writeDataAttrMethods(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to use to write to the file.
java.lang.Exception
protected void writeAssnAttrMethods(java.io.FileWriter writer) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.
java.lang.Exception
protected void writeAttrMethods(java.io.FileWriter writer, java.util.Vector attrInfo, CreateJavaFile.WriteAttrInformation writeAttr) throws java.lang.Exception
writer:
- FileWriter to used to write to the file.attrInfo:
- Vector of the attribute information.attrWriter:
- class to use to do the writing.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |