Interface Operation
- 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
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 Summary
Modifier and TypeMethodDescriptionReturns the value of the 'artifact Of Owned Operation' container reference.Returns the value of the 'call Event Of Operation' reference list.Returns the value of the 'call Operation Action Of Operation' reference list.Returns the value of the 'operation Of Redefined Operation' reference list.Returns the value of the 'Body Condition' reference.Returns the value of the 'Datatype' container reference.Returns the value of the 'Interface' container reference.int
getLower()
Returns the value of the 'Lower' attribute.Returns the value of the 'Owned Parameter' containment reference list.Returns the value of the 'Postcondition' reference list.Returns the value of the 'Precondition' reference list.Returns the value of the 'Raised Exception' reference list.Returns the value of the 'Redefined Operation' reference list.Returns the value of the 'Template Parameter' reference.getType()
Returns the value of the 'Type' reference.Returns the value of the 'UML Class' container reference.int
getUpper()
Returns the value of the 'Upper' attribute.boolean
boolean
boolean
boolean
boolean
boolean
boolean
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
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
Sets the value of the 'Template Parameter
' reference.void
setUMLClass
(Class value) Sets the value of the 'UML Class
' container reference.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.BehavioralFeature
getConcurrency, getMethod, getOwnedParameterSet, hasMethod, hasOwnedParameter, hasOwnedParameterSet, hasRaisedException, isAbstract, setAbstract, setConcurrency
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Feature
getFeaturingClassifier, isStatic, setFeaturingClassifier, setStatic
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
Methods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.NamedElement
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
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Namespace
getElementImport, getImportedMember, getMember, getOwnedDiagram, getOwnedMember, getOwnedRule, getPackageImport, hasElementImport, hasImportedMember, hasMember, hasOwnedDiagram, hasOwnedMember, hasOwnedRule, hasPackageImport
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.ParameterableElement
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameter
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.RedefinableElement
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.TemplateableElement
getOwnedTemplateSignature, getTemplateBinding, hasTemplateBinding, setOwnedTemplateSignature
-
Method Details
-
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
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
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
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 typeCallEvent
. 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 typeCallOperationAction
. 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 typeConstraint
. 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 typeConstraint
. 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 typeOperation
. 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 typeOperation
. 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
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
Sets the value of the 'Datatype
' container reference.- Parameters:
value
- the new value of the 'Datatype' container reference.- See Also:
- Generated:
-
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:
-
UMLPackage.getOperation_Type()
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Type#get_operationOfType
- Model:
- opposite="_operationOfType" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
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
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
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
Sets the value of the 'Body Condition
' reference.- Parameters:
value
- the new value of the 'Body Condition' reference.- See Also:
- Generated:
-
getOwnedParameter
Returns the value of the 'Owned Parameter' containment reference list. The list contents are of typeParameter
. It is bidirectional and its opposite is 'Operation
'. The parameters owned by this Operation.- Specified by:
getOwnedParameter
in interfaceBehavioralFeature
- 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 typeType
. 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 interfaceBehavioralFeature
- Returns:
- the value of the 'Raised Exception' reference list.
- See Also:
- Model:
- opposite="_operationOfRaisedException" ordered="false"
- Generated:
-
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 interfaceParameterableElement
- Returns:
- the value of the 'Template Parameter' reference.
- See Also:
- Model:
- opposite="parameteredElement" ordered="false"
- Generated:
-
setTemplateParameter
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:
-