Package com.sodius.mdw.metamodel.uml21
Interface InteractionOperand
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,InteractionFragment
,MDWEObject
,MDWObject
,NamedElement
,Namespace
,org.eclipse.emf.common.notify.Notifier
public interface InteractionOperand extends Namespace, InteractionFragment
A representation of the model object 'Interaction Operand'. An interaction operand is contained in a combined fragment. An interaction operand represents one operand of the expression given by the enclosing combined fragment.The following features are supported:
- See Also:
UMLPackage.getInteractionOperand()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InteractionFragment
createFragment(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newInteractionFragment
, with the specified 'Name', and appends it to the ' Fragment' containment reference list.InteractionConstraint
createGuard(String name)
Creates a newInteractionConstraint
,with the specified 'Name', and sets the ' Guard' containment reference.InteractionFragment
getFragment(String name)
Retrieves the firstInteractionFragment
with the specified 'Name' from the ' Fragment' containment reference list.InteractionFragment
getFragment(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstInteractionFragment
with the specified 'Name' from the ' Fragment' containment reference list.MDWEList<InteractionFragment>
getFragments()
Returns the value of the 'Fragment' containment reference list.InteractionConstraint
getGuard()
Returns the value of the 'Guard' containment reference.void
setGuard(InteractionConstraint value)
Sets the value of the 'Guard
' containment reference.boolean
validateGuardContainReferences(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The guard must contain only references to values local to the Lifeline on which it resides, or values global to the whole Interaction.boolean
validateGuardDirectlyPrior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The guard must be placed directly prior to (above) the OccurrenceSpecification that will become the first OccurrenceSpecification within this InteractionOperand.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.InteractionFragment
createGeneralOrdering, getCovered, getCovered, getCovereds, getEnclosingInteraction, getEnclosingOperand, getGeneralOrdering, getGeneralOrdering, getGeneralOrderings, setEnclosingInteraction, setEnclosingOperand
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Namespace
createElementImport, createElementImport, createOwnedDiagram, createOwnedRule, createOwnedRule, createPackageImport, createPackageImport, excludeCollisions, getElementImport, getElementImport, getElementImports, getImportedElements, getImportedMember, getImportedMember, getImportedMembers, getImportedPackages, getMember, getMember, getMembers, getNamesOfMember, getOwnedDiagrams, getOwnedDiagrams, getOwnedMember, getOwnedMember, getOwnedMembers, getOwnedRule, getOwnedRule, getOwnedRules, getPackageImport, getPackageImport, getPackageImports, importMembers, membersAreDistinguishable, validateMembersDistinguishable
-
-
-
-
Method Detail
-
getGuard
InteractionConstraint getGuard()
Returns the value of the 'Guard' containment reference. Constraint of the operand.- Returns:
- the value of the 'Guard' containment reference.
- See Also:
setGuard(InteractionConstraint)
,UMLPackage.getInteractionOperand_Guard()
-
setGuard
void setGuard(InteractionConstraint value)
Sets the value of the 'Guard
' containment reference.- Parameters:
value
- the new value of the 'Guard' containment reference.- See Also:
getGuard()
-
createGuard
InteractionConstraint createGuard(String name)
Creates a newInteractionConstraint
,with the specified 'Name', and sets the ' Guard' containment reference.- Parameters:
name
- The 'Name' for the newInteractionConstraint
, ornull
.- Returns:
- The new
InteractionConstraint
. - See Also:
getGuard()
-
getFragments
MDWEList<InteractionFragment> getFragments()
Returns the value of the 'Fragment' containment reference list. The list contents are of typeInteractionFragment
. It is bidirectional and its opposite is 'Enclosing Operand
'. The fragments of the operand.- Returns:
- the value of the 'Fragment' containment reference list.
- See Also:
UMLPackage.getInteractionOperand_Fragment()
,InteractionFragment.getEnclosingOperand()
-
createFragment
InteractionFragment createFragment(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newInteractionFragment
, with the specified 'Name', and appends it to the ' Fragment' containment reference list.- Parameters:
name
- The 'Name' for the newInteractionFragment
, ornull
.eClass
- The Ecore class of theInteractionFragment
to create.- Returns:
- The new
InteractionFragment
. - See Also:
getFragments()
-
getFragment
InteractionFragment getFragment(String name)
Retrieves the firstInteractionFragment
with the specified 'Name' from the ' Fragment' containment reference list.- Parameters:
name
- The 'Name' of theInteractionFragment
to retrieve, ornull
.- Returns:
- The first
InteractionFragment
with the specified 'Name', ornull
. - See Also:
getFragments()
-
getFragment
InteractionFragment getFragment(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstInteractionFragment
with the specified 'Name' from the ' Fragment' containment reference list.- Parameters:
name
- The 'Name' of theInteractionFragment
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theInteractionFragment
to retrieve, ornull
.createOnDemand
- Whether to create aInteractionFragment
on demand if not found.- Returns:
- The first
InteractionFragment
with the specified 'Name', ornull
. - See Also:
getFragments()
-
validateGuardDirectlyPrior
boolean validateGuardDirectlyPrior(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The guard must be placed directly prior to (above) the OccurrenceSpecification that will become the first OccurrenceSpecification within this InteractionOperand. true
-
validateGuardContainReferences
boolean validateGuardContainReferences(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The guard must contain only references to values local to the Lifeline on which it resides, or values global to the whole Interaction. true
-
-