Package cruise.umple.compiler
Class GvFeatureDiagramGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.GvFeatureDiagramGenerator
- All Implemented Interfaces:
CodeGenerator
public class GvFeatureDiagramGenerator extends CodeGeneratorWithSubptions
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GvFeatureDiagramGenerator()
-
Method Summary
Modifier and Type Method Description java.lang.StringBuilder
_graphStart(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
java.lang.StringBuilder
_nofeatureDiagram(java.lang.Integer numSpaces, java.lang.StringBuilder sb)
java.lang.String
configurationStatus()
void
delete()
void
fillColorOfFeatureNode(java.lang.StringBuilder code, FeatureNode featureNode, int indentLevel)
This method fills the background color of a featureLeaf if it is used.void
generate()
This overrides the superclass's method.void
generateFeatureNodeShape(FeatureLink featureLink, java.lang.StringBuilder code)
protected java.lang.String
generatorType()
FeatureModel
getFeatureModel()
java.util.Set<java.lang.String>
getFeatureSet()
static java.lang.String
getGvMultiplicityShape(java.lang.String minMax)
static java.lang.String
getGvNodeShape(FeatureLink.FeatureConnectingOpType featureConnectingOpType, java.lang.String nodeName)
static java.lang.String
getGvTargetShape(FeatureLink.FeatureConnectingOpType featureConnectingOpType, boolean isSub)
UmpleModel
getModel()
java.lang.String
graphStart()
java.lang.String
nofeatureDiagram()
boolean
setFeatureModel(FeatureModel aFeatureModel)
boolean
setFeatureSet(java.util.Set<java.lang.String> aFeatureSet)
boolean
setModel(UmpleModel aModel)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.protected void
terminateCode(java.lang.StringBuilder code)
java.lang.String
toString()
protected void
writeModel()
Output the graphviz file to a file with the .gv suffix copied from "Generator_SuperGvGenerator.ump"Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, postpare, prepare, removeSuboption, setOutput, setSuboption
-
Field Details
-
NL
public static final java.lang.String NL -
TEXT_0
public static final java.lang.String TEXT_0- See Also:
- Constant Field Values
-
TEXT_1
public static final java.lang.String TEXT_1 -
TEXT_2
public static final java.lang.String TEXT_2
-
-
Constructor Details
-
GvFeatureDiagramGenerator
public GvFeatureDiagramGenerator()
-
-
Method Details
-
setModel
Description copied from class:CodeGeneratorWithSubptions
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setModel
in interfaceCodeGenerator
- Overrides:
setModel
in classCodeGeneratorWithSubptions
-
setFeatureSet
public boolean setFeatureSet(java.util.Set<java.lang.String> aFeatureSet) -
setFeatureModel
-
getModel
-
getFeatureSet
public java.util.Set<java.lang.String> getFeatureSet() -
getFeatureModel
-
delete
public void delete()- Overrides:
delete
in classCodeGeneratorWithSubptions
-
generateFeatureNodeShape
-
generate
public void generate()This overrides the superclass's method.- Specified by:
generate
in interfaceCodeGenerator
- Overrides:
generate
in classCodeGeneratorWithSubptions
-
getGvTargetShape
public static java.lang.String getGvTargetShape(FeatureLink.FeatureConnectingOpType featureConnectingOpType, boolean isSub) -
getGvMultiplicityShape
public static java.lang.String getGvMultiplicityShape(java.lang.String minMax) -
getGvNodeShape
public static java.lang.String getGvNodeShape(FeatureLink.FeatureConnectingOpType featureConnectingOpType, java.lang.String nodeName) -
fillColorOfFeatureNode
public void fillColorOfFeatureNode(java.lang.StringBuilder code, FeatureNode featureNode, int indentLevel)This method fills the background color of a featureLeaf if it is used. -
configurationStatus
public java.lang.String configurationStatus() -
terminateCode
protected void terminateCode(java.lang.StringBuilder code) -
generatorType
protected java.lang.String generatorType() -
writeModel
protected void writeModel()Output the graphviz file to a file with the .gv suffix copied from "Generator_SuperGvGenerator.ump" -
_graphStart
public java.lang.StringBuilder _graphStart(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
graphStart
public java.lang.String graphStart() -
_nofeatureDiagram
public java.lang.StringBuilder _nofeatureDiagram(java.lang.Integer numSpaces, java.lang.StringBuilder sb) -
nofeatureDiagram
public java.lang.String nofeatureDiagram() -
toString
public java.lang.String toString()- Overrides:
toString
in classCodeGeneratorWithSubptions
-