de.matthias_burbach.flux
Class ActionActionMappingGenerator
java.lang.Object
de.matthias_burbach.flux.AbstractActionMappingGenerator
de.matthias_burbach.flux.ActionActionMappingGenerator
- All Implemented Interfaces:
- ActionMappingGenerator
- public class ActionActionMappingGenerator
- extends AbstractActionMappingGenerator
Generates one action mapping for each UML state with stereotype 'Action'.
- Author:
- Matthias Burbach
Method Summary |
void |
begin(StateMachine stateMachine,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Introduces the <action> elements generated by this generator
with the comment <--Action Activities-->. |
void |
generate(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Generates one <action> element per call. |
Methods inherited from class de.matthias_burbach.flux.AbstractActionMappingGenerator |
end, generateForward, generateForward, generateForwards, generateProperty, getActionMappingElementForPath, getBasePath, getBasePathExtension, getDefaultName, getDefaultPackage, getDefaultType, getForwardElementForName, getForwardPath, getForwardPathPrefix, getForwardPathSuffix, getNamePartOfBasePath, setSettings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionActionMappingGenerator
public ActionActionMappingGenerator()
begin
public void begin(StateMachine stateMachine,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
- Introduces the <action> elements generated by this generator
with the comment <--Action Activities-->.
- Specified by:
begin
in interface ActionMappingGenerator
- Overrides:
begin
in class AbstractActionMappingGenerator
generate
public void generate(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
throws java.lang.Exception
- Generates one <action> element per call. The generated
path attribute follows the pattern '/Action.%NAME%'.
Preserves all attributes from the previous version of the element
except the disallowed forward and include attributes.
Generates nested <forward> elements using
AbstractActionMappingGenerator.generateForwards(State, Document, Element, Element)
and
preserves all other child elements (like <set-property>, e. g.)
from the previous version.
- Specified by:
generate
in interface ActionMappingGenerator
- Overrides:
generate
in class AbstractActionMappingGenerator
- Throws:
java.lang.Exception