imakerplugin/com.nokia.s60tools.imaker/src/com/nokia/s60tools/imaker/internal/iqrf/impl/ConfigurationElementImpl.java
author dpodwall
Tue, 12 Jan 2010 13:17:53 -0600
changeset 0 61163b28edca
permissions -rw-r--r--
initial EPL conversion
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     1
/*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     3
* All rights reserved.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     4
* This component and the accompanying materials are made available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     6
* which accompanies this distribution, and is available
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     8
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
     9
* Initial Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    11
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    12
* Contributors:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    13
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    14
* Description:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    15
*
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    16
*/
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    17
package com.nokia.s60tools.imaker.internal.iqrf.impl;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    18
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    19
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    20
import org.eclipse.emf.common.notify.Notification;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    21
import org.eclipse.emf.ecore.EClass;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    22
import org.eclipse.emf.ecore.impl.ENotificationImpl;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    23
import org.eclipse.emf.ecore.impl.EObjectImpl;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    24
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    25
import com.nokia.s60tools.imaker.internal.iqrf.ConfigurationElement;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    26
import com.nokia.s60tools.imaker.internal.iqrf.IQRFPackage;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    27
import com.nokia.s60tools.imaker.internal.iqrf.util.IQRFUtil;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    28
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    29
/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    30
 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    31
 * An implementation of the model object '<em><b>Configuration Element</b></em>'.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    32
 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    33
 * <p>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    34
 * The following features are implemented:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    35
 * <ul>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    36
 *   <li>{@link com.nokia.s60tools.imaker.internal.iqrf.impl.ConfigurationElementImpl#getName <em>Name</em>}</li>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    37
 *   <li>{@link com.nokia.s60tools.imaker.internal.iqrf.impl.ConfigurationElementImpl#getDescription <em>Description</em>}</li>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    38
 *   <li>{@link com.nokia.s60tools.imaker.internal.iqrf.impl.ConfigurationElementImpl#getValues <em>Values</em>}</li>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    39
 * </ul>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    40
 * </p>
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    41
 *
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    42
 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    43
 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    44
public class ConfigurationElementImpl extends EObjectImpl implements ConfigurationElement {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    45
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    46
	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    47
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    48
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    49
	 * @see #getName()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    50
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    51
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    52
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    53
	protected static final String NAME_EDEFAULT = null;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    54
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    55
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    56
	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    57
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    58
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    59
	 * @see #getName()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    60
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    61
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    62
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    63
	protected String name = NAME_EDEFAULT;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    64
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    65
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    66
	 * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    67
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    68
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    69
	 * @see #getDescription()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    70
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    71
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    72
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    73
	protected static final String DESCRIPTION_EDEFAULT = null;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    74
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    75
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    76
	 * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    77
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    78
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    79
	 * @see #getDescription()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    80
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    81
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    82
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    83
	protected String description = DESCRIPTION_EDEFAULT;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    84
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    85
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    86
	 * The default value of the '{@link #getValues() <em>Values</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    87
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    88
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    89
	 * @see #getValues()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    90
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    91
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    92
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    93
	protected static final String VALUES_EDEFAULT = "";
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    94
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    95
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    96
	 * The cached value of the '{@link #getValues() <em>Values</em>}' attribute.
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    97
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    98
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
    99
	 * @see #getValues()
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   100
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   101
	 * @ordered
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   102
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   103
	protected String values = VALUES_EDEFAULT;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   104
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   105
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   106
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   107
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   108
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   109
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   110
	protected ConfigurationElementImpl() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   111
		super();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   112
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   113
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   114
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   115
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   116
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   117
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   118
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   119
	protected EClass eStaticClass() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   120
		return IQRFPackage.Literals.CONFIGURATION_ELEMENT;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   121
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   122
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   123
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   124
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   125
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   126
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   127
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   128
	public String getName() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   129
		return name;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   130
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   131
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   132
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   133
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   134
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   135
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   136
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   137
	public void setName(String newName) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   138
		String oldName = name;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   139
		name = newName;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   140
		if (eNotificationRequired())
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   141
			eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.CONFIGURATION_ELEMENT__NAME, oldName, name));
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   142
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   143
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   144
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   145
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   146
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   147
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   148
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   149
	public String getDescription() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   150
		return description;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   151
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   152
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   153
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   154
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   155
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   156
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   157
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   158
	public void setDescription(String newDescription) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   159
		String oldDescription = description;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   160
		description = newDescription;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   161
		if (eNotificationRequired())
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   162
			eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.CONFIGURATION_ELEMENT__DESCRIPTION, oldDescription, description));
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   163
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   164
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   165
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   166
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   167
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   168
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   169
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   170
	public String getValues() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   171
		return values;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   172
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   173
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   174
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   175
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   176
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   177
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   178
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   179
	public void setValues(String newValues) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   180
		String oldValues = values;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   181
		values = newValues;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   182
		if (eNotificationRequired())
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   183
			eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.CONFIGURATION_ELEMENT__VALUES, oldValues, values));
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   184
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   185
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   186
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   187
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   188
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   189
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   190
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   191
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   192
		switch (featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   193
			case IQRFPackage.CONFIGURATION_ELEMENT__NAME:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   194
				return getName();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   195
			case IQRFPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   196
				return getDescription();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   197
			case IQRFPackage.CONFIGURATION_ELEMENT__VALUES:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   198
				return getValues();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   199
		}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   200
		return super.eGet(featureID, resolve, coreType);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   201
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   202
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   203
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   204
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   205
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   206
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   207
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   208
	public void eSet(int featureID, Object newValue) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   209
		switch (featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   210
			case IQRFPackage.CONFIGURATION_ELEMENT__NAME:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   211
				setName((String)newValue);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   212
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   213
			case IQRFPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   214
				setDescription((String)newValue);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   215
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   216
			case IQRFPackage.CONFIGURATION_ELEMENT__VALUES:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   217
				setValues((String)newValue);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   218
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   219
		}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   220
		super.eSet(featureID, newValue);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   221
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   222
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   223
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   224
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   225
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   226
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   227
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   228
	public void eUnset(int featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   229
		switch (featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   230
			case IQRFPackage.CONFIGURATION_ELEMENT__NAME:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   231
				setName(NAME_EDEFAULT);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   232
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   233
			case IQRFPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   234
				setDescription(DESCRIPTION_EDEFAULT);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   235
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   236
			case IQRFPackage.CONFIGURATION_ELEMENT__VALUES:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   237
				setValues(VALUES_EDEFAULT);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   238
				return;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   239
		}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   240
		super.eUnset(featureID);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   241
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   242
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   243
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   244
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   245
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   246
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   247
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   248
	public boolean eIsSet(int featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   249
		switch (featureID) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   250
			case IQRFPackage.CONFIGURATION_ELEMENT__NAME:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   251
				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   252
			case IQRFPackage.CONFIGURATION_ELEMENT__DESCRIPTION:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   253
				return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   254
			case IQRFPackage.CONFIGURATION_ELEMENT__VALUES:
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   255
				return VALUES_EDEFAULT == null ? values != null : !VALUES_EDEFAULT.equals(values);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   256
		}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   257
		return super.eIsSet(featureID);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   258
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   259
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   260
	/**
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   261
	 * <!-- begin-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   262
	 * <!-- end-user-doc -->
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   263
	 * @generated
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   264
	 */
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   265
	public String toString() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   266
		if (eIsProxy()) return super.toString();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   267
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   268
		StringBuffer result = new StringBuffer(super.toString());
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   269
		result.append(" (name: ");
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   270
		result.append(name);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   271
		result.append(", description: ");
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   272
		result.append(description);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   273
		result.append(", values: ");
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   274
		result.append(values);
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   275
		result.append(')');
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   276
		return result.toString();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   277
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   278
	
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   279
	public boolean equals(Object object) {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   280
		if(object==null || !(object instanceof ConfigurationElement)) return false;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   281
		ConfigurationElement other = (ConfigurationElement)object;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   282
		return IQRFUtil.equals(getName(),other.getName()) && 
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   283
			   IQRFUtil.equals(getDescription(),other.getDescription()) &&
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   284
			   IQRFUtil.equals(getValues(),other.getValues());
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   285
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   286
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   287
	@Override
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   288
	public int hashCode() {
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   289
		final int hashMultiplier = 41;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   290
		int result = 7;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   291
		result=result*hashMultiplier + getName().hashCode();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   292
		result=result*hashMultiplier + getDescription().hashCode();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   293
		result=result*hashMultiplier + getValues().hashCode();
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   294
		return result;
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   295
	}
61163b28edca initial EPL conversion
dpodwall
parents:
diff changeset
   296
} //ConfigurationElementImpl