public interface Operation extends BehavioralFeature, ParameterableElement, TemplateableElement
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:
UMLPackage.getOperation()
Modifier and Type | Method and Description |
---|---|
Artifact |
get_artifactOfOwnedOperation()
Returns the value of the 'artifact Of Owned Operation' container reference.
|
java.util.Collection<CallEvent> |
get_callEventOfOperation()
Returns the value of the 'call Event Of Operation' reference list.
|
java.util.Collection<CallOperationAction> |
get_callOperationActionOfOperation()
Returns the value of the 'call Operation Action Of Operation' reference list.
|
java.util.Collection<Operation> |
get_operationOfRedefinedOperation()
Returns the value of the 'operation Of Redefined Operation' reference list.
|
Constraint |
getBodyCondition()
Returns the value of the 'Body Condition' reference.
|
DataType |
getDatatype()
Returns the value of the 'Datatype' container reference.
|
Interface |
getInterface()
Returns the value of the 'Interface' container reference.
|
int |
getLower()
Returns the value of the 'Lower' attribute.
|
java.util.List<Parameter> |
getOwnedParameter()
Returns the value of the 'Owned Parameter' containment reference list.
|
java.util.Collection<Constraint> |
getPostcondition()
Returns the value of the 'Postcondition' reference list.
|
java.util.Collection<Constraint> |
getPrecondition()
Returns the value of the 'Precondition' reference list.
|
java.util.Collection<Type> |
getRaisedException()
Returns the value of the 'Raised Exception' reference list.
|
java.util.Collection<Operation> |
getRedefinedOperation()
Returns the value of the 'Redefined Operation' reference list.
|
OperationTemplateParameter |
getTemplateParameter()
Returns the value of the 'Template Parameter' reference.
|
Type |
getType()
Returns the value of the 'Type' reference.
|
Class |
getUMLClass()
Returns the value of the 'UML Class' container reference.
|
int |
getUpper()
Returns the value of the 'Upper' attribute.
|
boolean |
has_callEventOfOperation() |
boolean |
has_callOperationActionOfOperation() |
boolean |
has_operationOfRedefinedOperation() |
boolean |
hasPostcondition() |
boolean |
hasPrecondition() |
boolean |
hasRedefinedOperation() |
boolean |
isOrdered()
Returns the value of the 'Ordered' attribute.
|
boolean |
isQuery()
Returns the value of the 'Query' attribute.
|
boolean |
isUnique()
Returns the value of the 'Unique' attribute.
|
void |
set_artifactOfOwnedOperation(Artifact value)
Sets the value of the '
artifact Of Owned Operation '
container reference. |
void |
setBodyCondition(Constraint value)
Sets the value of the '
Body Condition ' reference. |
void |
setDatatype(DataType value)
Sets the value of the '
Datatype ' container reference. |
void |
setInterface(Interface value)
Sets the value of the '
Interface ' container reference. |
void |
setQuery(boolean value)
Sets the value of the '
Query ' attribute. |
void |
setTemplateParameter(OperationTemplateParameter value)
Sets the value of the '
Template Parameter ' reference. |
void |
setUMLClass(Class value)
Sets the value of the '
UML Class ' container reference. |
getConcurrency, getMethod, getOwnedParameterSet, hasMethod, hasOwnedParameter, hasOwnedParameterSet, hasRaisedException, isAbstract, setAbstract, setConcurrency
getElementImport, getImportedMember, getMember, getOwnedDiagram, getOwnedMember, getOwnedRule, getPackageImport, hasElementImport, hasImportedMember, hasMember, hasOwnedDiagram, hasOwnedMember, hasOwnedRule, hasPackageImport
getFeaturingClassifier, isStatic, setFeaturingClassifier, setStatic
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, getVisibility, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespace, setVisibility
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameter
getOwnedTemplateSignature, getTemplateBinding, hasTemplateBinding, setOwnedTemplateSignature
@CheckForNull Interface getInterface()
Owned Operation
'.
The Interface that owns this Operation, if any.
setInterface(Interface)
,
UMLPackage.getOperation_Interface()
,
Interface.getOwnedOperation()
void setInterface(@CheckForNull Interface value)
Interface
' container reference.
value
- the new value of the 'Interface' container reference.getInterface()
boolean isOrdered()
UMLPackage.getOperation_Ordered()
boolean isQuery()
"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).
setQuery(boolean)
,
UMLPackage.getOperation_Query()
void setQuery(boolean value)
Query
' attribute.
value
- the new value of the 'Query' attribute.isQuery()
boolean isUnique()
UMLPackage.getOperation_Unique()
@CheckForNull Class getUMLClass()
Owned Operation
'.
The Class that owns this operation, if any.
setUMLClass(Class)
,
UMLPackage.getOperation_UMLClass()
,
Class.getOwnedOperation()
void setUMLClass(@CheckForNull Class value)
UML Class
' container reference.
value
- the new value of the 'UML Class' container reference.getUMLClass()
java.util.Collection<CallEvent> get_callEventOfOperation()
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...
UMLPackage.getOperation__callEventOfOperation()
,
CallEvent.getOperation()
java.util.Collection<CallOperationAction> get_callOperationActionOfOperation()
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...
UMLPackage.getOperation__callOperationActionOfOperation()
,
CallOperationAction.getOperation()
int getLower()
UMLPackage.getOperation_Lower()
int getUpper()
UMLPackage.getOperation_Upper()
java.util.Collection<Constraint> getPrecondition()
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.
UMLPackage.getOperation_Precondition()
,
Constraint.getPreContext()
java.util.Collection<Constraint> getPostcondition()
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.
UMLPackage.getOperation_Postcondition()
,
Constraint.getPostContext()
java.util.Collection<Operation> getRedefinedOperation()
Operation
.
It is bidirectional and its opposite is
'operation Of Redefined Operation
'.
The Operations that are redefined by this Operation.
UMLPackage.getOperation_RedefinedOperation()
,
get_operationOfRedefinedOperation()
java.util.Collection<Operation> get_operationOfRedefinedOperation()
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...
UMLPackage.getOperation__operationOfRedefinedOperation()
,
getRedefinedOperation()
@CheckForNull DataType getDatatype()
Owned Operation
'.
The DataType that owns this Operation, if any.
setDatatype(DataType)
,
UMLPackage.getOperation_Datatype()
,
DataType.getOwnedOperation()
void setDatatype(@CheckForNull DataType value)
Datatype
' container reference.
value
- the new value of the 'Datatype' container reference.getDatatype()
@CheckForNull Type getType()
operation Of Type
'.
The return type of the operation, if present. This information is derived from the return result for this Operation.
UMLPackage.getOperation_Type()
,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Type#get_operationOfType
@CheckForNull Artifact get_artifactOfOwnedOperation()
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...
set_artifactOfOwnedOperation(Artifact)
,
UMLPackage.getOperation__artifactOfOwnedOperation()
,
Artifact.getOwnedOperation()
void set_artifactOfOwnedOperation(@CheckForNull Artifact value)
artifact Of Owned Operation
'
container reference.
value
- the new value of the 'artifact Of Owned Operation' container reference.get_artifactOfOwnedOperation()
@CheckForNull Constraint getBodyCondition()
Body Context
'.
An optional Constraint on the result values of an invocation of this Operation.
setBodyCondition(Constraint)
,
UMLPackage.getOperation_BodyCondition()
,
Constraint.getBodyContext()
void setBodyCondition(@CheckForNull Constraint value)
Body Condition
' reference.
value
- the new value of the 'Body Condition' reference.getBodyCondition()
java.util.List<Parameter> getOwnedParameter()
Parameter
.
It is bidirectional and its opposite is 'Operation
'.
The parameters owned by this Operation.
getOwnedParameter
in interface BehavioralFeature
UMLPackage.getOperation_OwnedParameter()
,
Parameter.getOperation()
java.util.Collection<Type> getRaisedException()
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.
getRaisedException
in interface BehavioralFeature
UMLPackage.getOperation_RaisedException()
,
Type.get_operationOfRaisedException()
@CheckForNull OperationTemplateParameter getTemplateParameter()
Parametered Element
'.
The OperationTemplateParameter that exposes this element as a formal parameter.
getTemplateParameter
in interface ParameterableElement
setTemplateParameter(OperationTemplateParameter)
,
UMLPackage.getOperation_TemplateParameter()
,
OperationTemplateParameter.getParameteredElement()
void setTemplateParameter(@CheckForNull OperationTemplateParameter value)
Template Parameter
' reference.
value
- the new value of the 'Template Parameter' reference.getTemplateParameter()
boolean has_callEventOfOperation() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean has_callOperationActionOfOperation() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasPrecondition() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasPostcondition() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasRedefinedOperation() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean has_operationOfRedefinedOperation() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException