org.andromda.metafacades.uml
Interface OperationFacade

All Superinterfaces:
ModelElementFacade
All Known Subinterfaces:
EntityQueryOperation, FrontEndControllerOperation, ServiceOperation

public interface OperationFacade
extends ModelElementFacade

Represents an modeled operation.

Metafacade interface to be used by AndroMDA cartridges.


Method Summary
 ParameterFacade findParameter(java.lang.String name)
           Finds the parameter on this operation having the given name, if no parameter is found, null is returned instead.
 java.lang.Object findTaggedValue(java.lang.String name, boolean follow)
           Searches the given feature for the specified tag.
 java.lang.String getArgumentNames()
           A comma seperated list of all argument names.
 java.util.Collection getArguments()
           
 java.lang.String getArgumentTypeNames()
           
 java.lang.String getCall()
           
 java.lang.String getConcurrency()
           Returns the concurrency modifier for this operation (i.e.
 java.lang.String getExceptionList()
           A comma seperated list containing all exceptions that this operation throws.
 java.lang.String getExceptionList(java.lang.String initialExceptions)
           Returns a comma seperated list of exceptions appended to the comma seperated list of fully qualified 'initialException' classes passed in to this method.
 java.util.Collection getExceptions()
           A collection of all exceptions thrown by this operation.
 int getLower()
           the lower value for the multiplicity
 OperationFacade getOverriddenOperation()
           The operation this operation overrides, null if this operation is not overriding.
 ClassifierFacade getOwner()
           Gets the owner of this operation
 java.util.Collection getParameters()
           
 java.lang.String getPostconditionName()
           The name of the operation that handles postcondition constraints.
 java.util.Collection getPostconditions()
           The postcondition constraints belonging to this operation.
 java.lang.String getPreconditionCall()
           The call to the precondition operation.
 java.lang.String getPreconditionName()
           The name of the operation that handles precondition constraints.
 java.util.Collection getPreconditions()
           The precondition constraints belonging to this operation.
 java.lang.String getPreconditionSignature()
           The signature of the precondition operation.
 ParameterFacade getReturnParameter()
           (UML2 Only).
 ClassifierFacade getReturnType()
           
 java.lang.String getSignature()
           
 java.lang.String getSignature(boolean withArgumentNames)
           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.
 java.lang.String getSignature(java.lang.String argumentModifier)
           Returns the signature of the operation and optionally appends the given 'argumentModifier' to each argument.
 java.lang.String getTypedArgumentList()
           A comma-separated parameter list (type and name of each parameter) of an operation.
 java.lang.String getTypedArgumentList(java.lang.String modifier)
           A comma-separated parameter list (type and name of each parameter) of an operation with an optional modifier (i.e final) before each parameter.
 int getUpper()
           the upper value for the multiplicity (will be -1 for *)
 boolean isAbstract()
           
 boolean isExceptionsPresent()
           True if the operation has (i.e.
 boolean isOperationFacadeMetaType()
          Indicates the metafacade type (used for metafacade mappings).
 boolean isOverriding()
           True if this operation overrides an operation defined in an ancestor class.
 boolean isPostconditionsPresent()
           Whether any postcondition constraints are present on this operation.
 boolean isPreconditionsPresent()
           Whether any precondition constraints are present on this operation.
 boolean isQuery()
           Indicates whether or not this operation is a query operation.
 boolean isReturnTypePresent()
           True/false depending on whether or not the operation has a return type or not (i.e.
 boolean isStatic()
           
 
Methods inherited from interface org.andromda.metafacades.uml.ModelElementFacade
copyTaggedValues, findTaggedValue, findTaggedValues, getConstraints, getConstraints, getDocumentation, getDocumentation, getDocumentation, getFullyQualifiedName, getFullyQualifiedName, getFullyQualifiedNamePath, getId, getLanguageMappings, getModel, getName, getPackage, getPackageName, getPackageName, getPackagePath, getRootPackage, getSourceDependencies, getStateMachineContext, getStereotypeNames, getStereotypes, getTaggedValues, getTargetDependencies, getTemplateParameter, getTemplateParameters, getValidationName, getValidationOwner, getVisibility, hasExactStereotype, hasStereotype, initialize, isBindingDependenciesPresent, isConstraintsPresent, isModelElementFacadeMetaType, isTemplateParametersPresent, translateConstraint, translateConstraints, translateConstraints, validateInvariants
 

Method Detail

isOperationFacadeMetaType

boolean isOperationFacadeMetaType()
Indicates the metafacade type (used for metafacade mappings).

Returns:
always true

findParameter

ParameterFacade findParameter(java.lang.String name)

Finds the parameter on this operation having the given name, if no parameter is found, null is returned instead.


findTaggedValue

java.lang.Object findTaggedValue(java.lang.String name,
                                 boolean follow)

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 hiearchy.


getArgumentNames

java.lang.String getArgumentNames()

A comma seperated list of all argument names.


getArgumentTypeNames

java.lang.String getArgumentTypeNames()

getArguments

java.util.Collection getArguments()

getCall

java.lang.String getCall()

getConcurrency

java.lang.String getConcurrency()

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).


getExceptionList

java.lang.String getExceptionList(java.lang.String initialExceptions)

Returns a comma seperated list of exceptions appended to the comma seperated list of fully qualified 'initialException' classes passed in to this method.


getExceptionList

java.lang.String getExceptionList()

A comma seperated list containing all exceptions that this operation throws. Exceptions are determined through dependencies that have the target element stereotyped as <>.


getExceptions

java.util.Collection getExceptions()

A collection of all exceptions thrown by this operation.


getLower

int getLower()

the lower value for the multiplicity

-only applicable for UML2


getOverriddenOperation

OperationFacade getOverriddenOperation()

The operation this operation overrides, null if this operation is not overriding.


getOwner

ClassifierFacade getOwner()

Gets the owner of this operation


getParameters

java.util.Collection getParameters()

getPostconditionName

java.lang.String getPostconditionName()

The name of the operation that handles postcondition constraints.


getPostconditions

java.util.Collection getPostconditions()

The postcondition constraints belonging to this operation.


getPreconditionCall

java.lang.String getPreconditionCall()

The call to the precondition operation.


getPreconditionName

java.lang.String getPreconditionName()

The name of the operation that handles precondition constraints.


getPreconditionSignature

java.lang.String getPreconditionSignature()

The signature of the precondition operation.


getPreconditions

java.util.Collection getPreconditions()

The precondition constraints belonging to this operation.


getReturnParameter

ParameterFacade getReturnParameter()

(UML2 Only). Get the actual return parameter (which may have stereotypes etc).


getReturnType

ClassifierFacade getReturnType()

getSignature

java.lang.String getSignature(boolean withArgumentNames)

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.


getSignature

java.lang.String getSignature()

getSignature

java.lang.String getSignature(java.lang.String argumentModifier)

Returns the signature of the operation and optionally appends the given 'argumentModifier' to each argument.


getTypedArgumentList

java.lang.String getTypedArgumentList()

A comma-separated parameter list (type and name of each parameter) of an operation.


getTypedArgumentList

java.lang.String getTypedArgumentList(java.lang.String modifier)

A comma-separated parameter list (type and name of each parameter) of an operation with an optional modifier (i.e final) before each parameter.


getUpper

int getUpper()

the upper value for the multiplicity (will be -1 for *)

- only applicable for UML2


isAbstract

boolean isAbstract()

isExceptionsPresent

boolean isExceptionsPresent()

True if the operation has (i.e. throws any exceptions) false otherwise.


isOverriding

boolean isOverriding()

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.


isPostconditionsPresent

boolean isPostconditionsPresent()

Whether any postcondition constraints are present on this operation.


isPreconditionsPresent

boolean isPreconditionsPresent()

Whether any precondition constraints are present on this operation.


isQuery

boolean isQuery()

Indicates whether or not this operation is a query operation.


isReturnTypePresent

boolean isReturnTypePresent()

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).


isStatic

boolean isStatic()


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