diff -r 000000000000 -r 61163b28edca imakerplugin/com.nokia.s60tools.imaker/src/com/nokia/s60tools/imaker/internal/iqrf/impl/SettingImpl.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/imakerplugin/com.nokia.s60tools.imaker/src/com/nokia/s60tools/imaker/internal/iqrf/impl/SettingImpl.java Tue Jan 12 13:17:53 2010 -0600
@@ -0,0 +1,316 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+package com.nokia.s60tools.imaker.internal.iqrf.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.emf.ecore.impl.EObjectImpl;
+
+import com.nokia.s60tools.imaker.internal.iqrf.ConfigurationElement;
+import com.nokia.s60tools.imaker.internal.iqrf.IQRFPackage;
+import com.nokia.s60tools.imaker.internal.iqrf.Setting;
+import com.nokia.s60tools.imaker.internal.iqrf.util.IQRFUtil;
+
+/**
+ *
+ * An implementation of the model object 'Setting'.
+ *
+ *
+ * The following features are implemented:
+ *
+ * - {@link com.nokia.s60tools.imaker.internal.iqrf.impl.SettingImpl#getName Name}
+ * - {@link com.nokia.s60tools.imaker.internal.iqrf.impl.SettingImpl#getValue Value}
+ * - {@link com.nokia.s60tools.imaker.internal.iqrf.impl.SettingImpl#getRef Ref}
+ *
+ *
+ *
+ * @generated
+ */
+public class SettingImpl extends EObjectImpl implements Setting {
+ /**
+ * The default value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() Name}' attribute.
+ *
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getValue() Value}' attribute.
+ *
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = "";
+
+ /**
+ * The cached value of the '{@link #getValue() Value}' attribute.
+ *
+ *
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRef() Ref}' reference.
+ *
+ *
+ * @see #getRef()
+ * @generated
+ * @ordered
+ */
+ protected ConfigurationElement ref = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected SettingImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return IQRFPackage.Literals.SETTING;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.SETTING__NAME, oldName, name));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setValue(String newValue) {
+ String oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.SETTING__VALUE, oldValue, value));
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public ConfigurationElement getRef() {
+ if (ref != null && ref.eIsProxy()) {
+ InternalEObject oldRef = (InternalEObject)ref;
+ ref = (ConfigurationElement)eResolveProxy(oldRef);
+ if (ref != oldRef) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, IQRFPackage.SETTING__REF, oldRef, ref));
+ }
+ }
+ return ref;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public ConfigurationElement basicGetRef() {
+ return ref;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void setRef(ConfigurationElement newRef) {
+ ConfigurationElement oldRef = ref;
+ ref = newRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, IQRFPackage.SETTING__REF, oldRef, ref));
+ }
+
+ /**
+ *
+ *
+ * @generated NOT
+ */
+ public void setConfigurationElement(ConfigurationElement element) {
+ // Ensure that you remove @generated or mark it @generated NOT
+ ref = element;
+ //throw new UnsupportedOperationException();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case IQRFPackage.SETTING__NAME:
+ return getName();
+ case IQRFPackage.SETTING__VALUE:
+ return getValue();
+ case IQRFPackage.SETTING__REF:
+ if (resolve) return getRef();
+ return basicGetRef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case IQRFPackage.SETTING__NAME:
+ setName((String)newValue);
+ return;
+ case IQRFPackage.SETTING__VALUE:
+ setValue((String)newValue);
+ return;
+ case IQRFPackage.SETTING__REF:
+ setRef((ConfigurationElement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case IQRFPackage.SETTING__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case IQRFPackage.SETTING__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ case IQRFPackage.SETTING__REF:
+ setRef((ConfigurationElement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case IQRFPackage.SETTING__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case IQRFPackage.SETTING__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ case IQRFPackage.SETTING__REF:
+ return ref != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", value: ");
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
+
+ public boolean equals(Object object) {
+ if(object==null || !(object instanceof Setting)) return false;
+ Setting other = (Setting)object;
+ boolean self = IQRFUtil.equals(getName(),other.getName()) &&
+ IQRFUtil.equals(getValue(),other.getValue());
+ if(!self) return false;
+ boolean ret = (getRef()==null) ? (other.getRef()==null):getRef().equals(other.getRef());
+ return ret;
+ }
+
+ @Override
+ public int hashCode() {
+ final int hashMultiplier = 41;
+ int result = 7;
+ result=result*hashMultiplier + getName().hashCode();
+ result=result*hashMultiplier + getValue().hashCode();
+ return result;
+ }
+} //SettingImpl
\ No newline at end of file