Package cruise.umple.compiler
Class CodeGeneratorWithSubptions
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
- All Implemented Interfaces:
CodeGenerator
- Direct Known Subclasses:
AlloyGenerator
,CodeAnalysisGenerator
,EcoreGenerator
,EventSequenceGenerator
,ExternalGrammarGenerator
,GvFeatureDiagramGenerator
,GvStateDiagramGenerator
,JsonGenerator
,JsonMixedGenerator
,NothingGenerator
,NuSMVGenerator
,NuSMVOptimizerGenerator
,PapyrusGenerator
,RTCppGenerator
,ScxmlGenerator
,SimpleMetricsGenerator
,SimulateGenerator
,StateTablesGenerator
,StructureDiagramGenerator
,SuperCodeGenerator
,SuperGvGenerator
,TestGenerator
,TextUmlGenerator
,UmpleAnnotaiveToCompositionGenerator
,UmpleSelfGenerator
,USEGenerator
,XmiGenerator
,XtextGenerator
,YumlGenerator
public class CodeGeneratorWithSubptions extends java.lang.Object implements CodeGenerator
Default implementation for generators with suboptions
-
Constructor Summary
Constructors Constructor Description CodeGeneratorWithSubptions()
-
Method Summary
Modifier and Type Method Description boolean
addSuboption(java.lang.String aSuboption)
void
delete()
void
generate()
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.java.lang.String
getSuboption(int index)
java.lang.String[]
getSuboptions()
double
getSuboptionValue(java.lang.String subopt, java.lang.Double defaultVal)
this is used to get the separator value after the = for suboptions and can be used for any otherboolean
hasSuboption(java.lang.String subopt)
boolean
hasSuboptions()
int
indexOfSuboption(java.lang.String aSuboption)
int
numberOfSuboptions()
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
removeSuboption(java.lang.String aSuboption)
boolean
setModel(UmpleModel aUmpleModel)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.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)
java.lang.String
toString()
-
Constructor Details
-
CodeGeneratorWithSubptions
public CodeGeneratorWithSubptions()
-
-
Method Details
-
addSuboption
public boolean addSuboption(java.lang.String aSuboption) -
removeSuboption
public boolean removeSuboption(java.lang.String aSuboption) -
getSuboption
public java.lang.String getSuboption(int index) -
getSuboptions
public java.lang.String[] getSuboptions() -
numberOfSuboptions
public int numberOfSuboptions() -
hasSuboptions
public boolean hasSuboptions() -
indexOfSuboption
public int indexOfSuboption(java.lang.String aSuboption) -
delete
public void delete() -
hasSuboption
public boolean hasSuboption(java.lang.String subopt)- Specified by:
hasSuboption
in interfaceCodeGenerator
-
setSuboption
public boolean setSuboption(java.lang.String subopt)- Specified by:
setSuboption
in interfaceCodeGenerator
-
getSuboptionValue
public double getSuboptionValue(java.lang.String subopt, java.lang.Double defaultVal)this is used to get the separator value after the = for suboptions and can be used for any other- Specified by:
getSuboptionValue
in interfaceCodeGenerator
-
setModel
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
setModel
in interfaceCodeGenerator
-
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
-
generate
public void generate()Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.- Specified by:
generate
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
-