All Superinterfaces:
BaseElement, BehavioralFeature, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, Feature, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, ParameterableElement, RedefinableElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject, TemplateableElement

public interface Operation extends BehavioralFeature, ParameterableElement, TemplateableElement
A representation of the model object 'Operation'.

An Operation is a BehavioralFeature of a Classifier that specifies the name, type, parameters, and constraints for invoking an associated Behavior. An Operation may invoke both the execution of method behaviors as well as other behavioral responses. Operation specializes TemplateableElement in order to support specification of template operations and bound operations. Operation specializes ParameterableElement to specify that an operation can be exposed as a formal template parameter, and provided as an actual parameter in a binding of a template.

The following features are supported:

See Also:
Model:
annotation="MOF package='classes.mdkernel'"
Generated:
  • Method Details

    • getInterface

      @CheckForNull Interface getInterface()
      Returns the value of the 'Interface' container reference. It is bidirectional and its opposite is 'Owned Operation'. The Interface that owns this Operation, if any.
      Returns:
      the value of the 'Interface' container reference.
      See Also:
      Model:
      opposite="ownedOperation" transient="false" ordered="false"
      Generated:
    • setInterface

      void setInterface(@CheckForNull Interface value)
      Sets the value of the 'Interface' container reference.
      Parameters:
      value - the new value of the 'Interface' container reference.
      See Also:
      Generated:
    • isOrdered

      boolean isOrdered()
      Returns the value of the 'Ordered' attribute. Specifies whether the return parameter is ordered or not, if present. This information is derived from the return result for this Operation.
      Returns:
      the value of the 'Ordered' attribute.
      See Also:
      • com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getOperation_Ordered()
      Model:
      dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • isQuery

      boolean isQuery()
      Returns the value of the 'Query' attribute. The default value is "false". Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false).
      Returns:
      the value of the 'Query' attribute.
      See Also:
      • setQuery(boolean)
      • com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getOperation_Query()
      Model:
      default="false" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
      Generated:
    • setQuery

      void setQuery(boolean value)
      Sets the value of the 'Query' attribute.
      Parameters:
      value - the new value of the 'Query' attribute.
      See Also:
      Generated:
    • isUnique

      boolean isUnique()
      Returns the value of the 'Unique' attribute. Specifies whether the return parameter is unique or not, if present. This information is derived from the return result for this Operation.
      Returns:
      the value of the 'Unique' attribute.
      See Also:
      • com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage#getOperation_Unique()
      Model:
      dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getUMLClass

      @CheckForNull Class getUMLClass()
      Returns the value of the 'UML Class' container reference. It is bidirectional and its opposite is 'Owned Operation'. The Class that owns this operation, if any.
      Returns:
      the value of the 'UML Class' container reference.
      See Also:
      Model:
      opposite="ownedOperation" transient="false" ordered="false"
      Generated:
    • setUMLClass

      void setUMLClass(@CheckForNull Class value)
      Sets the value of the 'UML Class' container reference.
      Parameters:
      value - the new value of the 'UML Class' container reference.
      See Also:
      Generated:
    • get_callEventOfOperation

      Collection<CallEvent> get_callEventOfOperation()
      Returns the value of the 'call Event Of Operation' reference list. The list contents are of type CallEvent. It is bidirectional and its opposite is 'Operation'.

      If the meaning of the 'call Event Of Operation' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'call Event Of Operation' reference list.
      See Also:
      Model:
      opposite="operation" ordered="false"
      Generated:
    • get_callOperationActionOfOperation

      Collection<CallOperationAction> get_callOperationActionOfOperation()
      Returns the value of the 'call Operation Action Of Operation' reference list. The list contents are of type CallOperationAction. It is bidirectional and its opposite is 'Operation'.

      If the meaning of the 'call Operation Action Of Operation' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'call Operation Action Of Operation' reference list.
      See Also:
      Model:
      opposite="operation" ordered="false"
      Generated:
    • getLower

      int getLower()
      Returns the value of the 'Lower' attribute. Specifies the lower multiplicity of the return parameter, if present. This information is derived from the return result for this Operation.
      Returns:
      the value of the 'Lower' attribute.
      See Also:
      Model:
      dataType="com.nomagic.uml2.ext.magicdraw.Integer" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getUpper

      int getUpper()
      Returns the value of the 'Upper' attribute. The upper multiplicity of the return parameter, if present. This information is derived from the return result for this Operation.
      Returns:
      the value of the 'Upper' attribute.
      See Also:
      Model:
      dataType="com.nomagic.uml2.ext.magicdraw.UnlimitedNatural" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • getPrecondition

      Collection<Constraint> getPrecondition()
      Returns the value of the 'Precondition' reference list. The list contents are of type Constraint. It is bidirectional and its opposite is 'Pre Context'. An optional set of Constraints on the state of the system when the Operation is invoked.
      Returns:
      the value of the 'Precondition' reference list.
      See Also:
      Model:
      opposite="preContext" ordered="false"
      Generated:
    • getPostcondition

      Collection<Constraint> getPostcondition()
      Returns the value of the 'Postcondition' reference list. The list contents are of type Constraint. It is bidirectional and its opposite is 'Post Context'. An optional set of Constraints specifying the state of the system when the Operation is completed.
      Returns:
      the value of the 'Postcondition' reference list.
      See Also:
      Model:
      opposite="postContext" ordered="false"
      Generated:
    • getRedefinedOperation

      Collection<Operation> getRedefinedOperation()
      Returns the value of the 'Redefined Operation' reference list. The list contents are of type Operation. It is bidirectional and its opposite is 'operation Of Redefined Operation'. The Operations that are redefined by this Operation.
      Returns:
      the value of the 'Redefined Operation' reference list.
      See Also:
      Model:
      opposite="_operationOfRedefinedOperation" ordered="false"
      Generated:
    • get_operationOfRedefinedOperation

      Collection<Operation> get_operationOfRedefinedOperation()
      Returns the value of the 'operation Of Redefined Operation' reference list. The list contents are of type Operation. It is bidirectional and its opposite is 'Redefined Operation'.

      If the meaning of the 'operation Of Redefined Operation' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'operation Of Redefined Operation' reference list.
      See Also:
      Model:
      opposite="redefinedOperation" ordered="false"
      Generated:
    • getDatatype

      @CheckForNull DataType getDatatype()
      Returns the value of the 'Datatype' container reference. It is bidirectional and its opposite is 'Owned Operation'. The DataType that owns this Operation, if any.
      Returns:
      the value of the 'Datatype' container reference.
      See Also:
      Model:
      opposite="ownedOperation" transient="false" ordered="false"
      Generated:
    • setDatatype

      void setDatatype(@CheckForNull DataType value)
      Sets the value of the 'Datatype' container reference.
      Parameters:
      value - the new value of the 'Datatype' container reference.
      See Also:
      Generated:
    • getType

      @CheckForNull Type getType()
      Returns the value of the 'Type' reference. It is bidirectional and its opposite is 'operation Of Type'. The return type of the operation, if present. This information is derived from the return result for this Operation.
      Returns:
      the value of the 'Type' reference.
      See Also:
      Model:
      opposite="_operationOfType" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
      Generated:
    • get_artifactOfOwnedOperation

      @CheckForNull Artifact get_artifactOfOwnedOperation()
      Returns the value of the 'artifact Of Owned Operation' container reference. It is bidirectional and its opposite is 'Owned Operation'.

      If the meaning of the 'artifact Of Owned Operation' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'artifact Of Owned Operation' container reference.
      See Also:
      Model:
      opposite="ownedOperation" transient="false" ordered="false"
      Generated:
    • set_artifactOfOwnedOperation

      void set_artifactOfOwnedOperation(@CheckForNull Artifact value)
      Sets the value of the 'artifact Of Owned Operation' container reference.
      Parameters:
      value - the new value of the 'artifact Of Owned Operation' container reference.
      See Also:
      Generated:
    • getBodyCondition

      @CheckForNull Constraint getBodyCondition()
      Returns the value of the 'Body Condition' reference. It is bidirectional and its opposite is 'Body Context'. An optional Constraint on the result values of an invocation of this Operation.
      Returns:
      the value of the 'Body Condition' reference.
      See Also:
      Model:
      opposite="bodyContext" ordered="false"
      Generated:
    • setBodyCondition

      void setBodyCondition(@CheckForNull Constraint value)
      Sets the value of the 'Body Condition' reference.
      Parameters:
      value - the new value of the 'Body Condition' reference.
      See Also:
      Generated:
    • getOwnedParameter

      List<Parameter> getOwnedParameter()
      Returns the value of the 'Owned Parameter' containment reference list. The list contents are of type Parameter. It is bidirectional and its opposite is 'Operation'. The parameters owned by this Operation.
      Specified by:
      getOwnedParameter in interface BehavioralFeature
      Returns:
      the value of the 'Owned Parameter' containment reference list.
      See Also:
      Model:
      opposite="operation" containment="true" resolveProxies="true"
      Generated:
    • getRaisedException

      Collection<Type> getRaisedException()
      Returns the value of the 'Raised Exception' reference list. The list contents are of type Type. It is bidirectional and its opposite is 'operation Of Raised Exception'. The Types representing exceptions that may be raised during an invocation of this operation.
      Specified by:
      getRaisedException in interface BehavioralFeature
      Returns:
      the value of the 'Raised Exception' reference list.
      See Also:
      Model:
      opposite="_operationOfRaisedException" ordered="false"
      Generated:
    • getTemplateParameter

      @CheckForNull OperationTemplateParameter getTemplateParameter()
      Returns the value of the 'Template Parameter' reference. It is bidirectional and its opposite is 'Parametered Element'. The OperationTemplateParameter that exposes this element as a formal parameter.
      Specified by:
      getTemplateParameter in interface ParameterableElement
      Returns:
      the value of the 'Template Parameter' reference.
      See Also:
      Model:
      opposite="parameteredElement" ordered="false"
      Generated:
    • setTemplateParameter

      void setTemplateParameter(@CheckForNull OperationTemplateParameter value)
      Sets the value of the 'Template Parameter' reference.
      Parameters:
      value - the new value of the 'Template Parameter' reference.
      See Also:
      Generated:
    • has_callEventOfOperation

      boolean has_callEventOfOperation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_callOperationActionOfOperation

      boolean has_callOperationActionOfOperation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPrecondition

      boolean hasPrecondition() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasPostcondition

      boolean hasPostcondition() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • hasRedefinedOperation

      boolean hasRedefinedOperation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated:
    • has_operationOfRedefinedOperation

      boolean has_operationOfRedefinedOperation() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: