Package cruise.umple.compiler
Class UmpleModel
java.lang.Object
cruise.umple.compiler.UmpleModel
- All Implemented Interfaces:
java.lang.Runnable
public class UmpleModel
extends java.lang.Object
implements java.lang.Runnable
Class UmpleModel is the central class describing the system being compiled.
The model contains everything that was derived from an Umple file (.ump) when it was parsed such as
the classes, attributes, associations, state machines, methods, etc that were in it.
Put another way, when an Umple file (.ump) is parsed an Umple model is populated with everything that was parsed from that file.
Because of this it is absolutely critical to understand the model since it is basically the "root" of everything.
The Umple Traits contained within the model.
The State Machines contained within the model.
In Umple_Code.ump: Methods for manipulating the Model
Fragment source file: Umple_Code.ump
Line : 360
Fragment source file: Umple_Code.ump
Line : 212
Fragment source file: Umple_Code.ump
Line : 562
Fragment source file: Umple_Code.ump
Line : 571
---------------------------------------------------------------------------------------------
------------------------------------class start----------------------------------------------
---------------------------------------------------------------------------------------------
Copyright: All contributers to the Umple Project
This file is made available subject to the open source license found at:
http://umple.org/license
Mixset meta-model
Copyright: All contributers to the Umple Project
This file is made available subject to the open source license found at:
http://umple.org/license
Feature diagram meta-model
A FeatureDiagram stores information required to build a feature diagram in Umple
NEW CLASS****************************************
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
validLanguages
static java.lang.String
VERSION_NUMBER
-
Constructor Summary
Constructors Constructor Description UmpleModel(UmpleFile aUmpleFile)
UmpleModel(UmpleFile umpleFile, java.util.List<java.io.File> linkedFiles)
-
Method Summary
Modifier and Type Method Description boolean
addAssociation(Association aAssociation)
boolean
addAssociationAt(Association aAssociation, int index)
AssociationClass
addAssociationClass(java.lang.String className)
boolean
addAvailableSuboption(java.lang.String aAvailableSuboption)
boolean
addEnum(UmpleEnumeration aEnum)
boolean
addEnumAt(UmpleEnumeration aEnum, int index)
boolean
addExtraCode(CodeBlock aExtraCode)
boolean
addFilter(Filter aFilter)
boolean
addFilterAt(Filter aFilter, int index)
boolean
addGenerate(GenerateTarget aGenerate)
void
addGenerate(java.lang.String lang)
void
addGenerate(java.util.Collection<? extends GenerateTarget> c)
boolean
addMixsetOrFile(MixsetOrFile aMixsetOrFile)
boolean
addMixsetOrFileAt(MixsetOrFile aMixsetOrFile, int index)
boolean
addOrMoveAssociationAt(Association aAssociation, int index)
boolean
addOrMoveEnumAt(UmpleEnumeration aEnum, int index)
boolean
addOrMoveFilterAt(Filter aFilter, int index)
boolean
addOrMoveMixsetOrFileAt(MixsetOrFile aMixsetOrFile, int index)
boolean
addOrMoveStateMachineDefinitionAt(StateMachine aStateMachineDefinition, int index)
boolean
addOrMoveUmpleClassAt(UmpleClass aUmpleClass, int index)
boolean
addOrMoveUmpleInterfaceAt(UmpleInterface aUmpleInterface, int index)
boolean
addOrMoveUmpleTraitAt(UmpleTrait aUmpleTrait, int index)
boolean
addStateMachineDefinition(StateMachine aStateMachineDefinition)
boolean
addStateMachineDefinitionAt(StateMachine aStateMachineDefinition, int index)
boolean
addUmpleClass(UmpleClass aUmpleClass)
UmpleClass
addUmpleClass(java.lang.String name)
boolean
addUmpleClassAt(UmpleClass aUmpleClass, int index)
boolean
addUmpleInterface(UmpleInterface aUmpleInterface)
UmpleInterface
addUmpleInterface(java.lang.String name)
boolean
addUmpleInterfaceAt(UmpleInterface aUmpleInterface, int index)
boolean
addUmpleTrait(UmpleTrait aUmpleTrait)
UmpleTrait
addUmpleTrait(java.lang.String name)
boolean
addUmpleTraitAt(UmpleTrait aUmpleTrait, int index)
void
applyFilter(java.lang.String fname)
protected void
clear_umpleClasses()
void
clearGenerates()
void
delete()
void
extractAnalyzersFromParser(RuleBasedParser parser)
Extracts Analyzers from aRuleBasedParser
, assigning the analyzers to this modelstatic java.lang.String[]
findValidLanguages()
java.lang.String
generate()
Generates the actual code for each generation targetjava.util.Map<java.lang.String,Requirement>
getAllRequirements()
java.util.Map<java.lang.String,CodeTranslator>
getAllTranslators()
Analyzer
getAnalyzer(java.lang.String name)
java.util.Map<java.lang.String,Analyzer>
getAnalyzers()
Association
getAssociation(int index)
Association
getAssociation(java.lang.String name)
java.util.List<Association>
getAssociations()
The Associations contained within the model.java.lang.String
getAvailableSuboption(int index)
java.lang.String[]
getAvailableSuboptions()
java.lang.String
getCode()
boolean
getDebugMode()
Coordinate[]
getDefaultAssociationPosition(Association a)
Coordinate
getDefaultClassPosition(int numDefaults)
java.lang.String
getDefaultGenerate()
java.lang.String
getDefaultGeneratePath()
Coordinate
getDefaultInterfacePosition(int numDefaults)
java.lang.String
getDefaultNamespace()
java.lang.String
getDefaultPackage()
boolean
getDistributed()
boolean
getDistributeForced()
boolean
getDistributeOn()
Variables used for distributed code controlint
getDistributePattern()
java.lang.String
getDistributeTechnology()
UmpleEnumeration
getEnum(int index)
java.util.List<UmpleEnumeration>
getEnums()
The Umple Enumerations contained within the modelCodeBlock
getExtraCode(int index)
CodeBlock[]
getExtraCodes()
FeatureModel
getFeatureModel()
Filter
getFilter(int index)
Filter
getFilter(java.lang.String name)
java.util.List<Filter>
getFilters()
Right now, a model can only have 1 diagramGenerateTarget
getGenerate(int index)
boolean
getGenerateConsole()
Whether tracer output should be generated if needed These are set to false when tracer classes are created by generatorsjava.util.Map<java.lang.String,java.lang.String>
getGeneratedCode()
boolean
getGenerateFile()
boolean
getGenerateLog4j()
GenerateTarget[]
getGenerates()
boolean
getGenerateString()
Glossary
getGlossary()
java.util.Map<java.lang.String,java.lang.String>
getHashMap()
ParseResult
getLastResult()
UmpleClass
getMainClass()
Mixset
getMixset(java.lang.String name)
This method returns a mixset from UmpleModel based on its name.MixsetOrFile
getMixsetOrFile(int index)
java.util.List<MixsetOrFile>
getMixsetOrFiles()
This mixin adds the complete set of Mixsets and files to the model.double
getParsingTime()
ParsingTime represents Parsing end time gTime1 represents code generation start time gTime2 represents code generation end timeboolean
getShouldGenerate()
boolean
getSkipcompile()
Variables used to advise not to bother trying to compile various language because the code doesn't contain coherent or complete code.boolean
getSkipcppcompile()
boolean
getSkipjavacompile()
boolean
getSkipphpcompile()
boolean
getSkippythoncompile()
boolean
getSkiprubycompile()
StateMachine
getStateMachineDefinition(int index)
StateMachine
getStateMachineDefinition(java.lang.String name)
java.util.List<StateMachine>
getStateMachineDefinitions()
TracerDirective
getTracer()
java.lang.String
getTraceType()
UmpleClass
getUmpleClass(int index)
UmpleClass
getUmpleClass(java.lang.String name)
java.util.List<UmpleClass>
getUmpleClasses()
The Umple Classes contained within the model.java.util.List<UmpleElement>
getUmpleElements()
UmpleFile
getUmpleFile()
The Umple file (.ump) that was used to populate the model.UmpleFile
getUmpleFile(java.lang.String name)
This method returns UmpleFile from UmpleModel based on its name.UmpleInterface
getUmpleInterface(int index)
UmpleInterface
getUmpleInterface(java.lang.String name)
java.util.List<UmpleInterface>
getUmpleInterfaces()
The Umple interfaces contained within the model.UmpleTrait
getUmpleTrait(int index)
UmpleTrait
getUmpleTrait(java.lang.String name)
java.util.List<UmpleTrait>
getUmpleTraits()
boolean
getUmpleTraitTypeParameter(java.lang.String value)
boolean
hasAnalyzer(java.lang.String name)
boolean
hasAssociations()
boolean
hasAvailableSuboptions()
boolean
hasEnum(java.lang.String enumName)
Issue 1008 - Helper function to determine if the Umple Model has a particular enumerationboolean
hasEnums()
boolean
hasExtraCodes()
boolean
hasFeatureModel()
boolean
hasFilters()
boolean
hasGenerates()
boolean
hasMixsetOrFiles()
boolean
hasStateMachineDefinitions()
boolean
hasUmpleClasses()
boolean
hasUmpleInterfaces()
boolean
hasUmpleTraits()
int
indexOfAssociation(Association aAssociation)
int
indexOfAvailableSuboption(java.lang.String aAvailableSuboption)
int
indexOfEnum(UmpleEnumeration aEnum)
int
indexOfExtraCode(CodeBlock aExtraCode)
int
indexOfFilter(Filter aFilter)
int
indexOfGenerate(GenerateTarget aGenerate)
int
indexOfMixsetOrFile(MixsetOrFile aMixsetOrFile)
int
indexOfStateMachineDefinition(StateMachine aStateMachineDefinition)
int
indexOfUmpleClass(UmpleClass aUmpleClass)
int
indexOfUmpleInterface(UmpleInterface aUmpleInterface)
int
indexOfUmpleTrait(UmpleTrait aUmpleTrait)
boolean
isDebugMode()
boolean
isDistributed()
boolean
isDistributeForced()
boolean
isDistributeOn()
boolean
isGenerateConsole()
boolean
isGenerateFile()
boolean
isGenerateLog4j()
boolean
isGenerateString()
boolean
isShouldGenerate()
boolean
isSkipcompile()
boolean
isSkipcppcompile()
boolean
isSkipjavacompile()
boolean
isSkipphpcompile()
boolean
isSkippythoncompile()
boolean
isSkiprubycompile()
static int
minimumNumberOfAssociations()
static int
minimumNumberOfEnums()
static int
minimumNumberOfFilters()
static int
minimumNumberOfMixsetOrFiles()
static int
minimumNumberOfStateMachineDefinitions()
static int
minimumNumberOfUmpleClasses()
static int
minimumNumberOfUmpleInterfaces()
static int
minimumNumberOfUmpleTraits()
boolean
modelHasSuboption(java.lang.String lang, java.lang.String subOption)
this function return true if a model is of a particular language that contains specified suboptionCodeGenerator
newGenerator(java.lang.String language)
Creates a generator for you based on the provided Languageint
numberOfAssociations()
int
numberOfAvailableSuboptions()
int
numberOfEnums()
int
numberOfExtraCodes()
int
numberOfFilters()
int
numberOfGenerates()
int
numberOfMixsetOrFiles()
int
numberOfStateMachineDefinitions()
int
numberOfUmpleClasses()
int
numberOfUmpleInterfaces()
int
numberOfUmpleTraits()
boolean
removeAssociation(Association aAssociation)
boolean
removeAvailableSuboption(java.lang.String aAvailableSuboption)
boolean
removeEnum(UmpleEnumeration aEnum)
boolean
removeExtraCode(CodeBlock aExtraCode)
boolean
removeFilter(Filter aFilter)
boolean
removeGenerate(GenerateTarget aGenerate)
boolean
removeMixsetOrFile(MixsetOrFile aMixsetOrFile)
boolean
removeStateMachineDefinition(StateMachine aStateMachineDefinition)
boolean
removeUmpleClass(UmpleClass aUmpleClass)
boolean
removeUmpleInterface(UmpleInterface aUmpleInterface)
boolean
removeUmpleTrait(UmpleTrait aUmpleTrait)
void
run()
Creates a new parser, loads the input, parses, then analyses; analyser generatesboolean
setAllRequirements(java.util.Map<java.lang.String,Requirement> aAllRequirements)
boolean
setAnalyzers(java.util.Map<java.lang.String,Analyzer> aAnalyzers)
boolean
setCode(java.lang.String aCode)
boolean
setDebugMode(boolean aDebugMode)
boolean
setDefaultNamespace(java.lang.String aDefaultNamespace)
boolean
setDefaultPackage(java.lang.String aDefaultPackage)
boolean
setDistributed(boolean aDistributed)
boolean
setDistributeForced(boolean aDistributeForced)
boolean
setDistributeOn(boolean aDistributeOn)
boolean
setDistributePattern(int aDistributePattern)
boolean
setDistributeTechnology(java.lang.String aDistributeTechnology)
boolean
setFeatureModel(FeatureModel aNewFeatureModel)
boolean
setGenerateConsole(boolean aGenerateConsole)
boolean
setGeneratedCode(java.util.Map<java.lang.String,java.lang.String> aGeneratedCode)
boolean
setGenerateFile(boolean aGenerateFile)
boolean
setGenerateLog4j(boolean aGenerateLog4j)
boolean
setGenerateString(boolean aGenerateString)
boolean
setGlossary(Glossary aGlossary)
boolean
setHashMap(java.util.Map<java.lang.String,java.lang.String> aHashMap)
boolean
setLastResult(ParseResult aLastResult)
boolean
setMainClass(UmpleClass aMainClass)
boolean
setParsingTime(double aParsingTime)
boolean
setShouldGenerate(boolean aShouldGenerate)
boolean
setSkipcompile(boolean aSkipcompile)
boolean
setSkipcppcompile(boolean aSkipcppcompile)
boolean
setSkipjavacompile(boolean aSkipjavacompile)
boolean
setSkipphpcompile(boolean aSkipphpcompile)
boolean
setSkippythoncompile(boolean aSkippythoncompile)
boolean
setSkiprubycompile(boolean aSkiprubycompile)
boolean
setTracer(TracerDirective aTracer)
boolean
setUmpleFile(UmpleFile aUmpleFile)
java.lang.String
toString()
-
Field Details
-
VERSION_NUMBER
public static final java.lang.String VERSION_NUMBER- See Also:
- Constant Field Values
-
validLanguages
public static final java.lang.String[] validLanguages
-
-
Constructor Details
-
Method Details
-
setUmpleFile
-
setDistributeOn
public boolean setDistributeOn(boolean aDistributeOn) -
setDistributeForced
public boolean setDistributeForced(boolean aDistributeForced) -
setDistributed
public boolean setDistributed(boolean aDistributed) -
setSkipcompile
public boolean setSkipcompile(boolean aSkipcompile) -
setSkipjavacompile
public boolean setSkipjavacompile(boolean aSkipjavacompile) -
setSkippythoncompile
public boolean setSkippythoncompile(boolean aSkippythoncompile) -
setSkipcppcompile
public boolean setSkipcppcompile(boolean aSkipcppcompile) -
setSkiprubycompile
public boolean setSkiprubycompile(boolean aSkiprubycompile) -
setSkipphpcompile
public boolean setSkipphpcompile(boolean aSkipphpcompile) -
setDistributePattern
public boolean setDistributePattern(int aDistributePattern) -
setDistributeTechnology
public boolean setDistributeTechnology(java.lang.String aDistributeTechnology) -
setDefaultPackage
public boolean setDefaultPackage(java.lang.String aDefaultPackage) -
addGenerate
-
removeGenerate
-
setShouldGenerate
public boolean setShouldGenerate(boolean aShouldGenerate) -
setGlossary
-
setDefaultNamespace
public boolean setDefaultNamespace(java.lang.String aDefaultNamespace) -
setCode
public boolean setCode(java.lang.String aCode) -
setMainClass
-
setDebugMode
public boolean setDebugMode(boolean aDebugMode) -
setLastResult
-
setGeneratedCode
public boolean setGeneratedCode(java.util.Map<java.lang.String,java.lang.String> aGeneratedCode) -
setAnalyzers
-
setAllRequirements
-
addExtraCode
-
removeExtraCode
-
setGenerateConsole
public boolean setGenerateConsole(boolean aGenerateConsole) -
setGenerateFile
public boolean setGenerateFile(boolean aGenerateFile) -
setGenerateString
public boolean setGenerateString(boolean aGenerateString) -
setGenerateLog4j
public boolean setGenerateLog4j(boolean aGenerateLog4j) -
addAvailableSuboption
public boolean addAvailableSuboption(java.lang.String aAvailableSuboption) -
removeAvailableSuboption
public boolean removeAvailableSuboption(java.lang.String aAvailableSuboption) -
setParsingTime
public boolean setParsingTime(double aParsingTime) -
setHashMap
public boolean setHashMap(java.util.Map<java.lang.String,java.lang.String> aHashMap) -
setTracer
-
getUmpleFile
The Umple file (.ump) that was used to populate the model. -
getDistributeOn
public boolean getDistributeOn()Variables used for distributed code control -
getDistributeForced
public boolean getDistributeForced() -
getDistributed
public boolean getDistributed() -
getSkipcompile
public boolean getSkipcompile()Variables used to advise not to bother trying to compile various language because the code doesn't contain coherent or complete code. These are set to true when various @@@skip directives are found in comments -
getSkipjavacompile
public boolean getSkipjavacompile() -
getSkippythoncompile
public boolean getSkippythoncompile() -
getSkipcppcompile
public boolean getSkipcppcompile() -
getSkiprubycompile
public boolean getSkiprubycompile() -
getSkipphpcompile
public boolean getSkipphpcompile() -
getDistributePattern
public int getDistributePattern() -
getDistributeTechnology
public java.lang.String getDistributeTechnology() -
getDefaultPackage
public java.lang.String getDefaultPackage() -
getGenerate
-
getGenerates
-
numberOfGenerates
public int numberOfGenerates() -
hasGenerates
public boolean hasGenerates() -
indexOfGenerate
-
getShouldGenerate
public boolean getShouldGenerate() -
getGlossary
-
getDefaultNamespace
public java.lang.String getDefaultNamespace() -
getCode
public java.lang.String getCode() -
getMainClass
-
getDebugMode
public boolean getDebugMode() -
getLastResult
-
getGeneratedCode
public java.util.Map<java.lang.String,java.lang.String> getGeneratedCode() -
getAnalyzers
-
getAllRequirements
-
getExtraCode
-
getExtraCodes
-
numberOfExtraCodes
public int numberOfExtraCodes() -
hasExtraCodes
public boolean hasExtraCodes() -
indexOfExtraCode
-
getGenerateConsole
public boolean getGenerateConsole()Whether tracer output should be generated if needed These are set to false when tracer classes are created by generators -
getGenerateFile
public boolean getGenerateFile() -
getGenerateString
public boolean getGenerateString() -
getGenerateLog4j
public boolean getGenerateLog4j() -
getAvailableSuboption
public java.lang.String getAvailableSuboption(int index) -
getAvailableSuboptions
public java.lang.String[] getAvailableSuboptions() -
numberOfAvailableSuboptions
public int numberOfAvailableSuboptions() -
hasAvailableSuboptions
public boolean hasAvailableSuboptions() -
indexOfAvailableSuboption
public int indexOfAvailableSuboption(java.lang.String aAvailableSuboption) -
getParsingTime
public double getParsingTime()ParsingTime represents Parsing end time gTime1 represents code generation start time gTime2 represents code generation end time -
getHashMap
public java.util.Map<java.lang.String,java.lang.String> getHashMap() -
getTraceType
public java.lang.String getTraceType() -
getTracer
-
isDistributeOn
public boolean isDistributeOn() -
isDistributeForced
public boolean isDistributeForced() -
isDistributed
public boolean isDistributed() -
isSkipcompile
public boolean isSkipcompile() -
isSkipjavacompile
public boolean isSkipjavacompile() -
isSkippythoncompile
public boolean isSkippythoncompile() -
isSkipcppcompile
public boolean isSkipcppcompile() -
isSkiprubycompile
public boolean isSkiprubycompile() -
isSkipphpcompile
public boolean isSkipphpcompile() -
isShouldGenerate
public boolean isShouldGenerate() -
isDebugMode
public boolean isDebugMode() -
isGenerateConsole
public boolean isGenerateConsole() -
isGenerateFile
public boolean isGenerateFile() -
isGenerateString
public boolean isGenerateString() -
isGenerateLog4j
public boolean isGenerateLog4j() -
getEnum
-
getEnums
The Umple Enumerations contained within the model -
numberOfEnums
public int numberOfEnums() -
hasEnums
public boolean hasEnums() -
indexOfEnum
-
getAssociation
-
getAssociations
The Associations contained within the model. -
numberOfAssociations
public int numberOfAssociations() -
hasAssociations
public boolean hasAssociations() -
indexOfAssociation
-
getUmpleClass
-
getUmpleClasses
The Umple Classes contained within the model. -
numberOfUmpleClasses
public int numberOfUmpleClasses() -
hasUmpleClasses
public boolean hasUmpleClasses() -
indexOfUmpleClass
-
clear_umpleClasses
protected void clear_umpleClasses() -
getUmpleTrait
-
getUmpleTraits
-
numberOfUmpleTraits
public int numberOfUmpleTraits() -
hasUmpleTraits
public boolean hasUmpleTraits() -
indexOfUmpleTrait
-
getStateMachineDefinition
-
getStateMachineDefinitions
-
numberOfStateMachineDefinitions
public int numberOfStateMachineDefinitions() -
hasStateMachineDefinitions
public boolean hasStateMachineDefinitions() -
indexOfStateMachineDefinition
-
getUmpleInterface
-
getUmpleInterfaces
The Umple interfaces contained within the model. -
numberOfUmpleInterfaces
public int numberOfUmpleInterfaces() -
hasUmpleInterfaces
public boolean hasUmpleInterfaces() -
indexOfUmpleInterface
-
getMixsetOrFile
-
getMixsetOrFiles
This mixin adds the complete set of Mixsets and files to the model. -
numberOfMixsetOrFiles
public int numberOfMixsetOrFiles() -
hasMixsetOrFiles
public boolean hasMixsetOrFiles() -
indexOfMixsetOrFile
-
getFeatureModel
-
hasFeatureModel
public boolean hasFeatureModel() -
getFilter
-
getFilters
Right now, a model can only have 1 diagram -
numberOfFilters
public int numberOfFilters() -
hasFilters
public boolean hasFilters() -
indexOfFilter
-
minimumNumberOfEnums
public static int minimumNumberOfEnums() -
addEnum
-
removeEnum
-
addEnumAt
-
addOrMoveEnumAt
-
minimumNumberOfAssociations
public static int minimumNumberOfAssociations() -
addAssociation
-
removeAssociation
-
addAssociationAt
-
addOrMoveAssociationAt
-
minimumNumberOfUmpleClasses
public static int minimumNumberOfUmpleClasses() -
addUmpleClass
-
removeUmpleClass
-
addUmpleClassAt
-
addOrMoveUmpleClassAt
-
minimumNumberOfUmpleTraits
public static int minimumNumberOfUmpleTraits() -
addUmpleTrait
-
removeUmpleTrait
-
addUmpleTraitAt
-
addOrMoveUmpleTraitAt
-
minimumNumberOfStateMachineDefinitions
public static int minimumNumberOfStateMachineDefinitions() -
addStateMachineDefinition
-
removeStateMachineDefinition
-
addStateMachineDefinitionAt
-
addOrMoveStateMachineDefinitionAt
-
minimumNumberOfUmpleInterfaces
public static int minimumNumberOfUmpleInterfaces() -
addUmpleInterface
-
removeUmpleInterface
-
addUmpleInterfaceAt
-
addOrMoveUmpleInterfaceAt
-
minimumNumberOfMixsetOrFiles
public static int minimumNumberOfMixsetOrFiles() -
addMixsetOrFile
-
removeMixsetOrFile
-
addMixsetOrFileAt
-
addOrMoveMixsetOrFileAt
-
setFeatureModel
-
minimumNumberOfFilters
public static int minimumNumberOfFilters() -
addFilter
-
removeFilter
-
addFilterAt
-
addOrMoveFilterAt
-
delete
public void delete() -
findValidLanguages
public static java.lang.String[] findValidLanguages() -
getUmpleElements
-
addUmpleInterface
-
addGenerate
public void addGenerate(java.lang.String lang) -
getDefaultGenerate
public java.lang.String getDefaultGenerate() -
getDefaultGeneratePath
public java.lang.String getDefaultGeneratePath() -
clearGenerates
public void clearGenerates() -
hasAnalyzer
public boolean hasAnalyzer(java.lang.String name) -
getAnalyzer
-
run
public void run()Creates a new parser, loads the input, parses, then analyses; analyser generates- Specified by:
run
in interfacejava.lang.Runnable
-
newGenerator
Creates a generator for you based on the provided Language -
generate
public java.lang.String generate()Generates the actual code for each generation target -
extractAnalyzersFromParser
Extracts Analyzers from aRuleBasedParser
, assigning the analyzers to this model- Parameters:
parser
- theRuleBasedParser
to extract parsers from.
-
hasEnum
public boolean hasEnum(java.lang.String enumName)Issue 1008 - Helper function to determine if the Umple Model has a particular enumeration -
modelHasSuboption
public boolean modelHasSuboption(java.lang.String lang, java.lang.String subOption)this function return true if a model is of a particular language that contains specified suboption -
addUmpleClass
-
getUmpleClass
-
getUmpleInterface
-
getAssociation
-
addAssociationClass
-
getDefaultClassPosition
-
getDefaultInterfacePosition
-
getDefaultAssociationPosition
-
getStateMachineDefinition
-
applyFilter
public void applyFilter(java.lang.String fname) -
getFilter
-
getUmpleTrait
-
addUmpleTrait
-
getUmpleTraitTypeParameter
public boolean getUmpleTraitTypeParameter(java.lang.String value) -
getMixset
This method returns a mixset from UmpleModel based on its name. return null if the mixset is not found. -
getUmpleFile
This method returns UmpleFile from UmpleModel based on its name. return null if the mixset is not found. usage: to know if the file in which a mixset is mentioned was already used before. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
addGenerate
-
getAllTranslators
-