|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.transform.AbstractModelTransformer
A base class with common functions for ModelTransformer
implementations.
Must be configured with the names of the Stereotype
s for which
the transformation will be applied.
Nested Class Summary | |
static class |
AbstractModelTransformer.Config
|
Nested classes inherited from class com.ashridgetech.jamda.transform.ModelTransformer |
ModelTransformer.TransformException |
Constructor Summary | |
AbstractModelTransformer()
|
Method Summary | |
void |
addStereotypeName(java.lang.String stereotypeName)
Add the name of a stereotype of one of the sets of source classes to act upon. |
TransformerConfig |
getConfig()
Get a configuration object for this transformer. |
java.lang.String |
getDescription()
Get a short description of this transformer, including details of its configuration. |
java.util.List |
getStereotypeNames()
Get the names of the stereotype of the source classes to act upon. |
java.util.Collection |
selectElements(Model model)
Select the elements in a Model which will be processed
by this transformer. |
void |
setStereotypeName(java.lang.String stereotypeName)
Set the name of the stereotype of the source classes to act upon. |
java.util.Collection |
standardElementDefs()
Default implementation that returns an empty set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ashridgetech.jamda.transform.ModelTransformer |
transform |
Constructor Detail |
public AbstractModelTransformer()
Method Detail |
public java.util.List getStereotypeNames()
public void setStereotypeName(java.lang.String stereotypeName)
stereotypeName
- the name of the stereotypepublic void addStereotypeName(java.lang.String stereotypeName)
stereotypeName
- the name of the stereotypepublic java.util.Collection selectElements(Model model) throws ModelTransformer.TransformException
Model
which will be processed
by this transformer.
model
- the Model
from which to select
ModelElement
s
ModelTransformer.TransformException
public java.util.Collection standardElementDefs() throws ModelTransformer.TransformException
standardElementDefs
in interface ModelTransformer
ModelTransformer.TransformException
public TransformerConfig getConfig()
getConfig
in interface ModelTransformer
public java.lang.String getDescription()
getDescription
in interface ModelTransformer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |