|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generates one or more contiguous pieces of XML (usually comments or above all <action> elements) that are valid in a struts-config-<module>.xml file between the opening and the closing <action-mappings> tag.
Is a plug-in interface. The implementations to be used must be configured in the flux-config.xml file. For each UML stereotype that may be attached to any of the UML states one or more implementations of this interface may be registered. They will be called in the order of occurrence as defined in the flux-config.xml file.
Method Summary | |
void |
begin(StateMachine stateMachine,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Is called only once after the call to setSettings(Properties)
and before any call to any other method.
|
void |
end(StateMachine stateMachine,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Is called only once at the end of the generation cycle of this generator plug-in instance. |
void |
generate(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Is called once for each UML state that has the stereotype specified in the flux-config.xml file for this generator. |
void |
setSettings(java.util.Properties settings)
Is called at the beginning of the generation before any other method. |
Method Detail |
public void setSettings(java.util.Properties settings)
settings
- holds simple properties that can be used by the
generator to control the generationpublic void begin(StateMachine stateMachine, org.jdom.Document oldDocument, org.jdom.Element oldActionMappingsElement, org.jdom.Document newDocument, org.jdom.Element newActionMappingsElement) throws java.lang.Exception
setSettings(Properties)
and before any call to any other method.
Is suitable for header type generations like introductory comments or
similar artefacts.
stateMachine
- the UML state machine to generate fromoldDocument
- the previously generated version of the complete
XML outputoldActionMappingsElement
- the previously generated version of the
<action-mappings> elementnewDocument
- the XML output being under constructionnewActionMappingsElement
- the <action-mappings> element being
under construction and to add children to
java.lang.Exception
- if anything goes unexpectedly wrong, will cancel the
generation processpublic 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
stateMachine
- the UML state machine to generate fromstate
- the current UML state to generate fromoldDocument
- the previously generated version of the complete
XML outputoldActionMappingsElement
- the previously generated version of the
<action-mappings> elementnewDocument
- the XML output being under constructionnewActionMappingsElement
- the <action-mappings> element being
under construction and to add children to
java.lang.Exception
- if anything goes unexpectedly wrong, will cancel the
generation processpublic void end(StateMachine stateMachine, org.jdom.Document oldDocument, org.jdom.Element oldActionMappingsElement, org.jdom.Document newDocument, org.jdom.Element newActionMappingsElement) throws java.lang.Exception
stateMachine
- the UML state machine to generate fromoldDocument
- the previously generated version of the complete
XML outputoldActionMappingsElement
- the previously generated version of the
<action-mappings> elementnewDocument
- the XML output being under constructionnewActionMappingsElement
- the <action-mappings> element being
under construction and to add children to
java.lang.Exception
- if anything goes unexpectedly wrong, will cancel the
generation process
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |