Package cruise.umple.compiler
Class GvClassDiagramGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.SuperGvGenerator
cruise.umple.compiler.GvClassDiagramGenerator
- All Implemented Interfaces:
CodeGenerator
public class GvClassDiagramGenerator extends SuperGvGenerator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GvClassDiagramGenerator()
-
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 class diagram - called VisitClass in SuperGvGeneratorprotected void
classCreation(UmpleClass uClass, java.lang.StringBuilder code)
Create each class - called VisitClass in SuperGvGeneratorprotected void
createInterfaceHierarchyAssociations(UmpleInterface inInterface, java.lang.StringBuilder code)
This creates tags which are necessary to show hierarchies.protected void
createInterfacesAndTheirHirerarchy(UmpleInterface inInterface, java.lang.StringBuilder code)
This overrides a method used for generating the necessary tags for interfaces and also their hierarchies.void
delete()
protected java.lang.String
generatorType()
Returns what is being generated - called SuperGvGeneratorprotected void
interfaceCreation(UmpleClass uClass, java.lang.StringBuilder code)
Create each interface for each class - called by classCreationprotected void
parentClassAssoc(java.lang.StringBuilder code, java.lang.String className, java.lang.String parentName)
Create the association between a class and its parent - called VisitClass in SuperGvGeneratorMethods inherited from class cruise.umple.compiler.SuperGvGenerator
_graphStart, appendTooltipComment, generate, getModel, getOutput, graphStart, 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
-
GvClassDiagramGenerator
public GvClassDiagramGenerator()
-
-
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 a class and its parent - called VisitClass in SuperGvGenerator- Specified by:
parentClassAssoc
in classSuperGvGenerator
-
classCreation
Create each class - called VisitClass in SuperGvGenerator- Specified by:
classCreation
in classSuperGvGenerator
-
interfaceCreation
Create each interface for each class - called by classCreation- Overrides:
interfaceCreation
in classSuperGvGenerator
-
associationCreation
protected void associationCreation(UmpleClass uClass, Association uAssoc, java.lang.StringBuilder associations, java.lang.String className)Create the associations in the class diagram - called VisitClass in SuperGvGenerator- Specified by:
associationCreation
in classSuperGvGenerator
-
createInterfacesAndTheirHirerarchy
protected void createInterfacesAndTheirHirerarchy(UmpleInterface inInterface, java.lang.StringBuilder code)This overrides a method used for generating the necessary tags for interfaces and also their hierarchies.- Specified by:
createInterfacesAndTheirHirerarchy
in classSuperGvGenerator
-
createInterfaceHierarchyAssociations
protected void createInterfaceHierarchyAssociations(UmpleInterface inInterface, java.lang.StringBuilder code)This creates tags which are necessary to show hierarchies.
-