Interface Operation
-
- All Superinterfaces:
BaseElement
,BehavioralFeature
,java.lang.Cloneable
,java.lang.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:
UMLPackage.getOperation()
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
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 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 Detail
-
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:
setInterface(Interface)
,UMLPackage.getOperation_Interface()
,Interface.getOwnedOperation()
- 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:
getInterface()
- 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:
isQuery()
- 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:
setUMLClass(Class)
,UMLPackage.getOperation_UMLClass()
,Class.getOwnedOperation()
- 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:
getUMLClass()
- Generated:
-
get_callEventOfOperation
java.util.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:
UMLPackage.getOperation__callEventOfOperation()
,CallEvent.getOperation()
- Model:
- opposite="operation" ordered="false"
- Generated:
-
get_callOperationActionOfOperation
java.util.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:
UMLPackage.getOperation__callOperationActionOfOperation()
,CallOperationAction.getOperation()
- 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:
UMLPackage.getOperation_Lower()
- 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:
UMLPackage.getOperation_Upper()
- Model:
- dataType="com.nomagic.uml2.ext.magicdraw.UnlimitedNatural" transient="true" changeable="false" volatile="true" derived="true" ordered="false"
- Generated:
-
getPrecondition
java.util.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:
UMLPackage.getOperation_Precondition()
,Constraint.getPreContext()
- Model:
- opposite="preContext" ordered="false"
- Generated:
-
getPostcondition
java.util.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:
UMLPackage.getOperation_Postcondition()
,Constraint.getPostContext()
- Model:
- opposite="postContext" ordered="false"
- Generated:
-
getRedefinedOperation
java.util.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:
UMLPackage.getOperation_RedefinedOperation()
,get_operationOfRedefinedOperation()
- Model:
- opposite="_operationOfRedefinedOperation" ordered="false"
- Generated:
-
get_operationOfRedefinedOperation
java.util.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:
UMLPackage.getOperation__operationOfRedefinedOperation()
,getRedefinedOperation()
- 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:
setDatatype(DataType)
,UMLPackage.getOperation_Datatype()
,DataType.getOwnedOperation()
- 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:
getDatatype()
- 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:
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
@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:
set_artifactOfOwnedOperation(Artifact)
,UMLPackage.getOperation__artifactOfOwnedOperation()
,Artifact.getOwnedOperation()
- 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:
get_artifactOfOwnedOperation()
- 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:
setBodyCondition(Constraint)
,UMLPackage.getOperation_BodyCondition()
,Constraint.getBodyContext()
- 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:
getBodyCondition()
- Generated:
-
getOwnedParameter
java.util.List<Parameter> 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:
UMLPackage.getOperation_OwnedParameter()
,Parameter.getOperation()
- Model:
- opposite="operation" containment="true" resolveProxies="true"
- Generated:
-
getRaisedException
java.util.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:
UMLPackage.getOperation_RaisedException()
,Type.get_operationOfRaisedException()
- 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 interfaceParameterableElement
- Returns:
- the value of the 'Template Parameter' reference.
- See Also:
setTemplateParameter(OperationTemplateParameter)
,UMLPackage.getOperation_TemplateParameter()
,OperationTemplateParameter.getParameteredElement()
- 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:
getTemplateParameter()
- 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:
-
-