|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.transform.AbstractModelTransformer | +--com.ashridgetech.jamda.transform.CodeGenTransformer
A ModelTransformer
which can generate
code files from a UML Model
.
It does not make changes to the Model
.
Must be configured with the directory to which the source code is generated,
as well as the configuration required by AbstractModelTransformer
.
CodeGenTransformerSpec
Nested Class Summary |
Nested classes inherited from class com.ashridgetech.jamda.transform.AbstractModelTransformer |
AbstractModelTransformer.Config |
Nested classes inherited from class com.ashridgetech.jamda.transform.ModelTransformer |
ModelTransformer.TransformException |
Constructor Summary | |
CodeGenTransformer()
Construct a CodeGenTransformer , setting
the element transformer superclass to UmlTypeGenerator . |
Method Summary | |
java.lang.String |
getDescription()
Get a short description of this transformer, including details of its configuration. |
java.io.File |
getDirectory()
Get the top level directory for the output files. |
protected UmlTypeGenerator |
makeGenerator(StructuredType element)
Create a UmlTypeGenerator which can be used to generate
the code for a class. |
void |
setDirectory(java.io.File directory)
Set the the top level directory for the output files. |
void |
transform(Model model)
Generate code for certain classes in a Model . |
Methods inherited from class com.ashridgetech.jamda.transform.AbstractModelTransformer |
addStereotypeName, getConfig, getStereotypeNames, selectElements, setStereotypeName, standardElementDefs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CodeGenTransformer()
CodeGenTransformer
, setting
the element transformer superclass to UmlTypeGenerator
.
Method Detail |
public java.io.File getDirectory()
public void setDirectory(java.io.File directory)
directory
- top of the package structurepublic void transform(Model model) throws ModelTransformer.TransformException
Model
.
model
- the Model
on which to operate
ModelTransformer.TransformException
public java.lang.String getDescription()
getDescription
in interface ModelTransformer
getDescription
in class AbstractModelTransformer
protected UmlTypeGenerator makeGenerator(StructuredType element) throws ModelTransformer.TransformException
UmlTypeGenerator
which can be used to generate
the code for a class.
element
- the UML element for which a generator is needed
ModelTransformer.TransformException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |