|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.matthias_burbach.flux.AbstractActionMappingGenerator
de.matthias_burbach.flux.PageEventActionMappingGenerator
Generates an event dispatcher action mapping for each UML state with stereotype 'Page'.
Field Summary |
Fields inherited from class de.matthias_burbach.flux.AbstractActionMappingGenerator |
settings |
Constructor Summary | |
PageEventActionMappingGenerator()
|
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 <--Page Events-->. |
void |
generate(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
Generates the event dispatcher mapping that maps requests from a page to the page event that is encoded as HTTP request parameter (with syntax 'action=%EVENT%' or '%EVENT%.x'). |
protected void |
generatePageDevariationActionMapping(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement,
java.lang.String variableName,
java.lang.String variableValue)
|
protected void |
generatePageEventActionMapping(StateMachine stateMachine,
State state,
org.jdom.Document oldDocument,
org.jdom.Element oldActionMappingsElement,
org.jdom.Document newDocument,
org.jdom.Element newActionMappingsElement)
|
protected java.lang.String |
getForwardToPhysicalPage(State state)
Derives the default forward path to the physical page resource (JSP) that implements the state of stereotype 'Page'. |
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 |
Constructor Detail |
public PageEventActionMappingGenerator()
Method Detail |
public void begin(StateMachine stateMachine, org.jdom.Document oldDocument, org.jdom.Element oldActionMappingsElement, org.jdom.Document newDocument, org.jdom.Element newActionMappingsElement)
begin
in interface ActionMappingGenerator
begin
in class AbstractActionMappingGenerator
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
Preserves all attributes from the previous version of the element except the disallowed forward, include and input attributes and the type attribute, which must not be manually changed because the framework class specified by the settings property 'DispatcherAction' is used for it.
Generates nested <forward> elements to dispatch to the events and preserves all other child elements (like <set-property>, e. g.) from the previous version.
For a description of the parameters see
generate(StateMachine, State, Document, Element, Document,
Element)
generate
in interface ActionMappingGenerator
generate
in class AbstractActionMappingGenerator
java.lang.Exception
protected void generatePageDevariationActionMapping(StateMachine stateMachine, State state, org.jdom.Document oldDocument, org.jdom.Element oldActionMappingsElement, org.jdom.Document newDocument, org.jdom.Element newActionMappingsElement, java.lang.String variableName, java.lang.String variableValue) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getForwardToPhysicalPage(State state)
state
of stereotype 'Page'.
state
- the state to derive the physical forward path from
protected void generatePageEventActionMapping(StateMachine stateMachine, State state, org.jdom.Document oldDocument, org.jdom.Element oldActionMappingsElement, org.jdom.Document newDocument, org.jdom.Element newActionMappingsElement) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |