EJB3FinderMethodFacadeLogic.java
// license-header java merge-point
//
// Attention: generated code (by MetafacadeLogic.vsl) - do not modify!
//
package org.andromda.cartridges.ejb3.metafacades;
import java.util.Collection;
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.ClassifierFacade;
import org.andromda.metafacades.uml.ConstraintFacade;
import org.andromda.metafacades.uml.DependencyFacade;
import org.andromda.metafacades.uml.EntityQueryOperation;
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.ParameterFacade;
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;
/**
* Represents an EJB finder method.
* MetafacadeLogic for EJB3FinderMethodFacade
*
* @see EJB3FinderMethodFacade
*/
public abstract class EJB3FinderMethodFacadeLogic
extends MetafacadeBase
implements EJB3FinderMethodFacade
{
/**
* The underlying UML object
* @see Object
*/
protected Object metaObject;
/** Create Metafacade implementation instance using the MetafacadeFactory from the context
* @param metaObjectIn
* @param context
*/
protected EJB3FinderMethodFacadeLogic(Object metaObjectIn, String context)
{
super(metaObjectIn, getContext(context));
this.superEntityQueryOperation =
(EntityQueryOperation)
MetafacadeFactory.getInstance().createFacadeImpl(
"org.andromda.metafacades.uml.EntityQueryOperation",
metaObjectIn,
getContext(context));
this.metaObject = metaObjectIn;
}
/**
* Gets the context for this metafacade logic instance.
* @param context String. Set to EJB3FinderMethodFacade if null
* @return context String
*/
private static String getContext(String context)
{
if (context == null)
{
context = "org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade";
}
return context;
}
private EntityQueryOperation superEntityQueryOperation;
private boolean superEntityQueryOperationInitialized = false;
/**
* Gets the EntityQueryOperation parent instance.
* @return this.superEntityQueryOperation EntityQueryOperation
*/
private EntityQueryOperation getSuperEntityQueryOperation()
{
if (!this.superEntityQueryOperationInitialized)
{
((MetafacadeBase)this.superEntityQueryOperation).setMetafacadeContext(this.getMetafacadeContext());
this.superEntityQueryOperationInitialized = true;
}
return this.superEntityQueryOperation;
}
/** Reset context only for non-root metafacades
* @param context
* @see org.andromda.core.metafacade.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.superEntityQueryOperationInitialized)
{
((MetafacadeBase)this.superEntityQueryOperation).resetMetafacadeContext(context);
}
}
}
/**
* @return boolean true always
* @see EJB3FinderMethodFacade
*/
public boolean isEJB3FinderMethodFacadeMetaType()
{
return true;
}
// --------------- attributes ---------------------
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade#getQuery()
* @return String
*/
protected abstract String handleGetQuery();
private String __query1a;
private boolean __query1aSet = false;
/**
* The query string for this EJB entity finder.
* @return (String)handleGetQuery()
*/
public final String getQuery()
{
String query1a = this.__query1a;
if (!this.__query1aSet)
{
// query has no pre constraints
query1a = handleGetQuery();
// query has no post constraints
this.__query1a = query1a;
if (isMetafacadePropertyCachingEnabled())
{
this.__query1aSet = true;
}
}
return query1a;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade#getTransactionType()
* @return String
*/
protected abstract String handleGetTransactionType();
private String __transactionType2a;
private boolean __transactionType2aSet = false;
/**
* Gets the transaction type for this finder (i.e. REQUIRED, etc)
* @return (String)handleGetTransactionType()
*/
public final String getTransactionType()
{
String transactionType2a = this.__transactionType2a;
if (!this.__transactionType2aSet)
{
// transactionType has no pre constraints
transactionType2a = handleGetTransactionType();
// transactionType has no post constraints
this.__transactionType2a = transactionType2a;
if (isMetafacadePropertyCachingEnabled())
{
this.__transactionType2aSet = true;
}
}
return transactionType2a;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade#isUseNamedParameters()
* @return boolean
*/
protected abstract boolean handleIsUseNamedParameters();
private boolean __useNamedParameters3a;
private boolean __useNamedParameters3aSet = false;
/**
* Indicates whether or not the query parameters used for the body of the finder should be named
* ':someParam' or unnamed '?'.
* @return (boolean)handleIsUseNamedParameters()
*/
public final boolean isUseNamedParameters()
{
boolean useNamedParameters3a = this.__useNamedParameters3a;
if (!this.__useNamedParameters3aSet)
{
// useNamedParameters has no pre constraints
useNamedParameters3a = handleIsUseNamedParameters();
// useNamedParameters has no post constraints
this.__useNamedParameters3a = useNamedParameters3a;
if (isMetafacadePropertyCachingEnabled())
{
this.__useNamedParameters3aSet = true;
}
}
return useNamedParameters3a;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade#isUseQueryCache()
* @return boolean
*/
protected abstract boolean handleIsUseQueryCache();
private boolean __useQueryCache4a;
private boolean __useQueryCache4aSet = false;
/**
* Returns true if this query has the andromda_ejb_query_useCache tagged value true or the
* application wide namespace property hibernateUseQueryCache is enabled.
* @return (boolean)handleIsUseQueryCache()
*/
public final boolean isUseQueryCache()
{
boolean useQueryCache4a = this.__useQueryCache4a;
if (!this.__useQueryCache4aSet)
{
// useQueryCache has no pre constraints
useQueryCache4a = handleIsUseQueryCache();
// useQueryCache has no post constraints
this.__useQueryCache4a = useQueryCache4a;
if (isMetafacadePropertyCachingEnabled())
{
this.__useQueryCache4aSet = true;
}
}
return useQueryCache4a;
}
/**
* @see org.andromda.cartridges.ejb3.metafacades.EJB3FinderMethodFacade#isNamedQuery()
* @return boolean
*/
protected abstract boolean handleIsNamedQuery();
private boolean __namedQuery5a;
private boolean __namedQuery5aSet = false;
/**
* Returns true if query is specified using OCL or created by AndroMDA itself. Return false if
* specified using tagged value.
* @return (boolean)handleIsNamedQuery()
*/
public final boolean isNamedQuery()
{
boolean namedQuery5a = this.__namedQuery5a;
if (!this.__namedQuery5aSet)
{
// namedQuery has no pre constraints
namedQuery5a = handleIsNamedQuery();
// namedQuery has no post constraints
this.__namedQuery5a = namedQuery5a;
if (isMetafacadePropertyCachingEnabled())
{
this.__namedQuery5aSet = true;
}
}
return namedQuery5a;
}
// ---------------- business methods ----------------------
/**
* Method to be implemented in descendants
* Gets the query; taking the entity of which should be included in the query (not counting
* queries that are explicitly modeled in OCL).
* @param entity
* @return String
*/
protected abstract String handleGetQuery(EJB3EntityFacade entity);
/**
* Gets the query; taking the entity of which should be included in the query (not counting
* queries that are explicitly modeled in OCL).
* @param entity EJB3EntityFacade
* The entity which to create the query from.
* @return handleGetQuery(entity)
*/
public String getQuery(EJB3EntityFacade entity)
{
// getQuery has no pre constraints
String returnValue = handleGetQuery(entity);
// getQuery has no post constraints
return returnValue;
}
/**
* @return true
* @see EntityQueryOperation
*/
public boolean isEntityQueryOperationMetaType()
{
return true;
}
/**
* @return true
* @see OperationFacade
*/
public boolean isOperationFacadeMetaType()
{
return true;
}
/**
* @return true
* @see ModelElementFacade
*/
public boolean isModelElementFacadeMetaType()
{
return true;
}
// ----------- delegates to EntityQueryOperation ------------
/**
* The query string for this EntityFinderMethod. The query returned is based on the
* 'translation' passed in. The translation must be one available to AndroMDA found with a
* translation-library.
* @see EntityQueryOperation#getQuery(String translation)
*/
public String getQuery(String translation)
{
return this.getSuperEntityQueryOperation().getQuery(translation);
}
/**
* Copies all tagged values from the given ModelElementFacade to this model element facade.
* @see ModelElementFacade#copyTaggedValues(ModelElementFacade element)
*/
public void copyTaggedValues(ModelElementFacade element)
{
this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getBindedFullyQualifiedName(bindedElement);
}
/**
* Gets all constraints belonging to the model element.
* @see ModelElementFacade#getConstraints()
*/
public Collection<ConstraintFacade> getConstraints()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getDocumentation(indent, lineLength, htmlStyle);
}
/**
* The fully qualified name of this model element.
* @see ModelElementFacade#getFullyQualifiedName()
*/
public String getFullyQualifiedName()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getFullyQualifiedNamePath();
}
/**
* Gets the unique identifier of the underlying model element.
* @see ModelElementFacade#getId()
*/
public String getId()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getKeywords();
}
/**
* UML2: Retrieves a localized label for this named element.
* @see ModelElementFacade#getLabel()
*/
public String getLabel()
{
return this.getSuperEntityQueryOperation().getLabel();
}
/**
* The language mappings that have been set for this model element.
* @see ModelElementFacade#getLanguageMappings()
*/
public TypeMappings getLanguageMappings()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getModel();
}
/**
* The name of the model element.
* @see ModelElementFacade#getName()
*/
public String getName()
{
return this.getSuperEntityQueryOperation().getName();
}
/**
* Gets the package to which this model element belongs.
* @see ModelElementFacade#getPackage()
*/
public ModelElementFacade getPackage()
{
return this.getSuperEntityQueryOperation().getPackage();
}
/**
* The name of this model element's package.
* @see ModelElementFacade#getPackageName()
*/
public String getPackageName()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getQualifiedName();
}
/**
* Gets the root package for the model element.
* @see ModelElementFacade#getRootPackage()
*/
public PackageFacade getRootPackage()
{
return this.getSuperEntityQueryOperation().getRootPackage();
}
/**
* Gets the dependencies for which this model element is the source.
* @see ModelElementFacade#getSourceDependencies()
*/
public Collection<DependencyFacade> getSourceDependencies()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().getStateMachineContext();
}
/**
* The collection of ALL stereotype names for this model element.
* @see ModelElementFacade#getStereotypeNames()
*/
public Collection<String> getStereotypeNames()
{
return this.getSuperEntityQueryOperation().getStereotypeNames();
}
/**
* Gets all stereotypes for this model element.
* @see ModelElementFacade#getStereotypes()
*/
public Collection<StereotypeFacade> getStereotypes()
{
return this.getSuperEntityQueryOperation().getStereotypes();
}
/**
* Return the TaggedValues associated with this model element, under all stereotypes.
* @see ModelElementFacade#getTaggedValues()
*/
public Collection<TaggedValueFacade> getTaggedValues()
{
return this.getSuperEntityQueryOperation().getTaggedValues();
}
/**
* Gets the dependencies for which this model element is the target.
* @see ModelElementFacade#getTargetDependencies()
*/
public Collection<DependencyFacade> getTargetDependencies()
{
return this.getSuperEntityQueryOperation().getTargetDependencies();
}
/**
* Get the template parameter for this model element having the parameterName
* @see ModelElementFacade#getTemplateParameter(String parameterName)
*/
public Object getTemplateParameter(String parameterName)
{
return this.getSuperEntityQueryOperation().getTemplateParameter(parameterName);
}
/**
* Get the template parameters for this model element
* @see ModelElementFacade#getTemplateParameters()
*/
public Collection<TemplateParameterFacade> getTemplateParameters()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().isBindingDependenciesPresent();
}
/**
* Indicates if any constraints are present on this model element.
* @see ModelElementFacade#isConstraintsPresent()
*/
public boolean isConstraintsPresent()
{
return this.getSuperEntityQueryOperation().isConstraintsPresent();
}
/**
* Indicates if any documentation is present on this model element.
* @see ModelElementFacade#isDocumentationPresent()
*/
public boolean isDocumentationPresent()
{
return this.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().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.getSuperEntityQueryOperation().translateConstraints(kind, translation);
}
/**
* Finds the parameter on this operation having the given name, if no parameter is found, null
* is returned instead.
* @see OperationFacade#findParameter(String name)
*/
public ParameterFacade findParameter(String name)
{
return this.getSuperEntityQueryOperation().findParameter(name);
}
/**
* Searches the given feature for the specified tag.
* If the follow boolean is set to true then the search will continue from the class operation
* to the class itself and then up the class hierarchy.
* @see OperationFacade#findTaggedValue(String name, boolean follow)
*/
public Object findTaggedValue(String name, boolean follow)
{
return this.getSuperEntityQueryOperation().findTaggedValue(name, follow);
}
/**
* A comma separated list of all argument names.
* @see OperationFacade#getArgumentNames()
*/
public String getArgumentNames()
{
return this.getSuperEntityQueryOperation().getArgumentNames();
}
/**
* A comma separated list of all types of each argument, in order.
* @see OperationFacade#getArgumentTypeNames()
*/
public String getArgumentTypeNames()
{
return this.getSuperEntityQueryOperation().getArgumentTypeNames();
}
/**
* Specification of an argument used to pass information into or out of an invocation of a
* behavioral
* feature. Parameters are allowed to be treated as connectable elements. Parameters have
* support for
* streaming, exceptions, and parameter sets.
* @see OperationFacade#getArguments()
*/
public Collection<ParameterFacade> getArguments()
{
return this.getSuperEntityQueryOperation().getArguments();
}
/**
* Constructs the operation call with the operation name
* @see OperationFacade#getCall()
*/
public String getCall()
{
return this.getSuperEntityQueryOperation().getCall();
}
/**
* Returns the concurrency modifier for this operation (i.e. concurrent, guarded or sequential)
* of the model element, will attempt a lookup for these values in the language mappings (if
* any).
* @see OperationFacade#getConcurrency()
*/
public String getConcurrency()
{
return this.getSuperEntityQueryOperation().getConcurrency();
}
/**
* A comma separated list containing all exceptions that this operation throws. Exceptions are
* determined through dependencies that have the target element stereotyped as <<Exception>>.
* @see OperationFacade#getExceptionList()
*/
public String getExceptionList()
{
return this.getSuperEntityQueryOperation().getExceptionList();
}
/**
* Returns a comma separated list of exceptions appended to the comma separated list of fully
* qualified 'initialException' classes passed in to this method.
* @see OperationFacade#getExceptionList(String initialExceptions)
*/
public String getExceptionList(String initialExceptions)
{
return this.getSuperEntityQueryOperation().getExceptionList(initialExceptions);
}
/**
* A collection of all exceptions thrown by this operation.
* @see OperationFacade#getExceptions()
*/
public Collection<ModelElementFacade> getExceptions()
{
return this.getSuperEntityQueryOperation().getExceptions();
}
/**
* Return Type with multiplicity taken into account. UML14 does not allow multiplicity *.
* @see OperationFacade#getGetterSetterReturnTypeName()
*/
public String getGetterSetterReturnTypeName()
{
return this.getSuperEntityQueryOperation().getGetterSetterReturnTypeName();
}
/**
* the lower value for the multiplicity
* -only applicable for UML2
* @see OperationFacade#getLower()
*/
public int getLower()
{
return this.getSuperEntityQueryOperation().getLower();
}
/**
* Returns the operation method body determined from UML sequence diagrams or other UML sources.
* @see OperationFacade#getMethodBody()
*/
public String getMethodBody()
{
return this.getSuperEntityQueryOperation().getMethodBody();
}
/**
* The operation this operation overrides, null if this operation is not overriding.
* @see OperationFacade#getOverriddenOperation()
*/
public OperationFacade getOverriddenOperation()
{
return this.getSuperEntityQueryOperation().getOverriddenOperation();
}
/**
* Gets the owner of this operation
* @see OperationFacade#getOwner()
*/
public ClassifierFacade getOwner()
{
return this.getSuperEntityQueryOperation().getOwner();
}
/**
* Return all parameters for the operation, including the return parameter.
* @see OperationFacade#getParameters()
*/
public Collection<ParameterFacade> getParameters()
{
return this.getSuperEntityQueryOperation().getParameters();
}
/**
* The name of the operation that handles postcondition constraints.
* @see OperationFacade#getPostconditionName()
*/
public String getPostconditionName()
{
return this.getSuperEntityQueryOperation().getPostconditionName();
}
/**
* The postcondition constraints belonging to this operation.
* @see OperationFacade#getPostconditions()
*/
public Collection<ConstraintFacade> getPostconditions()
{
return this.getSuperEntityQueryOperation().getPostconditions();
}
/**
* The call to the precondition operation.
* @see OperationFacade#getPreconditionCall()
*/
public String getPreconditionCall()
{
return this.getSuperEntityQueryOperation().getPreconditionCall();
}
/**
* The name of the operation that handles precondition constraints.
* @see OperationFacade#getPreconditionName()
*/
public String getPreconditionName()
{
return this.getSuperEntityQueryOperation().getPreconditionName();
}
/**
* The signature of the precondition operation.
* @see OperationFacade#getPreconditionSignature()
*/
public String getPreconditionSignature()
{
return this.getSuperEntityQueryOperation().getPreconditionSignature();
}
/**
* The precondition constraints belonging to this operation.
* @see OperationFacade#getPreconditions()
*/
public Collection<ConstraintFacade> getPreconditions()
{
return this.getSuperEntityQueryOperation().getPreconditions();
}
/**
* (UML2 Only). Get the actual return parameter (which may have stereotypes etc).
* @see OperationFacade#getReturnParameter()
*/
public ParameterFacade getReturnParameter()
{
return this.getSuperEntityQueryOperation().getReturnParameter();
}
/**
* The operation return type parameter.
* @see OperationFacade#getReturnType()
*/
public ClassifierFacade getReturnType()
{
return this.getSuperEntityQueryOperation().getReturnType();
}
/**
* Return the operation signature, including public/protested abstract returnType name plus
* argument type and name
* @see OperationFacade#getSignature()
*/
public String getSignature()
{
return this.getSuperEntityQueryOperation().getSignature();
}
/**
* Returns the signature of the operation and optionally appends the argument names (if
* withArgumentNames is true), otherwise returns the signature with just the types alone in the
* signature.
* @see OperationFacade#getSignature(boolean withArgumentNames)
*/
public String getSignature(boolean withArgumentNames)
{
return this.getSuperEntityQueryOperation().getSignature(withArgumentNames);
}
/**
* Returns the signature of the operation and optionally appends the given 'argumentModifier' to
* each argument.
* @see OperationFacade#getSignature(String argumentModifier)
*/
public String getSignature(String argumentModifier)
{
return this.getSuperEntityQueryOperation().getSignature(argumentModifier);
}
/**
* A comma-separated parameter list (type and name of each parameter) of an operation.
* @see OperationFacade#getTypedArgumentList()
*/
public String getTypedArgumentList()
{
return this.getSuperEntityQueryOperation().getTypedArgumentList();
}
/**
* A comma-separated parameter list (type and name of each parameter) of an operation with an
* optional modifier (i.e final) before each parameter.
* @see OperationFacade#getTypedArgumentList(String modifier)
*/
public String getTypedArgumentList(String modifier)
{
return this.getSuperEntityQueryOperation().getTypedArgumentList(modifier);
}
/**
* the upper value for the multiplicity (will be -1 for *)
* - only applicable for UML2
* @see OperationFacade#getUpper()
*/
public int getUpper()
{
return this.getSuperEntityQueryOperation().getUpper();
}
/**
* True is the operation is abstract.
* @see OperationFacade#isAbstract()
*/
public boolean isAbstract()
{
return this.getSuperEntityQueryOperation().isAbstract();
}
/**
* True if the operation has (i.e. throws any exceptions) false otherwise.
* @see OperationFacade#isExceptionsPresent()
*/
public boolean isExceptionsPresent()
{
return this.getSuperEntityQueryOperation().isExceptionsPresent();
}
/**
* IsLeaf property in the operation. If true, operation is final, cannot be extended or
* implemented by a descendant. Default=false.
* @see OperationFacade#isLeaf()
*/
public boolean isLeaf()
{
return this.getSuperEntityQueryOperation().isLeaf();
}
/**
* UML2 only. If the return type parameter multiplicity>1 OR the operation multiplicity>1.
* Default=false.
* @see OperationFacade#isMany()
*/
public boolean isMany()
{
return this.getSuperEntityQueryOperation().isMany();
}
/**
* UML2 only: If isMany (Collection type returned), is the type unique within the collection.
* Unique+Ordered determines CollectionType implementation of return result. Default=false.
* @see OperationFacade#isOrdered()
*/
public boolean isOrdered()
{
return this.getSuperEntityQueryOperation().isOrdered();
}
/**
* True if this operation overrides an operation defined in an ancestor class. An operation
* overrides when the names of the operations as well as the types of the arguments are equal.
* The return type may be different and is, as well as any exceptions, ignored.
* @see OperationFacade#isOverriding()
*/
public boolean isOverriding()
{
return this.getSuperEntityQueryOperation().isOverriding();
}
/**
* Whether any postcondition constraints are present on this operation.
* @see OperationFacade#isPostconditionsPresent()
*/
public boolean isPostconditionsPresent()
{
return this.getSuperEntityQueryOperation().isPostconditionsPresent();
}
/**
* Whether any precondition constraints are present on this operation.
* @see OperationFacade#isPreconditionsPresent()
*/
public boolean isPreconditionsPresent()
{
return this.getSuperEntityQueryOperation().isPreconditionsPresent();
}
/**
* Indicates whether or not this operation is a query operation.
* @see OperationFacade#isQuery()
*/
public boolean isQuery()
{
return this.getSuperEntityQueryOperation().isQuery();
}
/**
* True/false depending on whether or not the operation has a return type or not (i.e. a return
* type of something other than void).
* @see OperationFacade#isReturnTypePresent()
*/
public boolean isReturnTypePresent()
{
return this.getSuperEntityQueryOperation().isReturnTypePresent();
}
/**
* True is the operation is static (only a single instance can be instantiated).
* @see OperationFacade#isStatic()
*/
public boolean isStatic()
{
return this.getSuperEntityQueryOperation().isStatic();
}
/**
* UML2 only: for Collection return type, is the type unique within the collection.
* Unique+Ordered determines the returned CollectionType. Default=false.
* @see OperationFacade#isUnique()
*/
public boolean isUnique()
{
return this.getSuperEntityQueryOperation().isUnique();
}
/**
* @see org.andromda.core.metafacade.MetafacadeBase#initialize()
*/
@Override
public void initialize()
{
this.getSuperEntityQueryOperation().initialize();
}
/**
* @return Object getSuperEntityQueryOperation().getValidationOwner()
* @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
*/
@Override
public Object getValidationOwner()
{
Object owner = this.getSuperEntityQueryOperation().getValidationOwner();
return owner;
}
/**
* @return String getSuperEntityQueryOperation().getValidationName()
* @see org.andromda.core.metafacade.MetafacadeBase#getValidationName()
*/
@Override
public String getValidationName()
{
String name = this.getSuperEntityQueryOperation().getValidationName();
return name;
}
/**
* @param validationMessages Collection<ModelValidationMessage>
* @see org.andromda.core.metafacade.MetafacadeBase#validateInvariants(Collection validationMessages)
*/
@Override
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
{
this.getSuperEntityQueryOperation().validateInvariants(validationMessages);
}
/**
* 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();
}
}