public interface Lifeline extends NamedElement
From package UML::Interactions.
The following features are supported:
UMLPackage.getLifeline()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createSelector(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type', and sets the 'Selector' containment reference |
InteractionFragment |
getCoveredBy(java.lang.String name)
Retrieves the first
InteractionFragment with the specified 'Name' from the 'Covered By' reference list |
InteractionFragment |
getCoveredBy(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
InteractionFragment with the specified 'Name' from the 'Covered By' reference list |
org.eclipse.emf.common.util.EList<InteractionFragment> |
getCoveredBys()
Returns the value of the 'Covered By' reference list.
|
PartDecomposition |
getDecomposedAs()
Returns the value of the 'Decomposed As' reference
|
Interaction |
getInteraction()
Returns the value of the 'Interaction' container reference.
|
ConnectableElement |
getRepresents()
Returns the value of the 'Represents' reference
|
ValueSpecification |
getSelector()
Returns the value of the 'Selector' containment reference.
|
void |
setDecomposedAs(PartDecomposition value)
Sets the value of the '
Decomposed As ' reference |
void |
setInteraction(Interaction value)
Sets the value of the '
Interaction ' container reference |
void |
setRepresents(ConnectableElement value)
Sets the value of the '
Represents ' reference |
void |
setSelector(ValueSpecification value)
Sets the value of the '
Selector ' containment reference |
boolean |
validateInteractionUsesShareLifeline(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If a lifeline is in an Interaction referred to by an InteractionUse in an enclosing Interaction, and that lifeline is common with another lifeline in an Interaction referred to by another InteractonUse within that same enclosing Interaction, it must be common to a lifeline within that enclosing Interaction.
|
boolean |
validateSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> 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.
|
boolean |
validateSelectorIntOrString(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The selector value, if present, must be a LiteralString or a LiteralInteger
self.selector->notEmpty() implies
self.selector.oclIsKindOf(LiteralInteger) or
self.selector.oclIsKindOf(LiteralString)
|
boolean |
validateSelectorSpecified(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The selector for a Lifeline must only be specified if the referenced Part is multivalued.
|
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
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
getEAnnotation, getEAnnotations
ConnectableElement getRepresents()
From package UML::Interactions.
setRepresents(ConnectableElement)
,
UMLPackage.getLifeline_Represents()
void setRepresents(ConnectableElement value)
Represents
' reference.
value
- the new value of the 'Represents' reference.getRepresents()
Interaction getInteraction()
Lifeline
'.
This feature subsets the following features:
References the Interaction enclosing this Lifeline.From package UML::Interactions.
setInteraction(Interaction)
,
UMLPackage.getLifeline_Interaction()
,
Interaction.getLifelines()
void setInteraction(Interaction value)
Interaction
' container reference.
value
- the new value of the 'Interaction' container reference.getInteraction()
ValueSpecification getSelector()
This feature subsets the following features:
If the referenced ConnectableElement is multivalued, then this specifies the specific individual part within that set.From package UML::Interactions.
setSelector(ValueSpecification)
,
UMLPackage.getLifeline_Selector()
void setSelector(ValueSpecification value)
Selector
' containment reference.
value
- the new value of the 'Selector' containment reference.getSelector()
ValueSpecification createSelector(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type', and sets the 'Selector' containment reference.
name
- The 'Name' for the new ValueSpecification
, or null
.type
- The 'Type' for the new ValueSpecification
, or null
.eClass
- The Ecore class of the ValueSpecification
to create.ValueSpecification
.getSelector()
PartDecomposition getDecomposedAs()
From package UML::Interactions.
setDecomposedAs(PartDecomposition)
,
UMLPackage.getLifeline_DecomposedAs()
void setDecomposedAs(PartDecomposition value)
Decomposed As
' reference.
value
- the new value of the 'Decomposed As' reference.getDecomposedAs()
org.eclipse.emf.common.util.EList<InteractionFragment> getCoveredBys()
InteractionFragment
.
It is bidirectional and its opposite is 'Covered
'.
References the InteractionFragments in which this Lifeline takes part.
From package UML::Interactions.
UMLPackage.getLifeline_CoveredBy()
,
InteractionFragment.getCovereds()
InteractionFragment getCoveredBy(java.lang.String name)
InteractionFragment
with the specified 'Name' from the 'Covered By' reference list.
name
- The 'Name' of the InteractionFragment
to retrieve, or null
.InteractionFragment
with the specified 'Name', or null
.getCoveredBys()
InteractionFragment getCoveredBy(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
InteractionFragment
with the specified 'Name' from the 'Covered By' reference list.
name
- The 'Name' of the InteractionFragment
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the InteractionFragment
to retrieve, or null
.InteractionFragment
with the specified 'Name', or null
.getCoveredBys()
boolean validateInteractionUsesShareLifeline(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSelectorSpecified(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSameClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSelectorIntOrString(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.