org.andromda.cartridges.bpm4struts.metafacades
Class StrutsForwardLogic

java.lang.Object
  extended by org.andromda.core.metafacade.MetafacadeBase
      extended by org.andromda.cartridges.bpm4struts.metafacades.StrutsForwardLogic
All Implemented Interfaces:
StrutsForward, org.andromda.metafacades.uml.FrontEndForward, org.andromda.metafacades.uml.ModelElementFacade, org.andromda.metafacades.uml.TransitionFacade
Direct Known Subclasses:
StrutsForwardLogicImpl

public abstract class StrutsForwardLogic
extends org.andromda.core.metafacade.MetafacadeBase
implements StrutsForward

MetafacadeLogic for org.andromda.cartridges.bpm4struts.metafacades.StrutsForward

See Also:
StrutsForward

Field Summary
protected  java.lang.Object metaObject
           
 
Fields inherited from class org.andromda.core.metafacade.MetafacadeBase
contextRoot, logger
 
Constructor Summary
StrutsForwardLogic(java.lang.Object metaObject, java.lang.String context)
           
 
Method Summary
 void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
           
 java.lang.Object findTaggedValue(java.lang.String tagName)
           
 java.util.Collection findTaggedValues(java.lang.String tagName)
           
 java.lang.String getActionMethodName()
           
 java.util.List getActions()
           
 java.util.Collection getConstraints()
           
 java.util.Collection getConstraints(java.lang.String kind)
           
 org.andromda.metafacades.uml.FrontEndEvent getDecisionTrigger()
           
 java.lang.String getDocumentation(java.lang.String indent)
           
 java.lang.String getDocumentation(java.lang.String indent, int lineLength)
           
 java.lang.String getDocumentation(java.lang.String indent, int lineLength, boolean htmlStyle)
           
 org.andromda.metafacades.uml.ActionFacade getEffect()
           
 java.lang.String getForwardName()
           The name for this forward.
 java.util.List getForwardParameters()
           
 java.lang.String getForwardPath()
           Returns the path targetted by this forward.
 org.andromda.metafacades.uml.FrontEndActivityGraph getFrontEndActivityGraph()
           
 java.lang.String getFullyQualifiedName()
           
 java.lang.String getFullyQualifiedName(boolean modelName)
           
 java.lang.String getFullyQualifiedNamePath()
           
 org.andromda.metafacades.uml.GuardFacade getGuard()
           
 java.lang.String getGuardName()
           If this forward is guarded (such as with decision points) this method return the name of that guard.
 java.lang.String getId()
           
 org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
           
 org.andromda.metafacades.uml.ModelFacade getModel()
           
 java.lang.String getName()
           
 org.andromda.metafacades.uml.FrontEndControllerOperation getOperationCall()
           
 org.andromda.metafacades.uml.ModelElementFacade getPackage()
           
 java.lang.String getPackageName()
           
 java.lang.String getPackageName(boolean modelName)
           
 java.lang.String getPackagePath()
           
 org.andromda.metafacades.uml.PackageFacade getRootPackage()
           
 org.andromda.metafacades.uml.StateVertexFacade getSource()
           
 java.util.Collection getSourceDependencies()
           
 org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
           
 java.util.Collection getStereotypeNames()
           
 java.util.Collection getStereotypes()
           
 StrutsActivityGraph getStrutsActivityGraph()
           Returns the activity graph which holds this action if the graph is contained in a FrontEndUseCase.
 java.util.Map getSuccessMessages()
           A map of key=value pairs, one for each success message.
 java.util.Collection getTaggedValues()
           
 org.andromda.metafacades.uml.StateVertexFacade getTarget()
           
 java.util.Collection getTargetDependencies()
           
 java.lang.String getTargetNameKey()
           The resource bundle key of the name for the target element.
 java.lang.Object getTemplateParameter(java.lang.String parameterName)
           
 java.util.Collection getTemplateParameters()
           
 org.andromda.metafacades.uml.EventFacade getTrigger()
           
 org.andromda.metafacades.uml.FrontEndUseCase getUseCase()
           
 java.lang.String getValidationName()
           
 java.lang.Object getValidationOwner()
           
 java.lang.String getVisibility()
           
 java.util.Map getWarningMessages()
           A map of key=value pairs, one for each warning message.
protected abstract  java.lang.String handleGetForwardName()
           
protected abstract  java.lang.String handleGetForwardPath()
           
protected abstract  java.lang.String handleGetGuardName()
           
protected abstract  java.lang.Object handleGetStrutsActivityGraph()
           
protected abstract  java.util.Map handleGetSuccessMessages()
           
protected abstract  java.lang.String handleGetTargetNameKey()
           
protected abstract  java.util.Map handleGetWarningMessages()
           
protected abstract  boolean handleIsEnteringPage()
           
protected abstract  boolean handleIsExitingPage()
           
protected abstract  boolean handleIsSuccessMessagesPresent()
           
protected abstract  boolean handleIsWarningMessagesPresent()
           
 boolean hasExactStereotype(java.lang.String stereotypeName)
           
 boolean hasStereotype(java.lang.String stereotypeName)
           
 void initialize()
           
 boolean isBindingDependenciesPresent()
           
 boolean isConstraintsPresent()
           
 boolean isContainedInFrontEndUseCase()
           
 boolean isEnteringActionState()
           
 boolean isEnteringDecisionPoint()
           
 boolean isEnteringFinalState()
           
 boolean isEnteringPage()
           True if this action directly targets a JSP page, false otherwise.
 boolean isEnteringView()
           
 boolean isExitingActionState()
           
 boolean isExitingDecisionPoint()
           
 boolean isExitingInitialState()
           
 boolean isExitingPage()
           Whether or not this forward (transition) is coming out of a page.
 boolean isExitingView()
           
 boolean isFrontEndForwardMetaType()
           
 boolean isModelElementFacadeMetaType()
           
 boolean isStrutsForwardMetaType()
          Indicates the metafacade type (used for metafacade mappings).
 boolean isSuccessMessagesPresent()
           
 boolean isTemplateParametersPresent()
           
 boolean isTransitionFacadeMetaType()
           
 boolean isTriggerPresent()
           
 boolean isWarningMessagesPresent()
           
 void resetMetafacadeContext(java.lang.String context)
           
 java.lang.String toString()
           
 java.lang.String translateConstraint(java.lang.String name, java.lang.String translation)
           
 java.lang.String[] translateConstraints(java.lang.String translation)
           
 java.lang.String[] translateConstraints(java.lang.String kind, java.lang.String translation)
           
 void validateInvariants(java.util.Collection validationMessages)
           
 
Methods inherited from class org.andromda.core.metafacade.MetafacadeBase
equals, getConfiguredProperty, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaObject

protected java.lang.Object metaObject
Constructor Detail

StrutsForwardLogic

public StrutsForwardLogic(java.lang.Object metaObject,
                          java.lang.String context)
Method Detail

resetMetafacadeContext

public void resetMetafacadeContext(java.lang.String context)
Overrides:
resetMetafacadeContext in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase

isStrutsForwardMetaType

public boolean isStrutsForwardMetaType()
Description copied from interface: StrutsForward
Indicates the metafacade type (used for metafacade mappings).

Specified by:
isStrutsForwardMetaType in interface StrutsForward
Returns:
always true
See Also:
StrutsForward

handleGetForwardName

protected abstract java.lang.String handleGetForwardName()
See Also:
StrutsForward.getForwardName()

getForwardName

public final java.lang.String getForwardName()
Description copied from interface: StrutsForward

The name for this forward. This name is always lowercase and words are separated using dots, not unlike the convention for Java package names.

Specified by:
getForwardName in interface StrutsForward

handleGetForwardPath

protected abstract java.lang.String handleGetForwardPath()
See Also:
StrutsForward.getForwardPath()

getForwardPath

public final java.lang.String getForwardPath()
Description copied from interface: StrutsForward

Returns the path targetted by this forward.

Specified by:
getForwardPath in interface StrutsForward

handleGetGuardName

protected abstract java.lang.String handleGetGuardName()
See Also:
StrutsForward.getGuardName()

getGuardName

public final java.lang.String getGuardName()
Description copied from interface: StrutsForward

If this forward is guarded (such as with decision points) this method return the name of that guard.

Specified by:
getGuardName in interface StrutsForward

handleIsEnteringPage

protected abstract boolean handleIsEnteringPage()
See Also:
StrutsForward.isEnteringPage()

isEnteringPage

public final boolean isEnteringPage()
Description copied from interface: StrutsForward

True if this action directly targets a JSP page, false otherwise.

Specified by:
isEnteringPage in interface StrutsForward

handleGetTargetNameKey

protected abstract java.lang.String handleGetTargetNameKey()
See Also:
StrutsForward.getTargetNameKey()

getTargetNameKey

public final java.lang.String getTargetNameKey()
Description copied from interface: StrutsForward

The resource bundle key of the name for the target element. This method returns the key for the use-case or jsp page. If targetting anything else this method returns null.

Specified by:
getTargetNameKey in interface StrutsForward

handleIsExitingPage

protected abstract boolean handleIsExitingPage()
See Also:
StrutsForward.isExitingPage()

isExitingPage

public final boolean isExitingPage()
Description copied from interface: StrutsForward

Whether or not this forward (transition) is coming out of a page.

Specified by:
isExitingPage in interface StrutsForward

handleGetSuccessMessages

protected abstract java.util.Map handleGetSuccessMessages()
See Also:
StrutsForward.getSuccessMessages()

getSuccessMessages

public final java.util.Map getSuccessMessages()
Description copied from interface: StrutsForward

A map of key=value pairs, one for each success message.

Specified by:
getSuccessMessages in interface StrutsForward

handleGetWarningMessages

protected abstract java.util.Map handleGetWarningMessages()
See Also:
StrutsForward.getWarningMessages()

getWarningMessages

public final java.util.Map getWarningMessages()
Description copied from interface: StrutsForward

A map of key=value pairs, one for each warning message.

Specified by:
getWarningMessages in interface StrutsForward

handleIsWarningMessagesPresent

protected abstract boolean handleIsWarningMessagesPresent()
See Also:
StrutsForward.isWarningMessagesPresent()

isWarningMessagesPresent

public final boolean isWarningMessagesPresent()
Specified by:
isWarningMessagesPresent in interface StrutsForward

handleIsSuccessMessagesPresent

protected abstract boolean handleIsSuccessMessagesPresent()
See Also:
StrutsForward.isSuccessMessagesPresent()

isSuccessMessagesPresent

public final boolean isSuccessMessagesPresent()
Specified by:
isSuccessMessagesPresent in interface StrutsForward

getStrutsActivityGraph

public final StrutsActivityGraph getStrutsActivityGraph()
Description copied from interface: StrutsForward

Returns the activity graph which holds this action if the graph is contained in a FrontEndUseCase.

Specified by:
getStrutsActivityGraph in interface StrutsForward

handleGetStrutsActivityGraph

protected abstract java.lang.Object handleGetStrutsActivityGraph()

isFrontEndForwardMetaType

public boolean isFrontEndForwardMetaType()
Specified by:
isFrontEndForwardMetaType in interface org.andromda.metafacades.uml.FrontEndForward
See Also:
FrontEndForward

isTransitionFacadeMetaType

public boolean isTransitionFacadeMetaType()
Specified by:
isTransitionFacadeMetaType in interface org.andromda.metafacades.uml.TransitionFacade
See Also:
TransitionFacade

isModelElementFacadeMetaType

public boolean isModelElementFacadeMetaType()
Specified by:
isModelElementFacadeMetaType in interface org.andromda.metafacades.uml.ModelElementFacade
See Also:
ModelElementFacade

getActionMethodName

public java.lang.String getActionMethodName()
Specified by:
getActionMethodName in interface org.andromda.metafacades.uml.FrontEndForward

getActions

public java.util.List getActions()
Specified by:
getActions in interface org.andromda.metafacades.uml.FrontEndForward

getDecisionTrigger

public org.andromda.metafacades.uml.FrontEndEvent getDecisionTrigger()
Specified by:
getDecisionTrigger in interface org.andromda.metafacades.uml.FrontEndForward

getForwardParameters

public java.util.List getForwardParameters()
Specified by:
getForwardParameters in interface org.andromda.metafacades.uml.FrontEndForward

getFrontEndActivityGraph

public org.andromda.metafacades.uml.FrontEndActivityGraph getFrontEndActivityGraph()
Specified by:
getFrontEndActivityGraph in interface org.andromda.metafacades.uml.FrontEndForward

getOperationCall

public org.andromda.metafacades.uml.FrontEndControllerOperation getOperationCall()
Specified by:
getOperationCall in interface org.andromda.metafacades.uml.FrontEndForward

getUseCase

public org.andromda.metafacades.uml.FrontEndUseCase getUseCase()
Specified by:
getUseCase in interface org.andromda.metafacades.uml.FrontEndForward

isContainedInFrontEndUseCase

public boolean isContainedInFrontEndUseCase()
Specified by:
isContainedInFrontEndUseCase in interface org.andromda.metafacades.uml.FrontEndForward

isEnteringView

public boolean isEnteringView()
Specified by:
isEnteringView in interface org.andromda.metafacades.uml.FrontEndForward

isExitingView

public boolean isExitingView()
Specified by:
isExitingView in interface org.andromda.metafacades.uml.FrontEndForward

copyTaggedValues

public void copyTaggedValues(org.andromda.metafacades.uml.ModelElementFacade element)
Specified by:
copyTaggedValues in interface org.andromda.metafacades.uml.ModelElementFacade

findTaggedValue

public java.lang.Object findTaggedValue(java.lang.String tagName)
Specified by:
findTaggedValue in interface org.andromda.metafacades.uml.ModelElementFacade

findTaggedValues

public java.util.Collection findTaggedValues(java.lang.String tagName)
Specified by:
findTaggedValues in interface org.andromda.metafacades.uml.ModelElementFacade

getConstraints

public java.util.Collection getConstraints()
Specified by:
getConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

getConstraints

public java.util.Collection getConstraints(java.lang.String kind)
Specified by:
getConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

getDocumentation

public java.lang.String getDocumentation(java.lang.String indent,
                                         int lineLength)
Specified by:
getDocumentation in interface org.andromda.metafacades.uml.ModelElementFacade

getDocumentation

public java.lang.String getDocumentation(java.lang.String indent,
                                         int lineLength,
                                         boolean htmlStyle)
Specified by:
getDocumentation in interface org.andromda.metafacades.uml.ModelElementFacade

getDocumentation

public java.lang.String getDocumentation(java.lang.String indent)
Specified by:
getDocumentation in interface org.andromda.metafacades.uml.ModelElementFacade

getFullyQualifiedName

public java.lang.String getFullyQualifiedName(boolean modelName)
Specified by:
getFullyQualifiedName in interface org.andromda.metafacades.uml.ModelElementFacade

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Specified by:
getFullyQualifiedName in interface org.andromda.metafacades.uml.ModelElementFacade

getFullyQualifiedNamePath

public java.lang.String getFullyQualifiedNamePath()
Specified by:
getFullyQualifiedNamePath in interface org.andromda.metafacades.uml.ModelElementFacade

getId

public java.lang.String getId()
Specified by:
getId in interface org.andromda.metafacades.uml.ModelElementFacade

getLanguageMappings

public org.andromda.metafacades.uml.TypeMappings getLanguageMappings()
Specified by:
getLanguageMappings in interface org.andromda.metafacades.uml.ModelElementFacade

getModel

public org.andromda.metafacades.uml.ModelFacade getModel()
Specified by:
getModel in interface org.andromda.metafacades.uml.ModelElementFacade

getName

public java.lang.String getName()
Specified by:
getName in interface org.andromda.metafacades.uml.ModelElementFacade

getPackage

public org.andromda.metafacades.uml.ModelElementFacade getPackage()
Specified by:
getPackage in interface org.andromda.metafacades.uml.ModelElementFacade

getPackageName

public java.lang.String getPackageName(boolean modelName)
Specified by:
getPackageName in interface org.andromda.metafacades.uml.ModelElementFacade

getPackageName

public java.lang.String getPackageName()
Specified by:
getPackageName in interface org.andromda.metafacades.uml.ModelElementFacade

getPackagePath

public java.lang.String getPackagePath()
Specified by:
getPackagePath in interface org.andromda.metafacades.uml.ModelElementFacade

getRootPackage

public org.andromda.metafacades.uml.PackageFacade getRootPackage()
Specified by:
getRootPackage in interface org.andromda.metafacades.uml.ModelElementFacade

getSourceDependencies

public java.util.Collection getSourceDependencies()
Specified by:
getSourceDependencies in interface org.andromda.metafacades.uml.ModelElementFacade

getStateMachineContext

public org.andromda.metafacades.uml.StateMachineFacade getStateMachineContext()
Specified by:
getStateMachineContext in interface org.andromda.metafacades.uml.ModelElementFacade

getStereotypeNames

public java.util.Collection getStereotypeNames()
Specified by:
getStereotypeNames in interface org.andromda.metafacades.uml.ModelElementFacade

getStereotypes

public java.util.Collection getStereotypes()
Specified by:
getStereotypes in interface org.andromda.metafacades.uml.ModelElementFacade

getTaggedValues

public java.util.Collection getTaggedValues()
Specified by:
getTaggedValues in interface org.andromda.metafacades.uml.ModelElementFacade

getTargetDependencies

public java.util.Collection getTargetDependencies()
Specified by:
getTargetDependencies in interface org.andromda.metafacades.uml.ModelElementFacade

getTemplateParameter

public java.lang.Object getTemplateParameter(java.lang.String parameterName)
Specified by:
getTemplateParameter in interface org.andromda.metafacades.uml.ModelElementFacade

getTemplateParameters

public java.util.Collection getTemplateParameters()
Specified by:
getTemplateParameters in interface org.andromda.metafacades.uml.ModelElementFacade

getVisibility

public java.lang.String getVisibility()
Specified by:
getVisibility in interface org.andromda.metafacades.uml.ModelElementFacade

hasExactStereotype

public boolean hasExactStereotype(java.lang.String stereotypeName)
Specified by:
hasExactStereotype in interface org.andromda.metafacades.uml.ModelElementFacade

hasStereotype

public boolean hasStereotype(java.lang.String stereotypeName)
Specified by:
hasStereotype in interface org.andromda.metafacades.uml.ModelElementFacade

isBindingDependenciesPresent

public boolean isBindingDependenciesPresent()
Specified by:
isBindingDependenciesPresent in interface org.andromda.metafacades.uml.ModelElementFacade

isConstraintsPresent

public boolean isConstraintsPresent()
Specified by:
isConstraintsPresent in interface org.andromda.metafacades.uml.ModelElementFacade

isTemplateParametersPresent

public boolean isTemplateParametersPresent()
Specified by:
isTemplateParametersPresent in interface org.andromda.metafacades.uml.ModelElementFacade

translateConstraint

public java.lang.String translateConstraint(java.lang.String name,
                                            java.lang.String translation)
Specified by:
translateConstraint in interface org.andromda.metafacades.uml.ModelElementFacade

translateConstraints

public java.lang.String[] translateConstraints(java.lang.String translation)
Specified by:
translateConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

translateConstraints

public java.lang.String[] translateConstraints(java.lang.String kind,
                                               java.lang.String translation)
Specified by:
translateConstraints in interface org.andromda.metafacades.uml.ModelElementFacade

getEffect

public org.andromda.metafacades.uml.ActionFacade getEffect()
Specified by:
getEffect in interface org.andromda.metafacades.uml.TransitionFacade

getGuard

public org.andromda.metafacades.uml.GuardFacade getGuard()
Specified by:
getGuard in interface org.andromda.metafacades.uml.TransitionFacade

getSource

public org.andromda.metafacades.uml.StateVertexFacade getSource()
Specified by:
getSource in interface org.andromda.metafacades.uml.TransitionFacade

getTarget

public org.andromda.metafacades.uml.StateVertexFacade getTarget()
Specified by:
getTarget in interface org.andromda.metafacades.uml.TransitionFacade

getTrigger

public org.andromda.metafacades.uml.EventFacade getTrigger()
Specified by:
getTrigger in interface org.andromda.metafacades.uml.TransitionFacade

isEnteringActionState

public boolean isEnteringActionState()
Specified by:
isEnteringActionState in interface org.andromda.metafacades.uml.TransitionFacade

isEnteringDecisionPoint

public boolean isEnteringDecisionPoint()
Specified by:
isEnteringDecisionPoint in interface org.andromda.metafacades.uml.TransitionFacade

isEnteringFinalState

public boolean isEnteringFinalState()
Specified by:
isEnteringFinalState in interface org.andromda.metafacades.uml.TransitionFacade

isExitingActionState

public boolean isExitingActionState()
Specified by:
isExitingActionState in interface org.andromda.metafacades.uml.TransitionFacade

isExitingDecisionPoint

public boolean isExitingDecisionPoint()
Specified by:
isExitingDecisionPoint in interface org.andromda.metafacades.uml.TransitionFacade

isExitingInitialState

public boolean isExitingInitialState()
Specified by:
isExitingInitialState in interface org.andromda.metafacades.uml.TransitionFacade

isTriggerPresent

public boolean isTriggerPresent()
Specified by:
isTriggerPresent in interface org.andromda.metafacades.uml.TransitionFacade

initialize

public void initialize()
Specified by:
initialize in interface org.andromda.metafacades.uml.ModelElementFacade
Overrides:
initialize in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase.initialize()

getValidationOwner

public java.lang.Object getValidationOwner()
Specified by:
getValidationOwner in interface org.andromda.metafacades.uml.ModelElementFacade
Overrides:
getValidationOwner in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase.getValidationOwner()

getValidationName

public java.lang.String getValidationName()
Specified by:
getValidationName in interface org.andromda.metafacades.uml.ModelElementFacade
Overrides:
getValidationName in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase.getValidationName()

validateInvariants

public void validateInvariants(java.util.Collection validationMessages)
Specified by:
validateInvariants in interface org.andromda.metafacades.uml.ModelElementFacade
Overrides:
validateInvariants in class org.andromda.core.metafacade.MetafacadeBase
See Also:
MetafacadeBase.validateInvariants(java.util.Collection)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.