Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeValueImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeValueImpl.java403
1 files changed, 0 insertions, 403 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeValueImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeValueImpl.java
deleted file mode 100644
index 3e95595d27a..00000000000
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/impl/UserAttributeValueImpl.java
+++ /dev/null
@@ -1,403 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * 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:
- * Sara TUCCI (CEA LIST) sara.tucci@cea.fr - Initial API and implementation
- * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
- * David SERVAT (CEA LIST) david.servat@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.papyrus.eastadl.infrastructure.elements.impl.EAElementImpl;
-import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserAttributeDefinition;
-import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserAttributeValue;
-import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesPackage;
-import org.eclipse.uml2.uml.Property;
-
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>User Attribute Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeValueImpl#getBase_Class <em>Base Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeValueImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeValueImpl#getBase_Property <em>Base Property</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserAttributeValueImpl#getDefinition <em>Definition</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class UserAttributeValueImpl extends EAElementImpl implements UserAttributeValue {
- /**
- * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Class()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Class base_Class;
-
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Property() <em>Base Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Property()
- * @generated
- * @ordered
- */
- protected Property base_Property;
-
- /**
- * The cached value of the '{@link #getDefinition() <em>Definition</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefinition()
- * @generated
- * @ordered
- */
- protected UserAttributeDefinition definition;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UserAttributeValueImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS:
- if (resolve) {
- return getBase_Class();
- }
- return basicGetBase_Class();
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__VALUE:
- return getValue();
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY:
- if (resolve) {
- return getBase_Property();
- }
- return basicGetBase_Property();
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION:
- if (resolve) {
- return getDefinition();
- }
- return basicGetDefinition();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS:
- return base_Class != null;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY:
- return base_Property != null;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION:
- return definition != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class) newValue);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__VALUE:
- setValue((String) newValue);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY:
- setBase_Property((Property) newValue);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION:
- setDefinition((UserAttributeDefinition) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return UserattributesPackage.Literals.USER_ATTRIBUTE_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public org.eclipse.uml2.uml.Class getBase_Class() {
- if (base_Class != null && base_Class.eIsProxy()) {
- InternalEObject oldBase_Class = (InternalEObject) base_Class;
- base_Class = (org.eclipse.uml2.uml.Class) eResolveProxy(oldBase_Class);
- if (base_Class != oldBase_Class) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS, oldBase_Class, base_Class));
- }
- }
- }
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Class basicGetBase_Class() {
- return base_Class;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
- org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
- base_Class = newBase_Class;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS, oldBase_Class, base_Class));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class) null);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY:
- setBase_Property((Property) null);
- return;
- case UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION:
- setDefinition((UserAttributeDefinition) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UserAttributeDefinition getDefinition() {
- if (definition != null && definition.eIsProxy()) {
- InternalEObject oldDefinition = (InternalEObject) definition;
- definition = (UserAttributeDefinition) eResolveProxy(oldDefinition);
- if (definition != oldDefinition) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION, oldDefinition, definition));
- }
- }
- }
- return definition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UserAttributeDefinition basicGetDefinition() {
- return definition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDefinition(UserAttributeDefinition newDefinition) {
- UserAttributeDefinition oldDefinition = definition;
- definition = newDefinition;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_VALUE__DEFINITION, oldDefinition, definition));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setValue(String newValue) {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_VALUE__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Property getBase_Property() {
- if (base_Property != null && base_Property.eIsProxy()) {
- InternalEObject oldBase_Property = (InternalEObject) base_Property;
- base_Property = (Property) eResolveProxy(oldBase_Property);
- if (base_Property != oldBase_Property) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
- }
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetBase_Property() {
- return base_Property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Property(Property newBase_Property) {
- Property oldBase_Property = base_Property;
- base_Property = newBase_Property;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UserattributesPackage.USER_ATTRIBUTE_VALUE__BASE_PROPERTY, oldBase_Property, base_Property));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // UserAttributeValueImpl

Back to the top