StrutsUseCaseLogic.java
// license-header java merge-point
//
// Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
//
package org.andromda.cartridges.bpm4struts.metafacades;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import javax.swing.tree.TreeNode;
import org.andromda.core.common.Introspector;
import org.andromda.core.metafacade.MetafacadeBase;
import org.andromda.core.metafacade.MetafacadeFactory;
import org.andromda.core.metafacade.ModelValidationMessage;
import org.andromda.metafacades.uml.ActivityGraphFacade;
import org.andromda.metafacades.uml.AssociationEndFacade;
import org.andromda.metafacades.uml.AttributeFacade;
import org.andromda.metafacades.uml.ClassifierFacade;
import org.andromda.metafacades.uml.ConstraintFacade;
import org.andromda.metafacades.uml.DependencyFacade;
import org.andromda.metafacades.uml.ExtendFacade;
import org.andromda.metafacades.uml.ExtensionPointFacade;
import org.andromda.metafacades.uml.FrontEndAction;
import org.andromda.metafacades.uml.FrontEndActivityGraph;
import org.andromda.metafacades.uml.FrontEndController;
import org.andromda.metafacades.uml.FrontEndFinalState;
import org.andromda.metafacades.uml.FrontEndParameter;
import org.andromda.metafacades.uml.FrontEndUseCase;
import org.andromda.metafacades.uml.FrontEndView;
import org.andromda.metafacades.uml.GeneralizableElementFacade;
import org.andromda.metafacades.uml.GeneralizationFacade;
import org.andromda.metafacades.uml.IncludeFacade;
import org.andromda.metafacades.uml.ModelElementFacade;
import org.andromda.metafacades.uml.ModelFacade;
import org.andromda.metafacades.uml.OperationFacade;
import org.andromda.metafacades.uml.PackageFacade;
import org.andromda.metafacades.uml.Role;
import org.andromda.metafacades.uml.StateMachineFacade;
import org.andromda.metafacades.uml.StereotypeFacade;
import org.andromda.metafacades.uml.TaggedValueFacade;
import org.andromda.metafacades.uml.TemplateParameterFacade;
import org.andromda.metafacades.uml.TypeMappings;
import org.andromda.translation.ocl.validation.OCLCollections;
import org.andromda.translation.ocl.validation.OCLIntrospector;
import org.andromda.translation.ocl.validation.OCLResultEnsurer;
import org.apache.log4j.Logger;
/**
* A Struts use-case represents a set of related client/server requests and communication.
* MetafacadeLogic for StrutsUseCase
*
* @see StrutsUseCase
*/
public abstract class StrutsUseCaseLogic
extends MetafacadeBase
implements StrutsUseCase
{
/**
* The underlying UML object
* @see Object
*/
protected Object metaObject;
/** Create Metafacade implementation instance using the MetafacadeFactory from the context
* @param metaObjectIn
* @param context
*/
protected StrutsUseCaseLogic(Object metaObjectIn, String context)
{
super(metaObjectIn, getContext(context));
this.superFrontEndUseCase =
(FrontEndUseCase)
MetafacadeFactory.getInstance().createFacadeImpl(
"org.andromda.metafacades.uml.FrontEndUseCase",
metaObjectIn,
getContext(context));
this.metaObject = metaObjectIn;
}
/**
* The logger instance.
*/
private static final Logger logger = Logger.getLogger(StrutsUseCaseLogic.class);
/**
* Gets the context for this metafacade logic instance.
* @param context String. Set to StrutsUseCase if null
* @return context String
*/
private static String getContext(String context)
{
if (context == null)
{
context = "org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase";
}
return context;
}
private FrontEndUseCase superFrontEndUseCase;
private boolean superFrontEndUseCaseInitialized = false;
/**
* Gets the FrontEndUseCase parent instance.
* @return this.superFrontEndUseCase FrontEndUseCase
*/
private FrontEndUseCase getSuperFrontEndUseCase()
{
if (!this.superFrontEndUseCaseInitialized)
{
((MetafacadeBase)this.superFrontEndUseCase).setMetafacadeContext(this.getMetafacadeContext());
this.superFrontEndUseCaseInitialized = true;
}
return this.superFrontEndUseCase;
}
/** Reset context only for non-root metafacades
* @param context
* @see MetafacadeBase#resetMetafacadeContext(String context)
*/
@Override
public void resetMetafacadeContext(String context)
{
if (!this.contextRoot) // reset context only for non-root metafacades
{
context = getContext(context); // to have same value as in original constructor call
setMetafacadeContext (context);
if (this.superFrontEndUseCaseInitialized)
{
((MetafacadeBase)this.superFrontEndUseCase).resetMetafacadeContext(context);
}
}
}
/**
* @return boolean true always
* @see StrutsUseCase
*/
public boolean isStrutsUseCaseMetaType()
{
return true;
}
// --------------- attributes ---------------------
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getTitleKey()
* @return String
*/
protected abstract String handleGetTitleKey();
private String __titleKey1a;
private boolean __titleKey1aSet = false;
/**
* The title message key for this use-case.
* @return (String)handleGetTitleKey()
*/
public final String getTitleKey()
{
String titleKey1a = this.__titleKey1a;
if (!this.__titleKey1aSet)
{
// titleKey has no pre constraints
titleKey1a = handleGetTitleKey();
// titleKey has no post constraints
this.__titleKey1a = titleKey1a;
if (isMetafacadePropertyCachingEnabled())
{
this.__titleKey1aSet = true;
}
}
return titleKey1a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getTitleValue()
* @return String
*/
protected abstract String handleGetTitleValue();
private String __titleValue2a;
private boolean __titleValue2aSet = false;
/**
* The title message value for this use-case.
* @return (String)handleGetTitleValue()
*/
public final String getTitleValue()
{
String titleValue2a = this.__titleValue2a;
if (!this.__titleValue2aSet)
{
// titleValue has no pre constraints
titleValue2a = handleGetTitleValue();
// titleValue has no post constraints
this.__titleValue2a = titleValue2a;
if (isMetafacadePropertyCachingEnabled())
{
this.__titleValue2aSet = true;
}
}
return titleValue2a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getActionPath()
* @return String
*/
protected abstract String handleGetActionPath();
private String __actionPath3a;
private boolean __actionPath3aSet = false;
/**
* This use-case's action path.
* @return (String)handleGetActionPath()
*/
public final String getActionPath()
{
String actionPath3a = this.__actionPath3a;
if (!this.__actionPath3aSet)
{
// actionPath has no pre constraints
actionPath3a = handleGetActionPath();
// actionPath has no post constraints
this.__actionPath3a = actionPath3a;
if (isMetafacadePropertyCachingEnabled())
{
this.__actionPath3aSet = true;
}
}
return actionPath3a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getActionPathRoot()
* @return String
*/
protected abstract String handleGetActionPathRoot();
private String __actionPathRoot4a;
private boolean __actionPathRoot4aSet = false;
/**
* The root of the action path.
* @return (String)handleGetActionPathRoot()
*/
public final String getActionPathRoot()
{
String actionPathRoot4a = this.__actionPathRoot4a;
if (!this.__actionPathRoot4aSet)
{
// actionPathRoot has no pre constraints
actionPathRoot4a = handleGetActionPathRoot();
// actionPathRoot has no post constraints
this.__actionPathRoot4a = actionPathRoot4a;
if (isMetafacadePropertyCachingEnabled())
{
this.__actionPathRoot4aSet = true;
}
}
return actionPathRoot4a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getActionRoles()
* @return String
*/
protected abstract String handleGetActionRoles();
private String __actionRoles5a;
private boolean __actionRoles5aSet = false;
/**
* Returns the action roles corresponding to this use-case's action, as found in the struts
* deployment descriptor. The action roles specifiy the roles in which the user must be in order
* to be authorized to call the action. One of the roles must be satisfied.
* @return (String)handleGetActionRoles()
*/
public final String getActionRoles()
{
String actionRoles5a = this.__actionRoles5a;
if (!this.__actionRoles5aSet)
{
// actionRoles has no pre constraints
actionRoles5a = handleGetActionRoles();
// actionRoles has no post constraints
this.__actionRoles5a = actionRoles5a;
if (isMetafacadePropertyCachingEnabled())
{
this.__actionRoles5aSet = true;
}
}
return actionRoles5a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#isApplicationValidationRequired()
* @return boolean
*/
protected abstract boolean handleIsApplicationValidationRequired();
private boolean __applicationValidationRequired6a;
private boolean __applicationValidationRequired6aSet = false;
/**
* True if at least one client/server parameter found in the collection of existing use-cases
* requires validation.
* @return (boolean)handleIsApplicationValidationRequired()
*/
public final boolean isApplicationValidationRequired()
{
boolean applicationValidationRequired6a = this.__applicationValidationRequired6a;
if (!this.__applicationValidationRequired6aSet)
{
// applicationValidationRequired has no pre constraints
applicationValidationRequired6a = handleIsApplicationValidationRequired();
// applicationValidationRequired has no post constraints
this.__applicationValidationRequired6a = applicationValidationRequired6a;
if (isMetafacadePropertyCachingEnabled())
{
this.__applicationValidationRequired6aSet = true;
}
}
return applicationValidationRequired6a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#isValidationRequired()
* @return boolean
*/
protected abstract boolean handleIsValidationRequired();
private boolean __validationRequired7a;
private boolean __validationRequired7aSet = false;
/**
* True if some client/server parameters require validation for this use-case.
* @return (boolean)handleIsValidationRequired()
*/
public final boolean isValidationRequired()
{
boolean validationRequired7a = this.__validationRequired7a;
if (!this.__validationRequired7aSet)
{
// validationRequired has no pre constraints
validationRequired7a = handleIsValidationRequired();
// validationRequired has no post constraints
this.__validationRequired7a = validationRequired7a;
if (isMetafacadePropertyCachingEnabled())
{
this.__validationRequired7aSet = true;
}
}
return validationRequired7a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getOnlineHelpKey()
* @return String
*/
protected abstract String handleGetOnlineHelpKey();
private String __onlineHelpKey8a;
private boolean __onlineHelpKey8aSet = false;
/**
* The key to lookup the online help documentation. This documentation is gathered from the
* documentation entered by the user, as well as analyzing the model.
* @return (String)handleGetOnlineHelpKey()
*/
public final String getOnlineHelpKey()
{
String onlineHelpKey8a = this.__onlineHelpKey8a;
if (!this.__onlineHelpKey8aSet)
{
// onlineHelpKey has no pre constraints
onlineHelpKey8a = handleGetOnlineHelpKey();
// onlineHelpKey has no post constraints
this.__onlineHelpKey8a = onlineHelpKey8a;
if (isMetafacadePropertyCachingEnabled())
{
this.__onlineHelpKey8aSet = true;
}
}
return onlineHelpKey8a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getOnlineHelpValue()
* @return String
*/
protected abstract String handleGetOnlineHelpValue();
private String __onlineHelpValue9a;
private boolean __onlineHelpValue9aSet = false;
/**
* The online help documentation. This documentation is gathered from the documentation entered
* by the user, as well as analyzing the model. The format is HTML without any style.
* @return (String)handleGetOnlineHelpValue()
*/
public final String getOnlineHelpValue()
{
String onlineHelpValue9a = this.__onlineHelpValue9a;
if (!this.__onlineHelpValue9aSet)
{
// onlineHelpValue has no pre constraints
onlineHelpValue9a = handleGetOnlineHelpValue();
// onlineHelpValue has no post constraints
this.__onlineHelpValue9a = onlineHelpValue9a;
if (isMetafacadePropertyCachingEnabled())
{
this.__onlineHelpValue9aSet = true;
}
}
return onlineHelpValue9a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#isApplicationUseCase()
* @return boolean
*/
protected abstract boolean handleIsApplicationUseCase();
private boolean __applicationUseCase10a;
private boolean __applicationUseCase10aSet = false;
/**
* True if this use-case is where the application starts.
* @return (boolean)handleIsApplicationUseCase()
*/
public final boolean isApplicationUseCase()
{
boolean applicationUseCase10a = this.__applicationUseCase10a;
if (!this.__applicationUseCase10aSet)
{
// applicationUseCase has no pre constraints
applicationUseCase10a = handleIsApplicationUseCase();
// applicationUseCase has no post constraints
this.__applicationUseCase10a = applicationUseCase10a;
if (isMetafacadePropertyCachingEnabled())
{
this.__applicationUseCase10aSet = true;
}
}
return applicationUseCase10a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getApplicationHierarchyRoot()
* @return TreeNode
*/
protected abstract TreeNode handleGetApplicationHierarchyRoot();
private TreeNode __applicationHierarchyRoot11a;
private boolean __applicationHierarchyRoot11aSet = false;
/**
* The root node of the application usecase hierarchy. Only makes sense when this usecase is an
* application usecase. Each usecase is only listed once in it's subtree, meaning when cycles ar
* edetected in the applicaion usecase graph the usecase will not be added when it already
* exists as an ancestor.
* @return (TreeNode)handleGetApplicationHierarchyRoot()
*/
public final TreeNode getApplicationHierarchyRoot()
{
TreeNode applicationHierarchyRoot11a = this.__applicationHierarchyRoot11a;
if (!this.__applicationHierarchyRoot11aSet)
{
// applicationHierarchyRoot has no pre constraints
applicationHierarchyRoot11a = handleGetApplicationHierarchyRoot();
// applicationHierarchyRoot has no post constraints
this.__applicationHierarchyRoot11a = applicationHierarchyRoot11a;
if (isMetafacadePropertyCachingEnabled())
{
this.__applicationHierarchyRoot11aSet = true;
}
}
return applicationHierarchyRoot11a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getHierarchyRoot()
* @return TreeNode
*/
protected abstract TreeNode handleGetHierarchyRoot();
private TreeNode __hierarchyRoot12a;
private boolean __hierarchyRoot12aSet = false;
/**
* The root of the hierarchy of application usecases where this usecase is at the top. It is
* possible not all usecases are included in the descendants, they can be found in the
* collection of ancestor nodes.
* @return (TreeNode)handleGetHierarchyRoot()
*/
public final TreeNode getHierarchyRoot()
{
TreeNode hierarchyRoot12a = this.__hierarchyRoot12a;
if (!this.__hierarchyRoot12aSet)
{
// hierarchyRoot has no pre constraints
hierarchyRoot12a = handleGetHierarchyRoot();
// hierarchyRoot has no post constraints
this.__hierarchyRoot12a = hierarchyRoot12a;
if (isMetafacadePropertyCachingEnabled())
{
this.__hierarchyRoot12aSet = true;
}
}
return hierarchyRoot12a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getCssFileName()
* @return String
*/
protected abstract String handleGetCssFileName();
private String __cssFileName13a;
private boolean __cssFileName13aSet = false;
/**
* The name of the file containing specific styles for this use-case only.
* @return (String)handleGetCssFileName()
*/
public final String getCssFileName()
{
String cssFileName13a = this.__cssFileName13a;
if (!this.__cssFileName13aSet)
{
// cssFileName has no pre constraints
cssFileName13a = handleGetCssFileName();
// cssFileName has no post constraints
this.__cssFileName13a = cssFileName13a;
if (isMetafacadePropertyCachingEnabled())
{
this.__cssFileName13aSet = true;
}
}
return cssFileName13a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getAllMessages()
* @return Map
*/
protected abstract Map handleGetAllMessages();
private Map __allMessages14a;
private boolean __allMessages14aSet = false;
/**
* A map with keys sorted alphabetically, normalized across all different use-cases and pages
* etc..
* @return (Map)handleGetAllMessages()
*/
public final Map getAllMessages()
{
Map allMessages14a = this.__allMessages14a;
if (!this.__allMessages14aSet)
{
// allMessages has no pre constraints
allMessages14a = handleGetAllMessages();
// allMessages has no post constraints
this.__allMessages14a = allMessages14a;
if (isMetafacadePropertyCachingEnabled())
{
this.__allMessages14aSet = true;
}
}
return allMessages14a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#isCyclic()
* @return boolean
*/
protected abstract boolean handleIsCyclic();
private boolean __cyclic15a;
private boolean __cyclic15aSet = false;
/**
* TODO: Model Documentation for
* org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase.cyclic
* @return (boolean)handleIsCyclic()
*/
public final boolean isCyclic()
{
boolean cyclic15a = this.__cyclic15a;
if (!this.__cyclic15aSet)
{
// cyclic has no pre constraints
cyclic15a = handleIsCyclic();
// cyclic has no post constraints
this.__cyclic15a = cyclic15a;
if (isMetafacadePropertyCachingEnabled())
{
this.__cyclic15aSet = true;
}
}
return cyclic15a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getOnlineHelpPagePath()
* @return String
*/
protected abstract String handleGetOnlineHelpPagePath();
private String __onlineHelpPagePath16a;
private boolean __onlineHelpPagePath16aSet = false;
/**
* The full path to this use-case's online help page. The returned String does not have a suffix
* such as '.jsp'.
* @return (String)handleGetOnlineHelpPagePath()
*/
public final String getOnlineHelpPagePath()
{
String onlineHelpPagePath16a = this.__onlineHelpPagePath16a;
if (!this.__onlineHelpPagePath16aSet)
{
// onlineHelpPagePath has no pre constraints
onlineHelpPagePath16a = handleGetOnlineHelpPagePath();
// onlineHelpPagePath has no post constraints
this.__onlineHelpPagePath16a = onlineHelpPagePath16a;
if (isMetafacadePropertyCachingEnabled())
{
this.__onlineHelpPagePath16aSet = true;
}
}
return onlineHelpPagePath16a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getOnlineHelpActionPath()
* @return String
*/
protected abstract String handleGetOnlineHelpActionPath();
private String __onlineHelpActionPath17a;
private boolean __onlineHelpActionPath17aSet = false;
/**
* The full path to this use-case's online help action. The returned String does not have a
* suffix such as '.do'.
* @return (String)handleGetOnlineHelpActionPath()
*/
public final String getOnlineHelpActionPath()
{
String onlineHelpActionPath17a = this.__onlineHelpActionPath17a;
if (!this.__onlineHelpActionPath17aSet)
{
// onlineHelpActionPath has no pre constraints
onlineHelpActionPath17a = handleGetOnlineHelpActionPath();
// onlineHelpActionPath has no post constraints
this.__onlineHelpActionPath17a = onlineHelpActionPath17a;
if (isMetafacadePropertyCachingEnabled())
{
this.__onlineHelpActionPath17aSet = true;
}
}
return onlineHelpActionPath17a;
}
/**
* @see org.andromda.cartridges.bpm4struts.metafacades.StrutsUseCase#getFormKey()
* @return String
*/
protected abstract String handleGetFormKey();
private String __formKey18a;
private boolean __formKey18aSet = false;
/**
* The key under which to store the forms contained in this use-case.
* @return (String)handleGetFormKey()
*/
public final String getFormKey()
{
String formKey18a = this.__formKey18a;
if (!this.__formKey18aSet)
{
// formKey has no pre constraints
formKey18a = handleGetFormKey();
// formKey has no post constraints
this.__formKey18a = formKey18a;
if (isMetafacadePropertyCachingEnabled())
{
this.__formKey18aSet = true;
}
}
return formKey18a;
}
// ------------- associations ------------------
private List<StrutsParameter> __getPageVariables1r;
private boolean __getPageVariables1rSet = false;
/**
* A Struts use-case represents a set of related client/server requests and communication.
* @return (List<StrutsParameter>)handleGetPageVariables()
*/
public final List<StrutsParameter> getPageVariables()
{
List<StrutsParameter> getPageVariables1r = this.__getPageVariables1r;
if (!this.__getPageVariables1rSet)
{
// strutsUseCase has no pre constraints
List result = handleGetPageVariables();
List shieldedResult = this.shieldedElements(result);
try
{
getPageVariables1r = (List<StrutsParameter>)shieldedResult;
}
catch (ClassCastException ex)
{
// Bad things happen if the metafacade type mapping in metafacades.xml is wrong - Warn
StrutsUseCaseLogic.logger.warn("incorrect metafacade cast for StrutsUseCaseLogic.getPageVariables List<StrutsParameter> " + result + ": " + shieldedResult);
}
// strutsUseCase has no post constraints
this.__getPageVariables1r = getPageVariables1r;
if (isMetafacadePropertyCachingEnabled())
{
this.__getPageVariables1rSet = true;
}
}
return getPageVariables1r;
}
/**
* UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
* @return List
*/
protected abstract List handleGetPageVariables();
private List<StrutsJsp> __getAllPages2r;
private boolean __getAllPages2rSet = false;
/**
* A Struts use-case represents a set of related client/server requests and communication.
* @return (List<StrutsJsp>)handleGetAllPages()
*/
public final List<StrutsJsp> getAllPages()
{
List<StrutsJsp> getAllPages2r = this.__getAllPages2r;
if (!this.__getAllPages2rSet)
{
// strutsUseCase has no pre constraints
List result = handleGetAllPages();
List shieldedResult = this.shieldedElements(result);
try
{
getAllPages2r = (List<StrutsJsp>)shieldedResult;
}
catch (ClassCastException ex)
{
// Bad things happen if the metafacade type mapping in metafacades.xml is wrong - Warn
StrutsUseCaseLogic.logger.warn("incorrect metafacade cast for StrutsUseCaseLogic.getAllPages List<StrutsJsp> " + result + ": " + shieldedResult);
}
// strutsUseCase has no post constraints
this.__getAllPages2r = getAllPages2r;
if (isMetafacadePropertyCachingEnabled())
{
this.__getAllPages2rSet = true;
}
}
return getAllPages2r;
}
/**
* UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
* @return List
*/
protected abstract List handleGetAllPages();
private List<StrutsParameter> __getFormFields3r;
private boolean __getFormFields3rSet = false;
/**
* A Struts use-case represents a set of related client/server requests and communication.
* @return (List<StrutsParameter>)handleGetFormFields()
*/
public final List<StrutsParameter> getFormFields()
{
List<StrutsParameter> getFormFields3r = this.__getFormFields3r;
if (!this.__getFormFields3rSet)
{
// strutsUseCase has no pre constraints
List result = handleGetFormFields();
List shieldedResult = this.shieldedElements(result);
try
{
getFormFields3r = (List<StrutsParameter>)shieldedResult;
}
catch (ClassCastException ex)
{
// Bad things happen if the metafacade type mapping in metafacades.xml is wrong - Warn
StrutsUseCaseLogic.logger.warn("incorrect metafacade cast for StrutsUseCaseLogic.getFormFields List<StrutsParameter> " + result + ": " + shieldedResult);
}
// strutsUseCase has no post constraints
this.__getFormFields3r = getFormFields3r;
if (isMetafacadePropertyCachingEnabled())
{
this.__getFormFields3rSet = true;
}
}
return getFormFields3r;
}
/**
* UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
* @return List
*/
protected abstract List handleGetFormFields();
private List<StrutsJsp> __getPages4r;
private boolean __getPages4rSet = false;
/**
* A Struts use-case represents a set of related client/server requests and communication.
* @return (List<StrutsJsp>)handleGetPages()
*/
public final List<StrutsJsp> getPages()
{
List<StrutsJsp> getPages4r = this.__getPages4r;
if (!this.__getPages4rSet)
{
// strutsUseCase has no pre constraints
List result = handleGetPages();
List shieldedResult = this.shieldedElements(result);
try
{
getPages4r = (List<StrutsJsp>)shieldedResult;
}
catch (ClassCastException ex)
{
// Bad things happen if the metafacade type mapping in metafacades.xml is wrong - Warn
StrutsUseCaseLogic.logger.warn("incorrect metafacade cast for StrutsUseCaseLogic.getPages List<StrutsJsp> " + result + ": " + shieldedResult);
}
// strutsUseCase has no post constraints
this.__getPages4r = getPages4r;
if (isMetafacadePropertyCachingEnabled())
{
this.__getPages4rSet = true;
}
}
return getPages4r;
}
/**
* UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
* @return List
*/
protected abstract List handleGetPages();
/**
* @return true
* @see FrontEndUseCase
*/
public boolean isFrontEndUseCaseMetaType()
{
return true;
}
/**
* @return true
* @see org.andromda.metafacades.uml.UseCaseFacade
*/
public boolean isUseCaseFacadeMetaType()
{
return true;
}
/**
* @return true
* @see org.andromda.metafacades.uml.NamespaceFacade
*/
public boolean isNamespaceFacadeMetaType()
{
return true;
}
/**
* @return true
* @see ClassifierFacade
*/
public boolean isClassifierFacadeMetaType()
{
return true;
}
/**
* @return true
* @see GeneralizableElementFacade
*/
public boolean isGeneralizableElementFacadeMetaType()
{
return true;
}
/**
* @return true
* @see ModelElementFacade
*/
public boolean isModelElementFacadeMetaType()
{
return true;
}
// ----------- delegates to FrontEndUseCase ------------
/**
* Return the attribute which name matches the parameter
* @see ClassifierFacade#findAttribute(String name)
*/
public AttributeFacade findAttribute(String name)
{
return this.getSuperFrontEndUseCase().findAttribute(name);
}
/**
* Those abstraction dependencies for which this classifier is the client.
* @see ClassifierFacade#getAbstractions()
*/
public Collection<ClassifierFacade> getAbstractions()
{
return this.getSuperFrontEndUseCase().getAbstractions();
}
/**
* Lists all classes associated to this one and any ancestor classes (through generalization).
* There will be no duplicates. The order of the elements is predictable.
* @see ClassifierFacade#getAllAssociatedClasses()
*/
public Collection<ClassifierFacade> getAllAssociatedClasses()
{
return this.getSuperFrontEndUseCase().getAllAssociatedClasses();
}
/**
* A collection containing all 'properties' of the classifier and its ancestors. Properties are
* any attributes and navigable connecting association ends.
* @see ClassifierFacade#getAllProperties()
*/
public Collection<ModelElementFacade> getAllProperties()
{
return this.getSuperFrontEndUseCase().getAllProperties();
}
/**
* A collection containing all required and/or read-only 'properties' of the classifier and its
* ancestors. Properties are any attributes and navigable connecting association ends.
* @see ClassifierFacade#getAllRequiredConstructorParameters()
*/
public Collection<ModelElementFacade> getAllRequiredConstructorParameters()
{
return this.getSuperFrontEndUseCase().getAllRequiredConstructorParameters();
}
/**
* Gets the array type for this classifier. If this classifier already represents an array, it
* just returns itself.
* @see ClassifierFacade#getArray()
*/
public ClassifierFacade getArray()
{
return this.getSuperFrontEndUseCase().getArray();
}
/**
* The name of the classifier as an array.
* @see ClassifierFacade#getArrayName()
*/
public String getArrayName()
{
return this.getSuperFrontEndUseCase().getArrayName();
}
/**
* Lists the classes associated to this one, there is no repitition of classes. The order of the
* elements is predictable.
* @see ClassifierFacade#getAssociatedClasses()
*/
public Collection<ClassifierFacade> getAssociatedClasses()
{
return this.getSuperFrontEndUseCase().getAssociatedClasses();
}
/**
* Gets the association ends belonging to a classifier.
* @see ClassifierFacade#getAssociationEnds()
*/
public List<AssociationEndFacade> getAssociationEnds()
{
return this.getSuperFrontEndUseCase().getAssociationEnds();
}
/**
* Gets the attributes that belong to the classifier.
* @see ClassifierFacade#getAttributes()
*/
public List<AttributeFacade> getAttributes()
{
return this.getSuperFrontEndUseCase().getAttributes();
}
/**
* Gets all attributes for the classifier and if 'follow' is true goes up the inheritance
* hierarchy and gets the attributes from the super classes as well.
* @see ClassifierFacade#getAttributes(boolean follow)
*/
public List<AttributeFacade> getAttributes(boolean follow)
{
return this.getSuperFrontEndUseCase().getAttributes(follow);
}
/**
* The fully qualified name of the classifier as an array.
* @see ClassifierFacade#getFullyQualifiedArrayName()
*/
public String getFullyQualifiedArrayName()
{
return this.getSuperFrontEndUseCase().getFullyQualifiedArrayName();
}
/**
* Returns all those operations that could be implemented at this classifier's level. This means
* the operations owned by this classifier as well as any realized interface's operations
* (recursively) in case this classifier itself is not already an interface, or generalized when
* this classifier is an interface.
* @see ClassifierFacade#getImplementationOperations()
*/
public Collection<OperationFacade> getImplementationOperations()
{
return this.getSuperFrontEndUseCase().getImplementationOperations();
}
/**
* A comma separated list of the fully qualified names of all implemented interfaces.
* @see ClassifierFacade#getImplementedInterfaceList()
*/
public String getImplementedInterfaceList()
{
return this.getSuperFrontEndUseCase().getImplementedInterfaceList();
}
/**
* Those attributes that are scoped to an instance of this class.
* @see ClassifierFacade#getInstanceAttributes()
*/
public Collection<AttributeFacade> getInstanceAttributes()
{
return this.getSuperFrontEndUseCase().getInstanceAttributes();
}
/**
* Those operations that are scoped to an instance of this class.
* @see ClassifierFacade#getInstanceOperations()
*/
public List<OperationFacade> getInstanceOperations()
{
return this.getSuperFrontEndUseCase().getInstanceOperations();
}
/**
* Those interfaces that are abstractions of this classifier, this basically means this
* classifier realizes them.
* @see ClassifierFacade#getInterfaceAbstractions()
*/
public Collection<ClassifierFacade> getInterfaceAbstractions()
{
return this.getSuperFrontEndUseCase().getInterfaceAbstractions();
}
/**
* A String representing a new Constructor declaration for this classifier type to be used in a
* Java environment.
* @see ClassifierFacade#getJavaNewString()
*/
public String getJavaNewString()
{
return this.getSuperFrontEndUseCase().getJavaNewString();
}
/**
* A String representing the null-value for this classifier type to be used in a Java
* environment.
* @see ClassifierFacade#getJavaNullString()
*/
public String getJavaNullString()
{
return this.getSuperFrontEndUseCase().getJavaNullString();
}
/**
* The other ends of this classifier's association ends which are navigable.
* @see ClassifierFacade#getNavigableConnectingEnds()
*/
public Collection<AssociationEndFacade> getNavigableConnectingEnds()
{
return this.getSuperFrontEndUseCase().getNavigableConnectingEnds();
}
/**
* Get the other ends of this classifier's association ends which are navigable and if 'follow'
* is true goes up the inheritance hierarchy and gets the super association ends as well.
* @see ClassifierFacade#getNavigableConnectingEnds(boolean follow)
*/
public List<AssociationEndFacade> getNavigableConnectingEnds(boolean follow)
{
return this.getSuperFrontEndUseCase().getNavigableConnectingEnds(follow);
}
/**
* Assuming that the classifier is an array, this will return the non array type of the
* classifier from
* the model. If the classifier is NOT an array, it will just return itself.
* @see ClassifierFacade#getNonArray()
*/
public ClassifierFacade getNonArray()
{
return this.getSuperFrontEndUseCase().getNonArray();
}
/**
* The attributes from this classifier in the form of an operation call (this example would be
* in Java): '(String attributeOne, String attributeTwo). If there were no attributes on the
* classifier, the result would be an empty '()'.
* @see ClassifierFacade#getOperationCallFromAttributes()
*/
public String getOperationCallFromAttributes()
{
return this.getSuperFrontEndUseCase().getOperationCallFromAttributes();
}
/**
* The operations owned by this classifier.
* @see ClassifierFacade#getOperations()
*/
public List<OperationFacade> getOperations()
{
return this.getSuperFrontEndUseCase().getOperations();
}
/**
* A collection containing all 'properties' of the classifier. Properties are any attributes
* and navigable connecting association ends.
* @see ClassifierFacade#getProperties()
*/
public List<ModelElementFacade> getProperties()
{
return this.getSuperFrontEndUseCase().getProperties();
}
/**
* Gets all properties (attributes and navigable association ends) for the classifier and if
* 'follow' is true goes up the inheritance hierarchy and gets the properties from the super
* classes as well.
* @see ClassifierFacade#getProperties(boolean follow)
*/
public List getProperties(boolean follow)
{
return this.getSuperFrontEndUseCase().getProperties(follow);
}
/**
* A collection containing all required and/or read-only 'properties' of the classifier.
* Properties are any attributes and navigable connecting association ends.
* @see ClassifierFacade#getRequiredConstructorParameters()
*/
public Collection<ModelElementFacade> getRequiredConstructorParameters()
{
return this.getSuperFrontEndUseCase().getRequiredConstructorParameters();
}
/**
* Returns the serial version UID of the underlying model element.
* @see ClassifierFacade#getSerialVersionUID()
*/
public long getSerialVersionUID()
{
return this.getSuperFrontEndUseCase().getSerialVersionUID();
}
/**
* Those attributes that are scoped to the definition of this class.
* @see ClassifierFacade#getStaticAttributes()
*/
public Collection<AttributeFacade> getStaticAttributes()
{
return this.getSuperFrontEndUseCase().getStaticAttributes();
}
/**
* Those operations that are scoped to the definition of this class.
* @see ClassifierFacade#getStaticOperations()
*/
public List<OperationFacade> getStaticOperations()
{
return this.getSuperFrontEndUseCase().getStaticOperations();
}
/**
* This class' superclass, returns the generalization if it is a ClassifierFacade, null
* otherwise.
* @see ClassifierFacade#getSuperClass()
*/
public ClassifierFacade getSuperClass()
{
return this.getSuperFrontEndUseCase().getSuperClass();
}
/**
* The wrapper name for this classifier if a mapped type has a defined wrapper class (ie. 'long'
* maps to 'Long'). If the classifier doesn't have a wrapper defined for it, this method will
* return a null. Note that wrapper mappings must be defined for the namespace by defining the
* 'wrapperMappingsUri', this property must point to the location of the mappings file which
* maps the primitives to wrapper types.
* @see ClassifierFacade#getWrapperName()
*/
public String getWrapperName()
{
return this.getSuperFrontEndUseCase().getWrapperName();
}
/**
* Indicates if this classifier is 'abstract'.
* @see ClassifierFacade#isAbstract()
*/
public boolean isAbstract()
{
return this.getSuperFrontEndUseCase().isAbstract();
}
/**
* True if this classifier represents an array type. False otherwise.
* @see ClassifierFacade#isArrayType()
*/
public boolean isArrayType()
{
return this.getSuperFrontEndUseCase().isArrayType();
}
/**
* True if the ClassifierFacade is an AssociationClass.
* @see ClassifierFacade#isAssociationClass()
*/
public boolean isAssociationClass()
{
return this.getSuperFrontEndUseCase().isAssociationClass();
}
/**
* Returns true if this type represents a Blob type.
* @see ClassifierFacade#isBlobType()
*/
public boolean isBlobType()
{
return this.getSuperFrontEndUseCase().isBlobType();
}
/**
* Indicates if this type represents a boolean type or not.
* @see ClassifierFacade#isBooleanType()
*/
public boolean isBooleanType()
{
return this.getSuperFrontEndUseCase().isBooleanType();
}
/**
* Indicates if this type represents a char, Character, or java.lang.Character type or not.
* @see ClassifierFacade#isCharacterType()
*/
public boolean isCharacterType()
{
return this.getSuperFrontEndUseCase().isCharacterType();
}
/**
* Returns true if this type represents a Clob type.
* @see ClassifierFacade#isClobType()
*/
public boolean isClobType()
{
return this.getSuperFrontEndUseCase().isClobType();
}
/**
* True if this classifier represents a collection type. False otherwise.
* @see ClassifierFacade#isCollectionType()
*/
public boolean isCollectionType()
{
return this.getSuperFrontEndUseCase().isCollectionType();
}
/**
* True/false depending on whether or not this classifier represents a datatype. A data type is
* a type whose instances are identified only by their value. A data type may contain attributes
* to support the modeling of structured data types.
* @see ClassifierFacade#isDataType()
*/
public boolean isDataType()
{
return this.getSuperFrontEndUseCase().isDataType();
}
/**
* True when this classifier is a date type.
* @see ClassifierFacade#isDateType()
*/
public boolean isDateType()
{
return this.getSuperFrontEndUseCase().isDateType();
}
/**
* Indicates if this type represents a Double type or not.
* @see ClassifierFacade#isDoubleType()
*/
public boolean isDoubleType()
{
return this.getSuperFrontEndUseCase().isDoubleType();
}
/**
* Indicates whether or not this classifier represents an "EmbeddedValue'.
* @see ClassifierFacade#isEmbeddedValue()
*/
public boolean isEmbeddedValue()
{
return this.getSuperFrontEndUseCase().isEmbeddedValue();
}
/**
* True if this classifier is in fact marked as an enumeration.
* @see ClassifierFacade#isEnumeration()
*/
public boolean isEnumeration()
{
return this.getSuperFrontEndUseCase().isEnumeration();
}
/**
* Returns true if this type represents a 'file' type.
* @see ClassifierFacade#isFileType()
*/
public boolean isFileType()
{
return this.getSuperFrontEndUseCase().isFileType();
}
/**
* Indicates if this type represents a Float type or not.
* @see ClassifierFacade#isFloatType()
*/
public boolean isFloatType()
{
return this.getSuperFrontEndUseCase().isFloatType();
}
/**
* Indicates if this type represents an int or Integer or java.lang.Integer type or not.
* @see ClassifierFacade#isIntegerType()
*/
public boolean isIntegerType()
{
return this.getSuperFrontEndUseCase().isIntegerType();
}
/**
* True/false depending on whether or not this Classifier represents an interface.
* @see ClassifierFacade#isInterface()
*/
public boolean isInterface()
{
return this.getSuperFrontEndUseCase().isInterface();
}
/**
* True if this classifier cannot be extended and represent a leaf in the inheritance tree.
* @see ClassifierFacade#isLeaf()
*/
public boolean isLeaf()
{
return this.getSuperFrontEndUseCase().isLeaf();
}
/**
* True if this classifier represents a list type. False otherwise.
* @see ClassifierFacade#isListType()
*/
public boolean isListType()
{
return this.getSuperFrontEndUseCase().isListType();
}
/**
* Indicates if this type represents a Long type or not.
* @see ClassifierFacade#isLongType()
*/
public boolean isLongType()
{
return this.getSuperFrontEndUseCase().isLongType();
}
/**
* Indicates whether or not this classifier represents a Map type.
* @see ClassifierFacade#isMapType()
*/
public boolean isMapType()
{
return this.getSuperFrontEndUseCase().isMapType();
}
/**
* Indicates whether or not this classifier represents a primitive type.
* @see ClassifierFacade#isPrimitive()
*/
public boolean isPrimitive()
{
return this.getSuperFrontEndUseCase().isPrimitive();
}
/**
* True if this classifier represents a set type. False otherwise.
* @see ClassifierFacade#isSetType()
*/
public boolean isSetType()
{
return this.getSuperFrontEndUseCase().isSetType();
}
/**
* Indicates whether or not this classifier represents a string type.
* @see ClassifierFacade#isStringType()
*/
public boolean isStringType()
{
return this.getSuperFrontEndUseCase().isStringType();
}
/**
* Indicates whether or not this classifier represents a time type.
* @see ClassifierFacade#isTimeType()
*/
public boolean isTimeType()
{
return this.getSuperFrontEndUseCase().isTimeType();
}
/**
* Returns true if this type is a wrapped primitive type.
* @see ClassifierFacade#isWrappedPrimitive()
*/
public boolean isWrappedPrimitive()
{
return this.getSuperFrontEndUseCase().isWrappedPrimitive();
}
/**
* The actions for this use-case. This will include the initial action to start the use-case.
* @see FrontEndUseCase#getActions()
*/
public List<FrontEndAction> getActions()
{
return this.getSuperFrontEndUseCase().getActions();
}
/**
* Returns the activity graph describing this use-case in more detail.
* @see FrontEndUseCase#getActivityGraph()
*/
public FrontEndActivityGraph getActivityGraph()
{
return this.getSuperFrontEndUseCase().getActivityGraph();
}
/**
* All roles that directly or indirectly related to any "front-end" use cases.
* @see FrontEndUseCase#getAllRoles()
*/
public List<Role> getAllRoles()
{
return this.getSuperFrontEndUseCase().getAllRoles();
}
/**
* Returns all struts use-cases in this "front end" application.
* @see FrontEndUseCase#getAllUseCases()
*/
public List<FrontEndUseCase> getAllUseCases()
{
return this.getSuperFrontEndUseCase().getAllUseCases();
}
/**
* Returns the controller for this use-case.
* @see FrontEndUseCase#getController()
*/
public FrontEndController getController()
{
return this.getSuperFrontEndUseCase().getController();
}
/**
* The first view of this use case, this may actually return a view of another use case if the
* first is found by traveling through the final state.
* @see FrontEndUseCase#getInitialView()
*/
public FrontEndView getInitialView()
{
return this.getSuperFrontEndUseCase().getInitialView();
}
/**
* The final states linking to this use case
* @see FrontEndUseCase#getReferencingFinalStates()
*/
public List<FrontEndFinalState> getReferencingFinalStates()
{
return this.getSuperFrontEndUseCase().getReferencingFinalStates();
}
/**
* Returns all roles that are directly and indirectly associated to this use-case.
* @see FrontEndUseCase#getRoles()
*/
public List<Role> getRoles()
{
return this.getSuperFrontEndUseCase().getRoles();
}
/**
* The variables for all views in this use-case. A parameter qualifies to be a variable when it
* explicitely and directly receives it via an action.
* @see FrontEndUseCase#getViewVariables()
*/
public List<FrontEndParameter> getViewVariables()
{
return this.getSuperFrontEndUseCase().getViewVariables();
}
/**
* All views that are part of this use case.
* @see FrontEndUseCase#getViews()
*/
public List<FrontEndView> getViews()
{
return this.getSuperFrontEndUseCase().getViews();
}
/**
* True if this use-case is the entry point to the front end.
* @see FrontEndUseCase#isEntryUseCase()
*/
public boolean isEntryUseCase()
{
return this.getSuperFrontEndUseCase().isEntryUseCase();
}
/**
* Indicates if this use case is "secured". This is true when there is at least one role
* associated to it.
* @see FrontEndUseCase#isSecured()
*/
public boolean isSecured()
{
return this.getSuperFrontEndUseCase().isSecured();
}
/**
* Finds the tagged value optional searching the entire inheritance hierarchy if 'follow' is set
* to true.
* @see GeneralizableElementFacade#findTaggedValue(String tagName, boolean follow)
*/
public Object findTaggedValue(String tagName, boolean follow)
{
return this.getSuperFrontEndUseCase().findTaggedValue(tagName, follow);
}
/**
* All generalizations for this generalizable element, goes up the inheritance tree.
* @see GeneralizableElementFacade#getAllGeneralizations()
*/
public Collection<GeneralizableElementFacade> getAllGeneralizations()
{
return this.getSuperFrontEndUseCase().getAllGeneralizations();
}
/**
* All specializations (travels down the inheritance hierarchy).
* @see GeneralizableElementFacade#getAllSpecializations()
*/
public Collection<GeneralizableElementFacade> getAllSpecializations()
{
return this.getSuperFrontEndUseCase().getAllSpecializations();
}
/**
* Gets the direct generalization for this generalizable element.
* @see GeneralizableElementFacade#getGeneralization()
*/
public GeneralizableElementFacade getGeneralization()
{
return this.getSuperFrontEndUseCase().getGeneralization();
}
/**
* Gets the actual links that this generalization element is part of (it plays either the
* specialization or generalization).
* @see GeneralizableElementFacade#getGeneralizationLinks()
*/
public Collection<GeneralizationFacade> getGeneralizationLinks()
{
return this.getSuperFrontEndUseCase().getGeneralizationLinks();
}
/**
* A comma separated list of the fully qualified names of all generalizations.
* @see GeneralizableElementFacade#getGeneralizationList()
*/
public String getGeneralizationList()
{
return this.getSuperFrontEndUseCase().getGeneralizationList();
}
/**
* The element found when you recursively follow the generalization path up to the root. If an
* element has no generalization itself will be considered the root.
* @see GeneralizableElementFacade#getGeneralizationRoot()
*/
public GeneralizableElementFacade getGeneralizationRoot()
{
return this.getSuperFrontEndUseCase().getGeneralizationRoot();
}
/**
* Return all generalizations (ancestors) from this generalizable element.
* @see GeneralizableElementFacade#getGeneralizations()
*/
public Collection<GeneralizableElementFacade> getGeneralizations()
{
return this.getSuperFrontEndUseCase().getGeneralizations();
}
/**
* Gets the direct specializations (i.e. sub elements) for this generalizatble element.
* @see GeneralizableElementFacade#getSpecializations()
*/
public Collection<GeneralizableElementFacade> getSpecializations()
{
return this.getSuperFrontEndUseCase().getSpecializations();
}
/**
* Copies all tagged values from the given ModelElementFacade to this model element facade.
* @see ModelElementFacade#copyTaggedValues(ModelElementFacade element)
*/
public void copyTaggedValues(ModelElementFacade element)
{
this.getSuperFrontEndUseCase().copyTaggedValues(element);
}
/**
* Finds the tagged value with the specified 'tagName'. In case there are more values the first
* one found will be returned.
* @see ModelElementFacade#findTaggedValue(String tagName)
*/
public Object findTaggedValue(String tagName)
{
return this.getSuperFrontEndUseCase().findTaggedValue(tagName);
}
/**
* Returns all the values for the tagged value with the specified name. The returned collection
* will contains only String instances, or will be empty. Never null.
* @see ModelElementFacade#findTaggedValues(String tagName)
*/
public Collection<Object> findTaggedValues(String tagName)
{
return this.getSuperFrontEndUseCase().findTaggedValues(tagName);
}
/**
* Returns the fully qualified name of the model element. The fully qualified name includes
* complete package qualified name of the underlying model element. The templates parameter will
* be replaced by the correct one given the binding relation of the parameter to this element.
* @see ModelElementFacade#getBindedFullyQualifiedName(ModelElementFacade bindedElement)
*/
public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
{
return this.getSuperFrontEndUseCase().getBindedFullyQualifiedName(bindedElement);
}
/**
* Gets all constraints belonging to the model element.
* @see ModelElementFacade#getConstraints()
*/
public Collection<ConstraintFacade> getConstraints()
{
return this.getSuperFrontEndUseCase().getConstraints();
}
/**
* Returns the constraints of the argument kind that have been placed onto this model. Typical
* kinds are "inv", "pre" and "post". Other kinds are possible.
* @see ModelElementFacade#getConstraints(String kind)
*/
public Collection<ConstraintFacade> getConstraints(String kind)
{
return this.getSuperFrontEndUseCase().getConstraints(kind);
}
/**
* Gets the documentation for the model element, The indent argument is prefixed to each line.
* By default this method wraps lines after 64 characters.
* This method is equivalent to <code>getDocumentation(indent, 64)</code>.
* @see ModelElementFacade#getDocumentation(String indent)
*/
public String getDocumentation(String indent)
{
return this.getSuperFrontEndUseCase().getDocumentation(indent);
}
/**
* This method returns the documentation for this model element, with the lines wrapped after
* the specified number of characters, values of less than 1 will indicate no line wrapping is
* required. By default paragraphs are returned as HTML.
* This method is equivalent to <code>getDocumentation(indent, lineLength, true)</code>.
* @see ModelElementFacade#getDocumentation(String indent, int lineLength)
*/
public String getDocumentation(String indent, int lineLength)
{
return this.getSuperFrontEndUseCase().getDocumentation(indent, lineLength);
}
/**
* This method returns the documentation for this model element, with the lines wrapped after
* the specified number of characters, values of less than 1 will indicate no line wrapping is
* required. HTML style determines if HTML Escaping is applied.
* @see ModelElementFacade#getDocumentation(String indent, int lineLength, boolean htmlStyle)
*/
public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
{
return this.getSuperFrontEndUseCase().getDocumentation(indent, lineLength, htmlStyle);
}
/**
* The fully qualified name of this model element.
* @see ModelElementFacade#getFullyQualifiedName()
*/
public String getFullyQualifiedName()
{
return this.getSuperFrontEndUseCase().getFullyQualifiedName();
}
/**
* Returns the fully qualified name of the model element. The fully qualified name includes
* complete package qualified name of the underlying model element. If modelName is true, then
* the original name of the model element (the name contained within the model) will be the name
* returned, otherwise a name from a language mapping will be returned.
* @see ModelElementFacade#getFullyQualifiedName(boolean modelName)
*/
public String getFullyQualifiedName(boolean modelName)
{
return this.getSuperFrontEndUseCase().getFullyQualifiedName(modelName);
}
/**
* Returns the fully qualified name as a path, the returned value always starts with out a slash
* '/'.
* @see ModelElementFacade#getFullyQualifiedNamePath()
*/
public String getFullyQualifiedNamePath()
{
return this.getSuperFrontEndUseCase().getFullyQualifiedNamePath();
}
/**
* Gets the unique identifier of the underlying model element.
* @see ModelElementFacade#getId()
*/
public String getId()
{
return this.getSuperFrontEndUseCase().getId();
}
/**
* UML2: Retrieves the keywords for this element. Used to modify implementation properties which
* are not represented by other properties, i.e. native, transient, volatile, synchronized,
* (added annotations) override, deprecated. Can also be used to suppress compiler warnings:
* (added annotations) unchecked, fallthrough, path, serial, finally, all. Annotations require
* JDK5 compiler level.
* @see ModelElementFacade#getKeywords()
*/
public Collection<String> getKeywords()
{
return this.getSuperFrontEndUseCase().getKeywords();
}
/**
* UML2: Retrieves a localized label for this named element.
* @see ModelElementFacade#getLabel()
*/
public String getLabel()
{
return this.getSuperFrontEndUseCase().getLabel();
}
/**
* The language mappings that have been set for this model element.
* @see ModelElementFacade#getLanguageMappings()
*/
public TypeMappings getLanguageMappings()
{
return this.getSuperFrontEndUseCase().getLanguageMappings();
}
/**
* Return the model containing this model element (multiple models may be loaded and processed
* at the same time).
* @see ModelElementFacade#getModel()
*/
public ModelFacade getModel()
{
return this.getSuperFrontEndUseCase().getModel();
}
/**
* The name of the model element.
* @see ModelElementFacade#getName()
*/
public String getName()
{
return this.getSuperFrontEndUseCase().getName();
}
/**
* Gets the package to which this model element belongs.
* @see ModelElementFacade#getPackage()
*/
public ModelElementFacade getPackage()
{
return this.getSuperFrontEndUseCase().getPackage();
}
/**
* The name of this model element's package.
* @see ModelElementFacade#getPackageName()
*/
public String getPackageName()
{
return this.getSuperFrontEndUseCase().getPackageName();
}
/**
* Gets the package name (optionally providing the ability to retrieve the model name and not
* the mapped name).
* @see ModelElementFacade#getPackageName(boolean modelName)
*/
public String getPackageName(boolean modelName)
{
return this.getSuperFrontEndUseCase().getPackageName(modelName);
}
/**
* Returns the package as a path, the returned value always starts with out a slash '/'.
* @see ModelElementFacade#getPackagePath()
*/
public String getPackagePath()
{
return this.getSuperFrontEndUseCase().getPackagePath();
}
/**
* UML2: Returns the value of the 'Qualified Name' attribute. A name which allows the
* NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from
* the names of the containing namespaces starting at the root of the hierarchy and ending with
* the name of the NamedElement itself.
* @see ModelElementFacade#getQualifiedName()
*/
public String getQualifiedName()
{
return this.getSuperFrontEndUseCase().getQualifiedName();
}
/**
* Gets the root package for the model element.
* @see ModelElementFacade#getRootPackage()
*/
public PackageFacade getRootPackage()
{
return this.getSuperFrontEndUseCase().getRootPackage();
}
/**
* Gets the dependencies for which this model element is the source.
* @see ModelElementFacade#getSourceDependencies()
*/
public Collection<DependencyFacade> getSourceDependencies()
{
return this.getSuperFrontEndUseCase().getSourceDependencies();
}
/**
* If this model element is the context of an activity graph, this represents that activity
* graph.
* @see ModelElementFacade#getStateMachineContext()
*/
public StateMachineFacade getStateMachineContext()
{
return this.getSuperFrontEndUseCase().getStateMachineContext();
}
/**
* The collection of ALL stereotype names for this model element.
* @see ModelElementFacade#getStereotypeNames()
*/
public Collection<String> getStereotypeNames()
{
return this.getSuperFrontEndUseCase().getStereotypeNames();
}
/**
* Gets all stereotypes for this model element.
* @see ModelElementFacade#getStereotypes()
*/
public Collection<StereotypeFacade> getStereotypes()
{
return this.getSuperFrontEndUseCase().getStereotypes();
}
/**
* Return the TaggedValues associated with this model element, under all stereotypes.
* @see ModelElementFacade#getTaggedValues()
*/
public Collection<TaggedValueFacade> getTaggedValues()
{
return this.getSuperFrontEndUseCase().getTaggedValues();
}
/**
* Gets the dependencies for which this model element is the target.
* @see ModelElementFacade#getTargetDependencies()
*/
public Collection<DependencyFacade> getTargetDependencies()
{
return this.getSuperFrontEndUseCase().getTargetDependencies();
}
/**
* Get the template parameter for this model element having the parameterName
* @see ModelElementFacade#getTemplateParameter(String parameterName)
*/
public Object getTemplateParameter(String parameterName)
{
return this.getSuperFrontEndUseCase().getTemplateParameter(parameterName);
}
/**
* Get the template parameters for this model element
* @see ModelElementFacade#getTemplateParameters()
*/
public Collection<TemplateParameterFacade> getTemplateParameters()
{
return this.getSuperFrontEndUseCase().getTemplateParameters();
}
/**
* The visibility (i.e. public, private, protected or package) of the model element, will
* attempt a lookup for these values in the language mappings (if any).
* @see ModelElementFacade#getVisibility()
*/
public String getVisibility()
{
return this.getSuperFrontEndUseCase().getVisibility();
}
/**
* Returns true if the model element has the exact stereotype (meaning no stereotype inheritance
* is taken into account when searching for the stereotype), false otherwise.
* @see ModelElementFacade#hasExactStereotype(String stereotypeName)
*/
public boolean hasExactStereotype(String stereotypeName)
{
return this.getSuperFrontEndUseCase().hasExactStereotype(stereotypeName);
}
/**
* Does the UML Element contain the named Keyword? Keywords can be separated by space, comma,
* pipe, semicolon, or << >>
* @see ModelElementFacade#hasKeyword(String keywordName)
*/
public boolean hasKeyword(String keywordName)
{
return this.getSuperFrontEndUseCase().hasKeyword(keywordName);
}
/**
* Returns true if the model element has the specified stereotype. If the stereotype itself
* does not match, then a search will be made up the stereotype inheritance hierarchy, and if
* one of the stereotype's ancestors has a matching name this method will return true, false
* otherwise.
* For example, if we have a certain stereotype called <<exception>> and a model element has a
* stereotype called <<applicationException>> which extends <<exception>>, when calling this
* method with 'stereotypeName' defined as 'exception' the method would return true since
* <<applicationException>> inherits from <<exception>>. If you want to check if the model
* element has the exact stereotype, then use the method 'hasExactStereotype' instead.
* @see ModelElementFacade#hasStereotype(String stereotypeName)
*/
public boolean hasStereotype(String stereotypeName)
{
return this.getSuperFrontEndUseCase().hasStereotype(stereotypeName);
}
/**
* True if there are target dependencies from this element that are instances of BindingFacade.
* Deprecated in UML2: Use TemplateBinding parameters instead of dependencies.
* @see ModelElementFacade#isBindingDependenciesPresent()
*/
public boolean isBindingDependenciesPresent()
{
return this.getSuperFrontEndUseCase().isBindingDependenciesPresent();
}
/**
* Indicates if any constraints are present on this model element.
* @see ModelElementFacade#isConstraintsPresent()
*/
public boolean isConstraintsPresent()
{
return this.getSuperFrontEndUseCase().isConstraintsPresent();
}
/**
* Indicates if any documentation is present on this model element.
* @see ModelElementFacade#isDocumentationPresent()
*/
public boolean isDocumentationPresent()
{
return this.getSuperFrontEndUseCase().isDocumentationPresent();
}
/**
* True if this element name is a reserved word in Java, C#, ANSI or ISO C, C++, JavaScript.
* @see ModelElementFacade#isReservedWord()
*/
public boolean isReservedWord()
{
return this.getSuperFrontEndUseCase().isReservedWord();
}
/**
* True is there are template parameters on this model element. For UML2, applies to Class,
* Operation, Property, and Parameter.
* @see ModelElementFacade#isTemplateParametersPresent()
*/
public boolean isTemplateParametersPresent()
{
return this.getSuperFrontEndUseCase().isTemplateParametersPresent();
}
/**
* True if this element name is a valid identifier name in Java, C#, ANSI or ISO C, C++,
* JavaScript. Contains no spaces, special characters etc. Constraint always applied on
* Enumerations and Interfaces, optionally applies on other model elements.
* @see ModelElementFacade#isValidIdentifierName()
*/
public boolean isValidIdentifierName()
{
return this.getSuperFrontEndUseCase().isValidIdentifierName();
}
/**
* Searches for the constraint with the specified 'name' on this model element, and if found
* translates it using the specified 'translation' from a translation library discovered by the
* framework.
* @see ModelElementFacade#translateConstraint(String name, String translation)
*/
public String translateConstraint(String name, String translation)
{
return this.getSuperFrontEndUseCase().translateConstraint(name, translation);
}
/**
* Translates all constraints belonging to this model element with the given 'translation'.
* @see ModelElementFacade#translateConstraints(String translation)
*/
public String[] translateConstraints(String translation)
{
return this.getSuperFrontEndUseCase().translateConstraints(translation);
}
/**
* Translates the constraints of the specified 'kind' belonging to this model element.
* @see ModelElementFacade#translateConstraints(String kind, String translation)
*/
public String[] translateConstraints(String kind, String translation)
{
return this.getSuperFrontEndUseCase().translateConstraints(kind, translation);
}
/**
* Gets the model elements which this namespace owns.
* @see org.andromda.metafacades.uml.NamespaceFacade#getOwnedElements()
*/
public Collection<ModelElementFacade> getOwnedElements()
{
return this.getSuperFrontEndUseCase().getOwnedElements();
}
/**
* The extend instances related to this use-case.
* @see org.andromda.metafacades.uml.UseCaseFacade#getExtends()
*/
public Collection<ExtendFacade> getExtends()
{
return this.getSuperFrontEndUseCase().getExtends();
}
/**
* The extension points related to this use-case.
* @see org.andromda.metafacades.uml.UseCaseFacade#getExtensionPoints()
*/
public Collection<ExtensionPointFacade> getExtensionPoints()
{
return this.getSuperFrontEndUseCase().getExtensionPoints();
}
/**
* The first activity graph directly owned by this use-case.
* @see org.andromda.metafacades.uml.UseCaseFacade#getFirstActivityGraph()
*/
public ActivityGraphFacade getFirstActivityGraph()
{
return this.getSuperFrontEndUseCase().getFirstActivityGraph();
}
/**
* The included instances related to this use-case.
* @see org.andromda.metafacades.uml.UseCaseFacade#getIncludes()
*/
public Collection<IncludeFacade> getIncludes()
{
return this.getSuperFrontEndUseCase().getIncludes();
}
/**
* @see MetafacadeBase#initialize()
*/
@Override
public void initialize()
{
this.getSuperFrontEndUseCase().initialize();
}
/**
* @return Object getSuperFrontEndUseCase().getValidationOwner()
* @see MetafacadeBase#getValidationOwner()
*/
@Override
public Object getValidationOwner()
{
Object owner = this.getSuperFrontEndUseCase().getValidationOwner();
return owner;
}
/**
* @return String getSuperFrontEndUseCase().getValidationName()
* @see MetafacadeBase#getValidationName()
*/
@Override
public String getValidationName()
{
String name = this.getSuperFrontEndUseCase().getValidationName();
return name;
}
/**
* <p><b>Constraint:</b> org::andromda::cartridges::bpm4struts::metafacades::StrutsUseCase::use-cases that loop need at least one page</p>
* <p><b>Error:</b> This use-case has a final state targetting the same use-case, while at the same time no pages have been modeled. This will lead to an infinite loop at runtime since the same event will keep invoking itself.</p>
* <p><b>OCL:</b> context StrutsUseCase inv: cyclic implies pages->notEmpty()</p>
* @param validationMessages Collection<ModelValidationMessage>
* @see MetafacadeBase#validateInvariants(Collection validationMessages)
*/
@Override
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
{
this.getSuperFrontEndUseCase().validateInvariants(validationMessages);
try
{
final Object contextElement = this.THIS();
boolean constraintValid = OCLResultEnsurer.ensure((Boolean.valueOf(String.valueOf(OCLIntrospector.invoke(contextElement,"cyclic"))).booleanValue()?OCLCollections.notEmpty(OCLIntrospector.invoke(contextElement,"pages")):true));
if (!constraintValid)
{
validationMessages.add(
new ModelValidationMessage(
(MetafacadeBase)contextElement ,
"org::andromda::cartridges::bpm4struts::metafacades::StrutsUseCase::use-cases that loop need at least one page",
"This use-case has a final state targetting the same use-case, while at the same time no pages have been modeled. This will lead to an infinite loop at runtime since the same event will keep invoking itself."));
}
}
catch (Throwable th)
{
Throwable cause = th.getCause();
int depth = 0; // Some throwables have infinite recursion
while (cause != null && depth < 7)
{
th = cause;
depth++;
}
logger.error("Error validating constraint 'org::andromda::cartridges::bpm4struts::metafacades::StrutsUseCase::use-cases that loop need at least one page' ON "
+ this.THIS().toString() + ": " + th.getMessage(), th);
}
}
/**
* The property that stores the name of the metafacade.
*/
private static final String NAME_PROPERTY = "name";
private static final String FQNAME_PROPERTY = "fullyQualifiedName";
/**
* @see Object#toString()
*/
@Override
public String toString()
{
final StringBuilder toString = new StringBuilder(this.getClass().getName());
toString.append("[");
try
{
toString.append(Introspector.instance().getProperty(this, FQNAME_PROPERTY));
}
catch (final Throwable tryAgain)
{
try
{
toString.append(Introspector.instance().getProperty(this, NAME_PROPERTY));
}
catch (final Throwable ignore)
{
// - just ignore when the metafacade doesn't have a name or fullyQualifiedName property
}
}
toString.append("]");
return toString.toString();
}
}