Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.eclipse.uml2.uml.internal.impl.LifelineImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2005, 2011 IBM Corporation, CEA, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey - 286329, 323181
* Kenn Hussey (CEA) - 327039, 351774
*
*/
package org.eclipse.uml2.uml.internal.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.Map;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EAnnotation;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.uml2.common.util.CacheAdapter;
import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.ConnectableElement;
import org.eclipse.uml2.uml.Dependency;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Interaction;
import org.eclipse.uml2.uml.InteractionFragment;
import org.eclipse.uml2.uml.Lifeline;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Namespace;
import org.eclipse.uml2.uml.PartDecomposition;
import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.StringExpression;
import org.eclipse.uml2.uml.Type;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.ValueSpecification;
import org.eclipse.uml2.uml.VisibilityKind;
import org.eclipse.uml2.uml.internal.operations.LifelineOperations;
/**
*
* An implementation of the model object 'Lifeline '.
*
*
* The following features are implemented:
*
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getNamespace Namespace }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getOwnedElements Owned Element }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getDecomposedAs Decomposed As }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getInteraction Interaction }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getRepresents Represents }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getSelector Selector }
* {@link org.eclipse.uml2.uml.internal.impl.LifelineImpl#getCoveredBys Covered By }
*
*
*
* @generated
*/
public class LifelineImpl
extends NamedElementImpl
implements Lifeline {
/**
* The cached value of the '{@link #getDecomposedAs() Decomposed As }' reference.
*
*
* @see #getDecomposedAs()
* @generated
* @ordered
*/
protected PartDecomposition decomposedAs;
/**
* The cached value of the '{@link #getRepresents() Represents }' reference.
*
*
* @see #getRepresents()
* @generated
* @ordered
*/
protected ConnectableElement represents;
/**
* The cached value of the '{@link #getSelector() Selector }' containment reference.
*
*
* @see #getSelector()
* @generated
* @ordered
*/
protected ValueSpecification selector;
/**
* The cached value of the '{@link #getCoveredBys() Covered By }' reference list.
*
*
* @see #getCoveredBys()
* @generated
* @ordered
*/
protected EList coveredBys;
/**
*
*
* @generated
*/
protected LifelineImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return UMLPackage.Literals.LIFELINE;
}
/**
*
*
* @generated
*/
@Override
public Namespace getNamespace() {
Namespace namespace = basicGetNamespace();
return namespace != null && namespace.eIsProxy()
? (Namespace) eResolveProxy((InternalEObject) namespace)
: namespace;
}
/**
*
*
* @generated
*/
@Override
public EList getOwnedElements() {
CacheAdapter cache = getCacheAdapter();
if (cache != null) {
Resource eResource = eResource();
@SuppressWarnings("unchecked")
EList ownedElements = (EList) cache.get(
eResource, this, UMLPackage.Literals.ELEMENT__OWNED_ELEMENT);
if (ownedElements == null) {
cache.put(eResource, this,
UMLPackage.Literals.ELEMENT__OWNED_ELEMENT,
ownedElements = new DerivedUnionEObjectEList(
Element.class, this,
UMLPackage.LIFELINE__OWNED_ELEMENT,
OWNED_ELEMENT_ESUBSETS));
}
return ownedElements;
}
return new DerivedUnionEObjectEList(Element.class, this,
UMLPackage.LIFELINE__OWNED_ELEMENT, OWNED_ELEMENT_ESUBSETS);
}
/**
*
*
* @generated
*/
public ConnectableElement getRepresents() {
if (represents != null && represents.eIsProxy()) {
InternalEObject oldRepresents = (InternalEObject) represents;
represents = (ConnectableElement) eResolveProxy(oldRepresents);
if (represents != oldRepresents) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UMLPackage.LIFELINE__REPRESENTS, oldRepresents,
represents));
}
}
return represents;
}
/**
*
*
* @generated
*/
public ConnectableElement basicGetRepresents() {
return represents;
}
/**
*
*
* @generated
*/
public void setRepresents(ConnectableElement newRepresents) {
ConnectableElement oldRepresents = represents;
represents = newRepresents;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UMLPackage.LIFELINE__REPRESENTS, oldRepresents, represents));
}
/**
*
*
* @generated
*/
public Interaction getInteraction() {
if (eContainerFeatureID() != UMLPackage.LIFELINE__INTERACTION)
return null;
return (Interaction) eContainer();
}
/**
*
*
* @generated
*/
public Interaction basicGetInteraction() {
if (eContainerFeatureID() != UMLPackage.LIFELINE__INTERACTION)
return null;
return (Interaction) eInternalContainer();
}
/**
*
*
* @generated
*/
public NotificationChain basicSetInteraction(Interaction newInteraction,
NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject) newInteraction,
UMLPackage.LIFELINE__INTERACTION, msgs);
return msgs;
}
/**
*
*
* @generated
*/
public void setInteraction(Interaction newInteraction) {
if (newInteraction != eInternalContainer()
|| (eContainerFeatureID() != UMLPackage.LIFELINE__INTERACTION && newInteraction != null)) {
if (EcoreUtil.isAncestor(this, newInteraction))
throw new IllegalArgumentException(
"Recursive containment not allowed for " + toString()); //$NON-NLS-1$
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newInteraction != null)
msgs = ((InternalEObject) newInteraction).eInverseAdd(this,
UMLPackage.INTERACTION__LIFELINE, Interaction.class, msgs);
msgs = basicSetInteraction(newInteraction, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UMLPackage.LIFELINE__INTERACTION, newInteraction,
newInteraction));
}
/**
*
*
* @generated
*/
public ValueSpecification getSelector() {
if (selector != null && selector.eIsProxy()) {
InternalEObject oldSelector = (InternalEObject) selector;
selector = (ValueSpecification) eResolveProxy(oldSelector);
if (selector != oldSelector) {
InternalEObject newSelector = (InternalEObject) selector;
NotificationChain msgs = oldSelector.eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - UMLPackage.LIFELINE__SELECTOR,
null, null);
if (newSelector.eInternalContainer() == null) {
msgs = newSelector.eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- UMLPackage.LIFELINE__SELECTOR, null, msgs);
}
if (msgs != null)
msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UMLPackage.LIFELINE__SELECTOR, oldSelector, selector));
}
}
return selector;
}
/**
*
*
* @generated
*/
public ValueSpecification basicGetSelector() {
return selector;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetSelector(ValueSpecification newSelector,
NotificationChain msgs) {
ValueSpecification oldSelector = selector;
selector = newSelector;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this,
Notification.SET, UMLPackage.LIFELINE__SELECTOR, oldSelector,
newSelector);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setSelector(ValueSpecification newSelector) {
if (newSelector != selector) {
NotificationChain msgs = null;
if (selector != null)
msgs = ((InternalEObject) selector).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - UMLPackage.LIFELINE__SELECTOR,
null, msgs);
if (newSelector != null)
msgs = ((InternalEObject) newSelector).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - UMLPackage.LIFELINE__SELECTOR,
null, msgs);
msgs = basicSetSelector(newSelector, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UMLPackage.LIFELINE__SELECTOR, newSelector, newSelector));
}
/**
*
*
* @generated
*/
public ValueSpecification createSelector(String name, Type type,
EClass eClass) {
ValueSpecification newSelector = (ValueSpecification) create(eClass);
setSelector(newSelector);
if (name != null)
newSelector.setName(name);
if (type != null)
newSelector.setType(type);
return newSelector;
}
/**
*
*
* @generated
*/
public PartDecomposition getDecomposedAs() {
if (decomposedAs != null && decomposedAs.eIsProxy()) {
InternalEObject oldDecomposedAs = (InternalEObject) decomposedAs;
decomposedAs = (PartDecomposition) eResolveProxy(oldDecomposedAs);
if (decomposedAs != oldDecomposedAs) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UMLPackage.LIFELINE__DECOMPOSED_AS, oldDecomposedAs,
decomposedAs));
}
}
return decomposedAs;
}
/**
*
*
* @generated
*/
public PartDecomposition basicGetDecomposedAs() {
return decomposedAs;
}
/**
*
*
* @generated
*/
public void setDecomposedAs(PartDecomposition newDecomposedAs) {
PartDecomposition oldDecomposedAs = decomposedAs;
decomposedAs = newDecomposedAs;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UMLPackage.LIFELINE__DECOMPOSED_AS, oldDecomposedAs,
decomposedAs));
}
/**
*
*
* @generated
*/
public EList getCoveredBys() {
if (coveredBys == null) {
coveredBys = new EObjectWithInverseResolvingEList.ManyInverse(
InteractionFragment.class, this,
UMLPackage.LIFELINE__COVERED_BY,
UMLPackage.INTERACTION_FRAGMENT__COVERED);
}
return coveredBys;
}
/**
*
*
* @generated
*/
public InteractionFragment getCoveredBy(String name) {
return getCoveredBy(name, false, null);
}
/**
*
*
* @generated
*/
public InteractionFragment getCoveredBy(String name, boolean ignoreCase,
EClass eClass) {
coveredByLoop : for (InteractionFragment coveredBy : getCoveredBys()) {
if (eClass != null && !eClass.isInstance(coveredBy))
continue coveredByLoop;
if (name != null && !(ignoreCase
? name.equalsIgnoreCase(coveredBy.getName())
: name.equals(coveredBy.getName())))
continue coveredByLoop;
return coveredBy;
}
return null;
}
/**
*
*
* @generated
*/
public boolean validateInteractionUsesShareLifeline(
DiagnosticChain diagnostics, Map context) {
return LifelineOperations.validateInteractionUsesShareLifeline(this,
diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateSelectorSpecified(DiagnosticChain diagnostics,
Map context) {
return LifelineOperations.validateSelectorSpecified(this, diagnostics,
context);
}
/**
*
*
* @generated
*/
public boolean validateSameClassifier(DiagnosticChain diagnostics,
Map context) {
return LifelineOperations.validateSameClassifier(this, diagnostics,
context);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
return ((InternalEList) (InternalEList>) getEAnnotations())
.basicAdd(otherEnd, msgs);
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
return ((InternalEList) (InternalEList>) getClientDependencies())
.basicAdd(otherEnd, msgs);
case UMLPackage.LIFELINE__INTERACTION :
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
return basicSetInteraction((Interaction) otherEnd, msgs);
case UMLPackage.LIFELINE__COVERED_BY :
return ((InternalEList) (InternalEList>) getCoveredBys())
.basicAdd(otherEnd, msgs);
}
return eDynamicInverseAdd(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
return ((InternalEList>) getEAnnotations()).basicRemove(
otherEnd, msgs);
case UMLPackage.LIFELINE__OWNED_COMMENT :
return ((InternalEList>) getOwnedComments()).basicRemove(
otherEnd, msgs);
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
return ((InternalEList>) getClientDependencies())
.basicRemove(otherEnd, msgs);
case UMLPackage.LIFELINE__NAME_EXPRESSION :
return basicSetNameExpression(null, msgs);
case UMLPackage.LIFELINE__INTERACTION :
return basicSetInteraction(null, msgs);
case UMLPackage.LIFELINE__SELECTOR :
return basicSetSelector(null, msgs);
case UMLPackage.LIFELINE__COVERED_BY :
return ((InternalEList>) getCoveredBys()).basicRemove(
otherEnd, msgs);
}
return eDynamicInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eBasicRemoveFromContainerFeature(
NotificationChain msgs) {
switch (eContainerFeatureID()) {
case UMLPackage.LIFELINE__INTERACTION :
return eInternalContainer().eInverseRemove(this,
UMLPackage.INTERACTION__LIFELINE, Interaction.class, msgs);
}
return eDynamicBasicRemoveFromContainer(msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
return getEAnnotations();
case UMLPackage.LIFELINE__OWNED_COMMENT :
return getOwnedComments();
case UMLPackage.LIFELINE__OWNED_ELEMENT :
return getOwnedElements();
case UMLPackage.LIFELINE__OWNER :
if (resolve)
return getOwner();
return basicGetOwner();
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
return getClientDependencies();
case UMLPackage.LIFELINE__NAME :
return getName();
case UMLPackage.LIFELINE__NAME_EXPRESSION :
if (resolve)
return getNameExpression();
return basicGetNameExpression();
case UMLPackage.LIFELINE__NAMESPACE :
if (resolve)
return getNamespace();
return basicGetNamespace();
case UMLPackage.LIFELINE__QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.LIFELINE__VISIBILITY :
return getVisibility();
case UMLPackage.LIFELINE__DECOMPOSED_AS :
if (resolve)
return getDecomposedAs();
return basicGetDecomposedAs();
case UMLPackage.LIFELINE__INTERACTION :
if (resolve)
return getInteraction();
return basicGetInteraction();
case UMLPackage.LIFELINE__REPRESENTS :
if (resolve)
return getRepresents();
return basicGetRepresents();
case UMLPackage.LIFELINE__SELECTOR :
if (resolve)
return getSelector();
return basicGetSelector();
case UMLPackage.LIFELINE__COVERED_BY :
return getCoveredBys();
}
return eDynamicGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
getEAnnotations().clear();
getEAnnotations().addAll(
(Collection extends EAnnotation>) newValue);
return;
case UMLPackage.LIFELINE__OWNED_COMMENT :
getOwnedComments().clear();
getOwnedComments().addAll(
(Collection extends Comment>) newValue);
return;
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
getClientDependencies().clear();
getClientDependencies().addAll(
(Collection extends Dependency>) newValue);
return;
case UMLPackage.LIFELINE__NAME :
setName((String) newValue);
return;
case UMLPackage.LIFELINE__NAME_EXPRESSION :
setNameExpression((StringExpression) newValue);
return;
case UMLPackage.LIFELINE__VISIBILITY :
setVisibility((VisibilityKind) newValue);
return;
case UMLPackage.LIFELINE__DECOMPOSED_AS :
setDecomposedAs((PartDecomposition) newValue);
return;
case UMLPackage.LIFELINE__INTERACTION :
setInteraction((Interaction) newValue);
return;
case UMLPackage.LIFELINE__REPRESENTS :
setRepresents((ConnectableElement) newValue);
return;
case UMLPackage.LIFELINE__SELECTOR :
setSelector((ValueSpecification) newValue);
return;
case UMLPackage.LIFELINE__COVERED_BY :
getCoveredBys().clear();
getCoveredBys().addAll(
(Collection extends InteractionFragment>) newValue);
return;
}
eDynamicSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
getEAnnotations().clear();
return;
case UMLPackage.LIFELINE__OWNED_COMMENT :
getOwnedComments().clear();
return;
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
getClientDependencies().clear();
return;
case UMLPackage.LIFELINE__NAME :
unsetName();
return;
case UMLPackage.LIFELINE__NAME_EXPRESSION :
setNameExpression((StringExpression) null);
return;
case UMLPackage.LIFELINE__VISIBILITY :
unsetVisibility();
return;
case UMLPackage.LIFELINE__DECOMPOSED_AS :
setDecomposedAs((PartDecomposition) null);
return;
case UMLPackage.LIFELINE__INTERACTION :
setInteraction((Interaction) null);
return;
case UMLPackage.LIFELINE__REPRESENTS :
setRepresents((ConnectableElement) null);
return;
case UMLPackage.LIFELINE__SELECTOR :
setSelector((ValueSpecification) null);
return;
case UMLPackage.LIFELINE__COVERED_BY :
getCoveredBys().clear();
return;
}
eDynamicUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLPackage.LIFELINE__EANNOTATIONS :
return eAnnotations != null && !eAnnotations.isEmpty();
case UMLPackage.LIFELINE__OWNED_COMMENT :
return ownedComments != null && !ownedComments.isEmpty();
case UMLPackage.LIFELINE__OWNED_ELEMENT :
return isSetOwnedElements();
case UMLPackage.LIFELINE__OWNER :
return isSetOwner();
case UMLPackage.LIFELINE__CLIENT_DEPENDENCY :
return clientDependencies != null
&& !clientDependencies.isEmpty();
case UMLPackage.LIFELINE__NAME :
return isSetName();
case UMLPackage.LIFELINE__NAME_EXPRESSION :
return nameExpression != null;
case UMLPackage.LIFELINE__NAMESPACE :
return isSetNamespace();
case UMLPackage.LIFELINE__QUALIFIED_NAME :
return QUALIFIED_NAME_EDEFAULT == null
? getQualifiedName() != null
: !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName());
case UMLPackage.LIFELINE__VISIBILITY :
return isSetVisibility();
case UMLPackage.LIFELINE__DECOMPOSED_AS :
return decomposedAs != null;
case UMLPackage.LIFELINE__INTERACTION :
return basicGetInteraction() != null;
case UMLPackage.LIFELINE__REPRESENTS :
return represents != null;
case UMLPackage.LIFELINE__SELECTOR :
return selector != null;
case UMLPackage.LIFELINE__COVERED_BY :
return coveredBys != null && !coveredBys.isEmpty();
}
return eDynamicIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList> arguments)
throws InvocationTargetException {
switch (operationID) {
case UMLPackage.LIFELINE___GET_EANNOTATION__STRING :
return getEAnnotation((String) arguments.get(0));
case UMLPackage.LIFELINE___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP :
return validateHasOwner((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP :
return validateNotOwnSelf((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___ADD_KEYWORD__STRING :
return addKeyword((String) arguments.get(0));
case UMLPackage.LIFELINE___APPLY_STEREOTYPE__STEREOTYPE :
return applyStereotype((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___CREATE_EANNOTATION__STRING :
return createEAnnotation((String) arguments.get(0));
case UMLPackage.LIFELINE___DESTROY :
destroy();
return null;
case UMLPackage.LIFELINE___GET_KEYWORDS :
return getKeywords();
case UMLPackage.LIFELINE___GET_APPLICABLE_STEREOTYPE__STRING :
return getApplicableStereotype((String) arguments.get(0));
case UMLPackage.LIFELINE___GET_APPLICABLE_STEREOTYPES :
return getApplicableStereotypes();
case UMLPackage.LIFELINE___GET_APPLIED_STEREOTYPE__STRING :
return getAppliedStereotype((String) arguments.get(0));
case UMLPackage.LIFELINE___GET_APPLIED_STEREOTYPES :
return getAppliedStereotypes();
case UMLPackage.LIFELINE___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING :
return getAppliedSubstereotype((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.LIFELINE___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE :
return getAppliedSubstereotypes((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___GET_MODEL :
return getModel();
case UMLPackage.LIFELINE___GET_NEAREST_PACKAGE :
return getNearestPackage();
case UMLPackage.LIFELINE___GET_RELATIONSHIPS :
return getRelationships();
case UMLPackage.LIFELINE___GET_RELATIONSHIPS__ECLASS :
return getRelationships((EClass) arguments.get(0));
case UMLPackage.LIFELINE___GET_REQUIRED_STEREOTYPE__STRING :
return getRequiredStereotype((String) arguments.get(0));
case UMLPackage.LIFELINE___GET_REQUIRED_STEREOTYPES :
return getRequiredStereotypes();
case UMLPackage.LIFELINE___GET_SOURCE_DIRECTED_RELATIONSHIPS :
return getSourceDirectedRelationships();
case UMLPackage.LIFELINE___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS :
return getSourceDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.LIFELINE___GET_STEREOTYPE_APPLICATION__STEREOTYPE :
return getStereotypeApplication((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___GET_STEREOTYPE_APPLICATIONS :
return getStereotypeApplications();
case UMLPackage.LIFELINE___GET_TARGET_DIRECTED_RELATIONSHIPS :
return getTargetDirectedRelationships();
case UMLPackage.LIFELINE___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS :
return getTargetDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.LIFELINE___GET_VALUE__STEREOTYPE_STRING :
return getValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.LIFELINE___HAS_KEYWORD__STRING :
return hasKeyword((String) arguments.get(0));
case UMLPackage.LIFELINE___HAS_VALUE__STEREOTYPE_STRING :
return hasValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.LIFELINE___IS_STEREOTYPE_APPLICABLE__STEREOTYPE :
return isStereotypeApplicable((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___IS_STEREOTYPE_APPLIED__STEREOTYPE :
return isStereotypeApplied((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___IS_STEREOTYPE_REQUIRED__STEREOTYPE :
return isStereotypeRequired((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___REMOVE_KEYWORD__STRING :
return removeKeyword((String) arguments.get(0));
case UMLPackage.LIFELINE___SET_VALUE__STEREOTYPE_STRING_OBJECT :
setValue((Stereotype) arguments.get(0),
(String) arguments.get(1), arguments.get(2));
return null;
case UMLPackage.LIFELINE___UNAPPLY_STEREOTYPE__STEREOTYPE :
return unapplyStereotype((Stereotype) arguments.get(0));
case UMLPackage.LIFELINE___ALL_OWNED_ELEMENTS :
return allOwnedElements();
case UMLPackage.LIFELINE___MUST_BE_OWNED :
return mustBeOwned();
case UMLPackage.LIFELINE___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasNoQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP :
return validateVisibilityNeedsOwnership(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___CREATE_DEPENDENCY__NAMEDELEMENT :
return createDependency((NamedElement) arguments.get(0));
case UMLPackage.LIFELINE___CREATE_USAGE__NAMEDELEMENT :
return createUsage((NamedElement) arguments.get(0));
case UMLPackage.LIFELINE___GET_LABEL :
return getLabel();
case UMLPackage.LIFELINE___GET_LABEL__BOOLEAN :
return getLabel((Boolean) arguments.get(0));
case UMLPackage.LIFELINE___ALL_NAMESPACES :
return allNamespaces();
case UMLPackage.LIFELINE___ALL_OWNING_PACKAGES :
return allOwningPackages();
case UMLPackage.LIFELINE___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE :
return isDistinguishableFrom((NamedElement) arguments.get(0),
(Namespace) arguments.get(1));
case UMLPackage.LIFELINE___GET_NAMESPACE :
return getNamespace();
case UMLPackage.LIFELINE___GET_QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.LIFELINE___SEPARATOR :
return separator();
case UMLPackage.LIFELINE___VALIDATE_INTERACTION_USES_SHARE_LIFELINE__DIAGNOSTICCHAIN_MAP :
return validateInteractionUsesShareLifeline(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___VALIDATE_SAME_CLASSIFIER__DIAGNOSTICCHAIN_MAP :
return validateSameClassifier(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.LIFELINE___VALIDATE_SELECTOR_SPECIFIED__DIAGNOSTICCHAIN_MAP :
return validateSelectorSpecified(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
}
return eDynamicInvoke(operationID, arguments);
}
/**
*
*
* @generated
*/
@Override
public Namespace basicGetNamespace() {
Interaction interaction = basicGetInteraction();
if (interaction != null) {
return interaction;
}
return super.basicGetNamespace();
}
/**
*
*
* @generated
*/
@Override
public boolean isSetNamespace() {
return super.isSetNamespace()
|| eIsSet(UMLPackage.LIFELINE__INTERACTION);
}
/**
* The array of subset feature identifiers for the '{@link #getOwnedElements() Owned Element }' reference list.
*
*
* @see #getOwnedElements()
* @generated
* @ordered
*/
protected static final int[] OWNED_ELEMENT_ESUBSETS = new int[]{
UMLPackage.LIFELINE__OWNED_COMMENT,
UMLPackage.LIFELINE__NAME_EXPRESSION, UMLPackage.LIFELINE__SELECTOR};
/**
*
*
* @generated
*/
@Override
public boolean isSetOwnedElements() {
return super.isSetOwnedElements()
|| eIsSet(UMLPackage.LIFELINE__SELECTOR);
}
} //LifelineImpl