|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OperationFacade
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()
|
| Method Detail |
|---|
boolean isOperationFacadeMetaType()
trueParameterFacade 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.
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.
java.lang.String getArgumentNames()
A comma seperated list of all argument names.
java.lang.String getArgumentTypeNames()
java.util.Collection getArguments()
java.lang.String getCall()
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).
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.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
<
java.util.Collection getExceptions()
A collection of all exceptions thrown by this operation.
int getLower()
the lower value for the multiplicity
-only applicable for UML2
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.lang.String getPreconditionSignature()
The signature of the precondition operation.
java.util.Collection getPreconditions()
The precondition constraints belonging to this operation.
ParameterFacade getReturnParameter()
(UML2 Only). Get the actual return parameter (which may have stereotypes etc).
ClassifierFacade getReturnType()
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 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 *)
- only applicable for UML2
boolean isAbstract()
boolean isExceptionsPresent()
True if the operation has (i.e. throws any exceptions) false otherwise.
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.
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. a return type of something other than void).
boolean isStatic()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||