de.matthias_burbach.flux
Class FinalStateActionMappingGenerator
java.lang.Object
de.matthias_burbach.flux.AbstractActionMappingGenerator
de.matthias_burbach.flux.FinalStateActionMappingGenerator
- All Implemented Interfaces:
- ActionMappingGenerator
- public class FinalStateActionMappingGenerator
- extends AbstractActionMappingGenerator
Generates one action mapping for the optional UML final state
(stereotype = 'FinalState') to perform finalization code.
- 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 <--Final State-->. |
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 |
FinalStateActionMappingGenerator
public FinalStateActionMappingGenerator()
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 <--Final State-->.
- 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 '/FinalState'.
Preserves all attributes from the previous version of the element
except the disallowed type, input and include attributes.
Generates no nested <forward> elements and
preserves all child elements except the disallowed <forward>
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