|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectijgen.generator.model.ClassDefinition
public class ClassDefinition
Class holding the meta-data for an domain object. Meta-data is loaded via java reflection API from annotated java files. This is the main class used by the generator to obtain information about the generated artifacts.
Constructor Summary | |
---|---|
ClassDefinition()
Default constructor |
Method Summary | |
---|---|
void |
addFieldDefinition(FieldDefinition fieldDefinition)
Sets a list of all definitions for all the fields in this class. |
java.lang.String |
getClassName()
Gets the name of the class |
java.lang.String |
getDbTable()
Gets the name of the database table which will be used for persisting this class. |
java.util.List<FieldDefinition> |
getFieldDefinitions()
Gets a list of all definitions for all the fields in this class. |
java.lang.String |
getGeneratedClassName(java.lang.String templateName)
Gets the name of the class that should be used in the generated artifacts. |
java.util.Map<java.lang.String,java.lang.String> |
getGeneratedLayersFileNamesSuffixes()
Gets the map that holds a information about suffixes that has to be appended to the generated artifacts for the specified templates. |
java.lang.String |
getPackageName()
Gets the name of the package for generated artifacts for this class |
java.util.List<java.lang.String> |
getSkipLayers()
Gets a list of template names that has to be skipped by the generator for this class. |
void |
setClassName(java.lang.String className)
Sets the name of the class. |
void |
setDbTable(java.lang.String dbTable)
Sets the name of the database table which will be used for persisting this class. |
void |
setGeneratedLayersFileNamesSuffixes(java.util.Map<java.lang.String,java.lang.String> generatedLayersFileNamesSuffixes)
Gets the map that holds a information about suffixes that has to be appended to the generated artifacts for the specified templates. |
void |
setPackageName(java.lang.String packageName)
Sets the name of the package for generated artifacts for this class |
void |
setSkipLayers(java.util.List<java.lang.String> skipLayers)
Sets a list of template names that has to be skipped by the generator for this class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassDefinition()
Method Detail |
---|
public java.lang.String getClassName()
public final java.lang.String getGeneratedClassName(java.lang.String templateName)
templateName
-
public void setClassName(java.lang.String className)
className
- name of the classpublic java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
packageName
- package namepublic java.lang.String getDbTable()
public void setDbTable(java.lang.String dbTable)
dbTable
- name of the tablepublic java.util.List<java.lang.String> getSkipLayers()
public void setSkipLayers(java.util.List<java.lang.String> skipLayers)
skipLayers
- list of the templates to be skippedpublic java.util.Map<java.lang.String,java.lang.String> getGeneratedLayersFileNamesSuffixes()
public void setGeneratedLayersFileNamesSuffixes(java.util.Map<java.lang.String,java.lang.String> generatedLayersFileNamesSuffixes)
generatedLayersFileNamesSuffixes
- template suffixespublic java.util.List<FieldDefinition> getFieldDefinitions()
public void addFieldDefinition(FieldDefinition fieldDefinition)
fieldDefinition
- list of field definitionspublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |