You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by kw...@apache.org on 2006/02/07 21:39:54 UTC

svn commit: r375688 [3/6] - in /incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config: ./ impl/ wrapper/

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/CommandImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/CommandImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/CommandImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/CommandImpl.java Tue Feb  7 12:39:51 2006
@@ -7,27 +7,25 @@
 package org.apache.tuscany.das.rdb.config.impl;
 
 import java.util.Collection;
+import java.util.List;
 
 import org.apache.tuscany.das.rdb.config.Command;
-import org.apache.tuscany.das.rdb.config.Config;
-import org.apache.tuscany.das.rdb.config.ConfigPackage;
 import org.apache.tuscany.das.rdb.config.Parameter;
 import org.apache.tuscany.das.rdb.config.ResultDescriptor;
 
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
 import org.eclipse.emf.common.notify.Notification;
 import org.eclipse.emf.common.notify.NotificationChain;
 
 import org.eclipse.emf.common.util.EList;
 
 import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
 import org.eclipse.emf.ecore.InternalEObject;
 
 import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
 
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
-import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
 import org.eclipse.emf.ecore.util.InternalEList;
 
 /**
@@ -37,420 +35,410 @@
  * <p>
  * The following features are implemented:
  * <ul>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getName <em>Name</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getSQL <em>SQL</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getKind <em>Kind</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getConfig <em>Config</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getParameter <em>Parameter</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getResultDescriptor <em>Result Descriptor</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getConfig <em>Config</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getKind <em>Kind</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.CommandImpl#getSQL <em>SQL</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class CommandImpl extends EObjectImpl implements Command {
-	/**
-	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String name = NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getSQL() <em>SQL</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getSQL()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String SQL_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getSQL() <em>SQL</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getSQL()
-	 * @generated
-	 * @ordered
-	 */
-	protected String sql = SQL_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getKind()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String KIND_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getKind()
-	 * @generated
-	 * @ordered
-	 */
-	protected String kind = KIND_EDEFAULT;
-
-	/**
-	 * The cached value of the '{@link #getParameter() <em>Parameter</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getParameter()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList parameter = null;
-
-	/**
-	 * The cached value of the '{@link #getResultDescriptor() <em>Result Descriptor</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getResultDescriptor()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList resultDescriptor = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected CommandImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return ConfigPackage.eINSTANCE.getCommand();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setName(String newName) {
-		String oldName = name;
-		name = newName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.COMMAND__NAME, oldName, name));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getSQL() {
-		return sql;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setSQL(String newSQL) {
-		String oldSQL = sql;
-		sql = newSQL;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.COMMAND__SQL, oldSQL, sql));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getKind() {
-		return kind;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setKind(String newKind) {
-		String oldKind = kind;
-		kind = newKind;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.COMMAND__KIND, oldKind, kind));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Config getConfig() {
-		if (eContainerFeatureID != ConfigPackage.COMMAND__CONFIG) return null;
-		return (Config)eContainer;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setConfig(Config newConfig) {
-		if (newConfig != eContainer || (eContainerFeatureID != ConfigPackage.COMMAND__CONFIG && newConfig != null)) {
-			if (EcoreUtil.isAncestor(this, newConfig))
-				throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
-			NotificationChain msgs = null;
-			if (eContainer != null)
-				msgs = eBasicRemoveFromContainer(msgs);
-			if (newConfig != null)
-				msgs = ((InternalEObject)newConfig).eInverseAdd(this, ConfigPackage.CONFIG__COMMAND, Config.class, msgs);
-			msgs = eBasicSetContainer((InternalEObject)newConfig, ConfigPackage.COMMAND__CONFIG, msgs);
-			if (msgs != null) msgs.dispatch();
-		}
-		else if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.COMMAND__CONFIG, newConfig, newConfig));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList getParameter() {
-		if (parameter == null) {
-			parameter = new EObjectContainmentWithInverseEList(Parameter.class, this, ConfigPackage.COMMAND__PARAMETER, ConfigPackage.PARAMETER__COMMAND);
-		}
-		return parameter;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList getResultDescriptor() {
-		if (resultDescriptor == null) {
-			resultDescriptor = new EObjectContainmentWithInverseEList(ResultDescriptor.class, this, ConfigPackage.COMMAND__RESULT_DESCRIPTOR, ConfigPackage.RESULT_DESCRIPTOR__COMMAND);
-		}
-		return resultDescriptor;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.COMMAND__CONFIG:
-					if (eContainer != null)
-						msgs = eBasicRemoveFromContainer(msgs);
-					return eBasicSetContainer(otherEnd, ConfigPackage.COMMAND__CONFIG, msgs);
-				case ConfigPackage.COMMAND__PARAMETER:
-					return ((InternalEList)getParameter()).basicAdd(otherEnd, msgs);
-				case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-					return ((InternalEList)getResultDescriptor()).basicAdd(otherEnd, msgs);
-				default:
-					return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		if (eContainer != null)
-			msgs = eBasicRemoveFromContainer(msgs);
-		return eBasicSetContainer(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.COMMAND__CONFIG:
-					return eBasicSetContainer(null, ConfigPackage.COMMAND__CONFIG, msgs);
-				case ConfigPackage.COMMAND__PARAMETER:
-					return ((InternalEList)getParameter()).basicRemove(otherEnd, msgs);
-				case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-					return ((InternalEList)getResultDescriptor()).basicRemove(otherEnd, msgs);
-				default:
-					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		return eBasicSetContainer(null, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
-		if (eContainerFeatureID >= 0) {
-			switch (eContainerFeatureID) {
-				case ConfigPackage.COMMAND__CONFIG:
-					return eContainer.eInverseRemove(this, ConfigPackage.CONFIG__COMMAND, Config.class, msgs);
-				default:
-					return eDynamicBasicRemoveFromContainer(msgs);
-			}
-		}
-		return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.COMMAND__NAME:
-				return getName();
-			case ConfigPackage.COMMAND__SQL:
-				return getSQL();
-			case ConfigPackage.COMMAND__KIND:
-				return getKind();
-			case ConfigPackage.COMMAND__CONFIG:
-				return getConfig();
-			case ConfigPackage.COMMAND__PARAMETER:
-				return getParameter();
-			case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-				return getResultDescriptor();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.COMMAND__NAME:
-				setName((String)newValue);
-				return;
-			case ConfigPackage.COMMAND__SQL:
-				setSQL((String)newValue);
-				return;
-			case ConfigPackage.COMMAND__KIND:
-				setKind((String)newValue);
-				return;
-			case ConfigPackage.COMMAND__CONFIG:
-				setConfig((Config)newValue);
-				return;
-			case ConfigPackage.COMMAND__PARAMETER:
-				getParameter().clear();
-				getParameter().addAll((Collection)newValue);
-				return;
-			case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-				getResultDescriptor().clear();
-				getResultDescriptor().addAll((Collection)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.COMMAND__NAME:
-				setName(NAME_EDEFAULT);
-				return;
-			case ConfigPackage.COMMAND__SQL:
-				setSQL(SQL_EDEFAULT);
-				return;
-			case ConfigPackage.COMMAND__KIND:
-				setKind(KIND_EDEFAULT);
-				return;
-			case ConfigPackage.COMMAND__CONFIG:
-				setConfig((Config)null);
-				return;
-			case ConfigPackage.COMMAND__PARAMETER:
-				getParameter().clear();
-				return;
-			case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-				getResultDescriptor().clear();
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.COMMAND__NAME:
-				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-			case ConfigPackage.COMMAND__SQL:
-				return SQL_EDEFAULT == null ? sql != null : !SQL_EDEFAULT.equals(sql);
-			case ConfigPackage.COMMAND__KIND:
-				return KIND_EDEFAULT == null ? kind != null : !KIND_EDEFAULT.equals(kind);
-			case ConfigPackage.COMMAND__CONFIG:
-				return getConfig() != null;
-			case ConfigPackage.COMMAND__PARAMETER:
-				return parameter != null && !parameter.isEmpty();
-			case ConfigPackage.COMMAND__RESULT_DESCRIPTOR:
-				return resultDescriptor != null && !resultDescriptor.isEmpty();
-		}
-		return eDynamicIsSet(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String toString() {
-		if (eIsProxy()) return super.toString();
-
-		StringBuffer result = new StringBuffer(super.toString());
-		result.append(" (name: ");
-		result.append(name);
-		result.append(", SQL: ");
-		result.append(sql);
-		result.append(", kind: ");
-		result.append(kind);
-		result.append(')');
-		return result.toString();
-	}
+public class CommandImpl extends DataObjectImpl implements Command
+{
+  /**
+   * The cached value of the '{@link #getParameter() <em>Parameter</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getParameter()
+   * @generated
+   * @ordered
+   */
+  protected EList parameter = null;
+
+  /**
+   * The cached value of the '{@link #getResultDescriptor() <em>Result Descriptor</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getResultDescriptor()
+   * @generated
+   * @ordered
+   */
+  protected EList resultDescriptor = null;
+
+  /**
+   * The default value of the '{@link #getConfig() <em>Config</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getConfig()
+   * @generated
+   * @ordered
+   */
+  protected static final String CONFIG_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getConfig() <em>Config</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getConfig()
+   * @generated
+   * @ordered
+   */
+  protected String config = CONFIG_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getKind()
+   * @generated
+   * @ordered
+   */
+  protected static final String KIND_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getKind()
+   * @generated
+   * @ordered
+   */
+  protected String kind = KIND_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected static final String NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected String name = NAME_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getSQL() <em>SQL</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSQL()
+   * @generated
+   * @ordered
+   */
+  protected static final String SQL_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getSQL() <em>SQL</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSQL()
+   * @generated
+   * @ordered
+   */
+  protected String sQL = SQL_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CommandImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return ConfigPackageImpl.Literals.COMMAND;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getParameter()
+  {
+    if (parameter == null)
+    {
+      parameter = new EObjectContainmentEList(Parameter.class, this, ConfigPackageImpl.COMMAND__PARAMETER);
+    }
+    return parameter;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getResultDescriptor()
+  {
+    if (resultDescriptor == null)
+    {
+      resultDescriptor = new EObjectContainmentEList(ResultDescriptor.class, this, ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR);
+    }
+    return resultDescriptor;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getConfig()
+  {
+    return config;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setConfig(String newConfig)
+  {
+    String oldConfig = config;
+    config = newConfig;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.COMMAND__CONFIG, oldConfig, config));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getKind()
+  {
+    return kind;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setKind(String newKind)
+  {
+    String oldKind = kind;
+    kind = newKind;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.COMMAND__KIND, oldKind, kind));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getName()
+  {
+    return name;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setName(String newName)
+  {
+    String oldName = name;
+    name = newName;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.COMMAND__NAME, oldName, name));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getSQL()
+  {
+    return sQL;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setSQL(String newSQL)
+  {
+    String oldSQL = sQL;
+    sQL = newSQL;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.COMMAND__SQL, oldSQL, sQL));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.COMMAND__PARAMETER:
+        return ((InternalEList)getParameter()).basicRemove(otherEnd, msgs);
+      case ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR:
+        return ((InternalEList)getResultDescriptor()).basicRemove(otherEnd, msgs);
+    }
+    return super.eInverseRemove(otherEnd, featureID, msgs);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.COMMAND__PARAMETER:
+        return getParameter();
+      case ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR:
+        return getResultDescriptor();
+      case ConfigPackageImpl.COMMAND__CONFIG:
+        return getConfig();
+      case ConfigPackageImpl.COMMAND__KIND:
+        return getKind();
+      case ConfigPackageImpl.COMMAND__NAME:
+        return getName();
+      case ConfigPackageImpl.COMMAND__SQL:
+        return getSQL();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.COMMAND__PARAMETER:
+        getParameter().clear();
+        getParameter().addAll((Collection)newValue);
+        return;
+      case ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR:
+        getResultDescriptor().clear();
+        getResultDescriptor().addAll((Collection)newValue);
+        return;
+      case ConfigPackageImpl.COMMAND__CONFIG:
+        setConfig((String)newValue);
+        return;
+      case ConfigPackageImpl.COMMAND__KIND:
+        setKind((String)newValue);
+        return;
+      case ConfigPackageImpl.COMMAND__NAME:
+        setName((String)newValue);
+        return;
+      case ConfigPackageImpl.COMMAND__SQL:
+        setSQL((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.COMMAND__PARAMETER:
+        getParameter().clear();
+        return;
+      case ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR:
+        getResultDescriptor().clear();
+        return;
+      case ConfigPackageImpl.COMMAND__CONFIG:
+        setConfig(CONFIG_EDEFAULT);
+        return;
+      case ConfigPackageImpl.COMMAND__KIND:
+        setKind(KIND_EDEFAULT);
+        return;
+      case ConfigPackageImpl.COMMAND__NAME:
+        setName(NAME_EDEFAULT);
+        return;
+      case ConfigPackageImpl.COMMAND__SQL:
+        setSQL(SQL_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.COMMAND__PARAMETER:
+        return parameter != null && !parameter.isEmpty();
+      case ConfigPackageImpl.COMMAND__RESULT_DESCRIPTOR:
+        return resultDescriptor != null && !resultDescriptor.isEmpty();
+      case ConfigPackageImpl.COMMAND__CONFIG:
+        return CONFIG_EDEFAULT == null ? config != null : !CONFIG_EDEFAULT.equals(config);
+      case ConfigPackageImpl.COMMAND__KIND:
+        return KIND_EDEFAULT == null ? kind != null : !KIND_EDEFAULT.equals(kind);
+      case ConfigPackageImpl.COMMAND__NAME:
+        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+      case ConfigPackageImpl.COMMAND__SQL:
+        return SQL_EDEFAULT == null ? sQL != null : !SQL_EDEFAULT.equals(sQL);
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (config: ");
+    result.append(config);
+    result.append(", kind: ");
+    result.append(kind);
+    result.append(", name: ");
+    result.append(name);
+    result.append(", sQL: ");
+    result.append(sQL);
+    result.append(')');
+    return result.toString();
+  }
 
 } //CommandImpl

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigFactoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigFactoryImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigFactoryImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigFactoryImpl.java Tue Feb  7 12:39:51 2006
@@ -10,154 +10,203 @@
 
 import org.eclipse.emf.ecore.EClass;
 import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
 
 import org.eclipse.emf.ecore.impl.EFactoryImpl;
 
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model <b>Factory</b>.
  * <!-- end-user-doc -->
  * @generated
  */
-public class ConfigFactoryImpl extends EFactoryImpl implements ConfigFactory {
-	/**
-	 * Creates an instance of the factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ConfigFactoryImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EObject create(EClass eClass) {
-		switch (eClass.getClassifierID()) {
-			case ConfigPackage.CONFIG: return createConfig();
-			case ConfigPackage.COMMAND: return createCommand();
-			case ConfigPackage.CONNECTION_PROPERTIES: return createConnectionProperties();
-			case ConfigPackage.PARAMETER: return createParameter();
-			case ConfigPackage.RELATIONSHIP: return createRelationship();
-			case ConfigPackage.TABLE: return createTable();
-			case ConfigPackage.KEY_PAIR: return createKeyPair();
-			case ConfigPackage.COLUMN: return createColumn();
-			case ConfigPackage.RESULT_DESCRIPTOR: return createResultDescriptor();
-			default:
-				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
-		}
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Config createConfig() {
-		ConfigImpl config = new ConfigImpl();
-		return config;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Command createCommand() {
-		CommandImpl command = new CommandImpl();
-		return command;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ConnectionProperties createConnectionProperties() {
-		ConnectionPropertiesImpl connectionProperties = new ConnectionPropertiesImpl();
-		return connectionProperties;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Parameter createParameter() {
-		ParameterImpl parameter = new ParameterImpl();
-		return parameter;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Relationship createRelationship() {
-		RelationshipImpl relationship = new RelationshipImpl();
-		return relationship;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Table createTable() {
-		TableImpl table = new TableImpl();
-		return table;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public KeyPair createKeyPair() {
-		KeyPairImpl keyPair = new KeyPairImpl();
-		return keyPair;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Column createColumn() {
-		ColumnImpl column = new ColumnImpl();
-		return column;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ResultDescriptor createResultDescriptor() {
-		ResultDescriptorImpl resultDescriptor = new ResultDescriptorImpl();
-		return resultDescriptor;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ConfigPackage getConfigPackage() {
-		return (ConfigPackage)getEPackage();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @deprecated
-	 * @generated
-	 */
-	public static ConfigPackage getPackage() {
-		return ConfigPackage.eINSTANCE;
-	}
+public class ConfigFactoryImpl extends EFactoryImpl implements ConfigFactory
+{
+  /**
+   * The singleton instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final ConfigFactoryImpl eINSTANCE = init();
+
+  /**
+   * Creates the default factory implementation.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static ConfigFactoryImpl init()
+  {
+    try
+    {
+      ConfigFactoryImpl theConfigFactory = (ConfigFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.apache.tuscany.das.rdb/config.xsd"); 
+      if (theConfigFactory != null)
+      {
+        return theConfigFactory;
+      }
+    }
+    catch (Exception exception)
+    {
+      EcorePlugin.INSTANCE.log(exception);
+    }
+    return new ConfigFactoryImpl();
+  }
+
+  /**
+   * Creates an instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ConfigFactoryImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EObject create(EClass eClass)
+  {
+    switch (eClass.getClassifierID())
+    {
+      case ConfigPackageImpl.COLUMN: return (EObject)createColumn();
+      case ConfigPackageImpl.COMMAND: return (EObject)createCommand();
+      case ConfigPackageImpl.CONFIG: return (EObject)createConfig();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES: return (EObject)createConnectionProperties();
+      case ConfigPackageImpl.KEY_PAIR: return (EObject)createKeyPair();
+      case ConfigPackageImpl.PARAMETER: return (EObject)createParameter();
+      case ConfigPackageImpl.RELATIONSHIP: return (EObject)createRelationship();
+      case ConfigPackageImpl.RESULT_DESCRIPTOR: return (EObject)createResultDescriptor();
+      case ConfigPackageImpl.TABLE: return (EObject)createTable();
+      default:
+        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+    }
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Column createColumn()
+  {
+    ColumnImpl column = new ColumnImpl();
+    return column;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Command createCommand()
+  {
+    CommandImpl command = new CommandImpl();
+    return command;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Config createConfig()
+  {
+    ConfigImpl config = new ConfigImpl();
+    return config;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ConnectionProperties createConnectionProperties()
+  {
+    ConnectionPropertiesImpl connectionProperties = new ConnectionPropertiesImpl();
+    return connectionProperties;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public KeyPair createKeyPair()
+  {
+    KeyPairImpl keyPair = new KeyPairImpl();
+    return keyPair;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Parameter createParameter()
+  {
+    ParameterImpl parameter = new ParameterImpl();
+    return parameter;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Relationship createRelationship()
+  {
+    RelationshipImpl relationship = new RelationshipImpl();
+    return relationship;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ResultDescriptor createResultDescriptor()
+  {
+    ResultDescriptorImpl resultDescriptor = new ResultDescriptorImpl();
+    return resultDescriptor;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Table createTable()
+  {
+    TableImpl table = new TableImpl();
+    return table;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ConfigPackageImpl getConfigPackageImpl()
+  {
+    return (ConfigPackageImpl)getEPackage();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @deprecated
+   * @generated
+   */
+  public static ConfigPackageImpl getPackage()
+  {
+    return ConfigPackageImpl.eINSTANCE;
+  }
 
 } //ConfigFactoryImpl

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConfigImpl.java Tue Feb  7 12:39:51 2006
@@ -7,27 +7,27 @@
 package org.apache.tuscany.das.rdb.config.impl;
 
 import java.util.Collection;
+import java.util.List;
 
 import org.apache.tuscany.das.rdb.config.Command;
 import org.apache.tuscany.das.rdb.config.Config;
-import org.apache.tuscany.das.rdb.config.ConfigPackage;
 import org.apache.tuscany.das.rdb.config.ConnectionProperties;
 import org.apache.tuscany.das.rdb.config.Relationship;
 import org.apache.tuscany.das.rdb.config.Table;
 
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
 import org.eclipse.emf.common.notify.Notification;
 import org.eclipse.emf.common.notify.NotificationChain;
 
 import org.eclipse.emf.common.util.EList;
 
 import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
 import org.eclipse.emf.ecore.InternalEObject;
 
 import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
 
-import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
 import org.eclipse.emf.ecore.util.InternalEList;
 
 /**
@@ -37,355 +37,351 @@
  * <p>
  * The following features are implemented:
  * <ul>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getUri <em>Uri</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getCommand <em>Command</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getConnectionProperties <em>Connection Properties</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getTable <em>Table</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getRelationship <em>Relationship</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConfigImpl#getUri <em>Uri</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class ConfigImpl extends EObjectImpl implements Config {
-	/**
-	 * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getUri()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String URI_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getUri()
-	 * @generated
-	 * @ordered
-	 */
-	protected String uri = URI_EDEFAULT;
-
-	/**
-	 * The cached value of the '{@link #getCommand() <em>Command</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getCommand()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList command = null;
-
-	/**
-	 * The cached value of the '{@link #getConnectionProperties() <em>Connection Properties</em>}' containment reference.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getConnectionProperties()
-	 * @generated
-	 * @ordered
-	 */
-	protected ConnectionProperties connectionProperties = null;
-
-	/**
-	 * The cached value of the '{@link #getTable() <em>Table</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getTable()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList table = null;
-
-	/**
-	 * The cached value of the '{@link #getRelationship() <em>Relationship</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getRelationship()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList relationship = null;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected ConfigImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return ConfigPackage.eINSTANCE.getConfig();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getUri() {
-		return uri;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setUri(String newUri) {
-		String oldUri = uri;
-		uri = newUri;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONFIG__URI, oldUri, uri));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList getCommand() {
-		if (command == null) {
-			command = new EObjectContainmentWithInverseEList(Command.class, this, ConfigPackage.CONFIG__COMMAND, ConfigPackage.COMMAND__CONFIG);
-		}
-		return command;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public ConnectionProperties getConnectionProperties() {
-		return connectionProperties;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain basicSetConnectionProperties(ConnectionProperties newConnectionProperties, NotificationChain msgs) {
-		ConnectionProperties oldConnectionProperties = connectionProperties;
-		connectionProperties = newConnectionProperties;
-		if (eNotificationRequired()) {
-			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackage.CONFIG__CONNECTION_PROPERTIES, oldConnectionProperties, newConnectionProperties);
-			if (msgs == null) msgs = notification; else msgs.add(notification);
-		}
-		return msgs;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setConnectionProperties(ConnectionProperties newConnectionProperties) {
-		if (newConnectionProperties != connectionProperties) {
-			NotificationChain msgs = null;
-			if (connectionProperties != null)
-				msgs = ((InternalEObject)connectionProperties).eInverseRemove(this, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, ConnectionProperties.class, msgs);
-			if (newConnectionProperties != null)
-				msgs = ((InternalEObject)newConnectionProperties).eInverseAdd(this, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, ConnectionProperties.class, msgs);
-			msgs = basicSetConnectionProperties(newConnectionProperties, msgs);
-			if (msgs != null) msgs.dispatch();
-		}
-		else if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONFIG__CONNECTION_PROPERTIES, newConnectionProperties, newConnectionProperties));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList getTable() {
-		if (table == null) {
-			table = new EObjectContainmentWithInverseEList(Table.class, this, ConfigPackage.CONFIG__TABLE, ConfigPackage.TABLE__CONFIG);
-		}
-		return table;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public EList getRelationship() {
-		if (relationship == null) {
-			relationship = new EObjectContainmentWithInverseEList(Relationship.class, this, ConfigPackage.CONFIG__RELATIONSHIP, ConfigPackage.RELATIONSHIP__CONFIG);
-		}
-		return relationship;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.CONFIG__COMMAND:
-					return ((InternalEList)getCommand()).basicAdd(otherEnd, msgs);
-				case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-					if (connectionProperties != null)
-						msgs = ((InternalEObject)connectionProperties).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackage.CONFIG__CONNECTION_PROPERTIES, null, msgs);
-					return basicSetConnectionProperties((ConnectionProperties)otherEnd, msgs);
-				case ConfigPackage.CONFIG__TABLE:
-					return ((InternalEList)getTable()).basicAdd(otherEnd, msgs);
-				case ConfigPackage.CONFIG__RELATIONSHIP:
-					return ((InternalEList)getRelationship()).basicAdd(otherEnd, msgs);
-				default:
-					return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		if (eContainer != null)
-			msgs = eBasicRemoveFromContainer(msgs);
-		return eBasicSetContainer(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.CONFIG__COMMAND:
-					return ((InternalEList)getCommand()).basicRemove(otherEnd, msgs);
-				case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-					return basicSetConnectionProperties(null, msgs);
-				case ConfigPackage.CONFIG__TABLE:
-					return ((InternalEList)getTable()).basicRemove(otherEnd, msgs);
-				case ConfigPackage.CONFIG__RELATIONSHIP:
-					return ((InternalEList)getRelationship()).basicRemove(otherEnd, msgs);
-				default:
-					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		return eBasicSetContainer(null, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONFIG__URI:
-				return getUri();
-			case ConfigPackage.CONFIG__COMMAND:
-				return getCommand();
-			case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-				return getConnectionProperties();
-			case ConfigPackage.CONFIG__TABLE:
-				return getTable();
-			case ConfigPackage.CONFIG__RELATIONSHIP:
-				return getRelationship();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONFIG__URI:
-				setUri((String)newValue);
-				return;
-			case ConfigPackage.CONFIG__COMMAND:
-				getCommand().clear();
-				getCommand().addAll((Collection)newValue);
-				return;
-			case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-				setConnectionProperties((ConnectionProperties)newValue);
-				return;
-			case ConfigPackage.CONFIG__TABLE:
-				getTable().clear();
-				getTable().addAll((Collection)newValue);
-				return;
-			case ConfigPackage.CONFIG__RELATIONSHIP:
-				getRelationship().clear();
-				getRelationship().addAll((Collection)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONFIG__URI:
-				setUri(URI_EDEFAULT);
-				return;
-			case ConfigPackage.CONFIG__COMMAND:
-				getCommand().clear();
-				return;
-			case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-				setConnectionProperties((ConnectionProperties)null);
-				return;
-			case ConfigPackage.CONFIG__TABLE:
-				getTable().clear();
-				return;
-			case ConfigPackage.CONFIG__RELATIONSHIP:
-				getRelationship().clear();
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONFIG__URI:
-				return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
-			case ConfigPackage.CONFIG__COMMAND:
-				return command != null && !command.isEmpty();
-			case ConfigPackage.CONFIG__CONNECTION_PROPERTIES:
-				return connectionProperties != null;
-			case ConfigPackage.CONFIG__TABLE:
-				return table != null && !table.isEmpty();
-			case ConfigPackage.CONFIG__RELATIONSHIP:
-				return relationship != null && !relationship.isEmpty();
-		}
-		return eDynamicIsSet(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String toString() {
-		if (eIsProxy()) return super.toString();
-
-		StringBuffer result = new StringBuffer(super.toString());
-		result.append(" (uri: ");
-		result.append(uri);
-		result.append(')');
-		return result.toString();
-	}
+public class ConfigImpl extends DataObjectImpl implements Config
+{
+  /**
+   * The cached value of the '{@link #getCommand() <em>Command</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getCommand()
+   * @generated
+   * @ordered
+   */
+  protected EList command = null;
+
+  /**
+   * The cached value of the '{@link #getConnectionProperties() <em>Connection Properties</em>}' containment reference.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getConnectionProperties()
+   * @generated
+   * @ordered
+   */
+  protected ConnectionProperties connectionProperties = null;
+
+  /**
+   * The cached value of the '{@link #getTable() <em>Table</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getTable()
+   * @generated
+   * @ordered
+   */
+  protected EList table = null;
+
+  /**
+   * The cached value of the '{@link #getRelationship() <em>Relationship</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getRelationship()
+   * @generated
+   * @ordered
+   */
+  protected EList relationship = null;
+
+  /**
+   * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getUri()
+   * @generated
+   * @ordered
+   */
+  protected static final String URI_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getUri()
+   * @generated
+   * @ordered
+   */
+  protected String uri = URI_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConfigImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return ConfigPackageImpl.Literals.CONFIG;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getCommand()
+  {
+    if (command == null)
+    {
+      command = new EObjectContainmentEList(Command.class, this, ConfigPackageImpl.CONFIG__COMMAND);
+    }
+    return command;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public ConnectionProperties getConnectionProperties()
+  {
+    return connectionProperties;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public NotificationChain basicSetConnectionProperties(ConnectionProperties newConnectionProperties, NotificationChain msgs)
+  {
+    ConnectionProperties oldConnectionProperties = connectionProperties;
+    connectionProperties = newConnectionProperties;
+    if (eNotificationRequired())
+    {
+      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES, oldConnectionProperties, newConnectionProperties);
+      if (msgs == null) msgs = notification; else msgs.add(notification);
+    }
+    return msgs;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setConnectionProperties(ConnectionProperties newConnectionProperties)
+  {
+    if (newConnectionProperties != connectionProperties)
+    {
+      NotificationChain msgs = null;
+      if (connectionProperties != null)
+        msgs = ((InternalEObject)connectionProperties).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES, null, msgs);
+      if (newConnectionProperties != null)
+        msgs = ((InternalEObject)newConnectionProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES, null, msgs);
+      msgs = basicSetConnectionProperties(newConnectionProperties, msgs);
+      if (msgs != null) msgs.dispatch();
+    }
+    else if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES, newConnectionProperties, newConnectionProperties));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getTable()
+  {
+    if (table == null)
+    {
+      table = new EObjectContainmentEList(Table.class, this, ConfigPackageImpl.CONFIG__TABLE);
+    }
+    return table;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getRelationship()
+  {
+    if (relationship == null)
+    {
+      relationship = new EObjectContainmentEList(Relationship.class, this, ConfigPackageImpl.CONFIG__RELATIONSHIP);
+    }
+    return relationship;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getUri()
+  {
+    return uri;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setUri(String newUri)
+  {
+    String oldUri = uri;
+    uri = newUri;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONFIG__URI, oldUri, uri));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONFIG__COMMAND:
+        return ((InternalEList)getCommand()).basicRemove(otherEnd, msgs);
+      case ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES:
+        return basicSetConnectionProperties(null, msgs);
+      case ConfigPackageImpl.CONFIG__TABLE:
+        return ((InternalEList)getTable()).basicRemove(otherEnd, msgs);
+      case ConfigPackageImpl.CONFIG__RELATIONSHIP:
+        return ((InternalEList)getRelationship()).basicRemove(otherEnd, msgs);
+    }
+    return super.eInverseRemove(otherEnd, featureID, msgs);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONFIG__COMMAND:
+        return getCommand();
+      case ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES:
+        return getConnectionProperties();
+      case ConfigPackageImpl.CONFIG__TABLE:
+        return getTable();
+      case ConfigPackageImpl.CONFIG__RELATIONSHIP:
+        return getRelationship();
+      case ConfigPackageImpl.CONFIG__URI:
+        return getUri();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONFIG__COMMAND:
+        getCommand().clear();
+        getCommand().addAll((Collection)newValue);
+        return;
+      case ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES:
+        setConnectionProperties((ConnectionProperties)newValue);
+        return;
+      case ConfigPackageImpl.CONFIG__TABLE:
+        getTable().clear();
+        getTable().addAll((Collection)newValue);
+        return;
+      case ConfigPackageImpl.CONFIG__RELATIONSHIP:
+        getRelationship().clear();
+        getRelationship().addAll((Collection)newValue);
+        return;
+      case ConfigPackageImpl.CONFIG__URI:
+        setUri((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONFIG__COMMAND:
+        getCommand().clear();
+        return;
+      case ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES:
+        setConnectionProperties((ConnectionProperties)null);
+        return;
+      case ConfigPackageImpl.CONFIG__TABLE:
+        getTable().clear();
+        return;
+      case ConfigPackageImpl.CONFIG__RELATIONSHIP:
+        getRelationship().clear();
+        return;
+      case ConfigPackageImpl.CONFIG__URI:
+        setUri(URI_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONFIG__COMMAND:
+        return command != null && !command.isEmpty();
+      case ConfigPackageImpl.CONFIG__CONNECTION_PROPERTIES:
+        return connectionProperties != null;
+      case ConfigPackageImpl.CONFIG__TABLE:
+        return table != null && !table.isEmpty();
+      case ConfigPackageImpl.CONFIG__RELATIONSHIP:
+        return relationship != null && !relationship.isEmpty();
+      case ConfigPackageImpl.CONFIG__URI:
+        return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (uri: ");
+    result.append(uri);
+    result.append(')');
+    return result.toString();
+  }
 
 } //ConfigImpl