Package cruise.umple.compiler
Class GvEntityRelationshipDiagramGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.SuperGvGenerator
cruise.umple.compiler.GvEntityRelationshipDiagramGenerator
- All Implemented Interfaces:
CodeGenerator
public class GvEntityRelationshipDiagramGenerator extends SuperGvGenerator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GvEntityRelationshipDiagramGenerator()
-
Method Summary
Modifier and Type Method Description protected void
associationCreation(UmpleClass uClass, Association uAssoc, java.lang.StringBuilder associations, java.lang.String className)
Create the associations in the ER diagram - called VisitClass in SuperGvGeneratorprotected void
classCreation(UmpleClass uClass, java.lang.StringBuilder code)
Create each class (entity) - called VisitClass in SuperGvGeneratorprotected void
createInterfacesAndTheirHirerarchy(UmpleInterface inInterface, java.lang.StringBuilder code)
This is used to generate interfaces and their hierarchies.void
delete()
protected java.lang.String
generatorType()
Returns what is being generated - called SuperGvGeneratorprotected void
parentClassAssoc(java.lang.StringBuilder code, java.lang.String className, java.lang.String parentName)
Create the association between an entity and its parent - called VisitClass in SuperGvGeneratorMethods inherited from class cruise.umple.compiler.SuperGvGenerator
_graphStart, appendTooltipComment, generate, getModel, getOutput, graphStart, interfaceCreation, labelAssociation, retArrows, setModel, setOutput, terminateCode, toString, twoLabelAssociation, visitClass, writeModel
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, postpare, prepare, removeSuboption, setSuboption
-
Constructor Details
-
GvEntityRelationshipDiagramGenerator
public GvEntityRelationshipDiagramGenerator()
-
-
Method Details
-
delete
public void delete()- Overrides:
delete
in classSuperGvGenerator
-
generatorType
protected java.lang.String generatorType()Returns what is being generated - called SuperGvGenerator- Specified by:
generatorType
in classSuperGvGenerator
-
parentClassAssoc
protected void parentClassAssoc(java.lang.StringBuilder code, java.lang.String className, java.lang.String parentName)Create the association between an entity and its parent - called VisitClass in SuperGvGenerator- Specified by:
parentClassAssoc
in classSuperGvGenerator
-
classCreation
Create each class (entity) - called VisitClass in SuperGvGenerator- Specified by:
classCreation
in classSuperGvGenerator
-
associationCreation
protected void associationCreation(UmpleClass uClass, Association uAssoc, java.lang.StringBuilder associations, java.lang.String className)Create the associations in the ER diagram - called VisitClass in SuperGvGenerator- Specified by:
associationCreation
in classSuperGvGenerator
-
createInterfacesAndTheirHirerarchy
protected void createInterfacesAndTheirHirerarchy(UmpleInterface inInterface, java.lang.StringBuilder code)This is used to generate interfaces and their hierarchies. This was implemented for Graphviz but not sure about this generator. TODO This must be investigated.- Specified by:
createInterfacesAndTheirHirerarchy
in classSuperGvGenerator
-