You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by fr...@apache.org on 2006/11/20 23:16:02 UTC

svn commit: r477364 [4/8] - in /incubator/tuscany/java/sdo: impl/src/main/java/org/apache/tuscany/sdo/helper/ impl/src/main/java/org/apache/tuscany/sdo/impl/ impl/src/main/java/org/apache/tuscany/sdo/model/ impl/src/main/java/org/apache/tuscany/sdo/mod...

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/ModelsTypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/ModelsTypeImpl.java?view=diff&rev=477364&r1=477363&r2=477364
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/ModelsTypeImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/ModelsTypeImpl.java Mon Nov 20 14:16:00 2006
@@ -1,41 +1,19 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * $Id$
  */
 package org.apache.tuscany.sdo.model.impl;
 
 import commonj.sdo.Sequence;
+import commonj.sdo.Type;
 
+import org.apache.tuscany.sdo.impl.DataObjectBase;
 
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
+import org.apache.tuscany.sdo.model.ModelFactory;
 import org.apache.tuscany.sdo.model.ModelsType;
 
-import org.apache.tuscany.sdo.util.BasicSequence;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.util.BasicFeatureMap;
-import org.eclipse.emf.ecore.util.FeatureMap;
-import org.eclipse.emf.ecore.util.InternalEList;
-
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model object '<em><b>Models Type</b></em>'.
@@ -49,9 +27,28 @@
  *
  * @generated
  */
-public class ModelsTypeImpl extends DataObjectImpl implements ModelsType
+public class ModelsTypeImpl extends DataObjectBase implements ModelsType
 {
   /**
+   * The feature id for the '<em><b>Any</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ANY = 0;
+
+  /**
+   * This represents the number of properties for this type.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  
+  public final static int SDO_PROPERTY_COUNT = 1;
+
+  /**
    * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -59,8 +56,9 @@
    * @generated
    * @ordered
    */
-  protected BasicSequence any = null;
-
+  
+  protected Sequence any = null;
+  
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -76,9 +74,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  protected EClass eStaticClass()
+  public Type getType()
   {
-    return ModelPackageImpl.Literals.MODELS_TYPE;
+    return ((ModelFactoryImpl)ModelFactory.INSTANCE).getModelsType();
   }
 
   /**
@@ -90,24 +88,23 @@
   {
     if (any == null)
     {
-      any = new BasicSequence(new BasicFeatureMap(this, ModelPackageImpl.MODELS_TYPE__ANY));
+      any = createSequence(ANY);
     }
     return any;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  public ChangeContext inverseRemove(Object otherEnd, int propertyIndex, ChangeContext changeContext)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.MODELS_TYPE__ANY:
-        return ((InternalEList)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs);
+      case ANY:
+        return removeFromSequence(getAny(), otherEnd, changeContext);
     }
-    return super.eInverseRemove(otherEnd, featureID, msgs);
+    return super.inverseRemove(otherEnd, propertyIndex, changeContext);
   }
 
   /**
@@ -115,15 +112,16 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  public Object get(int propertyIndex, boolean resolve)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.MODELS_TYPE__ANY:
-        if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap();
+      case ANY:
+        // XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
+        //if (coreType) 
         return getAny();
     }
-    return super.eGet(featureID, resolve, coreType);
+    return super.get(propertyIndex, resolve);
   }
 
   /**
@@ -131,15 +129,15 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eSet(int featureID, Object newValue)
+  public void set(int propertyIndex, Object newValue)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.MODELS_TYPE__ANY:
-        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue);
+      case ANY:
+      	setSequence(getAny(), newValue);
         return;
     }
-    super.eSet(featureID, newValue);
+    super.set(propertyIndex, newValue);
   }
 
   /**
@@ -147,15 +145,15 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eUnset(int featureID)
+  public void unset(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.MODELS_TYPE__ANY:
-        ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear();
+      case ANY:
+        unsetSequence(getAny());
         return;
     }
-    super.eUnset(featureID);
+    super.unset(propertyIndex);
   }
 
   /**
@@ -163,14 +161,14 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean eIsSet(int featureID)
+  public boolean isSet(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.MODELS_TYPE__ANY:
-        return any != null && !any.featureMap().isEmpty();
+      case ANY:
+        return any != null && !isSequenceEmpty(getAny());
     }
-    return super.eIsSet(featureID);
+    return super.isSet(propertyIndex);
   }
 
   /**
@@ -180,7 +178,7 @@
    */
   public String toString()
   {
-    if (eIsProxy()) return super.toString();
+    if (isProxy(this)) return super.toString();
 
     StringBuffer result = new StringBuffer(super.toString());
     result.append(" (any: ");

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/PropertyImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/PropertyImpl.java?view=diff&rev=477364&r1=477363&r2=477364
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/PropertyImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/PropertyImpl.java Mon Nov 20 14:16:00 2006
@@ -1,21 +1,8 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * $Id$
  */
 package org.apache.tuscany.sdo.model.impl;
 
@@ -24,29 +11,12 @@
 import java.util.Collection;
 import java.util.List;
 
+import org.apache.tuscany.sdo.impl.DataObjectBase;
 
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
+import org.apache.tuscany.sdo.model.ModelFactory;
 import org.apache.tuscany.sdo.model.Property;
 import org.apache.tuscany.sdo.model.Type;
 
-import org.apache.tuscany.sdo.util.BasicSequence;
-
-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.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.BasicFeatureMap;
-import org.eclipse.emf.ecore.util.EDataTypeEList;
-import org.eclipse.emf.ecore.util.FeatureMap;
-import org.eclipse.emf.ecore.util.InternalEList;
-
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model object '<em><b>Property</b></em>'.
@@ -56,94 +26,172 @@
  * <ul>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getAliasName <em>Alias Name</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getAny <em>Any</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#isMany <em>Many</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#isContainment <em>Containment</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getDefault <em>Default</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#isMany <em>Many</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getName <em>Name</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getOpposite <em>Opposite</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#isReadOnly <em>Read Only</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getType_ <em>Type</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getOpposite <em>Opposite</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#isNullable <em>Nullable</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.PropertyImpl#getAnyAttribute <em>Any Attribute</em>}</li>
  * </ul>
  * </p>
  *
- * Note: The getDefault and getOpposite methods had to be renamed to avoid
- *       conflict with the commonj.sdo.Property getDefault and getOpposite
- *       methods in classes that implement both.  Eventually, the two interfaces
- *       should be brought in-line with one another -- James Snell
- *
  * @generated
  */
-public class PropertyImpl extends DataObjectImpl implements Property
+public class PropertyImpl extends DataObjectBase implements Property
 {
   /**
-   * The cached value of the '{@link #getAliasName() <em>Alias Name</em>}' attribute list.
+   * The feature id for the '<em><b>Alias Name</b></em>' attribute list.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getAliasName()
    * @generated
    * @ordered
-   */
-  protected EList aliasName = null;
+   */	 
+  public final static int ALIAS_NAME = 0;
 
   /**
-   * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+   * The feature id for the '<em><b>Any</b></em>' attribute list.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getAny()
    * @generated
    * @ordered
-   */
-  protected BasicSequence any = null;
+   */	 
+  public final static int ANY = 1;
 
   /**
-   * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute.
+   * The feature id for the '<em><b>Name</b></em>' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #isContainment()
    * @generated
    * @ordered
-   */
-  protected static final boolean CONTAINMENT_EDEFAULT = false;
+   */	 
+  public final static int NAME = 2;
 
   /**
-   * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute.
+   * The feature id for the '<em><b>Many</b></em>' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #isContainment()
    * @generated
    * @ordered
-   */
-  protected boolean containment = CONTAINMENT_EDEFAULT;
+   */	 
+  public final static int MANY = 3;
 
   /**
-   * This is true if the Containment attribute has been set.
+   * The feature id for the '<em><b>Containment</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int CONTAINMENT = 4;
+
+  /**
+   * The feature id for the '<em><b>Default</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int DEFAULT = 5;
+
+  /**
+   * The feature id for the '<em><b>Read Only</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int READ_ONLY = 6;
+
+  /**
+   * The feature id for the '<em><b>Type</b></em>' reference.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int TYPE = 7;
+
+  /**
+   * The feature id for the '<em><b>Opposite</b></em>' reference.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int OPPOSITE = 8;
+
+  /**
+   * The feature id for the '<em><b>Nullable</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int NULLABLE = 9;
+
+  /**
+   * The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ANY_ATTRIBUTE = 10;
+
+  /**
+   * This represents the number of properties for this type.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    * @ordered
    */
-  protected boolean containmentESet = false;
+  
+  public final static int SDO_PROPERTY_COUNT = 11;
 
   /**
-   * The default value of the '{@link #getDefault() <em>Default</em>}' attribute.
+   * The cached value of the '{@link #getAliasName() <em>Alias Name</em>}' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getAliasName()
+   * @generated
+   * @ordered
+   */
+  
+  protected List aliasName = null;
+  
+  /**
+   * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getAny()
+   * @generated
+   * @ordered
+   */
+  
+  protected Sequence any = null;
+  
+  /**
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getDefault()
+   * @see #getName()
    * @generated
    * @ordered
    */
-  protected static final String DEFAULT_EDEFAULT = null;
+  protected static final String NAME_DEFAULT_ = null;
 
   /**
-   * The cached value of the '{@link #getDefault() <em>Default</em>}' attribute.
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getDefault()
+   * @see #getName()
    * @generated
    * @ordered
    */
-  protected String default_ = DEFAULT_EDEFAULT;
+  protected String name = NAME_DEFAULT_;
 
   /**
    * The default value of the '{@link #isMany() <em>Many</em>}' attribute.
@@ -153,7 +201,7 @@
    * @generated
    * @ordered
    */
-  protected static final boolean MANY_EDEFAULT = false;
+  protected static final boolean MANY_DEFAULT_ = false;
 
   /**
    * The cached value of the '{@link #isMany() <em>Many</em>}' attribute.
@@ -163,7 +211,7 @@
    * @generated
    * @ordered
    */
-  protected boolean many = MANY_EDEFAULT;
+  protected boolean many = MANY_DEFAULT_;
 
   /**
    * This is true if the Many attribute has been set.
@@ -172,37 +220,56 @@
    * @generated
    * @ordered
    */
-  protected boolean manyESet = false;
+  protected boolean many_set_ = false;
 
   /**
-   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * The default value of the '{@link #isContainment() <em>Containment</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getName()
+   * @see #isContainment()
    * @generated
    * @ordered
    */
-  protected static final String NAME_EDEFAULT = null;
+  protected static final boolean CONTAINMENT_DEFAULT_ = false;
 
   /**
-   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * The cached value of the '{@link #isContainment() <em>Containment</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getName()
+   * @see #isContainment()
    * @generated
    * @ordered
    */
-  protected String name = NAME_EDEFAULT;
+  protected boolean containment = CONTAINMENT_DEFAULT_;
 
   /**
-   * The cached value of the '{@link #getOpposite() <em>Opposite</em>}' reference.
+   * This is true if the Containment attribute has been set.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getOpposite()
    * @generated
    * @ordered
    */
-  protected Property opposite = null;
+  protected boolean containment_set_ = false;
+
+  /**
+   * The default value of the '{@link #getDefault_() <em>Default</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDefault_()
+   * @generated
+   * @ordered
+   */
+  protected static final String DEFAULT_DEFAULT_ = null;
+
+  /**
+   * The cached value of the '{@link #getDefault_() <em>Default</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDefault_()
+   * @generated
+   * @ordered
+   */
+  protected String default_ = DEFAULT_DEFAULT_;
 
   /**
    * The default value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute.
@@ -212,7 +279,7 @@
    * @generated
    * @ordered
    */
-  protected static final boolean READ_ONLY_EDEFAULT = false;
+  protected static final boolean READ_ONLY_DEFAULT_ = false;
 
   /**
    * The cached value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute.
@@ -222,7 +289,7 @@
    * @generated
    * @ordered
    */
-  protected boolean readOnly = READ_ONLY_EDEFAULT;
+  protected boolean readOnly = READ_ONLY_DEFAULT_;
 
   /**
    * This is true if the Read Only attribute has been set.
@@ -231,17 +298,58 @@
    * @generated
    * @ordered
    */
-  protected boolean readOnlyESet = false;
+  protected boolean readOnly_set_ = false;
 
   /**
-   * The cached value of the '{@link #getType() <em>Type</em>}' reference.
+   * The cached value of the '{@link #getType_() <em>Type</em>}' reference.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getType()
+   * @see #getType_()
    * @generated
    * @ordered
    */
+  
   protected Type type = null;
+  
+  /**
+   * The cached value of the '{@link #getOpposite_() <em>Opposite</em>}' reference.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getOpposite_()
+   * @generated
+   * @ordered
+   */
+  
+  protected Property opposite = null;
+  
+  /**
+   * The default value of the '{@link #isNullable() <em>Nullable</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isNullable()
+   * @generated
+   * @ordered
+   */
+  protected static final boolean NULLABLE_DEFAULT_ = false;
+
+  /**
+   * The cached value of the '{@link #isNullable() <em>Nullable</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isNullable()
+   * @generated
+   * @ordered
+   */
+  protected boolean nullable = NULLABLE_DEFAULT_;
+
+  /**
+   * This is true if the Nullable attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean nullable_set_ = false;
 
   /**
    * The cached value of the '{@link #getAnyAttribute() <em>Any Attribute</em>}' attribute list.
@@ -251,8 +359,9 @@
    * @generated
    * @ordered
    */
-  protected BasicSequence anyAttribute = null;
-
+  
+  protected Sequence anyAttribute = null;
+  
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -268,9 +377,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  protected EClass eStaticClass()
+  public commonj.sdo.Type getType()
   {
-    return ModelPackageImpl.Literals.PROPERTY;
+    return ((ModelFactoryImpl)ModelFactory.INSTANCE).getProperty();
   }
 
   /**
@@ -282,11 +391,10 @@
   {
     if (aliasName == null)
     {
-      aliasName = new EDataTypeEList(String.class, this, ModelPackageImpl.PROPERTY__ALIAS_NAME);
+      aliasName = createPropertyList(ListKind.CONTAINMENT, String.class, ALIAS_NAME);
     }
     return aliasName;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -296,34 +404,30 @@
   {
     if (any == null)
     {
-      any = new BasicSequence(new BasicFeatureMap(this, ModelPackageImpl.PROPERTY__ANY));
+      any = createSequence(ANY);
     }
     return any;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isContainment()
+  public String getName()
   {
-    return containment;
+    return name;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setContainment(boolean newContainment)
+  public void setName(String newName)
   {
-    boolean oldContainment = containment;
-    containment = newContainment;
-    boolean oldContainmentESet = containmentESet;
-    containmentESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__CONTAINMENT, oldContainment, containment, !oldContainmentESet));
+    String oldName = name;
+    name = newName;
+    if (isNotifying())
+      notify(ChangeKind.SET, NAME, oldName, name);
   }
 
   /**
@@ -331,14 +435,23 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void unsetContainment()
+  public boolean isMany()
   {
-    boolean oldContainment = containment;
-    boolean oldContainmentESet = containmentESet;
-    containment = CONTAINMENT_EDEFAULT;
-    containmentESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.PROPERTY__CONTAINMENT, oldContainment, CONTAINMENT_EDEFAULT, oldContainmentESet));
+    return many;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setMany(boolean newMany)
+  {
+    boolean oldMany = many;
+    many = newMany;
+    boolean oldMany_set_ = many_set_;
+    many_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, MANY, oldMany, many, !oldMany_set_);
   }
 
   /**
@@ -346,19 +459,24 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isSetContainment()
+  public void unsetMany()
   {
-    return containmentESet;
+    boolean oldMany = many;
+    boolean oldMany_set_ = many_set_;
+    many = MANY_DEFAULT_;
+    many_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, MANY, oldMany, MANY_DEFAULT_, oldMany_set_);
   }
 
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @generated NOT
+   * @generated
    */
-  public String getDefault_()
+  public boolean isSetMany()
   {
-    return default_;
+    return many_set_;
   }
 
   /**
@@ -366,12 +484,23 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setDefault_(String newDefault)
+  public boolean isContainment()
   {
-    String oldDefault = default_;
-    default_ = newDefault;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__DEFAULT, oldDefault, default_));
+    return containment;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setContainment(boolean newContainment)
+  {
+    boolean oldContainment = containment;
+    containment = newContainment;
+    boolean oldContainment_set_ = containment_set_;
+    containment_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, CONTAINMENT, oldContainment, containment, !oldContainment_set_);
   }
 
   /**
@@ -379,9 +508,14 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isMany()
+  public void unsetContainment()
   {
-    return many;
+    boolean oldContainment = containment;
+    boolean oldContainment_set_ = containment_set_;
+    containment = CONTAINMENT_DEFAULT_;
+    containment_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, CONTAINMENT, oldContainment, CONTAINMENT_DEFAULT_, oldContainment_set_);
   }
 
   /**
@@ -389,14 +523,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setMany(boolean newMany)
+  public boolean isSetContainment()
   {
-    boolean oldMany = many;
-    many = newMany;
-    boolean oldManyESet = manyESet;
-    manyESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__MANY, oldMany, many, !oldManyESet));
+    return containment_set_;
   }
 
   /**
@@ -404,14 +533,21 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void unsetMany()
+  public String getDefault_()
   {
-    boolean oldMany = many;
-    boolean oldManyESet = manyESet;
-    many = MANY_EDEFAULT;
-    manyESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.PROPERTY__MANY, oldMany, MANY_EDEFAULT, oldManyESet));
+    return default_;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDefault_(String newDefault)
+  {
+    String oldDefault = default_;
+    default_ = newDefault;
+    if (isNotifying())
+      notify(ChangeKind.SET, DEFAULT, oldDefault, default_);
   }
 
   /**
@@ -419,9 +555,23 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isSetMany()
+  public boolean isReadOnly()
+  {
+    return readOnly;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setReadOnly(boolean newReadOnly)
   {
-    return manyESet;
+    boolean oldReadOnly = readOnly;
+    readOnly = newReadOnly;
+    boolean oldReadOnly_set_ = readOnly_set_;
+    readOnly_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, READ_ONLY, oldReadOnly, readOnly, !oldReadOnly_set_);
   }
 
   /**
@@ -429,9 +579,14 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public String getName()
+  public void unsetReadOnly()
   {
-    return name;
+    boolean oldReadOnly = readOnly;
+    boolean oldReadOnly_set_ = readOnly_set_;
+    readOnly = READ_ONLY_DEFAULT_;
+    readOnly_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, READ_ONLY, oldReadOnly, READ_ONLY_DEFAULT_, oldReadOnly_set_);
   }
 
   /**
@@ -439,55 +594,51 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setName(String newName)
+  public boolean isSetReadOnly()
   {
-    String oldName = name;
-    name = newName;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__NAME, oldName, name));
+    return readOnly_set_;
   }
 
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @generated NOT
+   * @generated
    */
-  public Property getOpposite_()
+  public Type getType_()
   {
-    if (opposite != null && ((EObject)opposite).eIsProxy())
+    if (type != null && isProxy(type))
     {
-      InternalEObject oldOpposite = (InternalEObject)opposite;
-      opposite = (Property)eResolveProxy(oldOpposite);
-      if (opposite != oldOpposite)
+      Object oldType = type;
+      type = (Type)resolveProxy(oldType);
+      if (type != oldType)
       {
-        if (eNotificationRequired())
-          eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelPackageImpl.PROPERTY__OPPOSITE, oldOpposite, opposite));
+        if (isNotifying())
+          notify(ChangeKind.RESOLVE, TYPE, oldType, type);
       }
     }
-    return opposite;
+    return type;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public Property basicGetOpposite()
+  public Type basicGetType()
   {
-    return opposite;
+    return type;
   }
 
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @generated NOT
+   * @generated
    */
-  public void setOpposite_(Property newOpposite)
+  public void setType(Type newType)
   {
-    Property oldOpposite = opposite;
-    opposite = newOpposite;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__OPPOSITE, oldOpposite, opposite));
+    Type oldType = type;
+    type = newType;
+    if (isNotifying())
+      notify(ChangeKind.SET, TYPE, oldType, type);
   }
 
   /**
@@ -495,24 +646,28 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isReadOnly()
+  public Property getOpposite_()
   {
-    return readOnly;
+    if (opposite != null && isProxy(opposite))
+    {
+      Object oldOpposite = opposite;
+      opposite = (Property)resolveProxy(oldOpposite);
+      if (opposite != oldOpposite)
+      {
+        if (isNotifying())
+          notify(ChangeKind.RESOLVE, OPPOSITE, oldOpposite, opposite);
+      }
+    }
+    return opposite;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setReadOnly(boolean newReadOnly)
+  public Property basicGetOpposite()
   {
-    boolean oldReadOnly = readOnly;
-    readOnly = newReadOnly;
-    boolean oldReadOnlyESet = readOnlyESet;
-    readOnlyESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__READ_ONLY, oldReadOnly, readOnly, !oldReadOnlyESet));
+    return opposite;
   }
 
   /**
@@ -520,14 +675,12 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void unsetReadOnly()
+  public void setOpposite_(Property newOpposite)
   {
-    boolean oldReadOnly = readOnly;
-    boolean oldReadOnlyESet = readOnlyESet;
-    readOnly = READ_ONLY_EDEFAULT;
-    readOnlyESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.PROPERTY__READ_ONLY, oldReadOnly, READ_ONLY_EDEFAULT, oldReadOnlyESet));
+    Property oldOpposite = opposite;
+    opposite = newOpposite;
+    if (isNotifying())
+      notify(ChangeKind.SET, OPPOSITE, oldOpposite, opposite);
   }
 
   /**
@@ -535,29 +688,23 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isSetReadOnly()
+  public boolean isNullable()
   {
-    return readOnlyESet;
+    return nullable;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public Type getType_()
+  public void setNullable(boolean newNullable)
   {
-    if (type != null && ((EObject)type).eIsProxy())
-    {
-      InternalEObject oldType = (InternalEObject)type;
-      type = (Type)eResolveProxy(oldType);
-      if (type != oldType)
-      {
-        if (eNotificationRequired())
-          eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelPackageImpl.PROPERTY__TYPE, oldType, type));
-      }
-    }
-    return type;
+    boolean oldNullable = nullable;
+    nullable = newNullable;
+    boolean oldNullable_set_ = nullable_set_;
+    nullable_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, NULLABLE, oldNullable, nullable, !oldNullable_set_);
   }
 
   /**
@@ -565,9 +712,14 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public Type basicGetType()
+  public void unsetNullable()
   {
-    return type;
+    boolean oldNullable = nullable;
+    boolean oldNullable_set_ = nullable_set_;
+    nullable = NULLABLE_DEFAULT_;
+    nullable_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, NULLABLE, oldNullable, NULLABLE_DEFAULT_, oldNullable_set_);
   }
 
   /**
@@ -575,12 +727,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setType(Type newType)
+  public boolean isSetNullable()
   {
-    Type oldType = type;
-    type = newType;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.PROPERTY__TYPE, oldType, type));
+    return nullable_set_;
   }
 
   /**
@@ -592,26 +741,25 @@
   {
     if (anyAttribute == null)
     {
-      anyAttribute = new BasicSequence(new BasicFeatureMap(this, ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE));
+      anyAttribute = createSequence(ANY_ATTRIBUTE);
     }
     return anyAttribute;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  public ChangeContext inverseRemove(Object otherEnd, int propertyIndex, ChangeContext changeContext)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.PROPERTY__ANY:
-        return ((InternalEList)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs);
-      case ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE:
-        return ((InternalEList)((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap()).basicRemove(otherEnd, msgs);
+      case ANY:
+        return removeFromSequence(getAny(), otherEnd, changeContext);
+      case ANY_ATTRIBUTE:
+        return removeFromSequence(getAnyAttribute(), otherEnd, changeContext);
     }
-    return super.eInverseRemove(otherEnd, featureID, msgs);
+    return super.inverseRemove(otherEnd, propertyIndex, changeContext);
   }
 
   /**
@@ -619,36 +767,40 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  public Object get(int propertyIndex, boolean resolve)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.PROPERTY__ALIAS_NAME:
+      case ALIAS_NAME:
         return getAliasName();
-      case ModelPackageImpl.PROPERTY__ANY:
-        if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap();
+      case ANY:
+        // XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
+        //if (coreType) 
         return getAny();
-      case ModelPackageImpl.PROPERTY__CONTAINMENT:
+      case NAME:
+        return getName();
+      case MANY:
+        return isMany() ? Boolean.TRUE : Boolean.FALSE;
+      case CONTAINMENT:
         return isContainment() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.PROPERTY__DEFAULT:
+      case DEFAULT:
         return getDefault_();
-      case ModelPackageImpl.PROPERTY__MANY:
-        return isMany() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.PROPERTY__NAME:
-        return getName();
-      case ModelPackageImpl.PROPERTY__OPPOSITE:
-        if (resolve) return getOpposite_();
-        return basicGetOpposite();
-      case ModelPackageImpl.PROPERTY__READ_ONLY:
+      case READ_ONLY:
         return isReadOnly() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.PROPERTY__TYPE:
+      case TYPE:
         if (resolve) return getType_();
         return basicGetType();
-      case ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE:
-        if (coreType) return ((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap();
+      case OPPOSITE:
+        if (resolve) return getOpposite_();
+        return basicGetOpposite();
+      case NULLABLE:
+        return isNullable() ? Boolean.TRUE : Boolean.FALSE;
+      case ANY_ATTRIBUTE:
+        // XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
+        //if (coreType) 
         return getAnyAttribute();
     }
-    return super.eGet(featureID, resolve, coreType);
+    return super.get(propertyIndex, resolve);
   }
 
   /**
@@ -656,43 +808,46 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eSet(int featureID, Object newValue)
+  public void set(int propertyIndex, Object newValue)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.PROPERTY__ALIAS_NAME:
+      case ALIAS_NAME:
         getAliasName().clear();
         getAliasName().addAll((Collection)newValue);
         return;
-      case ModelPackageImpl.PROPERTY__ANY:
-        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue);
+      case ANY:
+      	setSequence(getAny(), newValue);
         return;
-      case ModelPackageImpl.PROPERTY__CONTAINMENT:
-        setContainment(((Boolean)newValue).booleanValue());
-        return;
-      case ModelPackageImpl.PROPERTY__DEFAULT:
-        setDefault_((String)newValue);
+      case NAME:
+        setName((String)newValue);
         return;
-      case ModelPackageImpl.PROPERTY__MANY:
+      case MANY:
         setMany(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.PROPERTY__NAME:
-        setName((String)newValue);
+      case CONTAINMENT:
+        setContainment(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.PROPERTY__OPPOSITE:
-        setOpposite_((Property)newValue);
+      case DEFAULT:
+        setDefault_((String)newValue);
         return;
-      case ModelPackageImpl.PROPERTY__READ_ONLY:
+      case READ_ONLY:
         setReadOnly(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.PROPERTY__TYPE:
+      case TYPE:
         setType((Type)newValue);
         return;
-      case ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE:
-        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap()).set(newValue);
+      case OPPOSITE:
+        setOpposite_((Property)newValue);
+        return;
+      case NULLABLE:
+        setNullable(((Boolean)newValue).booleanValue());
+        return;
+      case ANY_ATTRIBUTE:
+      	setSequence(getAnyAttribute(), newValue);
         return;
     }
-    super.eSet(featureID, newValue);
+    super.set(propertyIndex, newValue);
   }
 
   /**
@@ -700,42 +855,45 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eUnset(int featureID)
+  public void unset(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.PROPERTY__ALIAS_NAME:
+      case ALIAS_NAME:
         getAliasName().clear();
         return;
-      case ModelPackageImpl.PROPERTY__ANY:
-        ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear();
-        return;
-      case ModelPackageImpl.PROPERTY__CONTAINMENT:
-        unsetContainment();
+      case ANY:
+        unsetSequence(getAny());
         return;
-      case ModelPackageImpl.PROPERTY__DEFAULT:
-        setDefault_(DEFAULT_EDEFAULT);
+      case NAME:
+        setName(NAME_DEFAULT_);
         return;
-      case ModelPackageImpl.PROPERTY__MANY:
+      case MANY:
         unsetMany();
         return;
-      case ModelPackageImpl.PROPERTY__NAME:
-        setName(NAME_EDEFAULT);
+      case CONTAINMENT:
+        unsetContainment();
         return;
-      case ModelPackageImpl.PROPERTY__OPPOSITE:
-        setOpposite_((Property)null);
+      case DEFAULT:
+        setDefault_(DEFAULT_DEFAULT_);
         return;
-      case ModelPackageImpl.PROPERTY__READ_ONLY:
+      case READ_ONLY:
         unsetReadOnly();
         return;
-      case ModelPackageImpl.PROPERTY__TYPE:
+      case TYPE:
         setType((Type)null);
         return;
-      case ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE:
-        ((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap().clear();
+      case OPPOSITE:
+        setOpposite_((Property)null);
+        return;
+      case NULLABLE:
+        unsetNullable();
+        return;
+      case ANY_ATTRIBUTE:
+        unsetSequence(getAnyAttribute());
         return;
     }
-    super.eUnset(featureID);
+    super.unset(propertyIndex);
   }
 
   /**
@@ -743,32 +901,34 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean eIsSet(int featureID)
+  public boolean isSet(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.PROPERTY__ALIAS_NAME:
+      case ALIAS_NAME:
         return aliasName != null && !aliasName.isEmpty();
-      case ModelPackageImpl.PROPERTY__ANY:
-        return any != null && !any.featureMap().isEmpty();
-      case ModelPackageImpl.PROPERTY__CONTAINMENT:
-        return isSetContainment();
-      case ModelPackageImpl.PROPERTY__DEFAULT:
-        return DEFAULT_EDEFAULT == null ? default_ != null : !DEFAULT_EDEFAULT.equals(default_);
-      case ModelPackageImpl.PROPERTY__MANY:
+      case ANY:
+        return any != null && !isSequenceEmpty(getAny());
+      case NAME:
+        return NAME_DEFAULT_ == null ? name != null : !NAME_DEFAULT_.equals(name);
+      case MANY:
         return isSetMany();
-      case ModelPackageImpl.PROPERTY__NAME:
-        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-      case ModelPackageImpl.PROPERTY__OPPOSITE:
-        return opposite != null;
-      case ModelPackageImpl.PROPERTY__READ_ONLY:
+      case CONTAINMENT:
+        return isSetContainment();
+      case DEFAULT:
+        return DEFAULT_DEFAULT_ == null ? default_ != null : !DEFAULT_DEFAULT_.equals(default_);
+      case READ_ONLY:
         return isSetReadOnly();
-      case ModelPackageImpl.PROPERTY__TYPE:
+      case TYPE:
         return type != null;
-      case ModelPackageImpl.PROPERTY__ANY_ATTRIBUTE:
-        return anyAttribute != null && !anyAttribute.featureMap().isEmpty();
+      case OPPOSITE:
+        return opposite != null;
+      case NULLABLE:
+        return isSetNullable();
+      case ANY_ATTRIBUTE:
+        return anyAttribute != null && !isSequenceEmpty(getAnyAttribute());
     }
-    return super.eIsSet(featureID);
+    return super.isSet(propertyIndex);
   }
 
   /**
@@ -778,23 +938,25 @@
    */
   public String toString()
   {
-    if (eIsProxy()) return super.toString();
+    if (isProxy(this)) return super.toString();
 
     StringBuffer result = new StringBuffer(super.toString());
     result.append(" (aliasName: ");
     result.append(aliasName);
     result.append(", any: ");
     result.append(any);
+    result.append(", name: ");
+    result.append(name);
+    result.append(", many: ");
+    if (many_set_) result.append(many); else result.append("<unset>");
     result.append(", containment: ");
-    if (containmentESet) result.append(containment); else result.append("<unset>");
+    if (containment_set_) result.append(containment); else result.append("<unset>");
     result.append(", default: ");
     result.append(default_);
-    result.append(", many: ");
-    if (manyESet) result.append(many); else result.append("<unset>");
-    result.append(", name: ");
-    result.append(name);
     result.append(", readOnly: ");
-    if (readOnlyESet) result.append(readOnly); else result.append("<unset>");
+    if (readOnly_set_) result.append(readOnly); else result.append("<unset>");
+    result.append(", nullable: ");
+    if (nullable_set_) result.append(nullable); else result.append("<unset>");
     result.append(", anyAttribute: ");
     result.append(anyAttribute);
     result.append(')');

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TextTypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TextTypeImpl.java?view=diff&rev=477364&r1=477363&r2=477364
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TextTypeImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TextTypeImpl.java Mon Nov 20 14:16:00 2006
@@ -1,37 +1,21 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * $Id$
  */
 package org.apache.tuscany.sdo.model.impl;
 
+import commonj.sdo.Type;
+
 import java.util.Collection;
 import java.util.List;
 
+import org.apache.tuscany.sdo.impl.DataObjectBase;
 
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
+import org.apache.tuscany.sdo.model.ModelFactory;
 import org.apache.tuscany.sdo.model.TextType;
 
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.util.EDataTypeEList;
-
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model object '<em><b>Text Type</b></em>'.
@@ -45,9 +29,28 @@
  *
  * @generated
  */
-public abstract class TextTypeImpl extends DataObjectImpl implements TextType
+public abstract class TextTypeImpl extends DataObjectBase implements TextType
 {
   /**
+   * The feature id for the '<em><b>Text</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int TEXT = 0;
+
+  /**
+   * This represents the number of properties for this type.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  
+  public final static int SDO_PROPERTY_COUNT = 1;
+
+  /**
    * The cached value of the '{@link #getText() <em>Text</em>}' attribute list.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -55,8 +58,9 @@
    * @generated
    * @ordered
    */
-  protected EList text = null;
-
+  
+  protected List text = null;
+  
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -72,9 +76,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  protected EClass eStaticClass()
+  public Type getType()
   {
-    return ModelPackageImpl.Literals.TEXT_TYPE;
+    return ((ModelFactoryImpl)ModelFactory.INSTANCE).getTextType();
   }
 
   /**
@@ -86,24 +90,23 @@
   {
     if (text == null)
     {
-      text = new EDataTypeEList(String.class, this, ModelPackageImpl.TEXT_TYPE__TEXT);
+      text = createPropertyList(ListKind.CONTAINMENT, String.class, TEXT);
     }
     return text;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  public Object get(int propertyIndex, boolean resolve)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TEXT_TYPE__TEXT:
+      case TEXT:
         return getText();
     }
-    return super.eGet(featureID, resolve, coreType);
+    return super.get(propertyIndex, resolve);
   }
 
   /**
@@ -111,16 +114,16 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eSet(int featureID, Object newValue)
+  public void set(int propertyIndex, Object newValue)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TEXT_TYPE__TEXT:
+      case TEXT:
         getText().clear();
         getText().addAll((Collection)newValue);
         return;
     }
-    super.eSet(featureID, newValue);
+    super.set(propertyIndex, newValue);
   }
 
   /**
@@ -128,15 +131,15 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eUnset(int featureID)
+  public void unset(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TEXT_TYPE__TEXT:
+      case TEXT:
         getText().clear();
         return;
     }
-    super.eUnset(featureID);
+    super.unset(propertyIndex);
   }
 
   /**
@@ -144,14 +147,14 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean eIsSet(int featureID)
+  public boolean isSet(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TEXT_TYPE__TEXT:
+      case TEXT:
         return text != null && !text.isEmpty();
     }
-    return super.eIsSet(featureID);
+    return super.isSet(propertyIndex);
   }
 
   /**
@@ -161,7 +164,7 @@
    */
   public String toString()
   {
-    if (eIsProxy()) return super.toString();
+    if (isProxy(this)) return super.toString();
 
     StringBuffer result = new StringBuffer(super.toString());
     result.append(" (text: ");

Modified: incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TypeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TypeImpl.java?view=diff&rev=477364&r1=477363&r2=477364
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TypeImpl.java (original)
+++ incubator/tuscany/java/sdo/impl/src/main/java/org/apache/tuscany/sdo/model/impl/TypeImpl.java Mon Nov 20 14:16:00 2006
@@ -1,21 +1,8 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ * $Id$
  */
 package org.apache.tuscany.sdo.model.impl;
 
@@ -24,31 +11,13 @@
 import java.util.Collection;
 import java.util.List;
 
+import org.apache.tuscany.sdo.impl.DataObjectBase;
 
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
+import org.apache.tuscany.sdo.model.ModelFactory;
 import org.apache.tuscany.sdo.model.Property;
 import org.apache.tuscany.sdo.model.Type;
-import org.apache.tuscany.sdo.model.java.impl.JavaPackageImpl;
-
-import org.apache.tuscany.sdo.util.BasicSequence;
-
-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.util.BasicFeatureMap;
-import org.eclipse.emf.ecore.util.EDataTypeEList;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.FeatureMap;
-import org.eclipse.emf.ecore.util.InternalEList;
+import org.eclipse.emf.ecore.util.BasicExtendedMetaData;
 
 /**
  * <!-- begin-user-doc -->
@@ -61,21 +30,130 @@
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getProperty <em>Property</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getAliasName <em>Alias Name</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getAny <em>Any</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isAbstract <em>Abstract</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isDataType <em>Data Type</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getName <em>Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getUri <em>Uri</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isDataType <em>Data Type</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isOpen <em>Open</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isSequenced <em>Sequenced</em>}</li>
- *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getUri <em>Uri</em>}</li>
+ *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#isAbstract <em>Abstract</em>}</li>
  *   <li>{@link org.apache.tuscany.sdo.model.impl.TypeImpl#getAnyAttribute <em>Any Attribute</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class TypeImpl extends DataObjectImpl implements Type
+public class TypeImpl extends DataObjectBase implements Type
 {
   /**
+   * The feature id for the '<em><b>Base Type</b></em>' reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int BASE_TYPE = 0;
+
+  /**
+   * The feature id for the '<em><b>Property</b></em>' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int PROPERTY = 1;
+
+  /**
+   * The feature id for the '<em><b>Alias Name</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ALIAS_NAME = 2;
+
+  /**
+   * The feature id for the '<em><b>Any</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ANY = 3;
+
+  /**
+   * The feature id for the '<em><b>Name</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int NAME = 4;
+
+  /**
+   * The feature id for the '<em><b>Uri</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int URI = 5;
+
+  /**
+   * The feature id for the '<em><b>Data Type</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int DATA_TYPE = 6;
+
+  /**
+   * The feature id for the '<em><b>Open</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int OPEN = 7;
+
+  /**
+   * The feature id for the '<em><b>Sequenced</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int SEQUENCED = 8;
+
+  /**
+   * The feature id for the '<em><b>Abstract</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ABSTRACT = 9;
+
+  /**
+   * The feature id for the '<em><b>Any Attribute</b></em>' attribute list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */	 
+  public final static int ANY_ATTRIBUTE = 10;
+
+  /**
+   * This represents the number of properties for this type.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  
+  public final static int SDO_PROPERTY_COUNT = 11;
+
+  /**
    * The cached value of the '{@link #getBaseType() <em>Base Type</em>}' reference list.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -83,8 +161,9 @@
    * @generated
    * @ordered
    */
-  protected EList baseType = null;
-
+  
+  protected List baseType = null;
+  
   /**
    * The cached value of the '{@link #getProperty() <em>Property</em>}' containment reference list.
    * <!-- begin-user-doc -->
@@ -93,8 +172,9 @@
    * @generated
    * @ordered
    */
-  protected EList property = null;
-
+  
+  protected List property = null;
+  
   /**
    * The cached value of the '{@link #getAliasName() <em>Alias Name</em>}' attribute list.
    * <!-- begin-user-doc -->
@@ -103,8 +183,9 @@
    * @generated
    * @ordered
    */
-  protected EList aliasName = null;
-
+  
+  protected List aliasName = null;
+  
   /**
    * The cached value of the '{@link #getAny() <em>Any</em>}' attribute list.
    * <!-- begin-user-doc -->
@@ -113,85 +194,77 @@
    * @generated
    * @ordered
    */
-  protected BasicSequence any = null;
-
+  
+  protected Sequence any = null;
+  
   /**
-   * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #isAbstract()
+   * @see #getName()
    * @generated
    * @ordered
    */
-  protected static final boolean ABSTRACT_EDEFAULT = false;
+  protected static final String NAME_DEFAULT_ = null;
 
   /**
-   * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #isAbstract()
+   * @see #getName()
    * @generated
    * @ordered
    */
-  protected boolean abstract_ = ABSTRACT_EDEFAULT;
+  protected String name = NAME_DEFAULT_;
 
   /**
-   * This is true if the Abstract attribute has been set.
+   * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
+   * @see #getUri()
    * @generated
    * @ordered
    */
-  protected boolean abstractESet = false;
+  protected static final String URI_DEFAULT_ = null;
 
   /**
-   * The default value of the '{@link #isDataType() <em>Data Type</em>}' attribute.
+   * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #isDataType()
+   * @see #getUri()
    * @generated
    * @ordered
    */
-  protected static final boolean DATA_TYPE_EDEFAULT = false;
+  protected String uri = URI_DEFAULT_;
 
   /**
-   * The cached value of the '{@link #isDataType() <em>Data Type</em>}' attribute.
+   * The default value of the '{@link #isDataType() <em>Data Type</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @see #isDataType()
    * @generated
    * @ordered
    */
-  protected boolean dataType = DATA_TYPE_EDEFAULT;
-
-  /**
-   * This is true if the Data Type attribute has been set.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   * @ordered
-   */
-  protected boolean dataTypeESet = false;
+  protected static final boolean DATA_TYPE_DEFAULT_ = false;
 
   /**
-   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * The cached value of the '{@link #isDataType() <em>Data Type</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getName()
+   * @see #isDataType()
    * @generated
    * @ordered
    */
-  protected static final String NAME_EDEFAULT = null;
+  protected boolean dataType = DATA_TYPE_DEFAULT_;
 
   /**
-   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * This is true if the Data Type attribute has been set.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getName()
    * @generated
    * @ordered
    */
-  protected String name = NAME_EDEFAULT;
+  protected boolean dataType_set_ = false;
 
   /**
    * The default value of the '{@link #isOpen() <em>Open</em>}' attribute.
@@ -201,7 +274,7 @@
    * @generated
    * @ordered
    */
-  protected static final boolean OPEN_EDEFAULT = false;
+  protected static final boolean OPEN_DEFAULT_ = false;
 
   /**
    * The cached value of the '{@link #isOpen() <em>Open</em>}' attribute.
@@ -211,7 +284,7 @@
    * @generated
    * @ordered
    */
-  protected boolean open = OPEN_EDEFAULT;
+  protected boolean open = OPEN_DEFAULT_;
 
   /**
    * This is true if the Open attribute has been set.
@@ -220,7 +293,7 @@
    * @generated
    * @ordered
    */
-  protected boolean openESet = false;
+  protected boolean open_set_ = false;
 
   /**
    * The default value of the '{@link #isSequenced() <em>Sequenced</em>}' attribute.
@@ -230,7 +303,7 @@
    * @generated
    * @ordered
    */
-  protected static final boolean SEQUENCED_EDEFAULT = false;
+  protected static final boolean SEQUENCED_DEFAULT_ = false;
 
   /**
    * The cached value of the '{@link #isSequenced() <em>Sequenced</em>}' attribute.
@@ -240,7 +313,7 @@
    * @generated
    * @ordered
    */
-  protected boolean sequenced = SEQUENCED_EDEFAULT;
+  protected boolean sequenced = SEQUENCED_DEFAULT_;
 
   /**
    * This is true if the Sequenced attribute has been set.
@@ -249,27 +322,36 @@
    * @generated
    * @ordered
    */
-  protected boolean sequencedESet = false;
+  protected boolean sequenced_set_ = false;
 
   /**
-   * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
+   * The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getUri()
+   * @see #isAbstract()
    * @generated
    * @ordered
    */
-  protected static final String URI_EDEFAULT = null;
+  protected static final boolean ABSTRACT_DEFAULT_ = false;
 
   /**
-   * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
+   * The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
-   * @see #getUri()
+   * @see #isAbstract()
    * @generated
    * @ordered
    */
-  protected String uri = URI_EDEFAULT;
+  protected boolean abstract_ = ABSTRACT_DEFAULT_;
+
+  /**
+   * This is true if the Abstract attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean abstract_set_ = false;
 
   /**
    * The cached value of the '{@link #getAnyAttribute() <em>Any Attribute</em>}' attribute list.
@@ -279,8 +361,9 @@
    * @generated
    * @ordered
    */
-  protected BasicSequence anyAttribute = null;
-
+  
+  protected Sequence anyAttribute = null;
+  
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -296,9 +379,9 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  protected EClass eStaticClass()
+  public commonj.sdo.Type getType()
   {
-    return ModelPackageImpl.Literals.TYPE;
+    return ((ModelFactoryImpl)ModelFactory.INSTANCE).getType();
   }
 
   /**
@@ -310,11 +393,10 @@
   {
     if (baseType == null)
     {
-      baseType = new EObjectResolvingEList(Type.class, this, ModelPackageImpl.TYPE__BASE_TYPE);
+      baseType = createPropertyList(ListKind.CONTAINMENT, Type.class, BASE_TYPE);
     }
     return baseType;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -324,11 +406,10 @@
   {
     if (property == null)
     {
-      property = new EObjectContainmentEList(Property.class, this, ModelPackageImpl.TYPE__PROPERTY);
+      property = createPropertyList(ListKind.CONTAINMENT, Property.class, PROPERTY);
     }
     return property;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -338,11 +419,10 @@
   {
     if (aliasName == null)
     {
-      aliasName = new EDataTypeEList(String.class, this, ModelPackageImpl.TYPE__ALIAS_NAME);
+      aliasName = createPropertyList(ListKind.CONTAINMENT, String.class, ALIAS_NAME);
     }
     return aliasName;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -352,34 +432,30 @@
   {
     if (any == null)
     {
-      any = new BasicSequence(new BasicFeatureMap(this, ModelPackageImpl.TYPE__ANY));
+      any = createSequence(ANY);
     }
     return any;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isAbstract()
+  public String getName()
   {
-    return abstract_;
+    return name;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setAbstract(boolean newAbstract)
+  public void setName(String newName)
   {
-    boolean oldAbstract = abstract_;
-    abstract_ = newAbstract;
-    boolean oldAbstractESet = abstractESet;
-    abstractESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.TYPE__ABSTRACT, oldAbstract, abstract_, !oldAbstractESet));
+    String oldName = name;
+    name = newName;
+    if (isNotifying())
+      notify(ChangeKind.SET, NAME, oldName, name);
   }
 
   /**
@@ -387,24 +463,21 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void unsetAbstract()
+  public String getUri()
   {
-    boolean oldAbstract = abstract_;
-    boolean oldAbstractESet = abstractESet;
-    abstract_ = ABSTRACT_EDEFAULT;
-    abstractESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.TYPE__ABSTRACT, oldAbstract, ABSTRACT_EDEFAULT, oldAbstractESet));
+    return uri;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean isSetAbstract()
+  public void setUri(String newUri)
   {
-    return abstractESet;
+    String oldUri = uri;
+    uri = newUri;
+    if (isNotifying())
+      notify(ChangeKind.SET, URI, oldUri, uri);
   }
 
   /**
@@ -416,7 +489,6 @@
   {
     return dataType;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -426,10 +498,10 @@
   {
     boolean oldDataType = dataType;
     dataType = newDataType;
-    boolean oldDataTypeESet = dataTypeESet;
-    dataTypeESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.TYPE__DATA_TYPE, oldDataType, dataType, !oldDataTypeESet));
+    boolean oldDataType_set_ = dataType_set_;
+    dataType_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, DATA_TYPE, oldDataType, dataType, !oldDataType_set_);
   }
 
   /**
@@ -440,11 +512,11 @@
   public void unsetDataType()
   {
     boolean oldDataType = dataType;
-    boolean oldDataTypeESet = dataTypeESet;
-    dataType = DATA_TYPE_EDEFAULT;
-    dataTypeESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.TYPE__DATA_TYPE, oldDataType, DATA_TYPE_EDEFAULT, oldDataTypeESet));
+    boolean oldDataType_set_ = dataType_set_;
+    dataType = DATA_TYPE_DEFAULT_;
+    dataType_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, DATA_TYPE, oldDataType, DATA_TYPE_DEFAULT_, oldDataType_set_);
   }
 
   /**
@@ -454,30 +526,7 @@
    */
   public boolean isSetDataType()
   {
-    return dataTypeESet;
-  }
-
-  /**
-   * <!-- 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, ModelPackageImpl.TYPE__NAME, oldName, name));
+    return dataType_set_;
   }
 
   /**
@@ -489,7 +538,6 @@
   {
     return open;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -499,10 +547,10 @@
   {
     boolean oldOpen = open;
     open = newOpen;
-    boolean oldOpenESet = openESet;
-    openESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.TYPE__OPEN, oldOpen, open, !oldOpenESet));
+    boolean oldOpen_set_ = open_set_;
+    open_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, OPEN, oldOpen, open, !oldOpen_set_);
   }
 
   /**
@@ -513,11 +561,11 @@
   public void unsetOpen()
   {
     boolean oldOpen = open;
-    boolean oldOpenESet = openESet;
-    open = OPEN_EDEFAULT;
-    openESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.TYPE__OPEN, oldOpen, OPEN_EDEFAULT, oldOpenESet));
+    boolean oldOpen_set_ = open_set_;
+    open = OPEN_DEFAULT_;
+    open_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, OPEN, oldOpen, OPEN_DEFAULT_, oldOpen_set_);
   }
 
   /**
@@ -527,7 +575,7 @@
    */
   public boolean isSetOpen()
   {
-    return openESet;
+    return open_set_;
   }
 
   /**
@@ -539,7 +587,6 @@
   {
     return sequenced;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
@@ -549,10 +596,10 @@
   {
     boolean oldSequenced = sequenced;
     sequenced = newSequenced;
-    boolean oldSequencedESet = sequencedESet;
-    sequencedESet = true;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.TYPE__SEQUENCED, oldSequenced, sequenced, !oldSequencedESet));
+    boolean oldSequenced_set_ = sequenced_set_;
+    sequenced_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, SEQUENCED, oldSequenced, sequenced, !oldSequenced_set_);
   }
 
   /**
@@ -563,11 +610,11 @@
   public void unsetSequenced()
   {
     boolean oldSequenced = sequenced;
-    boolean oldSequencedESet = sequencedESet;
-    sequenced = SEQUENCED_EDEFAULT;
-    sequencedESet = false;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.UNSET, ModelPackageImpl.TYPE__SEQUENCED, oldSequenced, SEQUENCED_EDEFAULT, oldSequencedESet));
+    boolean oldSequenced_set_ = sequenced_set_;
+    sequenced = SEQUENCED_DEFAULT_;
+    sequenced_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, SEQUENCED, oldSequenced, SEQUENCED_DEFAULT_, oldSequenced_set_);
   }
 
   /**
@@ -577,7 +624,7 @@
    */
   public boolean isSetSequenced()
   {
-    return sequencedESet;
+    return sequenced_set_;
   }
 
   /**
@@ -585,9 +632,23 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public String getUri()
+  public boolean isAbstract()
   {
-    return uri;
+    return abstract_;
+  }
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setAbstract(boolean newAbstract)
+  {
+    boolean oldAbstract = abstract_;
+    abstract_ = newAbstract;
+    boolean oldAbstract_set_ = abstract_set_;
+    abstract_set_ = true;
+    if (isNotifying())
+      notify(ChangeKind.SET, ABSTRACT, oldAbstract, abstract_, !oldAbstract_set_);
   }
 
   /**
@@ -595,12 +656,24 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void setUri(String newUri)
+  public void unsetAbstract()
   {
-    String oldUri = uri;
-    uri = newUri;
-    if (eNotificationRequired())
-      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackageImpl.TYPE__URI, oldUri, uri));
+    boolean oldAbstract = abstract_;
+    boolean oldAbstract_set_ = abstract_set_;
+    abstract_ = ABSTRACT_DEFAULT_;
+    abstract_set_ = false;
+    if (isNotifying())
+      notify(ChangeKind.UNSET, ABSTRACT, oldAbstract, ABSTRACT_DEFAULT_, oldAbstract_set_);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetAbstract()
+  {
+    return abstract_set_;
   }
 
   /**
@@ -612,28 +685,27 @@
   {
     if (anyAttribute == null)
     {
-      anyAttribute = new BasicSequence(new BasicFeatureMap(this, ModelPackageImpl.TYPE__ANY_ATTRIBUTE));
+      anyAttribute = createSequence(ANY_ATTRIBUTE);
     }
     return anyAttribute;
   }
-
   /**
    * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
    * @generated
    */
-  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  public ChangeContext inverseRemove(Object otherEnd, int propertyIndex, ChangeContext changeContext)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TYPE__PROPERTY:
-        return ((InternalEList)getProperty()).basicRemove(otherEnd, msgs);
-      case ModelPackageImpl.TYPE__ANY:
-        return ((InternalEList)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs);
-      case ModelPackageImpl.TYPE__ANY_ATTRIBUTE:
-        return ((InternalEList)((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap()).basicRemove(otherEnd, msgs);
+      case PROPERTY:
+        return removeFromList(getProperty(), otherEnd, changeContext);
+      case ANY:
+        return removeFromSequence(getAny(), otherEnd, changeContext);
+      case ANY_ATTRIBUTE:
+        return removeFromSequence(getAnyAttribute(), otherEnd, changeContext);
     }
-    return super.eInverseRemove(otherEnd, featureID, msgs);
+    return super.inverseRemove(otherEnd, propertyIndex, changeContext);
   }
 
   /**
@@ -641,36 +713,38 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  public Object get(int propertyIndex, boolean resolve)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TYPE__BASE_TYPE:
+      case BASE_TYPE:
         return getBaseType();
-      case ModelPackageImpl.TYPE__PROPERTY:
+      case PROPERTY:
         return getProperty();
-      case ModelPackageImpl.TYPE__ALIAS_NAME:
+      case ALIAS_NAME:
         return getAliasName();
-      case ModelPackageImpl.TYPE__ANY:
-        if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap();
+      case ANY:
+        // XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
+        //if (coreType) 
         return getAny();
-      case ModelPackageImpl.TYPE__ABSTRACT:
-        return isAbstract() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.TYPE__DATA_TYPE:
-        return isDataType() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.TYPE__NAME:
+      case NAME:
         return getName();
-      case ModelPackageImpl.TYPE__OPEN:
+      case URI:
+        return getUri();
+      case DATA_TYPE:
+        return isDataType() ? Boolean.TRUE : Boolean.FALSE;
+      case OPEN:
         return isOpen() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.TYPE__SEQUENCED:
+      case SEQUENCED:
         return isSequenced() ? Boolean.TRUE : Boolean.FALSE;
-      case ModelPackageImpl.TYPE__URI:
-        return getUri();
-      case ModelPackageImpl.TYPE__ANY_ATTRIBUTE:
-        if (coreType) return ((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap();
+      case ABSTRACT:
+        return isAbstract() ? Boolean.TRUE : Boolean.FALSE;
+      case ANY_ATTRIBUTE:
+        // XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
+        //if (coreType) 
         return getAnyAttribute();
     }
-    return super.eGet(featureID, resolve, coreType);
+    return super.get(propertyIndex, resolve);
   }
 
   /**
@@ -678,48 +752,48 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eSet(int featureID, Object newValue)
+  public void set(int propertyIndex, Object newValue)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TYPE__BASE_TYPE:
+      case BASE_TYPE:
         getBaseType().clear();
         getBaseType().addAll((Collection)newValue);
         return;
-      case ModelPackageImpl.TYPE__PROPERTY:
+      case PROPERTY:
         getProperty().clear();
         getProperty().addAll((Collection)newValue);
         return;
-      case ModelPackageImpl.TYPE__ALIAS_NAME:
+      case ALIAS_NAME:
         getAliasName().clear();
         getAliasName().addAll((Collection)newValue);
         return;
-      case ModelPackageImpl.TYPE__ANY:
-        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue);
+      case ANY:
+      	setSequence(getAny(), newValue);
         return;
-      case ModelPackageImpl.TYPE__ABSTRACT:
-        setAbstract(((Boolean)newValue).booleanValue());
+      case NAME:
+        setName((String)newValue);
         return;
-      case ModelPackageImpl.TYPE__DATA_TYPE:
-        setDataType(((Boolean)newValue).booleanValue());
+      case URI:
+        setUri((String)newValue);
         return;
-      case ModelPackageImpl.TYPE__NAME:
-        setName((String)newValue);
+      case DATA_TYPE:
+        setDataType(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.TYPE__OPEN:
+      case OPEN:
         setOpen(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.TYPE__SEQUENCED:
+      case SEQUENCED:
         setSequenced(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.TYPE__URI:
-        setUri((String)newValue);
+      case ABSTRACT:
+        setAbstract(((Boolean)newValue).booleanValue());
         return;
-      case ModelPackageImpl.TYPE__ANY_ATTRIBUTE:
-        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap()).set(newValue);
+      case ANY_ATTRIBUTE:
+      	setSequence(getAnyAttribute(), newValue);
         return;
     }
-    super.eSet(featureID, newValue);
+    super.set(propertyIndex, newValue);
   }
 
   /**
@@ -727,45 +801,45 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public void eUnset(int featureID)
+  public void unset(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TYPE__BASE_TYPE:
+      case BASE_TYPE:
         getBaseType().clear();
         return;
-      case ModelPackageImpl.TYPE__PROPERTY:
+      case PROPERTY:
         getProperty().clear();
         return;
-      case ModelPackageImpl.TYPE__ALIAS_NAME:
+      case ALIAS_NAME:
         getAliasName().clear();
         return;
-      case ModelPackageImpl.TYPE__ANY:
-        ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear();
+      case ANY:
+        unsetSequence(getAny());
         return;
-      case ModelPackageImpl.TYPE__ABSTRACT:
-        unsetAbstract();
+      case NAME:
+        setName(NAME_DEFAULT_);
         return;
-      case ModelPackageImpl.TYPE__DATA_TYPE:
-        unsetDataType();
+      case URI:
+        setUri(URI_DEFAULT_);
         return;
-      case ModelPackageImpl.TYPE__NAME:
-        setName(NAME_EDEFAULT);
+      case DATA_TYPE:
+        unsetDataType();
         return;
-      case ModelPackageImpl.TYPE__OPEN:
+      case OPEN:
         unsetOpen();
         return;
-      case ModelPackageImpl.TYPE__SEQUENCED:
+      case SEQUENCED:
         unsetSequenced();
         return;
-      case ModelPackageImpl.TYPE__URI:
-        setUri(URI_EDEFAULT);
+      case ABSTRACT:
+        unsetAbstract();
         return;
-      case ModelPackageImpl.TYPE__ANY_ATTRIBUTE:
-        ((FeatureMap.Internal.Wrapper)getAnyAttribute()).featureMap().clear();
+      case ANY_ATTRIBUTE:
+        unsetSequence(getAnyAttribute());
         return;
     }
-    super.eUnset(featureID);
+    super.unset(propertyIndex);
   }
 
   /**
@@ -773,34 +847,34 @@
    * <!-- end-user-doc -->
    * @generated
    */
-  public boolean eIsSet(int featureID)
+  public boolean isSet(int propertyIndex)
   {
-    switch (featureID)
+    switch (propertyIndex)
     {
-      case ModelPackageImpl.TYPE__BASE_TYPE:
+      case BASE_TYPE:
         return baseType != null && !baseType.isEmpty();
-      case ModelPackageImpl.TYPE__PROPERTY:
+      case PROPERTY:
         return property != null && !property.isEmpty();
-      case ModelPackageImpl.TYPE__ALIAS_NAME:
+      case ALIAS_NAME:
         return aliasName != null && !aliasName.isEmpty();
-      case ModelPackageImpl.TYPE__ANY:
-        return any != null && !any.featureMap().isEmpty();
-      case ModelPackageImpl.TYPE__ABSTRACT:
-        return isSetAbstract();
-      case ModelPackageImpl.TYPE__DATA_TYPE:
+      case ANY:
+        return any != null && !isSequenceEmpty(getAny());
+      case NAME:
+        return NAME_DEFAULT_ == null ? name != null : !NAME_DEFAULT_.equals(name);
+      case URI:
+        return URI_DEFAULT_ == null ? uri != null : !URI_DEFAULT_.equals(uri);
+      case DATA_TYPE:
         return isSetDataType();
-      case ModelPackageImpl.TYPE__NAME:
-        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-      case ModelPackageImpl.TYPE__OPEN:
+      case OPEN:
         return isSetOpen();
-      case ModelPackageImpl.TYPE__SEQUENCED:
+      case SEQUENCED:
         return isSetSequenced();
-      case ModelPackageImpl.TYPE__URI:
-        return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
-      case ModelPackageImpl.TYPE__ANY_ATTRIBUTE:
-        return anyAttribute != null && !anyAttribute.featureMap().isEmpty();
+      case ABSTRACT:
+        return isSetAbstract();
+      case ANY_ATTRIBUTE:
+        return anyAttribute != null && !isSequenceEmpty(getAnyAttribute());
     }
-    return super.eIsSet(featureID);
+    return super.isSet(propertyIndex);
   }
 
   /**
@@ -810,34 +884,42 @@
    */
   public String toString()
   {
-    if (eIsProxy()) return super.toString();
+    if (isProxy(this)) return super.toString();
 
     StringBuffer result = new StringBuffer(super.toString());
     result.append(" (aliasName: ");
     result.append(aliasName);
     result.append(", any: ");
     result.append(any);
-    result.append(", abstract: ");
-    if (abstractESet) result.append(abstract_); else result.append("<unset>");
-    result.append(", dataType: ");
-    if (dataTypeESet) result.append(dataType); else result.append("<unset>");
     result.append(", name: ");
     result.append(name);
-    result.append(", open: ");
-    if (openESet) result.append(open); else result.append("<unset>");
-    result.append(", sequenced: ");
-    if (sequencedESet) result.append(sequenced); else result.append("<unset>");
     result.append(", uri: ");
     result.append(uri);
+    result.append(", dataType: ");
+    if (dataType_set_) result.append(dataType); else result.append("<unset>");
+    result.append(", open: ");
+    if (open_set_) result.append(open); else result.append("<unset>");
+    result.append(", sequenced: ");
+    if (sequenced_set_) result.append(sequenced); else result.append("<unset>");
+    result.append(", abstract: ");
+    if (abstract_set_) result.append(abstract_); else result.append("<unset>");
     result.append(", anyAttribute: ");
     result.append(anyAttribute);
     result.append(')');
     return result.toString();
   }
-  
+
+  EStructuralFeature javaClassFeature = null;
+
   public String getInstanceClassName()
   {
-    EStructuralFeature javaClassFeature = JavaPackageImpl.eINSTANCE.getDocumentRoot_JavaClass();
+    //FB EStructuralFeature javaClassFeature = JavaFactory.getGlobal_JavaClass();
+    //FB TODO figure out proper way to access global properties
+    if (javaClassFeature == null)
+    {
+      javaClassFeature = BasicExtendedMetaData.INSTANCE.getAttribute("commonj.sdo/java", "javaClass");
+    }
+
     Sequence anyAttribute = getAnyAttribute();
     int count = anyAttribute.size();
     for (int i = 0; i < count; i++)
@@ -850,5 +932,5 @@
     }
     return null;
   }
-  
+
 } //TypeImpl



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org