|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Operation'. An operation is a behavioral feature of a classifier that specifies the name, type, parameters, and constraints for invoking an associated behavior.
The following features are supported:
Owned Parameter
Class
Is Query
Datatype
Precondition
Postcondition
Redefined Operation
Body Condition
UML2Package.getOperation()
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
---|
SEPARATOR |
Fields inherited from interface org.eclipse.uml2.MultiplicityElement |
---|
UNLIMITED_UPPER_BOUND |
Method Summary | |
---|---|
Parameter |
createOwnedParameter()
Creates a Parameter and appends it to the 'Owned Parameter' containment reference list |
Parameter |
createOwnedParameter(EClass eClass)
Deprecated. Use #createOwnedParameter() instead. |
Constraint |
getBodyCondition()
Returns the value of the 'Body Condition' reference |
Class |
getClass_()
Returns the value of the 'Class ' container reference. |
DataType |
getDatatype()
Returns the value of the 'Datatype' container reference. |
Parameter |
getOwnedParameter(java.lang.String name)
Retrieves the Parameter with the specified 'Name' from the 'Owned Parameter' containment reference list |
EList |
getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. |
Constraint |
getPostcondition(java.lang.String name)
Retrieves the Constraint with the specified 'Name' from the 'Postcondition' reference list |
EList |
getPostconditions()
Returns the value of the 'Postcondition' reference list. |
Constraint |
getPrecondition(java.lang.String name)
Retrieves the Constraint with the specified 'Name' from the 'Precondition' reference list |
EList |
getPreconditions()
Returns the value of the 'Precondition' reference list. |
Operation |
getRedefinedOperation(java.lang.String name)
Retrieves the Operation with the specified 'Name' from the 'Redefined Operation' reference list |
EList |
getRedefinedOperations()
Returns the value of the 'Redefined Operation' reference list. |
boolean |
isOrdered()
A query based on the following OCL expression:
if returnResult->size() = 1 then returnResult->any().isOrdered else false endif
|
boolean |
isQuery()
Returns the value of the 'Is Query' attribute. |
boolean |
isUnique()
A query based on the following OCL expression:
if returnResult->size() = 1 then returnResult->any().isUnique else true endif
|
void |
setBodyCondition(Constraint value)
Sets the value of the ' Body Condition ' reference |
void |
setClass_(Class value)
Sets the value of the ' Class ' container reference |
void |
setDatatype(DataType value)
Sets the value of the ' Datatype ' container reference |
void |
setIsQuery(boolean value)
Sets the value of the ' Is Query ' attribute |
Classifier |
type()
A query based on the following OCL expression:
if returnResult->size() = 1 then returnResult->any().type else Set{} endif
|
boolean |
validateOnlyBodyForQuery(DiagnosticChain diagnostics,
java.util.Map context)
An invariant constraint based on the following OCL expression:
bodyCondition->notEmpty() implies isQuery
|
boolean |
validateTypeOfResult(DiagnosticChain diagnostics,
java.util.Map context)
An invariant constraint based on the following OCL expression:
if returnResult->size() = 1 then
type = returnResult.type
else
type = nil
endif
|
Methods inherited from interface org.eclipse.uml2.BehavioralFeature |
---|
createFormalParameter, createFormalParameter, createReturnResult, createReturnResult, getConcurrency, getFormalParameter, getFormalParameters, getMethod, getMethods, getParameter, getParameters, getRaisedException, getRaisedExceptions, getReturnResult, getReturnResults, isAbstract, setConcurrency, setIsAbstract |
Methods inherited from interface org.eclipse.uml2.NamedElement |
---|
allNamespaces, createDependency, createNameExpression, createNameExpression, getClientDependencies, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.Element |
---|
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getValue, hasKeyword, hasValue, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.Feature |
---|
getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic |
Methods inherited from interface org.eclipse.uml2.RedefinableElement |
---|
getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Methods inherited from interface org.eclipse.uml2.TypedElement |
---|
getType, setType |
Methods inherited from interface org.eclipse.uml2.MultiplicityElement |
---|
createLowerValue, createUpperValue, getLower, getLowerValue, getUpper, getUpperValue, includesCardinality, includesMultiplicity, isMultivalued, lower, lowerBound, setIsOrdered, setIsUnique, setLowerBound, setLowerValue, setUpperBound, setUpperValue, upper, upperBound, validateLowerEqLowerbound, validateLowerGe0, validateUpperEqUpperbound, validateUpperGeLower, validateUpperGt0 |
Methods inherited from interface org.eclipse.uml2.ParameterableElement |
---|
getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter |
Field Detail |
public static final java.lang.String copyright
Method Detail |
public boolean isQuery()
"false"
.
If the meaning of the 'Is Query' attribute isn't clear, there really should be more of a description here...
Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false). The default value is false.
setIsQuery(boolean)
,
UML2Package.getOperation_IsQuery()
public void setIsQuery(boolean value)
Is Query
' attribute.
value
- the new value of the 'Is Query' attribute.isQuery()
public EList getOwnedParameters()
Parameter
.
It is bidirectional and its opposite is 'Operation
'.
If the meaning of the 'Owned Parameter' containment reference list isn't clear, there really should be more of a description here...
UML2Package.getOperation_OwnedParameter()
,
Parameter.getOperation()
public Parameter getOwnedParameter(java.lang.String name)
Parameter
with the specified 'Name' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve.
Parameter
with the specified 'Name', or null
.getOwnedParameters()
public Parameter createOwnedParameter(EClass eClass)
Parameter
and appends it to the 'Owned Parameter' containment reference list.
eClass
- The Ecore class of the Parameter
to create.
Parameter
.getOwnedParameters()
public Parameter createOwnedParameter()
Parameter
and appends it to the 'Owned Parameter' containment reference list.
Parameter
.getOwnedParameters()
public Class getClass_()
Owned Operation
'.
If the meaning of the 'Class ' container reference isn't clear, there really should be more of a description here...
setClass_(org.eclipse.uml2.Class)
,
UML2Package.getOperation_Class_()
,
Class.getOwnedOperations()
public void setClass_(Class value)
Class
' container reference.
value
- the new value of the 'Class ' container reference.getClass_()
public DataType getDatatype()
Owned Operation
'.
If the meaning of the 'Datatype' container reference isn't clear, there really should be more of a description here...
setDatatype(DataType)
,
UML2Package.getOperation_Datatype()
,
DataType.getOwnedOperations()
public void setDatatype(DataType value)
Datatype
' container reference.
value
- the new value of the 'Datatype' container reference.getDatatype()
public EList getPreconditions()
Constraint
.
If the meaning of the 'Precondition' containment reference list isn't clear, there really should be more of a description here...
An optional set of Constraints on the state of the system when the Operation is invoked. Subsets Namespace::ownedMember.
UML2Package.getOperation_Precondition()
public Constraint getPrecondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Precondition' reference list.
name
- The 'Name' of the Constraint
to retrieve.
Constraint
with the specified 'Name', or null
.getPreconditions()
public EList getPostconditions()
Constraint
.
If the meaning of the 'Postcondition' containment reference list isn't clear, there really should be more of a description here...
An optional set of Constraints specifying the state of the system when the Operation is completed. Subsets Namespace::ownedMember.
UML2Package.getOperation_Postcondition()
public Constraint getPostcondition(java.lang.String name)
Constraint
with the specified 'Name' from the 'Postcondition' reference list.
name
- The 'Name' of the Constraint
to retrieve.
Constraint
with the specified 'Name', or null
.getPostconditions()
public EList getRedefinedOperations()
Operation
.
If the meaning of the 'Redefined Operation' reference list isn't clear, there really should be more of a description here...
the Operations that are redefined by this Operation. Subsets RedefinableElement. redefinedElement.
UML2Package.getOperation_RedefinedOperation()
public Operation getRedefinedOperation(java.lang.String name)
Operation
with the specified 'Name' from the 'Redefined Operation' reference list.
name
- The 'Name' of the Operation
to retrieve.
Operation
with the specified 'Name', or null
.getRedefinedOperations()
public Constraint getBodyCondition()
If the meaning of the 'Body Condition' containment reference isn't clear, there really should be more of a description here...
optional Constraint on the result values of an invocation of this Operation. Subsets Namespace::ownedMember.
setBodyCondition(Constraint)
,
UML2Package.getOperation_BodyCondition()
public void setBodyCondition(Constraint value)
Body Condition
' reference.
value
- the new value of the 'Body Condition' reference.getBodyCondition()
public boolean validateTypeOfResult(DiagnosticChain diagnostics, java.util.Map context)
if returnResult->size() = 1 then
type = returnResult.type
else
type = nil
endif
public boolean isOrdered()
if returnResult->size() = 1 then returnResult->any().isOrdered else false endif
isOrdered
in interface MultiplicityElement
MultiplicityElement.setIsOrdered(boolean)
,
UML2Package.getMultiplicityElement_IsOrdered()
public boolean isUnique()
if returnResult->size() = 1 then returnResult->any().isUnique else true endif
isUnique
in interface MultiplicityElement
MultiplicityElement.setIsUnique(boolean)
,
UML2Package.getMultiplicityElement_IsUnique()
public Classifier type()
if returnResult->size() = 1 then returnResult->any().type else Set{} endif
public boolean validateOnlyBodyForQuery(DiagnosticChain diagnostics, java.util.Map context)
bodyCondition->notEmpty() implies isQuery
|
Copyright 2003, 2005 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |