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.WriteVariableActionImpl 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.InternalEList;
import org.eclipse.uml2.common.util.CacheAdapter;
import org.eclipse.uml2.common.util.DerivedUnionEObjectEList;
import org.eclipse.uml2.uml.Activity;
import org.eclipse.uml2.uml.ActivityEdge;
import org.eclipse.uml2.uml.ActivityNode;
import org.eclipse.uml2.uml.ActivityPartition;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.Dependency;
import org.eclipse.uml2.uml.ExceptionHandler;
import org.eclipse.uml2.uml.InputPin;
import org.eclipse.uml2.uml.InterruptibleActivityRegion;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Namespace;
import org.eclipse.uml2.uml.RedefinableElement;
import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.StringExpression;
import org.eclipse.uml2.uml.StructuredActivityNode;
import org.eclipse.uml2.uml.Type;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.Variable;
import org.eclipse.uml2.uml.VisibilityKind;
import org.eclipse.uml2.uml.WriteVariableAction;
import org.eclipse.uml2.uml.internal.operations.WriteVariableActionOperations;
/**
*
* An implementation of the model object 'Write Variable Action '.
*
*
* The following features are implemented:
*
* {@link org.eclipse.uml2.uml.internal.impl.WriteVariableActionImpl#getInputs Input }
* {@link org.eclipse.uml2.uml.internal.impl.WriteVariableActionImpl#getValue Value }
*
*
*
* @generated
*/
public abstract class WriteVariableActionImpl
extends VariableActionImpl
implements WriteVariableAction {
/**
* The cached value of the '{@link #getValue() Value }' containment reference.
*
*
* @see #getValue()
* @generated
* @ordered
*/
protected InputPin value;
/**
*
*
* @generated
*/
protected WriteVariableActionImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return UMLPackage.Literals.WRITE_VARIABLE_ACTION;
}
/**
*
*
* @generated
*/
@Override
public EList getInputs() {
CacheAdapter cache = getCacheAdapter();
if (cache != null) {
Resource eResource = eResource();
@SuppressWarnings("unchecked")
EList inputs = (EList) cache.get(eResource,
this, UMLPackage.Literals.ACTION__INPUT);
if (inputs == null) {
cache
.put(eResource, this, UMLPackage.Literals.ACTION__INPUT,
inputs = new DerivedUnionEObjectEList(
InputPin.class, this,
UMLPackage.WRITE_VARIABLE_ACTION__INPUT,
INPUT_ESUBSETS));
}
return inputs;
}
return new DerivedUnionEObjectEList(InputPin.class, this,
UMLPackage.WRITE_VARIABLE_ACTION__INPUT, INPUT_ESUBSETS);
}
/**
*
*
* @generated
*/
public InputPin getValue() {
if (value != null && value.eIsProxy()) {
InternalEObject oldValue = (InternalEObject) value;
value = (InputPin) eResolveProxy(oldValue);
if (value != oldValue) {
InternalEObject newValue = (InternalEObject) value;
NotificationChain msgs = oldValue.eInverseRemove(this,
EOPPOSITE_FEATURE_BASE
- UMLPackage.WRITE_VARIABLE_ACTION__VALUE, null, null);
if (newValue.eInternalContainer() == null) {
msgs = newValue.eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- UMLPackage.WRITE_VARIABLE_ACTION__VALUE, null, msgs);
}
if (msgs != null)
msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
UMLPackage.WRITE_VARIABLE_ACTION__VALUE, oldValue,
value));
}
}
return value;
}
/**
*
*
* @generated
*/
public InputPin basicGetValue() {
return value;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetValue(InputPin newValue,
NotificationChain msgs) {
InputPin oldValue = value;
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this,
Notification.SET, UMLPackage.WRITE_VARIABLE_ACTION__VALUE,
oldValue, newValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setValue(InputPin newValue) {
if (newValue != value) {
NotificationChain msgs = null;
if (value != null)
msgs = ((InternalEObject) value).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE
- UMLPackage.WRITE_VARIABLE_ACTION__VALUE, null, msgs);
if (newValue != null)
msgs = ((InternalEObject) newValue).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE
- UMLPackage.WRITE_VARIABLE_ACTION__VALUE, null, msgs);
msgs = basicSetValue(newValue, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
UMLPackage.WRITE_VARIABLE_ACTION__VALUE, newValue, newValue));
}
/**
*
*
* @generated
*/
public InputPin createValue(String name, Type type, EClass eClass) {
InputPin newValue = (InputPin) create(eClass);
setValue(newValue);
if (name != null)
newValue.setName(name);
if (type != null)
newValue.setType(type);
return newValue;
}
/**
*
*
* @generated
*/
public InputPin createValue(String name, Type type) {
return createValue(name, type, UMLPackage.Literals.INPUT_PIN);
}
/**
*
*
* @generated
*/
public boolean validateSameType(DiagnosticChain diagnostics,
Map context) {
return WriteVariableActionOperations.validateSameType(this,
diagnostics, context);
}
/**
*
*
* @generated
*/
public boolean validateMultiplicity(DiagnosticChain diagnostics,
Map context) {
return WriteVariableActionOperations.validateMultiplicity(this,
diagnostics, context);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLPackage.WRITE_VARIABLE_ACTION__EANNOTATIONS :
return ((InternalEList>) getEAnnotations()).basicRemove(
otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_COMMENT :
return ((InternalEList>) getOwnedComments()).basicRemove(
otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__CLIENT_DEPENDENCY :
return ((InternalEList>) getClientDependencies())
.basicRemove(otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__NAME_EXPRESSION :
return basicSetNameExpression(null, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__IN_PARTITION :
return ((InternalEList>) getInPartitions()).basicRemove(
otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__IN_STRUCTURED_NODE :
return basicSetInStructuredNode(null, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__IN_INTERRUPTIBLE_REGION :
return ((InternalEList>) getInInterruptibleRegions())
.basicRemove(otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__OUTGOING :
return ((InternalEList>) getOutgoings()).basicRemove(
otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__INCOMING :
return ((InternalEList>) getIncomings()).basicRemove(
otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__HANDLER :
return ((InternalEList>) getHandlers()).basicRemove(otherEnd,
msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_POSTCONDITION :
return ((InternalEList>) getLocalPostconditions())
.basicRemove(otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_PRECONDITION :
return ((InternalEList>) getLocalPreconditions())
.basicRemove(otherEnd, msgs);
case UMLPackage.WRITE_VARIABLE_ACTION__VALUE :
return basicSetValue(null, msgs);
}
return eDynamicInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case UMLPackage.WRITE_VARIABLE_ACTION__EANNOTATIONS :
return getEAnnotations();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_COMMENT :
return getOwnedComments();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_ELEMENT :
return getOwnedElements();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNER :
if (resolve)
return getOwner();
return basicGetOwner();
case UMLPackage.WRITE_VARIABLE_ACTION__CLIENT_DEPENDENCY :
return getClientDependencies();
case UMLPackage.WRITE_VARIABLE_ACTION__NAME :
return getName();
case UMLPackage.WRITE_VARIABLE_ACTION__NAME_EXPRESSION :
if (resolve)
return getNameExpression();
return basicGetNameExpression();
case UMLPackage.WRITE_VARIABLE_ACTION__NAMESPACE :
if (resolve)
return getNamespace();
return basicGetNamespace();
case UMLPackage.WRITE_VARIABLE_ACTION__QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.WRITE_VARIABLE_ACTION__VISIBILITY :
return getVisibility();
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LEAF :
return isLeaf();
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_ELEMENT :
return getRedefinedElements();
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINITION_CONTEXT :
return getRedefinitionContexts();
case UMLPackage.WRITE_VARIABLE_ACTION__ACTIVITY :
if (resolve)
return getActivity();
return basicGetActivity();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_PARTITION :
return getInPartitions();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_STRUCTURED_NODE :
if (resolve)
return getInStructuredNode();
return basicGetInStructuredNode();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_INTERRUPTIBLE_REGION :
return getInInterruptibleRegions();
case UMLPackage.WRITE_VARIABLE_ACTION__OUTGOING :
return getOutgoings();
case UMLPackage.WRITE_VARIABLE_ACTION__INCOMING :
return getIncomings();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_GROUP :
return getInGroups();
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_NODE :
return getRedefinedNodes();
case UMLPackage.WRITE_VARIABLE_ACTION__HANDLER :
return getHandlers();
case UMLPackage.WRITE_VARIABLE_ACTION__CONTEXT :
if (resolve)
return getContext();
return basicGetContext();
case UMLPackage.WRITE_VARIABLE_ACTION__INPUT :
return getInputs();
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LOCALLY_REENTRANT :
return isLocallyReentrant();
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_POSTCONDITION :
return getLocalPostconditions();
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_PRECONDITION :
return getLocalPreconditions();
case UMLPackage.WRITE_VARIABLE_ACTION__OUTPUT :
return getOutputs();
case UMLPackage.WRITE_VARIABLE_ACTION__VARIABLE :
if (resolve)
return getVariable();
return basicGetVariable();
case UMLPackage.WRITE_VARIABLE_ACTION__VALUE :
if (resolve)
return getValue();
return basicGetValue();
}
return eDynamicGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case UMLPackage.WRITE_VARIABLE_ACTION__EANNOTATIONS :
getEAnnotations().clear();
getEAnnotations().addAll(
(Collection extends EAnnotation>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_COMMENT :
getOwnedComments().clear();
getOwnedComments().addAll(
(Collection extends Comment>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__CLIENT_DEPENDENCY :
getClientDependencies().clear();
getClientDependencies().addAll(
(Collection extends Dependency>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__NAME :
setName((String) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__NAME_EXPRESSION :
setNameExpression((StringExpression) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VISIBILITY :
setVisibility((VisibilityKind) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LEAF :
setIsLeaf((Boolean) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__ACTIVITY :
setActivity((Activity) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_PARTITION :
getInPartitions().clear();
getInPartitions().addAll(
(Collection extends ActivityPartition>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_STRUCTURED_NODE :
setInStructuredNode((StructuredActivityNode) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_INTERRUPTIBLE_REGION :
getInInterruptibleRegions().clear();
getInInterruptibleRegions()
.addAll(
(Collection extends InterruptibleActivityRegion>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__OUTGOING :
getOutgoings().clear();
getOutgoings().addAll(
(Collection extends ActivityEdge>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__INCOMING :
getIncomings().clear();
getIncomings().addAll(
(Collection extends ActivityEdge>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_NODE :
getRedefinedNodes().clear();
getRedefinedNodes().addAll(
(Collection extends ActivityNode>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__HANDLER :
getHandlers().clear();
getHandlers().addAll(
(Collection extends ExceptionHandler>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LOCALLY_REENTRANT :
setIsLocallyReentrant((Boolean) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_POSTCONDITION :
getLocalPostconditions().clear();
getLocalPostconditions().addAll(
(Collection extends Constraint>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_PRECONDITION :
getLocalPreconditions().clear();
getLocalPreconditions().addAll(
(Collection extends Constraint>) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VARIABLE :
setVariable((Variable) newValue);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VALUE :
setValue((InputPin) newValue);
return;
}
eDynamicSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case UMLPackage.WRITE_VARIABLE_ACTION__EANNOTATIONS :
getEAnnotations().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_COMMENT :
getOwnedComments().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__CLIENT_DEPENDENCY :
getClientDependencies().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__NAME :
unsetName();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__NAME_EXPRESSION :
setNameExpression((StringExpression) null);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VISIBILITY :
unsetVisibility();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LEAF :
setIsLeaf(IS_LEAF_EDEFAULT);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__ACTIVITY :
setActivity((Activity) null);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_PARTITION :
getInPartitions().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_STRUCTURED_NODE :
setInStructuredNode((StructuredActivityNode) null);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_INTERRUPTIBLE_REGION :
getInInterruptibleRegions().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__OUTGOING :
getOutgoings().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__INCOMING :
getIncomings().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_NODE :
getRedefinedNodes().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__HANDLER :
getHandlers().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LOCALLY_REENTRANT :
setIsLocallyReentrant(IS_LOCALLY_REENTRANT_EDEFAULT);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_POSTCONDITION :
getLocalPostconditions().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_PRECONDITION :
getLocalPreconditions().clear();
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VARIABLE :
setVariable((Variable) null);
return;
case UMLPackage.WRITE_VARIABLE_ACTION__VALUE :
setValue((InputPin) null);
return;
}
eDynamicUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLPackage.WRITE_VARIABLE_ACTION__EANNOTATIONS :
return eAnnotations != null && !eAnnotations.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_COMMENT :
return ownedComments != null && !ownedComments.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNED_ELEMENT :
return isSetOwnedElements();
case UMLPackage.WRITE_VARIABLE_ACTION__OWNER :
return isSetOwner();
case UMLPackage.WRITE_VARIABLE_ACTION__CLIENT_DEPENDENCY :
return clientDependencies != null
&& !clientDependencies.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__NAME :
return isSetName();
case UMLPackage.WRITE_VARIABLE_ACTION__NAME_EXPRESSION :
return nameExpression != null;
case UMLPackage.WRITE_VARIABLE_ACTION__NAMESPACE :
return isSetNamespace();
case UMLPackage.WRITE_VARIABLE_ACTION__QUALIFIED_NAME :
return QUALIFIED_NAME_EDEFAULT == null
? getQualifiedName() != null
: !QUALIFIED_NAME_EDEFAULT.equals(getQualifiedName());
case UMLPackage.WRITE_VARIABLE_ACTION__VISIBILITY :
return isSetVisibility();
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LEAF :
return ((eFlags & IS_LEAF_EFLAG) != 0) != IS_LEAF_EDEFAULT;
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_ELEMENT :
return isSetRedefinedElements();
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINITION_CONTEXT :
return isSetRedefinitionContexts();
case UMLPackage.WRITE_VARIABLE_ACTION__ACTIVITY :
return basicGetActivity() != null;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_PARTITION :
return inPartitions != null && !inPartitions.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_STRUCTURED_NODE :
return basicGetInStructuredNode() != null;
case UMLPackage.WRITE_VARIABLE_ACTION__IN_INTERRUPTIBLE_REGION :
return inInterruptibleRegions != null
&& !inInterruptibleRegions.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__OUTGOING :
return outgoings != null && !outgoings.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__INCOMING :
return incomings != null && !incomings.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__IN_GROUP :
return isSetInGroups();
case UMLPackage.WRITE_VARIABLE_ACTION__REDEFINED_NODE :
return redefinedNodes != null && !redefinedNodes.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__HANDLER :
return handlers != null && !handlers.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__CONTEXT :
return basicGetContext() != null;
case UMLPackage.WRITE_VARIABLE_ACTION__INPUT :
return isSetInputs();
case UMLPackage.WRITE_VARIABLE_ACTION__IS_LOCALLY_REENTRANT :
return ((eFlags & IS_LOCALLY_REENTRANT_EFLAG) != 0) != IS_LOCALLY_REENTRANT_EDEFAULT;
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_POSTCONDITION :
return localPostconditions != null
&& !localPostconditions.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__LOCAL_PRECONDITION :
return localPreconditions != null
&& !localPreconditions.isEmpty();
case UMLPackage.WRITE_VARIABLE_ACTION__OUTPUT :
return isSetOutputs();
case UMLPackage.WRITE_VARIABLE_ACTION__VARIABLE :
return variable != null;
case UMLPackage.WRITE_VARIABLE_ACTION__VALUE :
return value != null;
}
return eDynamicIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
@SuppressWarnings("unchecked")
public Object eInvoke(int operationID, EList> arguments)
throws InvocationTargetException {
switch (operationID) {
case UMLPackage.WRITE_VARIABLE_ACTION___GET_EANNOTATION__STRING :
return getEAnnotation((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_HAS_OWNER__DIAGNOSTICCHAIN_MAP :
return validateHasOwner((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_NOT_OWN_SELF__DIAGNOSTICCHAIN_MAP :
return validateNotOwnSelf((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___ADD_KEYWORD__STRING :
return addKeyword((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___APPLY_STEREOTYPE__STEREOTYPE :
return applyStereotype((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___CREATE_EANNOTATION__STRING :
return createEAnnotation((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___DESTROY :
destroy();
return null;
case UMLPackage.WRITE_VARIABLE_ACTION___GET_KEYWORDS :
return getKeywords();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLICABLE_STEREOTYPE__STRING :
return getApplicableStereotype((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLICABLE_STEREOTYPES :
return getApplicableStereotypes();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLIED_STEREOTYPE__STRING :
return getAppliedStereotype((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLIED_STEREOTYPES :
return getAppliedStereotypes();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLIED_SUBSTEREOTYPE__STEREOTYPE_STRING :
return getAppliedSubstereotype((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_APPLIED_SUBSTEREOTYPES__STEREOTYPE :
return getAppliedSubstereotypes((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_MODEL :
return getModel();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_NEAREST_PACKAGE :
return getNearestPackage();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_RELATIONSHIPS :
return getRelationships();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_RELATIONSHIPS__ECLASS :
return getRelationships((EClass) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_REQUIRED_STEREOTYPE__STRING :
return getRequiredStereotype((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_REQUIRED_STEREOTYPES :
return getRequiredStereotypes();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_SOURCE_DIRECTED_RELATIONSHIPS :
return getSourceDirectedRelationships();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_SOURCE_DIRECTED_RELATIONSHIPS__ECLASS :
return getSourceDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_STEREOTYPE_APPLICATION__STEREOTYPE :
return getStereotypeApplication((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_STEREOTYPE_APPLICATIONS :
return getStereotypeApplications();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_TARGET_DIRECTED_RELATIONSHIPS :
return getTargetDirectedRelationships();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_TARGET_DIRECTED_RELATIONSHIPS__ECLASS :
return getTargetDirectedRelationships((EClass) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_VALUE__STEREOTYPE_STRING :
return getValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___HAS_KEYWORD__STRING :
return hasKeyword((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___HAS_VALUE__STEREOTYPE_STRING :
return hasValue((Stereotype) arguments.get(0),
(String) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___IS_STEREOTYPE_APPLICABLE__STEREOTYPE :
return isStereotypeApplicable((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___IS_STEREOTYPE_APPLIED__STEREOTYPE :
return isStereotypeApplied((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___IS_STEREOTYPE_REQUIRED__STEREOTYPE :
return isStereotypeRequired((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___REMOVE_KEYWORD__STRING :
return removeKeyword((String) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___SET_VALUE__STEREOTYPE_STRING_OBJECT :
setValue((Stereotype) arguments.get(0),
(String) arguments.get(1), arguments.get(2));
return null;
case UMLPackage.WRITE_VARIABLE_ACTION___UNAPPLY_STEREOTYPE__STEREOTYPE :
return unapplyStereotype((Stereotype) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___ALL_OWNED_ELEMENTS :
return allOwnedElements();
case UMLPackage.WRITE_VARIABLE_ACTION___MUST_BE_OWNED :
return mustBeOwned();
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_HAS_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_HAS_NO_QUALIFIED_NAME__DIAGNOSTICCHAIN_MAP :
return validateHasNoQualifiedName(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_VISIBILITY_NEEDS_OWNERSHIP__DIAGNOSTICCHAIN_MAP :
return validateVisibilityNeedsOwnership(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___CREATE_DEPENDENCY__NAMEDELEMENT :
return createDependency((NamedElement) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___CREATE_USAGE__NAMEDELEMENT :
return createUsage((NamedElement) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_LABEL :
return getLabel();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_LABEL__BOOLEAN :
return getLabel((Boolean) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___ALL_NAMESPACES :
return allNamespaces();
case UMLPackage.WRITE_VARIABLE_ACTION___ALL_OWNING_PACKAGES :
return allOwningPackages();
case UMLPackage.WRITE_VARIABLE_ACTION___IS_DISTINGUISHABLE_FROM__NAMEDELEMENT_NAMESPACE :
return isDistinguishableFrom((NamedElement) arguments.get(0),
(Namespace) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_NAMESPACE :
return getNamespace();
case UMLPackage.WRITE_VARIABLE_ACTION___GET_QUALIFIED_NAME :
return getQualifiedName();
case UMLPackage.WRITE_VARIABLE_ACTION___SEPARATOR :
return separator();
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_REDEFINITION_CONSISTENT__DIAGNOSTICCHAIN_MAP :
return validateRedefinitionConsistent(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_NON_LEAF_REDEFINITION__DIAGNOSTICCHAIN_MAP :
return validateNonLeafRedefinition(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_REDEFINITION_CONTEXT_VALID__DIAGNOSTICCHAIN_MAP :
return validateRedefinitionContextValid(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___IS_CONSISTENT_WITH__REDEFINABLEELEMENT :
return isConsistentWith((RedefinableElement) arguments.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___IS_REDEFINITION_CONTEXT_VALID__REDEFINABLEELEMENT :
return isRedefinitionContextValid((RedefinableElement) arguments
.get(0));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_OWNED__DIAGNOSTICCHAIN_MAP :
return validateOwned((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_OWNED_STRUCTURED_NODE__DIAGNOSTICCHAIN_MAP :
return validateOwnedStructuredNode(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___GET_CONTEXT :
return getContext();
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_SCOPE_OF_VARIABLE__DIAGNOSTICCHAIN_MAP :
return validateScopeOfVariable(
(DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_MULTIPLICITY__DIAGNOSTICCHAIN_MAP :
return validateMultiplicity((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
case UMLPackage.WRITE_VARIABLE_ACTION___VALIDATE_SAME_TYPE__DIAGNOSTICCHAIN_MAP :
return validateSameType((DiagnosticChain) arguments.get(0),
(Map) arguments.get(1));
}
return eDynamicInvoke(operationID, arguments);
}
/**
* The array of subset feature identifiers for the '{@link #getInputs() Input }' reference list.
*
*
* @see #getInputs()
* @generated
* @ordered
*/
protected static final int[] INPUT_ESUBSETS = new int[]{UMLPackage.WRITE_VARIABLE_ACTION__VALUE};
/**
*
*
* @generated
*/
@Override
public boolean isSetInputs() {
return super.isSetInputs()
|| eIsSet(UMLPackage.WRITE_VARIABLE_ACTION__VALUE);
}
} //WriteVariableActionImpl