Class ModelMetaData
- java.lang.Object
-
- net.officefloor.model.generate.model.ModelMetaData
-
public class ModelMetaData extends java.lang.Object
Meta-data for the generation of a Model.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ModelMetaData()
Default constructor.ModelMetaData(java.lang.String name, java.lang.String packageName, java.lang.String classSuffix, java.lang.String[] imports, java.lang.String[] interfaces, FieldMetaData[] fields, ListMetaData[] lists)
Convenience constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(FieldMetaData field)
void
addImportClass(java.lang.String importClass)
void
addInterface(java.lang.String interfaceName)
void
addList(ListMetaData list)
java.lang.String
getClassName()
Class name.java.lang.String
getClassSuffix()
java.lang.String
getEventName()
Event name.java.util.List<FieldMetaData>
getFields()
java.util.List<java.lang.String>
getImportClasses()
java.util.List<java.lang.String>
getInterfaces()
java.util.List<ListMetaData>
getLists()
java.lang.String
getName()
java.lang.String
getPackageName()
boolean
isConnectionModel()
true
if is a connection model.void
setClassSuffix(java.lang.String classSuffix)
void
setName(java.lang.String name)
void
setPackageName(java.lang.String packageName)
-
-
-
Constructor Detail
-
ModelMetaData
public ModelMetaData()
Default constructor.
-
ModelMetaData
public ModelMetaData(java.lang.String name, java.lang.String packageName, java.lang.String classSuffix, java.lang.String[] imports, java.lang.String[] interfaces, FieldMetaData[] fields, ListMetaData[] lists)
Convenience constructor.- Parameters:
name
- Name.packageName
- Package name.classSuffix
- Class suffix.imports
- Imports.interfaces
- Interfaces.fields
- Fields.lists
- Lists.
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Class name.- Returns:
- Class name.
-
getEventName
public java.lang.String getEventName()
Event name.- Returns:
- Event name.
-
isConnectionModel
public boolean isConnectionModel()
true
if is a connection model.- Returns:
- Indicating if a connection model.
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getPackageName
public java.lang.String getPackageName()
-
setPackageName
public void setPackageName(java.lang.String packageName)
-
getImportClasses
public java.util.List<java.lang.String> getImportClasses()
-
addImportClass
public void addImportClass(java.lang.String importClass)
-
getClassSuffix
public java.lang.String getClassSuffix()
-
setClassSuffix
public void setClassSuffix(java.lang.String classSuffix)
-
getInterfaces
public java.util.List<java.lang.String> getInterfaces()
-
addInterface
public void addInterface(java.lang.String interfaceName)
-
getFields
public java.util.List<FieldMetaData> getFields()
-
addField
public void addField(FieldMetaData field)
-
getLists
public java.util.List<ListMetaData> getLists()
-
addList
public void addList(ListMetaData list)
-
-