Package net.officefloor.model.generate
Class ModelGenerator
- java.lang.Object
-
- net.officefloor.model.generate.ModelGenerator
-
public class ModelGenerator extends java.lang.ObjectGenerates the Model.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ModelGenerator(ModelMetaData metaData, GraphNodeMetaData graphNode)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelFilegenerateModel(ModelContext context)Generates the Model.voidremoveConnectionMethod()Remove connection method.
-
-
-
Constructor Detail
-
ModelGenerator
public ModelGenerator(ModelMetaData metaData, GraphNodeMetaData graphNode)
Initiate.- Parameters:
metaData- Meta-data of the Model.graphNode-GraphNodeMetaDatafor creating the Model.
-
-
Method Detail
-
generateModel
public ModelFile generateModel(ModelContext context) throws java.lang.Exception
Generates the Model.- Parameters:
context- Context to create the Model.- Returns:
ModelFilefor the Model.- Throws:
java.lang.Exception- If fail.
-
removeConnectionMethod
public void removeConnectionMethod() throws java.lang.ExceptionRemove connection method.- Throws:
java.lang.Exception- If fails to create the remove connectionMethod.
-
-