Package com.sodius.mdw.metamodel.uml21
Interface Lifeline
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,org.eclipse.emf.common.notify.Notifier
public interface Lifeline extends NamedElement
A representation of the model object 'Lifeline'. A lifeline represents an individual participant in the interaction. While parts and structural features may have multiplicity greater than 1, lifelines represent only one interacting entity.The following features are supported:
- See Also:
UMLPackage.getLifeline()
-
-
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 ValueSpecificationcreateSelector(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Selector' containment reference.InteractionFragmentgetCoveredBy(String name)Retrieves the firstInteractionFragmentwith the specified 'Name' from the ' Covered By' reference list.InteractionFragmentgetCoveredBy(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)Retrieves the firstInteractionFragmentwith the specified 'Name' from the ' Covered By' reference list.MDWEList<InteractionFragment>getCoveredBys()Returns the value of the 'Covered By' reference list.PartDecompositiongetDecomposedAs()Returns the value of the 'Decomposed As' reference.InteractiongetInteraction()Returns the value of the 'Interaction' container reference.ConnectableElementgetRepresents()Returns the value of the 'Represents' reference.ValueSpecificationgetSelector()Returns the value of the 'Selector' containment reference.voidsetDecomposedAs(PartDecomposition value)Sets the value of the 'Decomposed As' reference.voidsetInteraction(Interaction value)Sets the value of the 'Interaction' container reference.voidsetRepresents(ConnectableElement value)Sets the value of the 'Represents' reference.voidsetSelector(ValueSpecification value)Sets the value of the 'Selector' containment reference.booleanvalidateInteractionUsesShareLifeline(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If two (or more) InteractionUses within one Interaction, refer to Interactions with 'common Lifelines,' those Lifelines must also appear in the Interaction with the InteractionUses.booleanvalidateSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The classifier containing the referenced ConnectableElement must be the same classifier, or an ancestor, of the classifier that contains the interaction enclosing this lifeline.booleanvalidateSelectorSpecified(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The selector for a Lifeline must only be specified if the referenced Part is multivalued.-
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.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
-
getRepresents
ConnectableElement getRepresents()
Returns the value of the 'Represents' reference. References the ConnectableElement within the classifier that contains the enclosing interaction.- Returns:
- the value of the 'Represents' reference.
- See Also:
setRepresents(ConnectableElement),UMLPackage.getLifeline_Represents()
-
setRepresents
void setRepresents(ConnectableElement value)
Sets the value of the 'Represents' reference.- Parameters:
value- the new value of the 'Represents' reference.- See Also:
getRepresents()
-
getInteraction
Interaction getInteraction()
Returns the value of the 'Interaction' container reference. It is bidirectional and its opposite is 'Lifeline'. References the Interaction enclosing this Lifeline.- Returns:
- the value of the 'Interaction' container reference.
- See Also:
setInteraction(Interaction),UMLPackage.getLifeline_Interaction(),Interaction.getLifelines()
-
setInteraction
void setInteraction(Interaction value)
Sets the value of the 'Interaction' container reference.- Parameters:
value- the new value of the 'Interaction' container reference.- See Also:
getInteraction()
-
getSelector
ValueSpecification getSelector()
Returns the value of the 'Selector' containment reference. If the referenced ConnectableElement is multivalued, then this specifies the specific individual part within that set.- Returns:
- the value of the 'Selector' containment reference.
- See Also:
setSelector(ValueSpecification),UMLPackage.getLifeline_Selector()
-
setSelector
void setSelector(ValueSpecification value)
Sets the value of the 'Selector' containment reference.- Parameters:
value- the new value of the 'Selector' containment reference.- See Also:
getSelector()
-
createSelector
ValueSpecification createSelector(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and sets the 'Selector' containment reference.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getSelector()
-
getDecomposedAs
PartDecomposition getDecomposedAs()
Returns the value of the 'Decomposed As' reference. References the Interaction that represents the decomposition.- Returns:
- the value of the 'Decomposed As' reference.
- See Also:
setDecomposedAs(PartDecomposition),UMLPackage.getLifeline_DecomposedAs()
-
setDecomposedAs
void setDecomposedAs(PartDecomposition value)
Sets the value of the 'Decomposed As' reference.- Parameters:
value- the new value of the 'Decomposed As' reference.- See Also:
getDecomposedAs()
-
getCoveredBys
MDWEList<InteractionFragment> getCoveredBys()
Returns the value of the 'Covered By' reference list. The list contents are of typeInteractionFragment. It is bidirectional and its opposite is 'Covered'. References the InteractionFragments in which this Lifeline takes part.- Returns:
- the value of the 'Covered By' reference list.
- See Also:
UMLPackage.getLifeline_CoveredBy(),InteractionFragment.getCovereds()
-
getCoveredBy
InteractionFragment getCoveredBy(String name)
Retrieves the firstInteractionFragmentwith the specified 'Name' from the ' Covered By' reference list.- Parameters:
name- The 'Name' of theInteractionFragmentto retrieve, ornull.- Returns:
- The first
InteractionFragmentwith the specified 'Name', ornull. - See Also:
getCoveredBys()
-
getCoveredBy
InteractionFragment getCoveredBy(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstInteractionFragmentwith the specified 'Name' from the ' Covered By' reference list.- Parameters:
name- The 'Name' of theInteractionFragmentto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theInteractionFragmentto retrieve, ornull.- Returns:
- The first
InteractionFragmentwith the specified 'Name', ornull. - See Also:
getCoveredBys()
-
validateInteractionUsesShareLifeline
boolean validateInteractionUsesShareLifeline(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If two (or more) InteractionUses within one Interaction, refer to Interactions with 'common Lifelines,' those Lifelines must also appear in the Interaction with the InteractionUses. By common Lifelines we mean Lifelines with the same selector and represents associations. true
-
validateSelectorSpecified
boolean validateSelectorSpecified(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The selector for a Lifeline must only be specified if the referenced Part is multivalued. (self.selector->isEmpty() implies not self.represents.isMultivalued()) or (not self.selector->isEmpty() implies self.represents.isMultivalued())
-
validateSameClassifier
boolean validateSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The classifier containing the referenced ConnectableElement must be the same classifier, or an ancestor, of the classifier that contains the interaction enclosing this lifeline. if (represents->notEmpty()) then (if selector->notEmpty() then represents.isMultivalued() else not represents.isMultivalued())
-
-