|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents an modeled operation.
Metafacade interface to be used by AndroMDA cartridges.
| Method Summary | |
ParameterFacade |
findParameter(String name)
Finds the parameter on this operation having the given name, if no parameter is found, null is returned instead. |
Object |
findTaggedValue(String name,
boolean follow)
Searches the given feature for the specified tag. |
String |
getArgumentNames()
A comma seperated list of all argument names. |
Collection |
getArguments()
|
String |
getArgumentTypeNames()
|
String |
getCall()
|
String |
getConcurrency()
Returns the concurrency modifier for this operation (i.e. |
String |
getExceptionList()
A comma seperated list containing all exceptions that this operation throws. |
String |
getExceptionList(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. |
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 |
Collection |
getParameters()
|
String |
getPostconditionName()
The name of the operation that handles postcondition constraints. |
Collection |
getPostconditions()
The postcondition constraints belonging to this operation. |
String |
getPreconditionCall()
The call to the precondition operation. |
String |
getPreconditionName()
The name of the operation that handles precondition constraints. |
Collection |
getPreconditions()
The precondition constraints belonging to this operation. |
String |
getPreconditionSignature()
The signature of the precondition operation. |
ParameterFacade |
getReturnParameter()
(UML2 Only). |
ClassifierFacade |
getReturnType()
|
String |
getSignature()
|
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. |
String |
getSignature(String argumentModifier)
Returns the signature of the operation and optionally appends the given 'argumentModifier' to each argument. |
String |
getTypedArgumentList()
A comma-separated parameter list (type and name of each parameter) of an operation. |
String |
getTypedArgumentList(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 |
public boolean isOperationFacadeMetaType()
truepublic ParameterFacade findParameter(String name)
Finds the parameter on this operation having the given name, if no parameter is found, null is returned instead.
public Object findTaggedValue(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.
public String getArgumentNames()
A comma seperated list of all argument names.
public String getArgumentTypeNames()
public Collection getArguments()
public String getCall()
public 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).
public String getExceptionList(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.
public 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
<
public Collection getExceptions()
A collection of all exceptions thrown by this operation.
public int getLower()
the lower value for the multiplicity
-only applicable for UML2
public OperationFacade getOverriddenOperation()
The operation this operation overrides, null if this operation is not overriding.
public ClassifierFacade getOwner()
Gets the owner of this operation
public Collection getParameters()
public String getPostconditionName()
The name of the operation that handles postcondition constraints.
public Collection getPostconditions()
The postcondition constraints belonging to this operation.
public String getPreconditionCall()
The call to the precondition operation.
public String getPreconditionName()
The name of the operation that handles precondition constraints.
public String getPreconditionSignature()
The signature of the precondition operation.
public Collection getPreconditions()
The precondition constraints belonging to this operation.
public ParameterFacade getReturnParameter()
(UML2 Only). Get the actual return parameter (which may have stereotypes etc).
public ClassifierFacade getReturnType()
public 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.
public String getSignature()
public String getSignature(String argumentModifier)
Returns the signature of the operation and optionally appends the given 'argumentModifier' to each argument.
public String getTypedArgumentList()
A comma-separated parameter list (type and name of each parameter) of an operation.
public String getTypedArgumentList(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.
public int getUpper()
the upper value for the multiplicity (will be -1 for *)
- only applicable for UML2
public boolean isAbstract()
public boolean isExceptionsPresent()
True if the operation has (i.e. throws any exceptions) false otherwise.
public 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.
public boolean isPostconditionsPresent()
Whether any postcondition constraints are present on this operation.
public boolean isPreconditionsPresent()
Whether any precondition constraints are present on this operation.
public boolean isQuery()
Indicates whether or not this operation is a query operation.
public 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).
public boolean isStatic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||