org.andromda.cartridges.jsf.metafacades
Class JSFForwardLogic

java.lang.Object
  extended by org.andromda.core.metafacade.MetafacadeBase
      extended by org.andromda.cartridges.jsf.metafacades.JSFForwardLogic
All Implemented Interfaces:
JSFForward, org.andromda.metafacades.uml.FrontEndForward, org.andromda.metafacades.uml.ModelElementFacade, org.andromda.metafacades.uml.TransitionFacade
Direct Known Subclasses:
JSFForwardLogicImpl

public abstract class JSFForwardLogic
extends org.andromda.core.metafacade.MetafacadeBase
implements JSFForward

MetafacadeLogic for org.andromda.cartridges.jsf.metafacades.JSFForward

See Also:
JSFForward

Field Summary
protected  java.lang.Object metaObject
           
 
Fields inherited from class org.andromda.core.metafacade.MetafacadeBase
contextRoot, logger
 
Constructor Summary
JSFForwardLogic(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.util.List getForwardParameters()
           
 java.lang.String getFromOutcome()
           The name that corresponds to the from-outcome in an navigational rule.
 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 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()
           
 java.lang.String getPath()
           The path to which this forward points.
 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()
           
 java.util.Map getSuccessMessages()
           Messages used to indicate successful execution.
 java.util.Collection getTaggedValues()
           
 org.andromda.metafacades.uml.StateVertexFacade getTarget()
           
 java.util.Collection getTargetDependencies()
           
 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()
           Any messages used to indicate a warning.
protected abstract  java.lang.String handleGetFromOutcome()
           
protected abstract  java.lang.String handleGetPath()
           
protected abstract  java.util.Map handleGetSuccessMessages()
           
protected abstract  java.util.Map handleGetWarningMessages()
           
protected abstract  boolean handleIsFinalStateTarget()
           
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 isEnteringView()
           
 boolean isExitingActionState()
           
 boolean isExitingDecisionPoint()
           
 boolean isExitingInitialState()
           
 boolean isExitingView()
           
 boolean isFinalStateTarget()
           Indicates whether or not a final state is the target of this forward.
 boolean isFrontEndForwardMetaType()
           
 boolean isJSFForwardMetaType()
          Indicates the metafacade type (used for metafacade mappings).
 boolean isModelElementFacadeMetaType()
           
 boolean isSuccessMessagesPresent()
           Indicates whether or not any success messags are present.
 boolean isTemplateParametersPresent()
           
 boolean isTransitionFacadeMetaType()
           
 boolean isTriggerPresent()
           
 boolean isWarningMessagesPresent()
           Whether or not any warning messages are present.
 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

JSFForwardLogic

public JSFForwardLogic(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

isJSFForwardMetaType

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

Specified by:
isJSFForwardMetaType in interface JSFForward
Returns:
always true
See Also:
JSFForward

handleGetPath

protected abstract java.lang.String handleGetPath()
See Also:
JSFForward.getPath()

getPath

public final java.lang.String getPath()
Description copied from interface: JSFForward

The path to which this forward points.

Specified by:
getPath in interface JSFForward

handleIsFinalStateTarget

protected abstract boolean handleIsFinalStateTarget()
See Also:
JSFForward.isFinalStateTarget()

isFinalStateTarget

public final boolean isFinalStateTarget()
Description copied from interface: JSFForward

Indicates whether or not a final state is the target of this forward.

Specified by:
isFinalStateTarget in interface JSFForward

handleGetFromOutcome

protected abstract java.lang.String handleGetFromOutcome()
See Also:
JSFForward.getFromOutcome()

getFromOutcome

public final java.lang.String getFromOutcome()
Description copied from interface: JSFForward

The name that corresponds to the from-outcome in an navigational rule.

Specified by:
getFromOutcome in interface JSFForward

handleGetSuccessMessages

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

getSuccessMessages

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

Messages used to indicate successful execution.

Specified by:
getSuccessMessages in interface JSFForward

handleIsSuccessMessagesPresent

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

isSuccessMessagesPresent

public final boolean isSuccessMessagesPresent()
Description copied from interface: JSFForward

Indicates whether or not any success messags are present.

Specified by:
isSuccessMessagesPresent in interface JSFForward

handleGetWarningMessages

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

getWarningMessages

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

Any messages used to indicate a warning.

Specified by:
getWarningMessages in interface JSFForward

handleIsWarningMessagesPresent

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

isWarningMessagesPresent

public final boolean isWarningMessagesPresent()
Description copied from interface: JSFForward

Whether or not any warning messages are present.

Specified by:
isWarningMessagesPresent in interface JSFForward

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.