Package cruise.umple.compiler
Class VioletGenerator
java.lang.Object
cruise.umple.compiler.VioletGenerator
- All Implemented Interfaces:
CodeGenerator
public class VioletGenerator extends java.lang.Object implements CodeGenerator
-
Constructor Summary
Constructors Constructor Description VioletGenerator()
-
Method Summary
Modifier and Type Method Description boolean
addOrMoveVioletAssociationAt(VioletAssociation aVioletAssociation, int index)
boolean
addOrMoveVioletClassAt(VioletClass aVioletClass, int index)
boolean
addVioletAssociation(VioletAssociation aVioletAssociation)
boolean
addVioletAssociationAt(VioletAssociation aVioletAssociation, int index)
boolean
addVioletClass(VioletClass aVioletClass)
boolean
addVioletClassAt(VioletClass aVioletClass, int index)
void
delete()
void
draw(UmpleModel model)
void
generate()
java.lang.String
getFilename()
UmpleModel
getModel()
double
getSuboptionValue(java.lang.String subopt, java.lang.Double defaultVal)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.VioletAssociation
getVioletAssociation(int index)
java.util.List<VioletAssociation>
getVioletAssociations()
VioletClass
getVioletClass(int index)
java.util.List<VioletClass>
getVioletClasses()
boolean
hasSuboption(java.lang.String subopt)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
hasVioletAssociations()
boolean
hasVioletClasses()
int
indexOfVioletAssociation(VioletAssociation aVioletAssociation)
int
indexOfVioletClass(VioletClass aVioletClass)
static int
minimumNumberOfVioletAssociations()
static int
minimumNumberOfVioletClasses()
VioletAssociation
newAssociation(java.lang.String startLabel, java.lang.String endLabel, VioletClass startClass, VioletClass endClass)
VioletClass
newClass(java.lang.String name)
int
numberOfVioletAssociations()
int
numberOfVioletClasses()
void
postpare()
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.void
prepare()
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
removeVioletAssociation(VioletAssociation aVioletAssociation)
boolean
removeVioletClass(VioletClass aVioletClass)
boolean
setFilename(java.lang.String aFilename)
boolean
setModel(UmpleModel aModel)
boolean
setOutput(java.lang.String aString)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setSuboption(java.lang.String subopt)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.java.lang.String
toString()
java.lang.String
toXml()
-
Constructor Details
-
VioletGenerator
public VioletGenerator()
-
-
Method Details
-
setFilename
public boolean setFilename(java.lang.String aFilename) -
setModel
- Specified by:
setModel
in interfaceCodeGenerator
-
getFilename
public java.lang.String getFilename() -
getModel
-
getVioletClass
-
getVioletClasses
-
numberOfVioletClasses
public int numberOfVioletClasses() -
hasVioletClasses
public boolean hasVioletClasses() -
indexOfVioletClass
-
getVioletAssociation
-
getVioletAssociations
-
numberOfVioletAssociations
public int numberOfVioletAssociations() -
hasVioletAssociations
public boolean hasVioletAssociations() -
indexOfVioletAssociation
-
minimumNumberOfVioletClasses
public static int minimumNumberOfVioletClasses() -
addVioletClass
-
removeVioletClass
-
addVioletClassAt
-
addOrMoveVioletClassAt
-
minimumNumberOfVioletAssociations
public static int minimumNumberOfVioletAssociations() -
addVioletAssociation
-
removeVioletAssociation
-
addVioletAssociationAt
-
addOrMoveVioletAssociationAt
-
delete
public void delete() -
generate
public void generate()- Specified by:
generate
in interfaceCodeGenerator
-
newClass
-
newAssociation
public VioletAssociation newAssociation(java.lang.String startLabel, java.lang.String endLabel, VioletClass startClass, VioletClass endClass) -
draw
-
toXml
public java.lang.String toXml() -
setOutput
public boolean setOutput(java.lang.String aString)Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setOutput
in interfaceCodeGenerator
-
setSuboption
public boolean setSuboption(java.lang.String subopt)Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setSuboption
in interfaceCodeGenerator
-
hasSuboption
public boolean hasSuboption(java.lang.String subopt)Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
hasSuboption
in interfaceCodeGenerator
-
getSuboptionValue
public double getSuboptionValue(java.lang.String subopt, java.lang.Double defaultVal)Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
getSuboptionValue
in interfaceCodeGenerator
-
prepare
public void prepare()Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
prepare
in interfaceCodeGenerator
-
postpare
public void postpare()Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
postpare
in interfaceCodeGenerator
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-