Package cruise.umple.compiler
Class PapyrusGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.PapyrusGenerator
- All Implemented Interfaces:
CodeGenerator
public class PapyrusGenerator extends CodeGeneratorWithSubptions
-
Constructor Summary
Constructors Constructor Description PapyrusGenerator()
-
Method Summary
Modifier and Type Method Description void
delete()
void
generate()
this function examines the contents of the Umple code file and translates these into XML that Papyrus can understand.java.lang.String
getClassName()
java.lang.String
getDiagramID()
UmpleModel
getModel()
Contains various aspects from an Umple file (.ump), such as classes, attributes, associations and methods.java.lang.String
getOutput()
java.lang.String
getRegionID()
java.lang.String
getSmID()
java.lang.String
getSmName()
boolean
setClassName(java.lang.String aClassName)
boolean
setDiagramID(java.lang.String aDiagramID)
boolean
setModel(UmpleModel aModel)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setOutput(java.lang.String aOutput)
Allows independent code generation tools Different generators will do different things regarding where the files are put, etc.boolean
setRegionID(java.lang.String aRegionID)
boolean
setSmID(java.lang.String aSmID)
boolean
setSmName(java.lang.String aSmName)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, postpare, prepare, removeSuboption, setSuboption
-
Constructor Details
-
PapyrusGenerator
public PapyrusGenerator()
-
-
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
-
setOutput
public boolean setOutput(java.lang.String aOutput)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:
setOutput
in interfaceCodeGenerator
- Overrides:
setOutput
in classCodeGeneratorWithSubptions
-
setSmName
public boolean setSmName(java.lang.String aSmName) -
setClassName
public boolean setClassName(java.lang.String aClassName) -
setDiagramID
public boolean setDiagramID(java.lang.String aDiagramID) -
setSmID
public boolean setSmID(java.lang.String aSmID) -
setRegionID
public boolean setRegionID(java.lang.String aRegionID) -
getModel
Contains various aspects from an Umple file (.ump), such as classes, attributes, associations and methods. Generated output is based off of what's contained in here. -
getOutput
public java.lang.String getOutput() -
getSmName
public java.lang.String getSmName() -
getClassName
public java.lang.String getClassName() -
getDiagramID
public java.lang.String getDiagramID() -
getSmID
public java.lang.String getSmID() -
getRegionID
public java.lang.String getRegionID() -
delete
public void delete()- Overrides:
delete
in classCodeGeneratorWithSubptions
-
generate
public void generate()this function examines the contents of the Umple code file and translates these into XML that Papyrus can understand. It repeatedly adds these strings to 'code' a massive StringBuilder instance, rather then straight into a file.- Specified by:
generate
in interfaceCodeGenerator
- Overrides:
generate
in classCodeGeneratorWithSubptions
-
toString
public java.lang.String toString()- Overrides:
toString
in classCodeGeneratorWithSubptions
-