UML.Semantic.Foundation.Core
Class Operation

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Feature
              |
              +--UML.Semantic.Foundation.Core.BehavioralFeature
                    |
                    +--UML.Semantic.Foundation.Core.Operation
All Implemented Interfaces:
Element, ElementAtt, LinkAtt, Request

public class Operation
extends BehavioralFeature
implements Request

An operation is a service that can be requested from an object to effect behavior. An operation has a signature, which describes the actual parameters that are possible (including possible return values).

In the metamodel an Operation is a BehavioralFeature that can be applied to the Instances of the Classifier that contains the Operation.


Constructor Summary
Operation()
          Constructor.
 
Method Summary
 void add(Method elem)
          Adds a realizing method to this operation.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getConcurrency()
          Gets the value of the concurrency attribute.
 void getInfo()
          Gets info on Operation.
 boolean getIsAbstract()
          Gets the value of the isAbstract attribute.
 boolean getIsPolymorphic()
          Gets the value of the isPolymorphic attribute.
 java.util.Vector getMethod()
          Gets the set of realizing methods of this operation.
 Method getMethod(int i)
          Gets the i-th realizing method (if exists) of this operation .
 java.lang.String getSpecification()
          Gets the specfication of this operation.
 void setConcurrency(java.lang.String mode)
          Sets the value of the concurrency attribute according to the given value.
 void setIsAbstract(java.lang.String mode)
          Sets the value of the isAbstract attribute according to the given value.
 void setIsPolymorphic(java.lang.String mode)
          Sets the value of the isPolymorphic attribute according to the given value.
 void setSpecification(java.lang.String specification)
          Sets the specfication of this operation.
 
Methods inherited from class UML.Semantic.Foundation.Core.BehavioralFeature
add, getIsQuery, getParameter, getParameterAt, getParameterList, getReturnList, getSignature, setIsQuery
 
Methods inherited from class UML.Semantic.Foundation.Core.Feature
getOwner, getOwnerScope, setOwner, setOwnerScope
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation

public Operation()
Constructor.

Method Detail

setIsPolymorphic

public void setIsPolymorphic(java.lang.String mode)
Sets the value of the isPolymorphic attribute according to the given value.


getIsPolymorphic

public boolean getIsPolymorphic()
Gets the value of the isPolymorphic attribute.

Returns:
A true or false value.

setIsAbstract

public void setIsAbstract(java.lang.String mode)
Sets the value of the isAbstract attribute according to the given value.


getIsAbstract

public boolean getIsAbstract()
Gets the value of the isAbstract attribute.

Returns:
A true or false string.

setConcurrency

public void setConcurrency(java.lang.String mode)
Sets the value of the concurrency attribute according to the given value.


getConcurrency

public java.lang.String getConcurrency()
Gets the value of the concurrency attribute.

Returns:
The concurrency kind.

setSpecification

public void setSpecification(java.lang.String specification)
Sets the specfication of this operation.


getSpecification

public java.lang.String getSpecification()
Gets the specfication of this operation.

Returns:
A specification string

add

public void add(Method elem)
Adds a realizing method to this operation.


getMethod

public java.util.Vector getMethod()
Gets the set of realizing methods of this operation.

Returns:
A Vector of Method identifiers.

getMethod

public Method getMethod(int i)
Gets the i-th realizing method (if exists) of this operation .

Returns:
A Method object.

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class BehavioralFeature
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on Operation.

Overrides:
getInfo in class ModelElement