Package com.sodius.mdw.metamodel.uml21
Interface InteractionUse
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,InteractionFragment,MDWEObject,MDWObject,NamedElement,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
PartDecomposition
public interface InteractionUse extends InteractionFragment
A representation of the model object 'Interaction Use'. An interaction use refers to an interaction. The interaction use is a shorthand for copying the contents of the referenced interaction where the interaction use is. To be accurate the copying must take into account substituting parameters with arguments and connect the formal gates with the actual ones.The following features are supported:
- See Also:
UMLPackage.getInteractionUse()
-
-
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 GatecreateActualGate(String name)Creates a newGate, with the specified 'Name', and appends it to the ' Actual Gate' containment reference list.ActioncreateArgument(String name, org.eclipse.emf.ecore.EClass eClass)Creates a newAction, with the specified 'Name', and appends it to the ' Argument' containment reference list.GategetActualGate(String name)Retrieves the firstGatewith the specified 'Name' from the 'Actual Gate ' containment reference list.GategetActualGate(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstGatewith the specified 'Name' from the 'Actual Gate ' containment reference list.MDWEList<Gate>getActualGates()Returns the value of the 'Actual Gate' containment reference list.ActiongetArgument(String name)Retrieves the firstActionwith the specified 'Name' from the 'Argument' containment reference list.ActiongetArgument(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstActionwith the specified 'Name' from the 'Argument' containment reference list.MDWEList<Action>getArguments()Returns the value of the 'Argument' containment reference list.InteractiongetRefersTo()Returns the value of the 'Refers To' reference.voidsetRefersTo(Interaction value)Sets the value of the 'Refers To' reference.booleanvalidateAllLifelines(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The InteractionUse must cover all Lifelines of the enclosing Interaction which appear within the referred Interaction.booleanvalidateArgumentsAreConstants(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The arguments must only be constants, parameters of the enclosing Interaction or attributes of the classifier owning the enclosing Interaction.booleanvalidateArgumentsCorrespondToParameters(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The arguments of the InteractionUse must correspond to parameters of the referred Interaction truebooleanvalidateGatesMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Actual Gates of the InteractionUse must match Formal Gates of the referred Interaction.-
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
-
-
-
-
Method Detail
-
getRefersTo
Interaction getRefersTo()
Returns the value of the 'Refers To' reference. Refers to the Interaction that defines its meaning- Returns:
- the value of the 'Refers To' reference.
- See Also:
setRefersTo(Interaction),UMLPackage.getInteractionUse_RefersTo()
-
setRefersTo
void setRefersTo(Interaction value)
Sets the value of the 'Refers To' reference.- Parameters:
value- the new value of the 'Refers To' reference.- See Also:
getRefersTo()
-
getActualGates
MDWEList<Gate> getActualGates()
Returns the value of the 'Actual Gate' containment reference list. The list contents are of typeGate. The actual gates of the InteractionUse- Returns:
- the value of the 'Actual Gate' containment reference list.
- See Also:
UMLPackage.getInteractionUse_ActualGate()
-
createActualGate
Gate createActualGate(String name)
Creates a newGate, with the specified 'Name', and appends it to the ' Actual Gate' containment reference list.- Parameters:
name- The 'Name' for the newGate, ornull.- Returns:
- The new
Gate. - See Also:
getActualGates()
-
getActualGate
Gate getActualGate(String name)
Retrieves the firstGatewith the specified 'Name' from the 'Actual Gate ' containment reference list.- Parameters:
name- The 'Name' of theGateto retrieve, ornull.- Returns:
- The first
Gatewith the specified 'Name', ornull. - See Also:
getActualGates()
-
getActualGate
Gate getActualGate(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstGatewith the specified 'Name' from the 'Actual Gate ' containment reference list.- Parameters:
name- The 'Name' of theGateto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aGateon demand if not found.- Returns:
- The first
Gatewith the specified 'Name', ornull. - See Also:
getActualGates()
-
getArguments
MDWEList<Action> getArguments()
Returns the value of the 'Argument' containment reference list. The list contents are of typeAction. The actual arguments of the Interaction- Returns:
- the value of the 'Argument' containment reference list.
- See Also:
UMLPackage.getInteractionUse_Argument()
-
createArgument
Action createArgument(String name, org.eclipse.emf.ecore.EClass eClass)
Creates a newAction, with the specified 'Name', and appends it to the ' Argument' containment reference list.- Parameters:
name- The 'Name' for the newAction, ornull.eClass- The Ecore class of theActionto create.- Returns:
- The new
Action. - See Also:
getArguments()
-
getArgument
Action getArgument(String name)
Retrieves the firstActionwith the specified 'Name' from the 'Argument' containment reference list.- Parameters:
name- The 'Name' of theActionto retrieve, ornull.- Returns:
- The first
Actionwith the specified 'Name', ornull. - See Also:
getArguments()
-
getArgument
Action getArgument(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstActionwith the specified 'Name' from the 'Argument' containment reference list.- Parameters:
name- The 'Name' of theActionto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theActionto retrieve, ornull.createOnDemand- Whether to create aActionon demand if not found.- Returns:
- The first
Actionwith the specified 'Name', ornull. - See Also:
getArguments()
-
validateGatesMatch
boolean validateGatesMatch(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)Actual Gates of the InteractionUse must match Formal Gates of the referred Interaction. Gates match when their names are equal. true
-
validateAllLifelines
boolean validateAllLifelines(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The InteractionUse must cover all Lifelines of the enclosing Interaction which appear within the referred Interaction. true
-
validateArgumentsCorrespondToParameters
boolean validateArgumentsCorrespondToParameters(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The arguments of the InteractionUse must correspond to parameters of the referred Interaction true
-
validateArgumentsAreConstants
boolean validateArgumentsAreConstants(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The arguments must only be constants, parameters of the enclosing Interaction or attributes of the classifier owning the enclosing Interaction. true
-
-