|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
UMLPackage.getLifeline()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
ValueSpecification |
createSelector(String name,
Type type,
EClass eClass)
Creates a new ValueSpecification , with the specified 'Name', and 'Type', and sets the 'Selector' containment reference |
InteractionFragment |
getCoveredBy(String name)
Retrieves the first InteractionFragment with the specified 'Name' from the 'Covered By' reference list |
InteractionFragment |
getCoveredBy(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first InteractionFragment with the specified 'Name' from the 'Covered By' reference list |
EList |
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(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. |
boolean |
validateSameClassifier(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. |
boolean |
validateSelectorSpecified(DiagnosticChain diagnostics,
Map context)
The selector for a Lifeline must only be specified if the referenced Part is multivalued. |
Methods inherited from interface org.eclipse.uml2.uml.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 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 |
Method Detail |
public ConnectableElement getRepresents()
Lifeline.setRepresents(ConnectableElement)
,
UMLPackage.getLifeline_Represents()
public void setRepresents(ConnectableElement value)
Represents
' reference.
value
- the new value of the 'Represents' reference.Lifeline.getRepresents()
public Interaction getInteraction()
Lifeline
'.
References the Interaction enclosing this Lifeline.
Lifeline.setInteraction(Interaction)
,
UMLPackage.getLifeline_Interaction()
,
Interaction.getLifelines()
public void setInteraction(Interaction value)
Interaction
' container reference.
value
- the new value of the 'Interaction' container reference.Lifeline.getInteraction()
public ValueSpecification getSelector()
Lifeline.setSelector(ValueSpecification)
,
UMLPackage.getLifeline_Selector()
public void setSelector(ValueSpecification value)
Selector
' containment reference.
value
- the new value of the 'Selector' containment reference.Lifeline.getSelector()
public ValueSpecification createSelector(String name, Type type, 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
.Lifeline.getSelector()
public PartDecomposition getDecomposedAs()
Lifeline.setDecomposedAs(PartDecomposition)
,
UMLPackage.getLifeline_DecomposedAs()
public void setDecomposedAs(PartDecomposition value)
Decomposed As
' reference.
value
- the new value of the 'Decomposed As' reference.Lifeline.getDecomposedAs()
public EList getCoveredBys()
InteractionFragment
.
It is bidirectional and its opposite is 'Covered
'.
References the InteractionFragments in which this Lifeline takes part.
UMLPackage.getLifeline_CoveredBy()
,
InteractionFragment.getCovereds()
public InteractionFragment getCoveredBy(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
.Lifeline.getCoveredBys()
public InteractionFragment getCoveredBy(String name, boolean ignoreCase, 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
.Lifeline.getCoveredBys()
public boolean validateInteractionUsesShareLifeline(DiagnosticChain diagnostics, Map context)
public boolean validateSelectorSpecified(DiagnosticChain diagnostics, Map context)
public boolean validateSameClassifier(DiagnosticChain diagnostics, Map context)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |