Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 251402 | Differences between
and this patch

Collapse All | Expand All

(-)feature.xml (-25 lines)
Lines 41-59 Link Here
41
         version="0.0.0"/>
41
         version="0.0.0"/>
42
42
43
   <plugin
43
   <plugin
44
         id="org.eclipse.test.performance"
45
         download-size="0"
46
         install-size="0"
47
         version="0.0.0"/>
48
49
   <plugin
50
         id="org.eclipse.test.performance.win32"
51
         download-size="0"
52
         install-size="0"
53
         version="0.0.0"
54
         fragment="true"/>
55
56
   <plugin
57
         id="org.eclipse.ant.optional.junit"
44
         id="org.eclipse.ant.optional.junit"
58
         download-size="0"
45
         download-size="0"
59
         install-size="0"
46
         install-size="0"
Lines 67-78 Link Here
67
         version="0.0.0"/>
54
         version="0.0.0"/>
68
55
69
   <plugin
56
   <plugin
70
         id="org.eclipse.emf.test.performance"
71
         download-size="0"
72
         install-size="0"
73
         version="0.0.0"/>
74
75
   <plugin
76
         id="org.eclipse.emf.test.build"
57
         id="org.eclipse.emf.test.build"
77
         download-size="0"
58
         download-size="0"
78
         install-size="0"
59
         install-size="0"
Lines 97-108 Link Here
97
         version="0.0.0"/>
78
         version="0.0.0"/>
98
79
99
   <plugin
80
   <plugin
100
         id="org.eclipse.emf.test.sdo"
101
         download-size="0"
102
         install-size="0"
103
         version="0.0.0"/>
104
105
   <plugin
106
         id="org.eclipse.emf.test.tools"
81
         id="org.eclipse.emf.test.tools"
107
         download-size="0"
82
         download-size="0"
108
         install-size="0"
83
         install-size="0"
(-)src/org/eclipse/emf/test/models/types/util/TypesXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesXMLProcessor.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.types.impl.TypesPackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class TypesXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public TypesXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    TypesPackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the TypesResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new TypesResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new TypesResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //TypesXMLProcessor
(-)src/org/eclipse/emf/test/models/types/util/TypesAdapterFactory.java (-148 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.types.*;
27
28
import org.eclipse.emf.test.models.types.impl.TypesPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl
36
 * @generated
37
 */
38
public class TypesAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static TypesPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public TypesAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = TypesPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected TypesSwitch<Adapter> modelSwitch =
91
    new TypesSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseAThing(AThing object)
95
      {
96
        return createAThingAdapter();
97
      }
98
      @Override
99
      public Adapter defaultCase(EObject object)
100
      {
101
        return createEObjectAdapter();
102
      }
103
    };
104
105
  /**
106
   * Creates an adapter for the <code>target</code>.
107
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
109
   * @param target the object to adapt.
110
   * @return the adapter for the <code>target</code>.
111
   * @generated
112
   */
113
  @Override
114
  public Adapter createAdapter(Notifier target)
115
  {
116
    return modelSwitch.doSwitch((EObject)target);
117
  }
118
119
120
  /**
121
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.types.AThing <em>AThing</em>}'.
122
   * <!-- begin-user-doc -->
123
   * This default implementation returns null so that we can easily ignore cases;
124
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
125
   * <!-- end-user-doc -->
126
   * @return the new adapter.
127
   * @see org.eclipse.emf.test.models.types.AThing
128
   * @generated
129
   */
130
  public Adapter createAThingAdapter()
131
  {
132
    return null;
133
  }
134
135
  /**
136
   * Creates a new adapter for the default case.
137
   * <!-- begin-user-doc -->
138
   * This default implementation returns null.
139
   * <!-- end-user-doc -->
140
   * @return the new adapter.
141
   * @generated
142
   */
143
  public Adapter createEObjectAdapter()
144
  {
145
    return null;
146
  }
147
148
} //TypesAdapterFactory
(-)src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.types.util.TypesResourceImpl
32
 * @generated
33
 */
34
public class TypesResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public TypesResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new TypesResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //TypesResourceFactoryImpl
(-)src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesResourceImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.types.util.TypesResourceFactoryImpl
28
 * @generated
29
 */
30
public class TypesResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public TypesResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //TypesResourceImpl
(-)src/org/eclipse/emf/test/models/types/util/TypesSwitch.java (-154 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.types.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.types.*;
25
26
import org.eclipse.emf.test.models.types.impl.TypesPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl
39
 * @generated
40
 */
41
public class TypesSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static TypesPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public TypesSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = TypesPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case TypesPackageImpl.ATHING:
112
      {
113
        AThing aThing = (AThing)theEObject;
114
        T result = caseAThing(aThing);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      default: return defaultCase(theEObject);
119
    }
120
  }
121
122
  /**
123
   * Returns the result of interpreting the object as an instance of '<em>AThing</em>'.
124
   * <!-- begin-user-doc -->
125
   * This implementation returns null;
126
   * returning a non-null result will terminate the switch.
127
   * <!-- end-user-doc -->
128
   * @param object the target of the switch.
129
   * @return the result of interpreting the object as an instance of '<em>AThing</em>'.
130
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
131
   * @generated
132
   */
133
  public T caseAThing(AThing object)
134
  {
135
    return null;
136
  }
137
138
  /**
139
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
140
   * <!-- begin-user-doc -->
141
   * This implementation returns null;
142
   * returning a non-null result will terminate the switch, but this is the last case anyway.
143
   * <!-- end-user-doc -->
144
   * @param object the target of the switch.
145
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
146
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
147
   * @generated
148
   */
149
  public T defaultCase(EObject object)
150
  {
151
    return null;
152
  }
153
154
} //TypesSwitch
(-)models/sdo.IPO/ipo.ecore (-263 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ipo"
5
    nsURI="http:///org.eclipse.emf.test.models/IPO" nsPrefix="ipo">
6
  <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
7
    <details key="documentation" value="&#xD;&#xA;      International Purchase order schema for Example.com&#xD;&#xA;      Copyright 2000 Example.com. All rights reserved.&#xD;&#xA;    "/>
8
  </eAnnotations>
9
  <eClassifiers xsi:type="ecore:EClass" name="Address">
10
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
11
      <details key="name" value="Address"/>
12
      <details key="kind" value="elementOnly"/>
13
    </eAnnotations>
14
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
15
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
16
        <details key="kind" value="element"/>
17
        <details key="name" value="name"/>
18
      </eAnnotations>
19
    </eStructuralFeatures>
20
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" lowerBound="1"
21
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
22
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
23
        <details key="kind" value="element"/>
24
        <details key="name" value="street"/>
25
      </eAnnotations>
26
    </eStructuralFeatures>
27
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
28
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
29
        <details key="kind" value="element"/>
30
        <details key="name" value="city"/>
31
      </eAnnotations>
32
    </eStructuralFeatures>
33
  </eClassifiers>
34
  <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
35
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
36
      <details key="name" value=""/>
37
      <details key="kind" value="mixed"/>
38
    </eAnnotations>
39
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
40
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
41
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
42
        <details key="kind" value="elementWildcard"/>
43
        <details key="name" value=":mixed"/>
44
      </eAnnotations>
45
    </eStructuralFeatures>
46
    <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
47
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
48
        transient="true" containment="true" resolveProxies="false">
49
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
50
        <details key="kind" value="attribute"/>
51
        <details key="name" value="xmlns:prefix"/>
52
      </eAnnotations>
53
    </eStructuralFeatures>
54
    <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
55
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
56
        transient="true" containment="true" resolveProxies="false">
57
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
58
        <details key="kind" value="attribute"/>
59
        <details key="name" value="xsi:schemaLocation"/>
60
      </eAnnotations>
61
    </eStructuralFeatures>
62
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" unique="false"
63
        upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
64
        volatile="true" transient="true" derived="true">
65
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
66
        <details key="kind" value="element"/>
67
        <details key="name" value="comment"/>
68
        <details key="namespace" value="##targetNamespace"/>
69
      </eAnnotations>
70
    </eStructuralFeatures>
71
    <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrder" upperBound="-2"
72
        eType="#//PurchaseOrderType" volatile="true" transient="true" derived="true"
73
        containment="true" resolveProxies="false">
74
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
75
        <details key="kind" value="element"/>
76
        <details key="name" value="purchaseOrder"/>
77
        <details key="namespace" value="##targetNamespace"/>
78
      </eAnnotations>
79
    </eStructuralFeatures>
80
  </eClassifiers>
81
  <eClassifiers xsi:type="ecore:EClass" name="Items">
82
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
83
      <details key="name" value="Items"/>
84
      <details key="kind" value="elementOnly"/>
85
    </eAnnotations>
86
    <eStructuralFeatures xsi:type="ecore:EReference" name="item" upperBound="-1" eType="#//ItemType"
87
        containment="true" resolveProxies="false">
88
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
89
        <details key="kind" value="element"/>
90
        <details key="name" value="item"/>
91
      </eAnnotations>
92
    </eStructuralFeatures>
93
  </eClassifiers>
94
  <eClassifiers xsi:type="ecore:EClass" name="ItemType">
95
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
96
      <details key="name" value="item_._type"/>
97
      <details key="kind" value="elementOnly"/>
98
    </eAnnotations>
99
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="productName" lowerBound="1"
100
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
101
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
102
        <details key="kind" value="element"/>
103
        <details key="name" value="productName"/>
104
      </eAnnotations>
105
    </eStructuralFeatures>
106
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" lowerBound="1"
107
        eType="#//QuantityType">
108
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
109
        <details key="kind" value="element"/>
110
        <details key="name" value="quantity"/>
111
      </eAnnotations>
112
    </eStructuralFeatures>
113
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="uSPrice" lowerBound="1"
114
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
115
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
116
        <details key="kind" value="element"/>
117
        <details key="name" value="USPrice"/>
118
      </eAnnotations>
119
    </eStructuralFeatures>
120
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
121
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
122
        <details key="kind" value="element"/>
123
        <details key="name" value="comment"/>
124
        <details key="namespace" value="##targetNamespace"/>
125
      </eAnnotations>
126
    </eStructuralFeatures>
127
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="shipDate" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date">
128
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
129
        <details key="kind" value="element"/>
130
        <details key="name" value="shipDate"/>
131
      </eAnnotations>
132
    </eStructuralFeatures>
133
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="partNum" lowerBound="1"
134
        eType="#//SKU">
135
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
136
        <details key="kind" value="attribute"/>
137
        <details key="name" value="partNum"/>
138
      </eAnnotations>
139
    </eStructuralFeatures>
140
  </eClassifiers>
141
  <eClassifiers xsi:type="ecore:EDataType" name="Postcode" instanceClassName="java.lang.String">
142
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
143
      <details key="name" value="Postcode"/>
144
      <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/>
145
      <details key="length" value="7"/>
146
    </eAnnotations>
147
  </eClassifiers>
148
  <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrderType">
149
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
150
      <details key="name" value="PurchaseOrderType"/>
151
      <details key="kind" value="elementOnly"/>
152
    </eAnnotations>
153
    <eStructuralFeatures xsi:type="ecore:EReference" name="shipTo" lowerBound="1"
154
        eType="#//Address" containment="true" resolveProxies="false">
155
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
156
        <details key="kind" value="element"/>
157
        <details key="name" value="shipTo"/>
158
      </eAnnotations>
159
    </eStructuralFeatures>
160
    <eStructuralFeatures xsi:type="ecore:EReference" name="billTo" lowerBound="1"
161
        eType="#//Address" containment="true" resolveProxies="false">
162
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
163
        <details key="kind" value="element"/>
164
        <details key="name" value="billTo"/>
165
      </eAnnotations>
166
    </eStructuralFeatures>
167
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
168
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
169
        <details key="kind" value="element"/>
170
        <details key="name" value="comment"/>
171
        <details key="namespace" value="##targetNamespace"/>
172
      </eAnnotations>
173
    </eStructuralFeatures>
174
    <eStructuralFeatures xsi:type="ecore:EReference" name="items" lowerBound="1" eType="#//Items"
175
        containment="true" resolveProxies="false">
176
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
177
        <details key="kind" value="element"/>
178
        <details key="name" value="items"/>
179
      </eAnnotations>
180
    </eStructuralFeatures>
181
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="orderDate" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//DateTime">
182
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
183
        <details key="kind" value="attribute"/>
184
        <details key="name" value="orderDate"/>
185
      </eAnnotations>
186
    </eStructuralFeatures>
187
  </eClassifiers>
188
  <eClassifiers xsi:type="ecore:EDataType" name="QuantityType" instanceClassName="java.math.BigInteger">
189
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
190
      <details key="name" value="quantity_._type"/>
191
      <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#positiveInteger"/>
192
      <details key="maxExclusive" value="100"/>
193
    </eAnnotations>
194
  </eClassifiers>
195
  <eClassifiers xsi:type="ecore:EDataType" name="SKU" instanceClassName="java.lang.String">
196
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
197
      <details key="name" value="SKU"/>
198
      <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/>
199
      <details key="pattern" value="\d{3}-[A-Z]{2}"/>
200
    </eAnnotations>
201
  </eClassifiers>
202
  <eClassifiers xsi:type="ecore:EClass" name="UKAddress" eSuperTypes="#//Address">
203
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
204
      <details key="name" value="UKAddress"/>
205
      <details key="kind" value="elementOnly"/>
206
    </eAnnotations>
207
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="postcode" lowerBound="1"
208
        eType="#//UKPostcode">
209
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
210
        <details key="kind" value="element"/>
211
        <details key="name" value="postcode"/>
212
      </eAnnotations>
213
    </eStructuralFeatures>
214
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="exportCode" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//PositiveInteger"
215
        defaultValueLiteral="1" unsettable="true">
216
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
217
        <details key="kind" value="attribute"/>
218
        <details key="name" value="exportCode"/>
219
      </eAnnotations>
220
    </eStructuralFeatures>
221
  </eClassifiers>
222
  <eClassifiers xsi:type="ecore:EDataType" name="UKPostcode" instanceClassName="java.lang.String">
223
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
224
      <details key="name" value="UKPostcode"/>
225
      <details key="baseType" value="Postcode"/>
226
      <details key="pattern" value="[A-Z]{2}\d\s\d[A-Z]{2}"/>
227
    </eAnnotations>
228
  </eClassifiers>
229
  <eClassifiers xsi:type="ecore:EClass" name="USAddress" eSuperTypes="#//Address">
230
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
231
      <details key="name" value="USAddress"/>
232
      <details key="kind" value="elementOnly"/>
233
    </eAnnotations>
234
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="state" lowerBound="1" eType="#//USState"
235
        defaultValueLiteral="AK" unsettable="true">
236
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
237
        <details key="kind" value="element"/>
238
        <details key="name" value="state"/>
239
      </eAnnotations>
240
    </eStructuralFeatures>
241
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="zip" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//PositiveInteger">
242
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
243
        <details key="kind" value="element"/>
244
        <details key="name" value="zip"/>
245
      </eAnnotations>
246
    </eStructuralFeatures>
247
  </eClassifiers>
248
  <eClassifiers xsi:type="ecore:EEnum" name="USState">
249
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
250
      <details key="name" value="USState"/>
251
    </eAnnotations>
252
    <eLiterals name="AK"/>
253
    <eLiterals name="AL" value="1"/>
254
    <eLiterals name="AR" value="2"/>
255
    <eLiterals name="PA" value="3"/>
256
  </eClassifiers>
257
  <eClassifiers xsi:type="ecore:EDataType" name="USStateObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
258
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
259
      <details key="name" value="USState:Object"/>
260
      <details key="baseType" value="USState"/>
261
    </eAnnotations>
262
  </eClassifiers>
263
</ecore:EPackage>
(-)models/sdo.IPO/address.xsd (-63 lines)
Removed Link Here
1
<schema targetNamespace="http:///org.eclipse.emf.test.models/IPO"
2
        xmlns="http://www.w3.org/2001/XMLSchema"
3
        xmlns:ipo="http:///org.eclipse.emf.test.models/IPO">
4
5
  <complexType name="Address">
6
    <sequence>
7
      <element name="name"   type="string"/>
8
      <element name="street" type="string"/>
9
      <element name="city"   type="string"/>
10
    </sequence>
11
  </complexType>
12
13
  <complexType name="USAddress">
14
    <complexContent>
15
      <extension base="ipo:Address">
16
        <sequence>
17
          <element name="state" type="ipo:USState"/>
18
          <element name="zip"   type="positiveInteger"/>
19
        </sequence>
20
      </extension>
21
    </complexContent>
22
  </complexType>
23
24
  <complexType name="UKAddress">
25
    <complexContent>
26
      <extension base="ipo:Address">
27
        <sequence>
28
          <element name="postcode" type="ipo:UKPostcode"/>
29
        </sequence>
30
        <attribute name="exportCode" type="positiveInteger" fixed="1"/>
31
      </extension>
32
    </complexContent>
33
  </complexType>
34
35
  <!-- other Address derivations for more countries -->
36
37
  <simpleType name="USState">
38
    <restriction base="string">
39
      <enumeration value="AK"/>
40
      <enumeration value="AL"/>
41
      <enumeration value="AR"/>
42
      <enumeration value="PA"/>
43
      <!-- and so on ... -->
44
    </restriction>
45
  </simpleType>
46
47
  <!-- simple type definition for UKPostcode -->
48
49
  <simpleType name="UKPostcode">
50
  <restriction base="ipo:Postcode">
51
    <pattern value="[A-Z]{2}\d\s\d[A-Z]{2}"/>
52
  </restriction>
53
  </simpleType>
54
55
<simpleType name="Postcode">
56
  <restriction base="string">
57
    <length value="7" fixed="true"/>
58
  </restriction>
59
</simpleType>
60
61
62
</schema>
63
(-)models/sdo.IPO/ipo.xsd (-59 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
3
        xmlns:ipo="http:///org.eclipse.emf.test.models/IPO" 
4
        targetNamespace="http:///org.eclipse.emf.test.models/IPO">
5
6
  <annotation>
7
    <documentation xml:lang="en">
8
      International Purchase order schema for Example.com
9
      Copyright 2000 Example.com. All rights reserved.
10
    </documentation>
11
  </annotation>
12
13
  <!-- include address constructs -->
14
  <include schemaLocation="address.xsd"/>
15
16
  <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
17
18
  <element name="comment" type="string"/>
19
20
  <complexType name="PurchaseOrderType">
21
    <sequence>
22
      <element name="shipTo" type="ipo:Address"/>
23
      <element name="billTo" type="ipo:Address"/>
24
      <element minOccurs="0" ref="ipo:comment"/>
25
      <element name="items" type="ipo:Items"/>
26
    </sequence>
27
    <attribute name="orderDate" type="dateTime"/>
28
  </complexType>
29
30
  <complexType name="Items">
31
    <sequence>
32
      <element maxOccurs="unbounded" minOccurs="0" name="item">
33
        <complexType>
34
          <sequence>
35
            <element name="productName" type="string"/>
36
            <element name="quantity">
37
              <simpleType>
38
                <restriction base="positiveInteger">
39
                  <maxExclusive value="100"/>
40
                </restriction>
41
              </simpleType>
42
            </element>
43
            <element name="USPrice" type="decimal"/>
44
            <element minOccurs="0" ref="ipo:comment"/>
45
            <element minOccurs="0" name="shipDate" type="date"/>
46
          </sequence>
47
          <attribute name="partNum" type="ipo:SKU" use="required"/>
48
        </complexType>
49
      </element>
50
    </sequence>
51
  </complexType>
52
53
  <simpleType name="SKU">
54
    <restriction base="string">
55
      <pattern value="\d{3}-[A-Z]{2}"/>
56
    </restriction>
57
  </simpleType>
58
59
</schema>
(-)models/sdo.IPO/ipo.genmodel (-67 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="IPO" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
11
  <foreignModel>ipo.xsd</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="IPO" basePackage="org.eclipse.emf.test.models" resource="XML"
16
      disposableProviderFactory="true" ecorePackage="ipo.ecore#/">
17
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="ipo.ecore#//USState">
18
      <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AK"/>
19
      <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AL"/>
20
      <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AR"/>
21
      <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/PA"/>
22
    </genEnums>
23
    <genDataTypes ecoreDataType="ipo.ecore#//Postcode"/>
24
    <genDataTypes ecoreDataType="ipo.ecore#//QuantityType"/>
25
    <genDataTypes ecoreDataType="ipo.ecore#//SKU"/>
26
    <genDataTypes ecoreDataType="ipo.ecore#//UKPostcode"/>
27
    <genDataTypes ecoreDataType="ipo.ecore#//USStateObject"/>
28
    <genClasses ecoreClass="ipo.ecore#//Address">
29
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/name"/>
30
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/street"/>
31
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/city"/>
32
    </genClasses>
33
    <genClasses ecoreClass="ipo.ecore#//DocumentRoot">
34
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//DocumentRoot/mixed"/>
35
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/xMLNSPrefixMap"/>
36
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/xSISchemaLocation"/>
37
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//DocumentRoot/comment"/>
38
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/purchaseOrder"/>
39
    </genClasses>
40
    <genClasses ecoreClass="ipo.ecore#//Items">
41
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//Items/item"/>
42
    </genClasses>
43
    <genClasses ecoreClass="ipo.ecore#//ItemType">
44
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/productName"/>
45
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/quantity"/>
46
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/uSPrice"/>
47
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/comment"/>
48
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/shipDate"/>
49
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/partNum"/>
50
    </genClasses>
51
    <genClasses ecoreClass="ipo.ecore#//PurchaseOrderType">
52
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/shipTo"/>
53
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/billTo"/>
54
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//PurchaseOrderType/comment"/>
55
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/items"/>
56
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//PurchaseOrderType/orderDate"/>
57
    </genClasses>
58
    <genClasses ecoreClass="ipo.ecore#//UKAddress">
59
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//UKAddress/postcode"/>
60
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//UKAddress/exportCode"/>
61
    </genClasses>
62
    <genClasses ecoreClass="ipo.ecore#//USAddress">
63
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//USAddress/state"/>
64
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//USAddress/zip"/>
65
    </genClasses>
66
  </genPackages>
67
</genmodel:GenModel>
(-)src/org/eclipse/emf/test/models/ipo/impl/IPOFactoryImpl.java (-382 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOFactoryImpl.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigInteger;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EDataType;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.EPackage;
25
26
import org.eclipse.emf.ecore.impl.EFactoryImpl;
27
28
import org.eclipse.emf.ecore.plugin.EcorePlugin;
29
30
import org.eclipse.emf.ecore.xml.type.XMLTypeFactory;
31
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
32
33
import org.eclipse.emf.test.models.ipo.*;
34
35
/**
36
 * <!-- begin-user-doc -->
37
 * An implementation of the model <b>Factory</b>.
38
 * <!-- end-user-doc -->
39
 * @generated
40
 */
41
public class IPOFactoryImpl extends EFactoryImpl implements IPOFactory
42
{
43
  /**
44
   * The singleton instance of the factory.
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  public static final IPOFactoryImpl eINSTANCE = init();
50
51
  /**
52
   * Creates the default factory implementation.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public static IPOFactoryImpl init()
58
  {
59
    try
60
    {
61
      IPOFactoryImpl theIPOFactory = (IPOFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/IPO"); 
62
      if (theIPOFactory != null)
63
      {
64
        return theIPOFactory;
65
      }
66
    }
67
    catch (Exception exception)
68
    {
69
      EcorePlugin.INSTANCE.log(exception);
70
    }
71
    return new IPOFactoryImpl();
72
  }
73
74
  /**
75
   * Creates an instance of the factory.
76
   * <!-- begin-user-doc -->
77
   * <!-- end-user-doc -->
78
   * @generated
79
   */
80
  public IPOFactoryImpl()
81
  {
82
    super();
83
  }
84
85
  /**
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  @Override
91
  public EObject create(EClass eClass)
92
  {
93
    switch (eClass.getClassifierID())
94
    {
95
      case IPOPackageImpl.ADDRESS: return (EObject)createAddress();
96
      case IPOPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
97
      case IPOPackageImpl.ITEMS: return (EObject)createItems();
98
      case IPOPackageImpl.ITEM_TYPE: return (EObject)createItemType();
99
      case IPOPackageImpl.PURCHASE_ORDER_TYPE: return (EObject)createPurchaseOrderType();
100
      case IPOPackageImpl.UK_ADDRESS: return (EObject)createUKAddress();
101
      case IPOPackageImpl.US_ADDRESS: return (EObject)createUSAddress();
102
      default:
103
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
104
    }
105
  }
106
107
  /**
108
   * <!-- begin-user-doc -->
109
   * <!-- end-user-doc -->
110
   * @generated
111
   */
112
  @Override
113
  public Object createFromString(EDataType eDataType, String initialValue)
114
  {
115
    switch (eDataType.getClassifierID())
116
    {
117
      case IPOPackageImpl.US_STATE:
118
        return createUSStateFromString(eDataType, initialValue);
119
      case IPOPackageImpl.POSTCODE:
120
        return createPostcodeFromString(eDataType, initialValue);
121
      case IPOPackageImpl.QUANTITY_TYPE:
122
        return createQuantityTypeFromString(eDataType, initialValue);
123
      case IPOPackageImpl.SKU:
124
        return createSKUFromString(eDataType, initialValue);
125
      case IPOPackageImpl.UK_POSTCODE:
126
        return createUKPostcodeFromString(eDataType, initialValue);
127
      case IPOPackageImpl.US_STATE_OBJECT:
128
        return createUSStateObjectFromString(eDataType, initialValue);
129
      default:
130
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
131
    }
132
  }
133
134
  /**
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @generated
138
   */
139
  @Override
140
  public String convertToString(EDataType eDataType, Object instanceValue)
141
  {
142
    switch (eDataType.getClassifierID())
143
    {
144
      case IPOPackageImpl.US_STATE:
145
        return convertUSStateToString(eDataType, instanceValue);
146
      case IPOPackageImpl.POSTCODE:
147
        return convertPostcodeToString(eDataType, instanceValue);
148
      case IPOPackageImpl.QUANTITY_TYPE:
149
        return convertQuantityTypeToString(eDataType, instanceValue);
150
      case IPOPackageImpl.SKU:
151
        return convertSKUToString(eDataType, instanceValue);
152
      case IPOPackageImpl.UK_POSTCODE:
153
        return convertUKPostcodeToString(eDataType, instanceValue);
154
      case IPOPackageImpl.US_STATE_OBJECT:
155
        return convertUSStateObjectToString(eDataType, instanceValue);
156
      default:
157
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
158
    }
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public Address createAddress()
167
  {
168
    AddressImpl address = new AddressImpl();
169
    return address;
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  public DocumentRoot createDocumentRoot()
178
  {
179
    DocumentRootImpl documentRoot = new DocumentRootImpl();
180
    return documentRoot;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public Items createItems()
189
  {
190
    ItemsImpl items = new ItemsImpl();
191
    return items;
192
  }
193
194
  /**
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   */
199
  public ItemType createItemType()
200
  {
201
    ItemTypeImpl itemType = new ItemTypeImpl();
202
    return itemType;
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public PurchaseOrderType createPurchaseOrderType()
211
  {
212
    PurchaseOrderTypeImpl purchaseOrderType = new PurchaseOrderTypeImpl();
213
    return purchaseOrderType;
214
  }
215
216
  /**
217
   * <!-- begin-user-doc -->
218
   * <!-- end-user-doc -->
219
   * @generated
220
   */
221
  public UKAddress createUKAddress()
222
  {
223
    UKAddressImpl ukAddress = new UKAddressImpl();
224
    return ukAddress;
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public USAddress createUSAddress()
233
  {
234
    USAddressImpl usAddress = new USAddressImpl();
235
    return usAddress;
236
  }
237
238
  /**
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @generated
242
   */
243
  public USState createUSStateFromString(EDataType eDataType, String initialValue)
244
  {
245
    USState result = USState.get(initialValue);
246
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
247
    return result;
248
  }
249
250
  /**
251
   * <!-- begin-user-doc -->
252
   * <!-- end-user-doc -->
253
   * @generated
254
   */
255
  public String convertUSStateToString(EDataType eDataType, Object instanceValue)
256
  {
257
    return instanceValue == null ? null : instanceValue.toString();
258
  }
259
260
  /**
261
   * <!-- begin-user-doc -->
262
   * <!-- end-user-doc -->
263
   * @generated
264
   */
265
  public String createPostcodeFromString(EDataType eDataType, String initialValue)
266
  {
267
    return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue);
268
  }
269
270
  /**
271
   * <!-- begin-user-doc -->
272
   * <!-- end-user-doc -->
273
   * @generated
274
   */
275
  public String convertPostcodeToString(EDataType eDataType, Object instanceValue)
276
  {
277
    return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue);
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public BigInteger createQuantityTypeFromString(EDataType eDataType, String initialValue)
286
  {
287
    return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.POSITIVE_INTEGER, initialValue);
288
  }
289
290
  /**
291
   * <!-- begin-user-doc -->
292
   * <!-- end-user-doc -->
293
   * @generated
294
   */
295
  public String convertQuantityTypeToString(EDataType eDataType, Object instanceValue)
296
  {
297
    return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.POSITIVE_INTEGER, instanceValue);
298
  }
299
300
  /**
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @generated
304
   */
305
  public String createSKUFromString(EDataType eDataType, String initialValue)
306
  {
307
    return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue);
308
  }
309
310
  /**
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @generated
314
   */
315
  public String convertSKUToString(EDataType eDataType, Object instanceValue)
316
  {
317
    return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue);
318
  }
319
320
  /**
321
   * <!-- begin-user-doc -->
322
   * <!-- end-user-doc -->
323
   * @generated
324
   */
325
  public String createUKPostcodeFromString(EDataType eDataType, String initialValue)
326
  {
327
    return createPostcodeFromString(IPOPackageImpl.Literals.POSTCODE, initialValue);
328
  }
329
330
  /**
331
   * <!-- begin-user-doc -->
332
   * <!-- end-user-doc -->
333
   * @generated
334
   */
335
  public String convertUKPostcodeToString(EDataType eDataType, Object instanceValue)
336
  {
337
    return convertPostcodeToString(IPOPackageImpl.Literals.POSTCODE, instanceValue);
338
  }
339
340
  /**
341
   * <!-- begin-user-doc -->
342
   * <!-- end-user-doc -->
343
   * @generated
344
   */
345
  public USState createUSStateObjectFromString(EDataType eDataType, String initialValue)
346
  {
347
    return createUSStateFromString(IPOPackageImpl.Literals.US_STATE, initialValue);
348
  }
349
350
  /**
351
   * <!-- begin-user-doc -->
352
   * <!-- end-user-doc -->
353
   * @generated
354
   */
355
  public String convertUSStateObjectToString(EDataType eDataType, Object instanceValue)
356
  {
357
    return convertUSStateToString(IPOPackageImpl.Literals.US_STATE, instanceValue);
358
  }
359
360
  /**
361
   * <!-- begin-user-doc -->
362
   * <!-- end-user-doc -->
363
   * @generated
364
   */
365
  public IPOPackageImpl getIPOPackageImpl()
366
  {
367
    return (IPOPackageImpl)getEPackage();
368
  }
369
370
  /**
371
   * <!-- begin-user-doc -->
372
   * <!-- end-user-doc -->
373
   * @deprecated
374
   * @generated
375
   */
376
  @Deprecated
377
  public static IPOPackageImpl getPackage()
378
  {
379
    return IPOPackageImpl.eINSTANCE;
380
  }
381
382
} //IPOFactoryImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java (-486 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PurchaseOrderTypeImpl.java,v 1.4 2007/06/02 19:35:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import javax.xml.datatype.XMLGregorianCalendar;
20
import org.eclipse.emf.common.notify.Notification;
21
import org.eclipse.emf.common.notify.NotificationChain;
22
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.impl.ENotificationImpl;
27
28
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
29
30
import org.eclipse.emf.test.models.ipo.Address;
31
import org.eclipse.emf.test.models.ipo.Items;
32
import org.eclipse.emf.test.models.ipo.PurchaseOrderType;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Purchase Order Type</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getShipTo <em>Ship To</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getBillTo <em>Bill To</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getComment <em>Comment</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getItems <em>Items</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getOrderDate <em>Order Date</em>}</li>
46
 * </ul>
47
 * </p>
48
 *
49
 * @generated
50
 */
51
public class PurchaseOrderTypeImpl extends EDataObjectImpl implements PurchaseOrderType
52
{
53
  /**
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @generated
57
   */
58
  private static final long serialVersionUID = 1L;
59
60
  /**
61
   * The cached value of the '{@link #getShipTo() <em>Ship To</em>}' containment reference.
62
   * <!-- begin-user-doc -->
63
   * <!-- end-user-doc -->
64
   * @see #getShipTo()
65
   * @generated
66
   * @ordered
67
   */
68
  protected Address shipTo;
69
70
  /**
71
   * The cached value of the '{@link #getBillTo() <em>Bill To</em>}' containment reference.
72
   * <!-- begin-user-doc -->
73
   * <!-- end-user-doc -->
74
   * @see #getBillTo()
75
   * @generated
76
   * @ordered
77
   */
78
  protected Address billTo;
79
80
  /**
81
   * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @see #getComment()
85
   * @generated
86
   * @ordered
87
   */
88
  protected static final String COMMENT_EDEFAULT = null;
89
90
  /**
91
   * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @see #getComment()
95
   * @generated
96
   * @ordered
97
   */
98
  protected String comment = COMMENT_EDEFAULT;
99
100
  /**
101
   * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @see #getItems()
105
   * @generated
106
   * @ordered
107
   */
108
  protected Items items;
109
110
  /**
111
   * The default value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute.
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @see #getOrderDate()
115
   * @generated
116
   * @ordered
117
   */
118
  protected static final XMLGregorianCalendar ORDER_DATE_EDEFAULT = null;
119
120
  /**
121
   * The cached value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @see #getOrderDate()
125
   * @generated
126
   * @ordered
127
   */
128
  protected XMLGregorianCalendar orderDate = ORDER_DATE_EDEFAULT;
129
130
  /**
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   */
135
  protected PurchaseOrderTypeImpl()
136
  {
137
    super();
138
  }
139
140
  /**
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @generated
144
   */
145
  @Override
146
  protected EClass eStaticClass()
147
  {
148
    return IPOPackageImpl.Literals.PURCHASE_ORDER_TYPE;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  public Address getShipTo()
157
  {
158
    return shipTo;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NotificationChain basicSetShipTo(Address newShipTo, NotificationChain msgs)
167
  {
168
    Address oldShipTo = shipTo;
169
    shipTo = newShipTo;
170
    if (eNotificationRequired())
171
    {
172
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, oldShipTo, newShipTo);
173
      if (msgs == null) msgs = notification; else msgs.add(notification);
174
    }
175
    return msgs;
176
  }
177
178
  /**
179
   * <!-- begin-user-doc -->
180
   * <!-- end-user-doc -->
181
   * @generated
182
   */
183
  public void setShipTo(Address newShipTo)
184
  {
185
    if (newShipTo != shipTo)
186
    {
187
      NotificationChain msgs = null;
188
      if (shipTo != null)
189
        msgs = ((InternalEObject)shipTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs);
190
      if (newShipTo != null)
191
        msgs = ((InternalEObject)newShipTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs);
192
      msgs = basicSetShipTo(newShipTo, msgs);
193
      if (msgs != null) msgs.dispatch();
194
    }
195
    else if (eNotificationRequired())
196
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, newShipTo, newShipTo));
197
  }
198
199
  /**
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   */
204
  public Address getBillTo()
205
  {
206
    return billTo;
207
  }
208
209
  /**
210
   * <!-- begin-user-doc -->
211
   * <!-- end-user-doc -->
212
   * @generated
213
   */
214
  public NotificationChain basicSetBillTo(Address newBillTo, NotificationChain msgs)
215
  {
216
    Address oldBillTo = billTo;
217
    billTo = newBillTo;
218
    if (eNotificationRequired())
219
    {
220
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, oldBillTo, newBillTo);
221
      if (msgs == null) msgs = notification; else msgs.add(notification);
222
    }
223
    return msgs;
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  public void setBillTo(Address newBillTo)
232
  {
233
    if (newBillTo != billTo)
234
    {
235
      NotificationChain msgs = null;
236
      if (billTo != null)
237
        msgs = ((InternalEObject)billTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs);
238
      if (newBillTo != null)
239
        msgs = ((InternalEObject)newBillTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs);
240
      msgs = basicSetBillTo(newBillTo, msgs);
241
      if (msgs != null) msgs.dispatch();
242
    }
243
    else if (eNotificationRequired())
244
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, newBillTo, newBillTo));
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public String getComment()
253
  {
254
    return comment;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public void setComment(String newComment)
263
  {
264
    String oldComment = comment;
265
    comment = newComment;
266
    if (eNotificationRequired())
267
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT, oldComment, comment));
268
  }
269
270
  /**
271
   * <!-- begin-user-doc -->
272
   * <!-- end-user-doc -->
273
   * @generated
274
   */
275
  public Items getItems()
276
  {
277
    return items;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public NotificationChain basicSetItems(Items newItems, NotificationChain msgs)
286
  {
287
    Items oldItems = items;
288
    items = newItems;
289
    if (eNotificationRequired())
290
    {
291
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, oldItems, newItems);
292
      if (msgs == null) msgs = notification; else msgs.add(notification);
293
    }
294
    return msgs;
295
  }
296
297
  /**
298
   * <!-- begin-user-doc -->
299
   * <!-- end-user-doc -->
300
   * @generated
301
   */
302
  public void setItems(Items newItems)
303
  {
304
    if (newItems != items)
305
    {
306
      NotificationChain msgs = null;
307
      if (items != null)
308
        msgs = ((InternalEObject)items).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs);
309
      if (newItems != null)
310
        msgs = ((InternalEObject)newItems).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs);
311
      msgs = basicSetItems(newItems, msgs);
312
      if (msgs != null) msgs.dispatch();
313
    }
314
    else if (eNotificationRequired())
315
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, newItems, newItems));
316
  }
317
318
  /**
319
   * <!-- begin-user-doc -->
320
   * <!-- end-user-doc -->
321
   * @generated
322
   */
323
  public XMLGregorianCalendar getOrderDate()
324
  {
325
    return orderDate;
326
  }
327
328
  /**
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @generated
332
   */
333
  public void setOrderDate(XMLGregorianCalendar newOrderDate)
334
  {
335
    XMLGregorianCalendar oldOrderDate = orderDate;
336
    orderDate = newOrderDate;
337
    if (eNotificationRequired())
338
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE, oldOrderDate, orderDate));
339
  }
340
341
  /**
342
   * <!-- begin-user-doc -->
343
   * <!-- end-user-doc -->
344
   * @generated
345
   */
346
  @Override
347
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
348
  {
349
    switch (featureID)
350
    {
351
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
352
        return basicSetShipTo(null, msgs);
353
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
354
        return basicSetBillTo(null, msgs);
355
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
356
        return basicSetItems(null, msgs);
357
    }
358
    return super.eInverseRemove(otherEnd, featureID, msgs);
359
  }
360
361
  /**
362
   * <!-- begin-user-doc -->
363
   * <!-- end-user-doc -->
364
   * @generated
365
   */
366
  @Override
367
  public Object eGet(int featureID, boolean resolve, boolean coreType)
368
  {
369
    switch (featureID)
370
    {
371
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
372
        return getShipTo();
373
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
374
        return getBillTo();
375
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
376
        return getComment();
377
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
378
        return getItems();
379
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
380
        return getOrderDate();
381
    }
382
    return super.eGet(featureID, resolve, coreType);
383
  }
384
385
  /**
386
   * <!-- begin-user-doc -->
387
   * <!-- end-user-doc -->
388
   * @generated
389
   */
390
  @Override
391
  public void eSet(int featureID, Object newValue)
392
  {
393
    switch (featureID)
394
    {
395
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
396
        setShipTo((Address)newValue);
397
        return;
398
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
399
        setBillTo((Address)newValue);
400
        return;
401
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
402
        setComment((String)newValue);
403
        return;
404
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
405
        setItems((Items)newValue);
406
        return;
407
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
408
        setOrderDate((XMLGregorianCalendar)newValue);
409
        return;
410
    }
411
    super.eSet(featureID, newValue);
412
  }
413
414
  /**
415
   * <!-- begin-user-doc -->
416
   * <!-- end-user-doc -->
417
   * @generated
418
   */
419
  @Override
420
  public void eUnset(int featureID)
421
  {
422
    switch (featureID)
423
    {
424
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
425
        setShipTo((Address)null);
426
        return;
427
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
428
        setBillTo((Address)null);
429
        return;
430
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
431
        setComment(COMMENT_EDEFAULT);
432
        return;
433
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
434
        setItems((Items)null);
435
        return;
436
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
437
        setOrderDate(ORDER_DATE_EDEFAULT);
438
        return;
439
    }
440
    super.eUnset(featureID);
441
  }
442
443
  /**
444
   * <!-- begin-user-doc -->
445
   * <!-- end-user-doc -->
446
   * @generated
447
   */
448
  @Override
449
  public boolean eIsSet(int featureID)
450
  {
451
    switch (featureID)
452
    {
453
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO:
454
        return shipTo != null;
455
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO:
456
        return billTo != null;
457
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT:
458
        return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
459
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS:
460
        return items != null;
461
      case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE:
462
        return ORDER_DATE_EDEFAULT == null ? orderDate != null : !ORDER_DATE_EDEFAULT.equals(orderDate);
463
    }
464
    return super.eIsSet(featureID);
465
  }
466
467
  /**
468
   * <!-- begin-user-doc -->
469
   * <!-- end-user-doc -->
470
   * @generated
471
   */
472
  @Override
473
  public String toString()
474
  {
475
    if (eIsProxy()) return super.toString();
476
477
    StringBuffer result = new StringBuffer(super.toString());
478
    result.append(" (comment: ");
479
    result.append(comment);
480
    result.append(", orderDate: ");
481
    result.append(orderDate);
482
    result.append(')');
483
    return result.toString();
484
  }
485
486
} //PurchaseOrderTypeImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java (-482 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ItemTypeImpl.java,v 1.3 2007/06/02 19:35:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
22
import javax.xml.datatype.XMLGregorianCalendar;
23
import org.eclipse.emf.common.notify.Notification;
24
25
import org.eclipse.emf.ecore.EClass;
26
27
import org.eclipse.emf.ecore.impl.ENotificationImpl;
28
29
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
30
31
import org.eclipse.emf.test.models.ipo.ItemType;
32
33
/**
34
 * <!-- begin-user-doc -->
35
 * An implementation of the model object '<em><b>Item Type</b></em>'.
36
 * <!-- end-user-doc -->
37
 * <p>
38
 * The following features are implemented:
39
 * <ul>
40
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getProductName <em>Product Name</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getQuantity <em>Quantity</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getUSPrice <em>US Price</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getComment <em>Comment</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getShipDate <em>Ship Date</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getPartNum <em>Part Num</em>}</li>
46
 * </ul>
47
 * </p>
48
 *
49
 * @generated
50
 */
51
public class ItemTypeImpl extends EDataObjectImpl implements ItemType
52
{
53
  /**
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @generated
57
   */
58
  private static final long serialVersionUID = 1L;
59
60
  /**
61
   * The default value of the '{@link #getProductName() <em>Product Name</em>}' attribute.
62
   * <!-- begin-user-doc -->
63
   * <!-- end-user-doc -->
64
   * @see #getProductName()
65
   * @generated
66
   * @ordered
67
   */
68
  protected static final String PRODUCT_NAME_EDEFAULT = null;
69
70
  /**
71
   * The cached value of the '{@link #getProductName() <em>Product Name</em>}' attribute.
72
   * <!-- begin-user-doc -->
73
   * <!-- end-user-doc -->
74
   * @see #getProductName()
75
   * @generated
76
   * @ordered
77
   */
78
  protected String productName = PRODUCT_NAME_EDEFAULT;
79
80
  /**
81
   * The default value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @see #getQuantity()
85
   * @generated
86
   * @ordered
87
   */
88
  protected static final BigInteger QUANTITY_EDEFAULT = null;
89
90
  /**
91
   * The cached value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @see #getQuantity()
95
   * @generated
96
   * @ordered
97
   */
98
  protected BigInteger quantity = QUANTITY_EDEFAULT;
99
100
  /**
101
   * The default value of the '{@link #getUSPrice() <em>US Price</em>}' attribute.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @see #getUSPrice()
105
   * @generated
106
   * @ordered
107
   */
108
  protected static final BigDecimal US_PRICE_EDEFAULT = null;
109
110
  /**
111
   * The cached value of the '{@link #getUSPrice() <em>US Price</em>}' attribute.
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @see #getUSPrice()
115
   * @generated
116
   * @ordered
117
   */
118
  protected BigDecimal uSPrice = US_PRICE_EDEFAULT;
119
120
  /**
121
   * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @see #getComment()
125
   * @generated
126
   * @ordered
127
   */
128
  protected static final String COMMENT_EDEFAULT = null;
129
130
  /**
131
   * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
132
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
134
   * @see #getComment()
135
   * @generated
136
   * @ordered
137
   */
138
  protected String comment = COMMENT_EDEFAULT;
139
140
  /**
141
   * The default value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute.
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @see #getShipDate()
145
   * @generated
146
   * @ordered
147
   */
148
  protected static final XMLGregorianCalendar SHIP_DATE_EDEFAULT = null;
149
150
  /**
151
   * The cached value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute.
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @see #getShipDate()
155
   * @generated
156
   * @ordered
157
   */
158
  protected XMLGregorianCalendar shipDate = SHIP_DATE_EDEFAULT;
159
160
  /**
161
   * The default value of the '{@link #getPartNum() <em>Part Num</em>}' attribute.
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @see #getPartNum()
165
   * @generated
166
   * @ordered
167
   */
168
  protected static final String PART_NUM_EDEFAULT = null;
169
170
  /**
171
   * The cached value of the '{@link #getPartNum() <em>Part Num</em>}' attribute.
172
   * <!-- begin-user-doc -->
173
   * <!-- end-user-doc -->
174
   * @see #getPartNum()
175
   * @generated
176
   * @ordered
177
   */
178
  protected String partNum = PART_NUM_EDEFAULT;
179
180
  /**
181
   * <!-- begin-user-doc -->
182
   * <!-- end-user-doc -->
183
   * @generated
184
   */
185
  protected ItemTypeImpl()
186
  {
187
    super();
188
  }
189
190
  /**
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   */
195
  @Override
196
  protected EClass eStaticClass()
197
  {
198
    return IPOPackageImpl.Literals.ITEM_TYPE;
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  public String getProductName()
207
  {
208
    return productName;
209
  }
210
211
  /**
212
   * <!-- begin-user-doc -->
213
   * <!-- end-user-doc -->
214
   * @generated
215
   */
216
  public void setProductName(String newProductName)
217
  {
218
    String oldProductName = productName;
219
    productName = newProductName;
220
    if (eNotificationRequired())
221
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME, oldProductName, productName));
222
  }
223
224
  /**
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  public BigInteger getQuantity()
230
  {
231
    return quantity;
232
  }
233
234
  /**
235
   * <!-- begin-user-doc -->
236
   * <!-- end-user-doc -->
237
   * @generated
238
   */
239
  public void setQuantity(BigInteger newQuantity)
240
  {
241
    BigInteger oldQuantity = quantity;
242
    quantity = newQuantity;
243
    if (eNotificationRequired())
244
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__QUANTITY, oldQuantity, quantity));
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public BigDecimal getUSPrice()
253
  {
254
    return uSPrice;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public void setUSPrice(BigDecimal newUSPrice)
263
  {
264
    BigDecimal oldUSPrice = uSPrice;
265
    uSPrice = newUSPrice;
266
    if (eNotificationRequired())
267
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__US_PRICE, oldUSPrice, uSPrice));
268
  }
269
270
  /**
271
   * <!-- begin-user-doc -->
272
   * <!-- end-user-doc -->
273
   * @generated
274
   */
275
  public String getComment()
276
  {
277
    return comment;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public void setComment(String newComment)
286
  {
287
    String oldComment = comment;
288
    comment = newComment;
289
    if (eNotificationRequired())
290
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__COMMENT, oldComment, comment));
291
  }
292
293
  /**
294
   * <!-- begin-user-doc -->
295
   * <!-- end-user-doc -->
296
   * @generated
297
   */
298
  public XMLGregorianCalendar getShipDate()
299
  {
300
    return shipDate;
301
  }
302
303
  /**
304
   * <!-- begin-user-doc -->
305
   * <!-- end-user-doc -->
306
   * @generated
307
   */
308
  public void setShipDate(XMLGregorianCalendar newShipDate)
309
  {
310
    XMLGregorianCalendar oldShipDate = shipDate;
311
    shipDate = newShipDate;
312
    if (eNotificationRequired())
313
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__SHIP_DATE, oldShipDate, shipDate));
314
  }
315
316
  /**
317
   * <!-- begin-user-doc -->
318
   * <!-- end-user-doc -->
319
   * @generated
320
   */
321
  public String getPartNum()
322
  {
323
    return partNum;
324
  }
325
326
  /**
327
   * <!-- begin-user-doc -->
328
   * <!-- end-user-doc -->
329
   * @generated
330
   */
331
  public void setPartNum(String newPartNum)
332
  {
333
    String oldPartNum = partNum;
334
    partNum = newPartNum;
335
    if (eNotificationRequired())
336
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PART_NUM, oldPartNum, partNum));
337
  }
338
339
  /**
340
   * <!-- begin-user-doc -->
341
   * <!-- end-user-doc -->
342
   * @generated
343
   */
344
  @Override
345
  public Object eGet(int featureID, boolean resolve, boolean coreType)
346
  {
347
    switch (featureID)
348
    {
349
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
350
        return getProductName();
351
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
352
        return getQuantity();
353
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
354
        return getUSPrice();
355
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
356
        return getComment();
357
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
358
        return getShipDate();
359
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
360
        return getPartNum();
361
    }
362
    return super.eGet(featureID, resolve, coreType);
363
  }
364
365
  /**
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   */
370
  @Override
371
  public void eSet(int featureID, Object newValue)
372
  {
373
    switch (featureID)
374
    {
375
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
376
        setProductName((String)newValue);
377
        return;
378
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
379
        setQuantity((BigInteger)newValue);
380
        return;
381
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
382
        setUSPrice((BigDecimal)newValue);
383
        return;
384
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
385
        setComment((String)newValue);
386
        return;
387
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
388
        setShipDate((XMLGregorianCalendar)newValue);
389
        return;
390
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
391
        setPartNum((String)newValue);
392
        return;
393
    }
394
    super.eSet(featureID, newValue);
395
  }
396
397
  /**
398
   * <!-- begin-user-doc -->
399
   * <!-- end-user-doc -->
400
   * @generated
401
   */
402
  @Override
403
  public void eUnset(int featureID)
404
  {
405
    switch (featureID)
406
    {
407
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
408
        setProductName(PRODUCT_NAME_EDEFAULT);
409
        return;
410
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
411
        setQuantity(QUANTITY_EDEFAULT);
412
        return;
413
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
414
        setUSPrice(US_PRICE_EDEFAULT);
415
        return;
416
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
417
        setComment(COMMENT_EDEFAULT);
418
        return;
419
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
420
        setShipDate(SHIP_DATE_EDEFAULT);
421
        return;
422
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
423
        setPartNum(PART_NUM_EDEFAULT);
424
        return;
425
    }
426
    super.eUnset(featureID);
427
  }
428
429
  /**
430
   * <!-- begin-user-doc -->
431
   * <!-- end-user-doc -->
432
   * @generated
433
   */
434
  @Override
435
  public boolean eIsSet(int featureID)
436
  {
437
    switch (featureID)
438
    {
439
      case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME:
440
        return PRODUCT_NAME_EDEFAULT == null ? productName != null : !PRODUCT_NAME_EDEFAULT.equals(productName);
441
      case IPOPackageImpl.ITEM_TYPE__QUANTITY:
442
        return QUANTITY_EDEFAULT == null ? quantity != null : !QUANTITY_EDEFAULT.equals(quantity);
443
      case IPOPackageImpl.ITEM_TYPE__US_PRICE:
444
        return US_PRICE_EDEFAULT == null ? uSPrice != null : !US_PRICE_EDEFAULT.equals(uSPrice);
445
      case IPOPackageImpl.ITEM_TYPE__COMMENT:
446
        return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
447
      case IPOPackageImpl.ITEM_TYPE__SHIP_DATE:
448
        return SHIP_DATE_EDEFAULT == null ? shipDate != null : !SHIP_DATE_EDEFAULT.equals(shipDate);
449
      case IPOPackageImpl.ITEM_TYPE__PART_NUM:
450
        return PART_NUM_EDEFAULT == null ? partNum != null : !PART_NUM_EDEFAULT.equals(partNum);
451
    }
452
    return super.eIsSet(featureID);
453
  }
454
455
  /**
456
   * <!-- begin-user-doc -->
457
   * <!-- end-user-doc -->
458
   * @generated
459
   */
460
  @Override
461
  public String toString()
462
  {
463
    if (eIsProxy()) return super.toString();
464
465
    StringBuffer result = new StringBuffer(super.toString());
466
    result.append(" (productName: ");
467
    result.append(productName);
468
    result.append(", quantity: ");
469
    result.append(quantity);
470
    result.append(", uSPrice: ");
471
    result.append(uSPrice);
472
    result.append(", comment: ");
473
    result.append(comment);
474
    result.append(", shipDate: ");
475
    result.append(shipDate);
476
    result.append(", partNum: ");
477
    result.append(partNum);
478
    result.append(')');
479
    return result.toString();
480
  }
481
482
} //ItemTypeImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java (-310 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: AddressImpl.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.ipo.Address;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Address</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getName <em>Name</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getStreet <em>Street</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getCity <em>City</em>}</li>
39
 * </ul>
40
 * </p>
41
 *
42
 * @generated
43
 */
44
public class AddressImpl extends EDataObjectImpl implements Address
45
{
46
  /**
47
   * <!-- begin-user-doc -->
48
   * <!-- end-user-doc -->
49
   * @generated
50
   */
51
  private static final long serialVersionUID = 1L;
52
53
  /**
54
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
55
   * <!-- begin-user-doc -->
56
   * <!-- end-user-doc -->
57
   * @see #getName()
58
   * @generated
59
   * @ordered
60
   */
61
  protected static final String NAME_EDEFAULT = null;
62
63
  /**
64
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @see #getName()
68
   * @generated
69
   * @ordered
70
   */
71
  protected String name = NAME_EDEFAULT;
72
73
  /**
74
   * The default value of the '{@link #getStreet() <em>Street</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #getStreet()
78
   * @generated
79
   * @ordered
80
   */
81
  protected static final String STREET_EDEFAULT = null;
82
83
  /**
84
   * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getStreet()
88
   * @generated
89
   * @ordered
90
   */
91
  protected String street = STREET_EDEFAULT;
92
93
  /**
94
   * The default value of the '{@link #getCity() <em>City</em>}' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #getCity()
98
   * @generated
99
   * @ordered
100
   */
101
  protected static final String CITY_EDEFAULT = null;
102
103
  /**
104
   * The cached value of the '{@link #getCity() <em>City</em>}' attribute.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #getCity()
108
   * @generated
109
   * @ordered
110
   */
111
  protected String city = CITY_EDEFAULT;
112
113
  /**
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @generated
117
   */
118
  protected AddressImpl()
119
  {
120
    super();
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  @Override
129
  protected EClass eStaticClass()
130
  {
131
    return IPOPackageImpl.Literals.ADDRESS;
132
  }
133
134
  /**
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @generated
138
   */
139
  public String getName()
140
  {
141
    return name;
142
  }
143
144
  /**
145
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
147
   * @generated
148
   */
149
  public void setName(String newName)
150
  {
151
    String oldName = name;
152
    name = newName;
153
    if (eNotificationRequired())
154
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__NAME, oldName, name));
155
  }
156
157
  /**
158
   * <!-- begin-user-doc -->
159
   * <!-- end-user-doc -->
160
   * @generated
161
   */
162
  public String getStreet()
163
  {
164
    return street;
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  public void setStreet(String newStreet)
173
  {
174
    String oldStreet = street;
175
    street = newStreet;
176
    if (eNotificationRequired())
177
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__STREET, oldStreet, street));
178
  }
179
180
  /**
181
   * <!-- begin-user-doc -->
182
   * <!-- end-user-doc -->
183
   * @generated
184
   */
185
  public String getCity()
186
  {
187
    return city;
188
  }
189
190
  /**
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   */
195
  public void setCity(String newCity)
196
  {
197
    String oldCity = city;
198
    city = newCity;
199
    if (eNotificationRequired())
200
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__CITY, oldCity, city));
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  @Override
209
  public Object eGet(int featureID, boolean resolve, boolean coreType)
210
  {
211
    switch (featureID)
212
    {
213
      case IPOPackageImpl.ADDRESS__NAME:
214
        return getName();
215
      case IPOPackageImpl.ADDRESS__STREET:
216
        return getStreet();
217
      case IPOPackageImpl.ADDRESS__CITY:
218
        return getCity();
219
    }
220
    return super.eGet(featureID, resolve, coreType);
221
  }
222
223
  /**
224
   * <!-- begin-user-doc -->
225
   * <!-- end-user-doc -->
226
   * @generated
227
   */
228
  @Override
229
  public void eSet(int featureID, Object newValue)
230
  {
231
    switch (featureID)
232
    {
233
      case IPOPackageImpl.ADDRESS__NAME:
234
        setName((String)newValue);
235
        return;
236
      case IPOPackageImpl.ADDRESS__STREET:
237
        setStreet((String)newValue);
238
        return;
239
      case IPOPackageImpl.ADDRESS__CITY:
240
        setCity((String)newValue);
241
        return;
242
    }
243
    super.eSet(featureID, newValue);
244
  }
245
246
  /**
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @generated
250
   */
251
  @Override
252
  public void eUnset(int featureID)
253
  {
254
    switch (featureID)
255
    {
256
      case IPOPackageImpl.ADDRESS__NAME:
257
        setName(NAME_EDEFAULT);
258
        return;
259
      case IPOPackageImpl.ADDRESS__STREET:
260
        setStreet(STREET_EDEFAULT);
261
        return;
262
      case IPOPackageImpl.ADDRESS__CITY:
263
        setCity(CITY_EDEFAULT);
264
        return;
265
    }
266
    super.eUnset(featureID);
267
  }
268
269
  /**
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @generated
273
   */
274
  @Override
275
  public boolean eIsSet(int featureID)
276
  {
277
    switch (featureID)
278
    {
279
      case IPOPackageImpl.ADDRESS__NAME:
280
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
281
      case IPOPackageImpl.ADDRESS__STREET:
282
        return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street);
283
      case IPOPackageImpl.ADDRESS__CITY:
284
        return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city);
285
    }
286
    return super.eIsSet(featureID);
287
  }
288
289
  /**
290
   * <!-- begin-user-doc -->
291
   * <!-- end-user-doc -->
292
   * @generated
293
   */
294
  @Override
295
  public String toString()
296
  {
297
    if (eIsProxy()) return super.toString();
298
299
    StringBuffer result = new StringBuffer(super.toString());
300
    result.append(" (name: ");
301
    result.append(name);
302
    result.append(", street: ");
303
    result.append(street);
304
    result.append(", city: ");
305
    result.append(city);
306
    result.append(')');
307
    return result.toString();
308
  }
309
310
} //AddressImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/USAddressImpl.java (-291 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: USAddressImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigInteger;
20
21
import org.eclipse.emf.common.notify.Notification;
22
23
import org.eclipse.emf.ecore.EClass;
24
25
import org.eclipse.emf.ecore.impl.ENotificationImpl;
26
27
import org.eclipse.emf.test.models.ipo.USAddress;
28
import org.eclipse.emf.test.models.ipo.USState;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model object '<em><b>US Address</b></em>'.
33
 * <!-- end-user-doc -->
34
 * <p>
35
 * The following features are implemented:
36
 * <ul>
37
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl#getState <em>State</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl#getZip <em>Zip</em>}</li>
39
 * </ul>
40
 * </p>
41
 *
42
 * @generated
43
 */
44
public class USAddressImpl extends AddressImpl implements USAddress
45
{
46
  /**
47
   * <!-- begin-user-doc -->
48
   * <!-- end-user-doc -->
49
   * @generated
50
   */
51
  private static final long serialVersionUID = 1L;
52
53
  /**
54
   * The default value of the '{@link #getState() <em>State</em>}' attribute.
55
   * <!-- begin-user-doc -->
56
   * <!-- end-user-doc -->
57
   * @see #getState()
58
   * @generated
59
   * @ordered
60
   */
61
  protected static final USState STATE_EDEFAULT = USState.AK;
62
63
  /**
64
   * The cached value of the '{@link #getState() <em>State</em>}' attribute.
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @see #getState()
68
   * @generated
69
   * @ordered
70
   */
71
  protected USState state = STATE_EDEFAULT;
72
73
  /**
74
   * This is true if the State attribute has been set.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   * @ordered
79
   */
80
  protected boolean stateESet;
81
82
  /**
83
   * The default value of the '{@link #getZip() <em>Zip</em>}' attribute.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @see #getZip()
87
   * @generated
88
   * @ordered
89
   */
90
  protected static final BigInteger ZIP_EDEFAULT = null;
91
92
  /**
93
   * The cached value of the '{@link #getZip() <em>Zip</em>}' attribute.
94
   * <!-- begin-user-doc -->
95
   * <!-- end-user-doc -->
96
   * @see #getZip()
97
   * @generated
98
   * @ordered
99
   */
100
  protected BigInteger zip = ZIP_EDEFAULT;
101
102
  /**
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @generated
106
   */
107
  protected USAddressImpl()
108
  {
109
    super();
110
  }
111
112
  /**
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   */
117
  @Override
118
  protected EClass eStaticClass()
119
  {
120
    return IPOPackageImpl.Literals.US_ADDRESS;
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  public USState getState()
129
  {
130
    return state;
131
  }
132
133
  /**
134
   * <!-- begin-user-doc -->
135
   * <!-- end-user-doc -->
136
   * @generated
137
   */
138
  public void setState(USState newState)
139
  {
140
    USState oldState = state;
141
    state = newState == null ? STATE_EDEFAULT : newState;
142
    boolean oldStateESet = stateESet;
143
    stateESet = true;
144
    if (eNotificationRequired())
145
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.US_ADDRESS__STATE, oldState, state, !oldStateESet));
146
  }
147
148
  /**
149
   * <!-- begin-user-doc -->
150
   * <!-- end-user-doc -->
151
   * @generated
152
   */
153
  public void unsetState()
154
  {
155
    USState oldState = state;
156
    boolean oldStateESet = stateESet;
157
    state = STATE_EDEFAULT;
158
    stateESet = false;
159
    if (eNotificationRequired())
160
      eNotify(new ENotificationImpl(this, Notification.UNSET, IPOPackageImpl.US_ADDRESS__STATE, oldState, STATE_EDEFAULT, oldStateESet));
161
  }
162
163
  /**
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   */
168
  public boolean isSetState()
169
  {
170
    return stateESet;
171
  }
172
173
  /**
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   */
178
  public BigInteger getZip()
179
  {
180
    return zip;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public void setZip(BigInteger newZip)
189
  {
190
    BigInteger oldZip = zip;
191
    zip = newZip;
192
    if (eNotificationRequired())
193
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.US_ADDRESS__ZIP, oldZip, zip));
194
  }
195
196
  /**
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  @Override
202
  public Object eGet(int featureID, boolean resolve, boolean coreType)
203
  {
204
    switch (featureID)
205
    {
206
      case IPOPackageImpl.US_ADDRESS__STATE:
207
        return getState();
208
      case IPOPackageImpl.US_ADDRESS__ZIP:
209
        return getZip();
210
    }
211
    return super.eGet(featureID, resolve, coreType);
212
  }
213
214
  /**
215
   * <!-- begin-user-doc -->
216
   * <!-- end-user-doc -->
217
   * @generated
218
   */
219
  @Override
220
  public void eSet(int featureID, Object newValue)
221
  {
222
    switch (featureID)
223
    {
224
      case IPOPackageImpl.US_ADDRESS__STATE:
225
        setState((USState)newValue);
226
        return;
227
      case IPOPackageImpl.US_ADDRESS__ZIP:
228
        setZip((BigInteger)newValue);
229
        return;
230
    }
231
    super.eSet(featureID, newValue);
232
  }
233
234
  /**
235
   * <!-- begin-user-doc -->
236
   * <!-- end-user-doc -->
237
   * @generated
238
   */
239
  @Override
240
  public void eUnset(int featureID)
241
  {
242
    switch (featureID)
243
    {
244
      case IPOPackageImpl.US_ADDRESS__STATE:
245
        unsetState();
246
        return;
247
      case IPOPackageImpl.US_ADDRESS__ZIP:
248
        setZip(ZIP_EDEFAULT);
249
        return;
250
    }
251
    super.eUnset(featureID);
252
  }
253
254
  /**
255
   * <!-- begin-user-doc -->
256
   * <!-- end-user-doc -->
257
   * @generated
258
   */
259
  @Override
260
  public boolean eIsSet(int featureID)
261
  {
262
    switch (featureID)
263
    {
264
      case IPOPackageImpl.US_ADDRESS__STATE:
265
        return isSetState();
266
      case IPOPackageImpl.US_ADDRESS__ZIP:
267
        return ZIP_EDEFAULT == null ? zip != null : !ZIP_EDEFAULT.equals(zip);
268
    }
269
    return super.eIsSet(featureID);
270
  }
271
272
  /**
273
   * <!-- begin-user-doc -->
274
   * <!-- end-user-doc -->
275
   * @generated
276
   */
277
  @Override
278
  public String toString()
279
  {
280
    if (eIsProxy()) return super.toString();
281
282
    StringBuffer result = new StringBuffer(super.toString());
283
    result.append(" (state: ");
284
    if (stateESet) result.append(state); else result.append("<unset>");
285
    result.append(", zip: ");
286
    result.append(zip);
287
    result.append(')');
288
    return result.toString();
289
  }
290
291
} //USAddressImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/DocumentRootImpl.java (-374 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EMap;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.EStructuralFeature;
29
import org.eclipse.emf.ecore.EcorePackage;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
37
import org.eclipse.emf.ecore.sdo.util.ESequence;
38
39
import org.eclipse.emf.ecore.util.BasicFeatureMap;
40
import org.eclipse.emf.ecore.util.EcoreEMap;
41
import org.eclipse.emf.ecore.util.FeatureMap;
42
import org.eclipse.emf.ecore.util.InternalEList;
43
44
import org.eclipse.emf.test.models.ipo.DocumentRoot;
45
import org.eclipse.emf.test.models.ipo.PurchaseOrderType;
46
47
/**
48
 * <!-- begin-user-doc -->
49
 * An implementation of the model object '<em><b>Document Root</b></em>'.
50
 * <!-- end-user-doc -->
51
 * <p>
52
 * The following features are implemented:
53
 * <ul>
54
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
55
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
56
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getComment <em>Comment</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getPurchaseOrder <em>Purchase Order</em>}</li>
59
 * </ul>
60
 * </p>
61
 *
62
 * @generated
63
 */
64
public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot
65
{
66
  /**
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  private static final long serialVersionUID = 1L;
72
73
  /**
74
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #getMixed()
78
   * @generated
79
   * @ordered
80
   */
81
  protected ESequence mixed;
82
83
  /**
84
   * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getXMLNSPrefixMap()
88
   * @generated
89
   * @ordered
90
   */
91
  protected EMap<String, String> xMLNSPrefixMap;
92
93
  /**
94
   * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #getXSISchemaLocation()
98
   * @generated
99
   * @ordered
100
   */
101
  protected EMap<String, String> xSISchemaLocation;
102
103
  /**
104
   * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #getComment()
108
   * @generated
109
   * @ordered
110
   */
111
  protected static final String COMMENT_EDEFAULT = null;
112
113
  /**
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @generated
117
   */
118
  protected DocumentRootImpl()
119
  {
120
    super();
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  @Override
129
  protected EClass eStaticClass()
130
  {
131
    return IPOPackageImpl.Literals.DOCUMENT_ROOT;
132
  }
133
134
  /**
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @generated
138
   */
139
  public Sequence getMixed()
140
  {
141
    if (mixed == null)
142
    {
143
      mixed = new BasicESequence(new BasicFeatureMap(this, IPOPackageImpl.DOCUMENT_ROOT__MIXED));
144
    }
145
    return mixed;
146
  }
147
148
  /**
149
   * <!-- begin-user-doc -->
150
   * <!-- end-user-doc -->
151
   * @generated
152
   */
153
  public Map<String, String> getXMLNSPrefixMap()
154
  {
155
    if (xMLNSPrefixMap == null)
156
    {
157
      xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
158
    }
159
    return xMLNSPrefixMap.map();
160
  }
161
162
  /**
163
   * <!-- begin-user-doc -->
164
   * <!-- end-user-doc -->
165
   * @generated
166
   */
167
  public Map<String, String> getXSISchemaLocation()
168
  {
169
    if (xSISchemaLocation == null)
170
    {
171
      xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
172
    }
173
    return xSISchemaLocation.map();
174
  }
175
176
  /**
177
   * <!-- begin-user-doc -->
178
   * <!-- end-user-doc -->
179
   * @generated
180
   */
181
  public String getComment()
182
  {
183
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(IPOPackageImpl.Literals.DOCUMENT_ROOT__COMMENT, true);
184
  }
185
186
  /**
187
   * <!-- begin-user-doc -->
188
   * <!-- end-user-doc -->
189
   * @generated
190
   */
191
  public void setComment(String newComment)
192
  {
193
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(IPOPackageImpl.Literals.DOCUMENT_ROOT__COMMENT, newComment);
194
  }
195
196
  /**
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  public PurchaseOrderType getPurchaseOrder()
202
  {
203
    return (PurchaseOrderType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, true);
204
  }
205
206
  /**
207
   * <!-- begin-user-doc -->
208
   * <!-- end-user-doc -->
209
   * @generated
210
   */
211
  public NotificationChain basicSetPurchaseOrder(PurchaseOrderType newPurchaseOrder, NotificationChain msgs)
212
  {
213
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, newPurchaseOrder, msgs);
214
  }
215
216
  /**
217
   * <!-- begin-user-doc -->
218
   * <!-- end-user-doc -->
219
   * @generated
220
   */
221
  public void setPurchaseOrder(PurchaseOrderType newPurchaseOrder)
222
  {
223
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, newPurchaseOrder);
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  @Override
232
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
233
  {
234
    switch (featureID)
235
    {
236
      case IPOPackageImpl.DOCUMENT_ROOT__MIXED:
237
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
238
      case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
239
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs);
240
      case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
241
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs);
242
      case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER:
243
        return basicSetPurchaseOrder(null, msgs);
244
    }
245
    return super.eInverseRemove(otherEnd, featureID, msgs);
246
  }
247
248
  /**
249
   * <!-- begin-user-doc -->
250
   * <!-- end-user-doc -->
251
   * @generated
252
   */
253
  @Override
254
  public Object eGet(int featureID, boolean resolve, boolean coreType)
255
  {
256
    switch (featureID)
257
    {
258
      case IPOPackageImpl.DOCUMENT_ROOT__MIXED:
259
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
260
        return getMixed();
261
      case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
262
        if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap();
263
        else return getXMLNSPrefixMap();
264
      case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
265
        if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap();
266
        else return getXSISchemaLocation();
267
      case IPOPackageImpl.DOCUMENT_ROOT__COMMENT:
268
        return getComment();
269
      case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER:
270
        return getPurchaseOrder();
271
    }
272
    return super.eGet(featureID, resolve, coreType);
273
  }
274
275
  /**
276
   * <!-- begin-user-doc -->
277
   * <!-- end-user-doc -->
278
   * @generated
279
   */
280
  @Override
281
  public void eSet(int featureID, Object newValue)
282
  {
283
    switch (featureID)
284
    {
285
      case IPOPackageImpl.DOCUMENT_ROOT__MIXED:
286
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
287
        return;
288
      case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
289
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue);
290
        return;
291
      case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
292
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue);
293
        return;
294
      case IPOPackageImpl.DOCUMENT_ROOT__COMMENT:
295
        setComment((String)newValue);
296
        return;
297
      case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER:
298
        setPurchaseOrder((PurchaseOrderType)newValue);
299
        return;
300
    }
301
    super.eSet(featureID, newValue);
302
  }
303
304
  /**
305
   * <!-- begin-user-doc -->
306
   * <!-- end-user-doc -->
307
   * @generated
308
   */
309
  @Override
310
  public void eUnset(int featureID)
311
  {
312
    switch (featureID)
313
    {
314
      case IPOPackageImpl.DOCUMENT_ROOT__MIXED:
315
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
316
        return;
317
      case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
318
        getXMLNSPrefixMap().clear();
319
        return;
320
      case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
321
        getXSISchemaLocation().clear();
322
        return;
323
      case IPOPackageImpl.DOCUMENT_ROOT__COMMENT:
324
        setComment(COMMENT_EDEFAULT);
325
        return;
326
      case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER:
327
        setPurchaseOrder((PurchaseOrderType)null);
328
        return;
329
    }
330
    super.eUnset(featureID);
331
  }
332
333
  /**
334
   * <!-- begin-user-doc -->
335
   * <!-- end-user-doc -->
336
   * @generated
337
   */
338
  @Override
339
  public boolean eIsSet(int featureID)
340
  {
341
    switch (featureID)
342
    {
343
      case IPOPackageImpl.DOCUMENT_ROOT__MIXED:
344
        return mixed != null && !mixed.featureMap().isEmpty();
345
      case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
346
        return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
347
      case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
348
        return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
349
      case IPOPackageImpl.DOCUMENT_ROOT__COMMENT:
350
        return COMMENT_EDEFAULT == null ? getComment() != null : !COMMENT_EDEFAULT.equals(getComment());
351
      case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER:
352
        return getPurchaseOrder() != null;
353
    }
354
    return super.eIsSet(featureID);
355
  }
356
357
  /**
358
   * <!-- begin-user-doc -->
359
   * <!-- end-user-doc -->
360
   * @generated
361
   */
362
  @Override
363
  public String toString()
364
  {
365
    if (eIsProxy()) return super.toString();
366
367
    StringBuffer result = new StringBuffer(super.toString());
368
    result.append(" (mixed: ");
369
    result.append(mixed);
370
    result.append(')');
371
    return result.toString();
372
  }
373
374
} //DocumentRootImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/IPOPackageImpl.java (-2084 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOPackageImpl.java,v 1.4 2007/06/15 21:22:18 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigInteger;
20
21
import org.eclipse.emf.ecore.EAttribute;
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EDataType;
24
import org.eclipse.emf.ecore.EEnum;
25
import org.eclipse.emf.ecore.EFactory;
26
import org.eclipse.emf.ecore.EPackage;
27
import org.eclipse.emf.ecore.EReference;
28
import org.eclipse.emf.ecore.EValidator;
29
30
import org.eclipse.emf.ecore.impl.EPackageImpl;
31
32
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
33
34
import org.eclipse.emf.test.models.ipo.Address;
35
import org.eclipse.emf.test.models.ipo.DocumentRoot;
36
import org.eclipse.emf.test.models.ipo.IPOFactory;
37
import org.eclipse.emf.test.models.ipo.ItemType;
38
import org.eclipse.emf.test.models.ipo.Items;
39
import org.eclipse.emf.test.models.ipo.PurchaseOrderType;
40
import org.eclipse.emf.test.models.ipo.UKAddress;
41
import org.eclipse.emf.test.models.ipo.USAddress;
42
import org.eclipse.emf.test.models.ipo.USState;
43
44
import org.eclipse.emf.test.models.ipo.util.IPOValidator;
45
46
/**
47
 * <!-- begin-user-doc -->
48
 * The <b>Package</b> for the model.
49
 * It contains accessors for the meta objects to represent
50
 * <ul>
51
 *   <li>each class,</li>
52
 *   <li>each feature of each class,</li>
53
 *   <li>each enum,</li>
54
 *   <li>and each data type</li>
55
 * </ul>
56
 * <!-- end-user-doc -->
57
 * <!-- begin-model-doc -->
58
 * 
59
 *       International Purchase order schema for Example.com
60
 *       Copyright 2000 Example.com. All rights reserved.
61
 *     
62
 * <!-- end-model-doc -->
63
 * @see org.eclipse.emf.test.models.ipo.IPOFactory
64
 * @model kind="package"
65
 * @generated
66
 */
67
public class IPOPackageImpl extends EPackageImpl
68
{
69
  /**
70
   * The package name.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public static final String eNAME = "ipo";
76
77
  /**
78
   * The package namespace URI.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @generated
82
   */
83
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/IPO";
84
85
  /**
86
   * The package namespace name.
87
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
89
   * @generated
90
   */
91
  public static final String eNS_PREFIX = "ipo";
92
93
  /**
94
   * The singleton instance of the package.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @generated
98
   */
99
  public static final IPOPackageImpl eINSTANCE = org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl.init();
100
101
  /**
102
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl <em>Address</em>}' class.
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @see org.eclipse.emf.test.models.ipo.impl.AddressImpl
106
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getAddress()
107
   * @generated
108
   */
109
  public static final int ADDRESS = 0;
110
111
  /**
112
   * The feature id for the '<em><b>Name</b></em>' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   * @ordered
117
   */
118
  public static final int ADDRESS__NAME = 0;
119
120
  /**
121
   * The feature id for the '<em><b>Street</b></em>' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @generated
125
   * @ordered
126
   */
127
  public static final int ADDRESS__STREET = 1;
128
129
  /**
130
   * The feature id for the '<em><b>City</b></em>' attribute.
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   * @ordered
135
   */
136
  public static final int ADDRESS__CITY = 2;
137
138
  /**
139
   * The number of structural features of the '<em>Address</em>' class.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   * @ordered
144
   */
145
  public static final int ADDRESS_FEATURE_COUNT = 3;
146
147
  /**
148
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl <em>Document Root</em>}' class.
149
   * <!-- begin-user-doc -->
150
   * <!-- end-user-doc -->
151
   * @see org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl
152
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getDocumentRoot()
153
   * @generated
154
   */
155
  public static final int DOCUMENT_ROOT = 1;
156
157
  /**
158
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   * @ordered
163
   */
164
  public static final int DOCUMENT_ROOT__MIXED = 0;
165
166
  /**
167
   * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   * @ordered
172
   */
173
  public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
174
175
  /**
176
   * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
177
   * <!-- begin-user-doc -->
178
   * <!-- end-user-doc -->
179
   * @generated
180
   * @ordered
181
   */
182
  public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
183
184
  /**
185
   * The feature id for the '<em><b>Comment</b></em>' attribute.
186
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
188
   * @generated
189
   * @ordered
190
   */
191
  public static final int DOCUMENT_ROOT__COMMENT = 3;
192
193
  /**
194
   * The feature id for the '<em><b>Purchase Order</b></em>' containment reference.
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   * @ordered
199
   */
200
  public static final int DOCUMENT_ROOT__PURCHASE_ORDER = 4;
201
202
  /**
203
   * The number of structural features of the '<em>Document Root</em>' class.
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   * @ordered
208
   */
209
  public static final int DOCUMENT_ROOT_FEATURE_COUNT = 5;
210
211
  /**
212
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl <em>Items</em>}' class.
213
   * <!-- begin-user-doc -->
214
   * <!-- end-user-doc -->
215
   * @see org.eclipse.emf.test.models.ipo.impl.ItemsImpl
216
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItems()
217
   * @generated
218
   */
219
  public static final int ITEMS = 2;
220
221
  /**
222
   * The feature id for the '<em><b>Item</b></em>' containment reference list.
223
   * <!-- begin-user-doc -->
224
   * <!-- end-user-doc -->
225
   * @generated
226
   * @ordered
227
   */
228
  public static final int ITEMS__ITEM = 0;
229
230
  /**
231
   * The number of structural features of the '<em>Items</em>' class.
232
   * <!-- begin-user-doc -->
233
   * <!-- end-user-doc -->
234
   * @generated
235
   * @ordered
236
   */
237
  public static final int ITEMS_FEATURE_COUNT = 1;
238
239
  /**
240
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl <em>Item Type</em>}' class.
241
   * <!-- begin-user-doc -->
242
   * <!-- end-user-doc -->
243
   * @see org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl
244
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItemType()
245
   * @generated
246
   */
247
  public static final int ITEM_TYPE = 3;
248
249
  /**
250
   * The feature id for the '<em><b>Product Name</b></em>' attribute.
251
   * <!-- begin-user-doc -->
252
   * <!-- end-user-doc -->
253
   * @generated
254
   * @ordered
255
   */
256
  public static final int ITEM_TYPE__PRODUCT_NAME = 0;
257
258
  /**
259
   * The feature id for the '<em><b>Quantity</b></em>' attribute.
260
   * <!-- begin-user-doc -->
261
   * <!-- end-user-doc -->
262
   * @generated
263
   * @ordered
264
   */
265
  public static final int ITEM_TYPE__QUANTITY = 1;
266
267
  /**
268
   * The feature id for the '<em><b>US Price</b></em>' attribute.
269
   * <!-- begin-user-doc -->
270
   * <!-- end-user-doc -->
271
   * @generated
272
   * @ordered
273
   */
274
  public static final int ITEM_TYPE__US_PRICE = 2;
275
276
  /**
277
   * The feature id for the '<em><b>Comment</b></em>' attribute.
278
   * <!-- begin-user-doc -->
279
   * <!-- end-user-doc -->
280
   * @generated
281
   * @ordered
282
   */
283
  public static final int ITEM_TYPE__COMMENT = 3;
284
285
  /**
286
   * The feature id for the '<em><b>Ship Date</b></em>' attribute.
287
   * <!-- begin-user-doc -->
288
   * <!-- end-user-doc -->
289
   * @generated
290
   * @ordered
291
   */
292
  public static final int ITEM_TYPE__SHIP_DATE = 4;
293
294
  /**
295
   * The feature id for the '<em><b>Part Num</b></em>' attribute.
296
   * <!-- begin-user-doc -->
297
   * <!-- end-user-doc -->
298
   * @generated
299
   * @ordered
300
   */
301
  public static final int ITEM_TYPE__PART_NUM = 5;
302
303
  /**
304
   * The number of structural features of the '<em>Item Type</em>' class.
305
   * <!-- begin-user-doc -->
306
   * <!-- end-user-doc -->
307
   * @generated
308
   * @ordered
309
   */
310
  public static final int ITEM_TYPE_FEATURE_COUNT = 6;
311
312
  /**
313
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl <em>Purchase Order Type</em>}' class.
314
   * <!-- begin-user-doc -->
315
   * <!-- end-user-doc -->
316
   * @see org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl
317
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPurchaseOrderType()
318
   * @generated
319
   */
320
  public static final int PURCHASE_ORDER_TYPE = 4;
321
322
  /**
323
   * The feature id for the '<em><b>Ship To</b></em>' containment reference.
324
   * <!-- begin-user-doc -->
325
   * <!-- end-user-doc -->
326
   * @generated
327
   * @ordered
328
   */
329
  public static final int PURCHASE_ORDER_TYPE__SHIP_TO = 0;
330
331
  /**
332
   * The feature id for the '<em><b>Bill To</b></em>' containment reference.
333
   * <!-- begin-user-doc -->
334
   * <!-- end-user-doc -->
335
   * @generated
336
   * @ordered
337
   */
338
  public static final int PURCHASE_ORDER_TYPE__BILL_TO = 1;
339
340
  /**
341
   * The feature id for the '<em><b>Comment</b></em>' attribute.
342
   * <!-- begin-user-doc -->
343
   * <!-- end-user-doc -->
344
   * @generated
345
   * @ordered
346
   */
347
  public static final int PURCHASE_ORDER_TYPE__COMMENT = 2;
348
349
  /**
350
   * The feature id for the '<em><b>Items</b></em>' containment reference.
351
   * <!-- begin-user-doc -->
352
   * <!-- end-user-doc -->
353
   * @generated
354
   * @ordered
355
   */
356
  public static final int PURCHASE_ORDER_TYPE__ITEMS = 3;
357
358
  /**
359
   * The feature id for the '<em><b>Order Date</b></em>' attribute.
360
   * <!-- begin-user-doc -->
361
   * <!-- end-user-doc -->
362
   * @generated
363
   * @ordered
364
   */
365
  public static final int PURCHASE_ORDER_TYPE__ORDER_DATE = 4;
366
367
  /**
368
   * The number of structural features of the '<em>Purchase Order Type</em>' class.
369
   * <!-- begin-user-doc -->
370
   * <!-- end-user-doc -->
371
   * @generated
372
   * @ordered
373
   */
374
  public static final int PURCHASE_ORDER_TYPE_FEATURE_COUNT = 5;
375
376
  /**
377
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl <em>UK Address</em>}' class.
378
   * <!-- begin-user-doc -->
379
   * <!-- end-user-doc -->
380
   * @see org.eclipse.emf.test.models.ipo.impl.UKAddressImpl
381
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKAddress()
382
   * @generated
383
   */
384
  public static final int UK_ADDRESS = 5;
385
386
  /**
387
   * The feature id for the '<em><b>Name</b></em>' attribute.
388
   * <!-- begin-user-doc -->
389
   * <!-- end-user-doc -->
390
   * @generated
391
   * @ordered
392
   */
393
  public static final int UK_ADDRESS__NAME = ADDRESS__NAME;
394
395
  /**
396
   * The feature id for the '<em><b>Street</b></em>' attribute.
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @generated
400
   * @ordered
401
   */
402
  public static final int UK_ADDRESS__STREET = ADDRESS__STREET;
403
404
  /**
405
   * The feature id for the '<em><b>City</b></em>' attribute.
406
   * <!-- begin-user-doc -->
407
   * <!-- end-user-doc -->
408
   * @generated
409
   * @ordered
410
   */
411
  public static final int UK_ADDRESS__CITY = ADDRESS__CITY;
412
413
  /**
414
   * The feature id for the '<em><b>Postcode</b></em>' attribute.
415
   * <!-- begin-user-doc -->
416
   * <!-- end-user-doc -->
417
   * @generated
418
   * @ordered
419
   */
420
  public static final int UK_ADDRESS__POSTCODE = ADDRESS_FEATURE_COUNT + 0;
421
422
  /**
423
   * The feature id for the '<em><b>Export Code</b></em>' attribute.
424
   * <!-- begin-user-doc -->
425
   * <!-- end-user-doc -->
426
   * @generated
427
   * @ordered
428
   */
429
  public static final int UK_ADDRESS__EXPORT_CODE = ADDRESS_FEATURE_COUNT + 1;
430
431
  /**
432
   * The number of structural features of the '<em>UK Address</em>' class.
433
   * <!-- begin-user-doc -->
434
   * <!-- end-user-doc -->
435
   * @generated
436
   * @ordered
437
   */
438
  public static final int UK_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
439
440
  /**
441
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl <em>US Address</em>}' class.
442
   * <!-- begin-user-doc -->
443
   * <!-- end-user-doc -->
444
   * @see org.eclipse.emf.test.models.ipo.impl.USAddressImpl
445
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSAddress()
446
   * @generated
447
   */
448
  public static final int US_ADDRESS = 6;
449
450
  /**
451
   * The feature id for the '<em><b>Name</b></em>' attribute.
452
   * <!-- begin-user-doc -->
453
   * <!-- end-user-doc -->
454
   * @generated
455
   * @ordered
456
   */
457
  public static final int US_ADDRESS__NAME = ADDRESS__NAME;
458
459
  /**
460
   * The feature id for the '<em><b>Street</b></em>' attribute.
461
   * <!-- begin-user-doc -->
462
   * <!-- end-user-doc -->
463
   * @generated
464
   * @ordered
465
   */
466
  public static final int US_ADDRESS__STREET = ADDRESS__STREET;
467
468
  /**
469
   * The feature id for the '<em><b>City</b></em>' attribute.
470
   * <!-- begin-user-doc -->
471
   * <!-- end-user-doc -->
472
   * @generated
473
   * @ordered
474
   */
475
  public static final int US_ADDRESS__CITY = ADDRESS__CITY;
476
477
  /**
478
   * The feature id for the '<em><b>State</b></em>' attribute.
479
   * <!-- begin-user-doc -->
480
   * <!-- end-user-doc -->
481
   * @generated
482
   * @ordered
483
   */
484
  public static final int US_ADDRESS__STATE = ADDRESS_FEATURE_COUNT + 0;
485
486
  /**
487
   * The feature id for the '<em><b>Zip</b></em>' attribute.
488
   * <!-- begin-user-doc -->
489
   * <!-- end-user-doc -->
490
   * @generated
491
   * @ordered
492
   */
493
  public static final int US_ADDRESS__ZIP = ADDRESS_FEATURE_COUNT + 1;
494
495
  /**
496
   * The number of structural features of the '<em>US Address</em>' class.
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @generated
500
   * @ordered
501
   */
502
  public static final int US_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
503
504
  /**
505
   * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}' enum.
506
   * <!-- begin-user-doc -->
507
   * <!-- end-user-doc -->
508
   * @see org.eclipse.emf.test.models.ipo.USState
509
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState()
510
   * @generated
511
   */
512
  public static final int US_STATE = 7;
513
514
  /**
515
   * The meta object id for the '<em>Postcode</em>' data type.
516
   * <!-- begin-user-doc -->
517
   * <!-- end-user-doc -->
518
   * @see java.lang.String
519
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPostcode()
520
   * @generated
521
   */
522
  public static final int POSTCODE = 8;
523
524
  /**
525
   * The meta object id for the '<em>Quantity Type</em>' data type.
526
   * <!-- begin-user-doc -->
527
   * <!-- end-user-doc -->
528
   * @see java.math.BigInteger
529
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getQuantityType()
530
   * @generated
531
   */
532
  public static final int QUANTITY_TYPE = 9;
533
534
  /**
535
   * The meta object id for the '<em>SKU</em>' data type.
536
   * <!-- begin-user-doc -->
537
   * <!-- end-user-doc -->
538
   * @see java.lang.String
539
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getSKU()
540
   * @generated
541
   */
542
  public static final int SKU = 10;
543
544
  /**
545
   * The meta object id for the '<em>UK Postcode</em>' data type.
546
   * <!-- begin-user-doc -->
547
   * <!-- end-user-doc -->
548
   * @see java.lang.String
549
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKPostcode()
550
   * @generated
551
   */
552
  public static final int UK_POSTCODE = 11;
553
554
  /**
555
   * The meta object id for the '<em>US State Object</em>' data type.
556
   * <!-- begin-user-doc -->
557
   * <!-- end-user-doc -->
558
   * @see org.eclipse.emf.test.models.ipo.USState
559
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSStateObject()
560
   * @generated
561
   */
562
  public static final int US_STATE_OBJECT = 12;
563
564
  /**
565
   * <!-- begin-user-doc -->
566
   * <!-- end-user-doc -->
567
   * @generated
568
   */
569
  private EClass addressEClass = null;
570
571
  /**
572
   * <!-- begin-user-doc -->
573
   * <!-- end-user-doc -->
574
   * @generated
575
   */
576
  private EClass documentRootEClass = null;
577
578
  /**
579
   * <!-- begin-user-doc -->
580
   * <!-- end-user-doc -->
581
   * @generated
582
   */
583
  private EClass itemsEClass = null;
584
585
  /**
586
   * <!-- begin-user-doc -->
587
   * <!-- end-user-doc -->
588
   * @generated
589
   */
590
  private EClass itemTypeEClass = null;
591
592
  /**
593
   * <!-- begin-user-doc -->
594
   * <!-- end-user-doc -->
595
   * @generated
596
   */
597
  private EClass purchaseOrderTypeEClass = null;
598
599
  /**
600
   * <!-- begin-user-doc -->
601
   * <!-- end-user-doc -->
602
   * @generated
603
   */
604
  private EClass ukAddressEClass = null;
605
606
  /**
607
   * <!-- begin-user-doc -->
608
   * <!-- end-user-doc -->
609
   * @generated
610
   */
611
  private EClass usAddressEClass = null;
612
613
  /**
614
   * <!-- begin-user-doc -->
615
   * <!-- end-user-doc -->
616
   * @generated
617
   */
618
  private EEnum usStateEEnum = null;
619
620
  /**
621
   * <!-- begin-user-doc -->
622
   * <!-- end-user-doc -->
623
   * @generated
624
   */
625
  private EDataType postcodeEDataType = null;
626
627
  /**
628
   * <!-- begin-user-doc -->
629
   * <!-- end-user-doc -->
630
   * @generated
631
   */
632
  private EDataType quantityTypeEDataType = null;
633
634
  /**
635
   * <!-- begin-user-doc -->
636
   * <!-- end-user-doc -->
637
   * @generated
638
   */
639
  private EDataType skuEDataType = null;
640
641
  /**
642
   * <!-- begin-user-doc -->
643
   * <!-- end-user-doc -->
644
   * @generated
645
   */
646
  private EDataType ukPostcodeEDataType = null;
647
648
  /**
649
   * <!-- begin-user-doc -->
650
   * <!-- end-user-doc -->
651
   * @generated
652
   */
653
  private EDataType usStateObjectEDataType = null;
654
655
  /**
656
   * Creates an instance of the model <b>Package</b>, registered with
657
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
658
   * package URI value.
659
   * <p>Note: the correct way to create the package is via the static
660
   * factory method {@link #init init()}, which also performs
661
   * initialization of the package, or returns the registered package,
662
   * if one already exists.
663
   * <!-- begin-user-doc -->
664
   * <!-- end-user-doc -->
665
   * @see org.eclipse.emf.ecore.EPackage.Registry
666
   * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#eNS_URI
667
   * @see #init()
668
   * @generated
669
   */
670
  private IPOPackageImpl()
671
  {
672
    super(eNS_URI, ((EFactory)IPOFactory.INSTANCE));
673
  }
674
675
  /**
676
   * <!-- begin-user-doc -->
677
   * <!-- end-user-doc -->
678
   * @generated
679
   */
680
  private static boolean isInited = false;
681
682
  /**
683
   * Creates, registers, and initializes the <b>Package</b> for this
684
   * model, and for any others upon which it depends.  Simple
685
   * dependencies are satisfied by calling this method on all
686
   * dependent packages before doing anything else.  This method drives
687
   * initialization for interdependent packages directly, in parallel
688
   * with this package, itself.
689
   * <p>Of this package and its interdependencies, all packages which
690
   * have not yet been registered by their URI values are first created
691
   * and registered.  The packages are then initialized in two steps:
692
   * meta-model objects for all of the packages are created before any
693
   * are initialized, since one package's meta-model objects may refer to
694
   * those of another.
695
   * <p>Invocation of this method will not affect any packages that have
696
   * already been initialized.
697
   * <!-- begin-user-doc -->
698
   * <!-- end-user-doc -->
699
   * @see #eNS_URI
700
   * @see #createPackageContents()
701
   * @see #initializePackageContents()
702
   * @generated
703
   */
704
  public static IPOPackageImpl init()
705
  {
706
    if (isInited) return (IPOPackageImpl)EPackage.Registry.INSTANCE.getEPackage(IPOPackageImpl.eNS_URI);
707
708
    // Obtain or create and register package
709
    IPOPackageImpl theIPOPackageImpl = (IPOPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof IPOPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new IPOPackageImpl());
710
711
    isInited = true;
712
713
    // Initialize simple dependencies
714
    XMLTypePackage.eINSTANCE.eClass();
715
716
    // Create package meta-data objects
717
    theIPOPackageImpl.createPackageContents();
718
719
    // Initialize created meta-data
720
    theIPOPackageImpl.initializePackageContents();
721
722
    // Register package validator
723
    EValidator.Registry.INSTANCE.put
724
      (theIPOPackageImpl, 
725
       new EValidator.Descriptor()
726
       {
727
         public EValidator getEValidator()
728
         {
729
           return IPOValidator.INSTANCE;
730
         }
731
       });
732
733
    // Mark meta-data to indicate it can't be changed
734
    theIPOPackageImpl.freeze();
735
736
    return theIPOPackageImpl;
737
  }
738
739
740
  /**
741
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.Address <em>Address</em>}'.
742
   * <!-- begin-user-doc -->
743
   * <!-- end-user-doc -->
744
   * @return the meta object for class '<em>Address</em>'.
745
   * @see org.eclipse.emf.test.models.ipo.Address
746
   * @generated
747
   */
748
  public EClass getAddress()
749
  {
750
    return addressEClass;
751
  }
752
753
  /**
754
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}'.
755
   * <!-- begin-user-doc -->
756
   * <!-- end-user-doc -->
757
   * @return the meta object for the attribute '<em>Name</em>'.
758
   * @see org.eclipse.emf.test.models.ipo.Address#getName()
759
   * @see #getAddress()
760
   * @generated
761
   */
762
  public EAttribute getAddress_Name()
763
  {
764
    return (EAttribute)addressEClass.getEStructuralFeatures().get(0);
765
  }
766
767
  /**
768
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}'.
769
   * <!-- begin-user-doc -->
770
   * <!-- end-user-doc -->
771
   * @return the meta object for the attribute '<em>Street</em>'.
772
   * @see org.eclipse.emf.test.models.ipo.Address#getStreet()
773
   * @see #getAddress()
774
   * @generated
775
   */
776
  public EAttribute getAddress_Street()
777
  {
778
    return (EAttribute)addressEClass.getEStructuralFeatures().get(1);
779
  }
780
781
  /**
782
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}'.
783
   * <!-- begin-user-doc -->
784
   * <!-- end-user-doc -->
785
   * @return the meta object for the attribute '<em>City</em>'.
786
   * @see org.eclipse.emf.test.models.ipo.Address#getCity()
787
   * @see #getAddress()
788
   * @generated
789
   */
790
  public EAttribute getAddress_City()
791
  {
792
    return (EAttribute)addressEClass.getEStructuralFeatures().get(2);
793
  }
794
795
  /**
796
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.DocumentRoot <em>Document Root</em>}'.
797
   * <!-- begin-user-doc -->
798
   * <!-- end-user-doc -->
799
   * @return the meta object for class '<em>Document Root</em>'.
800
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot
801
   * @generated
802
   */
803
  public EClass getDocumentRoot()
804
  {
805
    return documentRootEClass;
806
  }
807
808
  /**
809
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed <em>Mixed</em>}'.
810
   * <!-- begin-user-doc -->
811
   * <!-- end-user-doc -->
812
   * @return the meta object for the attribute list '<em>Mixed</em>'.
813
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed()
814
   * @see #getDocumentRoot()
815
   * @generated
816
   */
817
  public EAttribute getDocumentRoot_Mixed()
818
  {
819
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
820
  }
821
822
  /**
823
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
824
   * <!-- begin-user-doc -->
825
   * <!-- end-user-doc -->
826
   * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
827
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap()
828
   * @see #getDocumentRoot()
829
   * @generated
830
   */
831
  public EReference getDocumentRoot_XMLNSPrefixMap()
832
  {
833
    return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
834
  }
835
836
  /**
837
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
838
   * <!-- begin-user-doc -->
839
   * <!-- end-user-doc -->
840
   * @return the meta object for the map '<em>XSI Schema Location</em>'.
841
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation()
842
   * @see #getDocumentRoot()
843
   * @generated
844
   */
845
  public EReference getDocumentRoot_XSISchemaLocation()
846
  {
847
    return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
848
  }
849
850
  /**
851
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}'.
852
   * <!-- begin-user-doc -->
853
   * <!-- end-user-doc -->
854
   * @return the meta object for the attribute '<em>Comment</em>'.
855
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getComment()
856
   * @see #getDocumentRoot()
857
   * @generated
858
   */
859
  public EAttribute getDocumentRoot_Comment()
860
  {
861
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3);
862
  }
863
864
  /**
865
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}'.
866
   * <!-- begin-user-doc -->
867
   * <!-- end-user-doc -->
868
   * @return the meta object for the containment reference '<em>Purchase Order</em>'.
869
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder()
870
   * @see #getDocumentRoot()
871
   * @generated
872
   */
873
  public EReference getDocumentRoot_PurchaseOrder()
874
  {
875
    return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
876
  }
877
878
  /**
879
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.Items <em>Items</em>}'.
880
   * <!-- begin-user-doc -->
881
   * <!-- end-user-doc -->
882
   * @return the meta object for class '<em>Items</em>'.
883
   * @see org.eclipse.emf.test.models.ipo.Items
884
   * @generated
885
   */
886
  public EClass getItems()
887
  {
888
    return itemsEClass;
889
  }
890
891
  /**
892
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.ipo.Items#getItem <em>Item</em>}'.
893
   * <!-- begin-user-doc -->
894
   * <!-- end-user-doc -->
895
   * @return the meta object for the containment reference list '<em>Item</em>'.
896
   * @see org.eclipse.emf.test.models.ipo.Items#getItem()
897
   * @see #getItems()
898
   * @generated
899
   */
900
  public EReference getItems_Item()
901
  {
902
    return (EReference)itemsEClass.getEStructuralFeatures().get(0);
903
  }
904
905
  /**
906
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.ItemType <em>Item Type</em>}'.
907
   * <!-- begin-user-doc -->
908
   * <!-- end-user-doc -->
909
   * @return the meta object for class '<em>Item Type</em>'.
910
   * @see org.eclipse.emf.test.models.ipo.ItemType
911
   * @generated
912
   */
913
  public EClass getItemType()
914
  {
915
    return itemTypeEClass;
916
  }
917
918
  /**
919
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}'.
920
   * <!-- begin-user-doc -->
921
   * <!-- end-user-doc -->
922
   * @return the meta object for the attribute '<em>Product Name</em>'.
923
   * @see org.eclipse.emf.test.models.ipo.ItemType#getProductName()
924
   * @see #getItemType()
925
   * @generated
926
   */
927
  public EAttribute getItemType_ProductName()
928
  {
929
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(0);
930
  }
931
932
  /**
933
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}'.
934
   * <!-- begin-user-doc -->
935
   * <!-- end-user-doc -->
936
   * @return the meta object for the attribute '<em>Quantity</em>'.
937
   * @see org.eclipse.emf.test.models.ipo.ItemType#getQuantity()
938
   * @see #getItemType()
939
   * @generated
940
   */
941
  public EAttribute getItemType_Quantity()
942
  {
943
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(1);
944
  }
945
946
  /**
947
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}'.
948
   * <!-- begin-user-doc -->
949
   * <!-- end-user-doc -->
950
   * @return the meta object for the attribute '<em>US Price</em>'.
951
   * @see org.eclipse.emf.test.models.ipo.ItemType#getUSPrice()
952
   * @see #getItemType()
953
   * @generated
954
   */
955
  public EAttribute getItemType_USPrice()
956
  {
957
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(2);
958
  }
959
960
  /**
961
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}'.
962
   * <!-- begin-user-doc -->
963
   * <!-- end-user-doc -->
964
   * @return the meta object for the attribute '<em>Comment</em>'.
965
   * @see org.eclipse.emf.test.models.ipo.ItemType#getComment()
966
   * @see #getItemType()
967
   * @generated
968
   */
969
  public EAttribute getItemType_Comment()
970
  {
971
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(3);
972
  }
973
974
  /**
975
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}'.
976
   * <!-- begin-user-doc -->
977
   * <!-- end-user-doc -->
978
   * @return the meta object for the attribute '<em>Ship Date</em>'.
979
   * @see org.eclipse.emf.test.models.ipo.ItemType#getShipDate()
980
   * @see #getItemType()
981
   * @generated
982
   */
983
  public EAttribute getItemType_ShipDate()
984
  {
985
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(4);
986
  }
987
988
  /**
989
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}'.
990
   * <!-- begin-user-doc -->
991
   * <!-- end-user-doc -->
992
   * @return the meta object for the attribute '<em>Part Num</em>'.
993
   * @see org.eclipse.emf.test.models.ipo.ItemType#getPartNum()
994
   * @see #getItemType()
995
   * @generated
996
   */
997
  public EAttribute getItemType_PartNum()
998
  {
999
    return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(5);
1000
  }
1001
1002
  /**
1003
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType <em>Purchase Order Type</em>}'.
1004
   * <!-- begin-user-doc -->
1005
   * <!-- end-user-doc -->
1006
   * @return the meta object for class '<em>Purchase Order Type</em>'.
1007
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType
1008
   * @generated
1009
   */
1010
  public EClass getPurchaseOrderType()
1011
  {
1012
    return purchaseOrderTypeEClass;
1013
  }
1014
1015
  /**
1016
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}'.
1017
   * <!-- begin-user-doc -->
1018
   * <!-- end-user-doc -->
1019
   * @return the meta object for the containment reference '<em>Ship To</em>'.
1020
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo()
1021
   * @see #getPurchaseOrderType()
1022
   * @generated
1023
   */
1024
  public EReference getPurchaseOrderType_ShipTo()
1025
  {
1026
    return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(0);
1027
  }
1028
1029
  /**
1030
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}'.
1031
   * <!-- begin-user-doc -->
1032
   * <!-- end-user-doc -->
1033
   * @return the meta object for the containment reference '<em>Bill To</em>'.
1034
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo()
1035
   * @see #getPurchaseOrderType()
1036
   * @generated
1037
   */
1038
  public EReference getPurchaseOrderType_BillTo()
1039
  {
1040
    return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(1);
1041
  }
1042
1043
  /**
1044
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}'.
1045
   * <!-- begin-user-doc -->
1046
   * <!-- end-user-doc -->
1047
   * @return the meta object for the attribute '<em>Comment</em>'.
1048
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment()
1049
   * @see #getPurchaseOrderType()
1050
   * @generated
1051
   */
1052
  public EAttribute getPurchaseOrderType_Comment()
1053
  {
1054
    return (EAttribute)purchaseOrderTypeEClass.getEStructuralFeatures().get(2);
1055
  }
1056
1057
  /**
1058
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}'.
1059
   * <!-- begin-user-doc -->
1060
   * <!-- end-user-doc -->
1061
   * @return the meta object for the containment reference '<em>Items</em>'.
1062
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems()
1063
   * @see #getPurchaseOrderType()
1064
   * @generated
1065
   */
1066
  public EReference getPurchaseOrderType_Items()
1067
  {
1068
    return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(3);
1069
  }
1070
1071
  /**
1072
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}'.
1073
   * <!-- begin-user-doc -->
1074
   * <!-- end-user-doc -->
1075
   * @return the meta object for the attribute '<em>Order Date</em>'.
1076
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate()
1077
   * @see #getPurchaseOrderType()
1078
   * @generated
1079
   */
1080
  public EAttribute getPurchaseOrderType_OrderDate()
1081
  {
1082
    return (EAttribute)purchaseOrderTypeEClass.getEStructuralFeatures().get(4);
1083
  }
1084
1085
  /**
1086
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.UKAddress <em>UK Address</em>}'.
1087
   * <!-- begin-user-doc -->
1088
   * <!-- end-user-doc -->
1089
   * @return the meta object for class '<em>UK Address</em>'.
1090
   * @see org.eclipse.emf.test.models.ipo.UKAddress
1091
   * @generated
1092
   */
1093
  public EClass getUKAddress()
1094
  {
1095
    return ukAddressEClass;
1096
  }
1097
1098
  /**
1099
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}'.
1100
   * <!-- begin-user-doc -->
1101
   * <!-- end-user-doc -->
1102
   * @return the meta object for the attribute '<em>Postcode</em>'.
1103
   * @see org.eclipse.emf.test.models.ipo.UKAddress#getPostcode()
1104
   * @see #getUKAddress()
1105
   * @generated
1106
   */
1107
  public EAttribute getUKAddress_Postcode()
1108
  {
1109
    return (EAttribute)ukAddressEClass.getEStructuralFeatures().get(0);
1110
  }
1111
1112
  /**
1113
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}'.
1114
   * <!-- begin-user-doc -->
1115
   * <!-- end-user-doc -->
1116
   * @return the meta object for the attribute '<em>Export Code</em>'.
1117
   * @see org.eclipse.emf.test.models.ipo.UKAddress#getExportCode()
1118
   * @see #getUKAddress()
1119
   * @generated
1120
   */
1121
  public EAttribute getUKAddress_ExportCode()
1122
  {
1123
    return (EAttribute)ukAddressEClass.getEStructuralFeatures().get(1);
1124
  }
1125
1126
  /**
1127
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.USAddress <em>US Address</em>}'.
1128
   * <!-- begin-user-doc -->
1129
   * <!-- end-user-doc -->
1130
   * @return the meta object for class '<em>US Address</em>'.
1131
   * @see org.eclipse.emf.test.models.ipo.USAddress
1132
   * @generated
1133
   */
1134
  public EClass getUSAddress()
1135
  {
1136
    return usAddressEClass;
1137
  }
1138
1139
  /**
1140
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}'.
1141
   * <!-- begin-user-doc -->
1142
   * <!-- end-user-doc -->
1143
   * @return the meta object for the attribute '<em>State</em>'.
1144
   * @see org.eclipse.emf.test.models.ipo.USAddress#getState()
1145
   * @see #getUSAddress()
1146
   * @generated
1147
   */
1148
  public EAttribute getUSAddress_State()
1149
  {
1150
    return (EAttribute)usAddressEClass.getEStructuralFeatures().get(0);
1151
  }
1152
1153
  /**
1154
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}'.
1155
   * <!-- begin-user-doc -->
1156
   * <!-- end-user-doc -->
1157
   * @return the meta object for the attribute '<em>Zip</em>'.
1158
   * @see org.eclipse.emf.test.models.ipo.USAddress#getZip()
1159
   * @see #getUSAddress()
1160
   * @generated
1161
   */
1162
  public EAttribute getUSAddress_Zip()
1163
  {
1164
    return (EAttribute)usAddressEClass.getEStructuralFeatures().get(1);
1165
  }
1166
1167
  /**
1168
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}'.
1169
   * <!-- begin-user-doc -->
1170
   * <!-- end-user-doc -->
1171
   * @return the meta object for enum '<em>US State</em>'.
1172
   * @see org.eclipse.emf.test.models.ipo.USState
1173
   * @generated
1174
   */
1175
  public EEnum getUSState()
1176
  {
1177
    return usStateEEnum;
1178
  }
1179
1180
  /**
1181
   * Returns the meta object for data type '{@link java.lang.String <em>Postcode</em>}'.
1182
   * <!-- begin-user-doc -->
1183
   * <!-- end-user-doc -->
1184
   * @return the meta object for data type '<em>Postcode</em>'.
1185
   * @see java.lang.String
1186
   * @model instanceClass="java.lang.String"
1187
   *        extendedMetaData="name='Postcode' baseType='http://www.eclipse.org/emf/2003/XMLType#string' length='7'"
1188
   * @generated
1189
   */
1190
  public EDataType getPostcode()
1191
  {
1192
    return postcodeEDataType;
1193
  }
1194
1195
  /**
1196
   * Returns the meta object for data type '{@link java.math.BigInteger <em>Quantity Type</em>}'.
1197
   * <!-- begin-user-doc -->
1198
   * <!-- end-user-doc -->
1199
   * @return the meta object for data type '<em>Quantity Type</em>'.
1200
   * @see java.math.BigInteger
1201
   * @model instanceClass="java.math.BigInteger"
1202
   *        extendedMetaData="name='quantity_._type' baseType='http://www.eclipse.org/emf/2003/XMLType#positiveInteger' maxExclusive='100'"
1203
   * @generated
1204
   */
1205
  public EDataType getQuantityType()
1206
  {
1207
    return quantityTypeEDataType;
1208
  }
1209
1210
  /**
1211
   * Returns the meta object for data type '{@link java.lang.String <em>SKU</em>}'.
1212
   * <!-- begin-user-doc -->
1213
   * <!-- end-user-doc -->
1214
   * @return the meta object for data type '<em>SKU</em>'.
1215
   * @see java.lang.String
1216
   * @model instanceClass="java.lang.String"
1217
   *        extendedMetaData="name='SKU' baseType='http://www.eclipse.org/emf/2003/XMLType#string' pattern='\\d{3}-[A-Z]{2}'"
1218
   * @generated
1219
   */
1220
  public EDataType getSKU()
1221
  {
1222
    return skuEDataType;
1223
  }
1224
1225
  /**
1226
   * Returns the meta object for data type '{@link java.lang.String <em>UK Postcode</em>}'.
1227
   * <!-- begin-user-doc -->
1228
   * <!-- end-user-doc -->
1229
   * @return the meta object for data type '<em>UK Postcode</em>'.
1230
   * @see java.lang.String
1231
   * @model instanceClass="java.lang.String"
1232
   *        extendedMetaData="name='UKPostcode' baseType='Postcode' pattern='[A-Z]{2}\\d\\s\\d[A-Z]{2}'"
1233
   * @generated
1234
   */
1235
  public EDataType getUKPostcode()
1236
  {
1237
    return ukPostcodeEDataType;
1238
  }
1239
1240
  /**
1241
   * Returns the meta object for data type '{@link org.eclipse.emf.test.models.ipo.USState <em>US State Object</em>}'.
1242
   * <!-- begin-user-doc -->
1243
   * <!-- end-user-doc -->
1244
   * @return the meta object for data type '<em>US State Object</em>'.
1245
   * @see org.eclipse.emf.test.models.ipo.USState
1246
   * @model instanceClass="org.eclipse.emf.test.models.ipo.USState"
1247
   *        extendedMetaData="name='USState:Object' baseType='USState'"
1248
   * @generated
1249
   */
1250
  public EDataType getUSStateObject()
1251
  {
1252
    return usStateObjectEDataType;
1253
  }
1254
1255
  /**
1256
   * Returns the factory that creates the instances of the model.
1257
   * <!-- begin-user-doc -->
1258
   * <!-- end-user-doc -->
1259
   * @return the factory that creates the instances of the model.
1260
   * @generated
1261
   */
1262
  public IPOFactory getIPOFactory()
1263
  {
1264
    return (IPOFactory)getEFactoryInstance();
1265
  }
1266
1267
  /**
1268
   * <!-- begin-user-doc -->
1269
   * <!-- end-user-doc -->
1270
   * @generated
1271
   */
1272
  private boolean isCreated = false;
1273
1274
  /**
1275
   * Creates the meta-model objects for the package.  This method is
1276
   * guarded to have no affect on any invocation but its first.
1277
   * <!-- begin-user-doc -->
1278
   * <!-- end-user-doc -->
1279
   * @generated
1280
   */
1281
  public void createPackageContents()
1282
  {
1283
    if (isCreated) return;
1284
    isCreated = true;
1285
1286
    // Create classes and their features
1287
    addressEClass = createEClass(ADDRESS);
1288
    createEAttribute(addressEClass, ADDRESS__NAME);
1289
    createEAttribute(addressEClass, ADDRESS__STREET);
1290
    createEAttribute(addressEClass, ADDRESS__CITY);
1291
1292
    documentRootEClass = createEClass(DOCUMENT_ROOT);
1293
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
1294
    createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
1295
    createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
1296
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__COMMENT);
1297
    createEReference(documentRootEClass, DOCUMENT_ROOT__PURCHASE_ORDER);
1298
1299
    itemsEClass = createEClass(ITEMS);
1300
    createEReference(itemsEClass, ITEMS__ITEM);
1301
1302
    itemTypeEClass = createEClass(ITEM_TYPE);
1303
    createEAttribute(itemTypeEClass, ITEM_TYPE__PRODUCT_NAME);
1304
    createEAttribute(itemTypeEClass, ITEM_TYPE__QUANTITY);
1305
    createEAttribute(itemTypeEClass, ITEM_TYPE__US_PRICE);
1306
    createEAttribute(itemTypeEClass, ITEM_TYPE__COMMENT);
1307
    createEAttribute(itemTypeEClass, ITEM_TYPE__SHIP_DATE);
1308
    createEAttribute(itemTypeEClass, ITEM_TYPE__PART_NUM);
1309
1310
    purchaseOrderTypeEClass = createEClass(PURCHASE_ORDER_TYPE);
1311
    createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__SHIP_TO);
1312
    createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__BILL_TO);
1313
    createEAttribute(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__COMMENT);
1314
    createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__ITEMS);
1315
    createEAttribute(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__ORDER_DATE);
1316
1317
    ukAddressEClass = createEClass(UK_ADDRESS);
1318
    createEAttribute(ukAddressEClass, UK_ADDRESS__POSTCODE);
1319
    createEAttribute(ukAddressEClass, UK_ADDRESS__EXPORT_CODE);
1320
1321
    usAddressEClass = createEClass(US_ADDRESS);
1322
    createEAttribute(usAddressEClass, US_ADDRESS__STATE);
1323
    createEAttribute(usAddressEClass, US_ADDRESS__ZIP);
1324
1325
    // Create enums
1326
    usStateEEnum = createEEnum(US_STATE);
1327
1328
    // Create data types
1329
    postcodeEDataType = createEDataType(POSTCODE);
1330
    quantityTypeEDataType = createEDataType(QUANTITY_TYPE);
1331
    skuEDataType = createEDataType(SKU);
1332
    ukPostcodeEDataType = createEDataType(UK_POSTCODE);
1333
    usStateObjectEDataType = createEDataType(US_STATE_OBJECT);
1334
  }
1335
1336
  /**
1337
   * <!-- begin-user-doc -->
1338
   * <!-- end-user-doc -->
1339
   * @generated
1340
   */
1341
  private boolean isInitialized = false;
1342
1343
  /**
1344
   * Complete the initialization of the package and its meta-model.  This
1345
   * method is guarded to have no affect on any invocation but its first.
1346
   * <!-- begin-user-doc -->
1347
   * <!-- end-user-doc -->
1348
   * @generated
1349
   */
1350
  public void initializePackageContents()
1351
  {
1352
    if (isInitialized) return;
1353
    isInitialized = true;
1354
1355
    // Initialize package
1356
    setName(eNAME);
1357
    setNsPrefix(eNS_PREFIX);
1358
    setNsURI(eNS_URI);
1359
1360
    // Obtain other dependent packages
1361
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1362
1363
    // Create type parameters
1364
1365
    // Set bounds for type parameters
1366
1367
    // Add supertypes to classes
1368
    ukAddressEClass.getESuperTypes().add(this.getAddress());
1369
    usAddressEClass.getESuperTypes().add(this.getAddress());
1370
1371
    // Initialize classes and features; add operations and parameters
1372
    initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1373
    initEAttribute(getAddress_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1374
    initEAttribute(getAddress_Street(), theXMLTypePackage.getString(), "street", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1375
    initEAttribute(getAddress_City(), theXMLTypePackage.getString(), "city", null, 1, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1376
1377
    initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1378
    initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1379
    initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1380
    initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1381
    initEAttribute(getDocumentRoot_Comment(), theXMLTypePackage.getString(), "comment", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1382
    initEReference(getDocumentRoot_PurchaseOrder(), this.getPurchaseOrderType(), null, "purchaseOrder", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1383
1384
    initEClass(itemsEClass, Items.class, "Items", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1385
    initEReference(getItems_Item(), this.getItemType(), null, "item", null, 0, -1, Items.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1386
1387
    initEClass(itemTypeEClass, ItemType.class, "ItemType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1388
    initEAttribute(getItemType_ProductName(), theXMLTypePackage.getString(), "productName", null, 1, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1389
    initEAttribute(getItemType_Quantity(), this.getQuantityType(), "quantity", null, 1, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1390
    initEAttribute(getItemType_USPrice(), theXMLTypePackage.getDecimal(), "uSPrice", null, 1, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1391
    initEAttribute(getItemType_Comment(), theXMLTypePackage.getString(), "comment", null, 0, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1392
    initEAttribute(getItemType_ShipDate(), theXMLTypePackage.getDate(), "shipDate", null, 0, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1393
    initEAttribute(getItemType_PartNum(), this.getSKU(), "partNum", null, 1, 1, ItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1394
1395
    initEClass(purchaseOrderTypeEClass, PurchaseOrderType.class, "PurchaseOrderType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1396
    initEReference(getPurchaseOrderType_ShipTo(), this.getAddress(), null, "shipTo", null, 1, 1, PurchaseOrderType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1397
    initEReference(getPurchaseOrderType_BillTo(), this.getAddress(), null, "billTo", null, 1, 1, PurchaseOrderType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1398
    initEAttribute(getPurchaseOrderType_Comment(), theXMLTypePackage.getString(), "comment", null, 0, 1, PurchaseOrderType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1399
    initEReference(getPurchaseOrderType_Items(), this.getItems(), null, "items", null, 1, 1, PurchaseOrderType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1400
    initEAttribute(getPurchaseOrderType_OrderDate(), theXMLTypePackage.getDateTime(), "orderDate", null, 0, 1, PurchaseOrderType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1401
1402
    initEClass(ukAddressEClass, UKAddress.class, "UKAddress", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1403
    initEAttribute(getUKAddress_Postcode(), this.getUKPostcode(), "postcode", null, 1, 1, UKAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1404
    initEAttribute(getUKAddress_ExportCode(), theXMLTypePackage.getPositiveInteger(), "exportCode", "1", 0, 1, UKAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1405
1406
    initEClass(usAddressEClass, USAddress.class, "USAddress", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1407
    initEAttribute(getUSAddress_State(), this.getUSState(), "state", "AK", 1, 1, USAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1408
    initEAttribute(getUSAddress_Zip(), theXMLTypePackage.getPositiveInteger(), "zip", null, 1, 1, USAddress.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1409
1410
    // Initialize enums and add enum literals
1411
    initEEnum(usStateEEnum, USState.class, "USState");
1412
    addEEnumLiteral(usStateEEnum, USState.AK);
1413
    addEEnumLiteral(usStateEEnum, USState.AL);
1414
    addEEnumLiteral(usStateEEnum, USState.AR);
1415
    addEEnumLiteral(usStateEEnum, USState.PA);
1416
1417
    // Initialize data types
1418
    initEDataType(postcodeEDataType, String.class, "Postcode", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1419
    initEDataType(quantityTypeEDataType, BigInteger.class, "QuantityType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1420
    initEDataType(skuEDataType, String.class, "SKU", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1421
    initEDataType(ukPostcodeEDataType, String.class, "UKPostcode", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1422
    initEDataType(usStateObjectEDataType, USState.class, "USStateObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
1423
1424
    // Create resource
1425
    createResource(eNS_URI);
1426
1427
    // Create annotations
1428
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1429
    createExtendedMetaDataAnnotations();
1430
  }
1431
1432
  /**
1433
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1434
   * <!-- begin-user-doc -->
1435
   * <!-- end-user-doc -->
1436
   * @generated
1437
   */
1438
  protected void createExtendedMetaDataAnnotations()
1439
  {
1440
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
1441
    addAnnotation
1442
      (addressEClass, 
1443
       source, 
1444
       new String[] 
1445
       {
1446
       "name", "Address",
1447
       "kind", "elementOnly"
1448
       });		
1449
    addAnnotation
1450
      (getAddress_Name(), 
1451
       source, 
1452
       new String[] 
1453
       {
1454
       "kind", "element",
1455
       "name", "name"
1456
       });		
1457
    addAnnotation
1458
      (getAddress_Street(), 
1459
       source, 
1460
       new String[] 
1461
       {
1462
       "kind", "element",
1463
       "name", "street"
1464
       });		
1465
    addAnnotation
1466
      (getAddress_City(), 
1467
       source, 
1468
       new String[] 
1469
       {
1470
       "kind", "element",
1471
       "name", "city"
1472
       });		
1473
    addAnnotation
1474
      (documentRootEClass, 
1475
       source, 
1476
       new String[] 
1477
       {
1478
       "name", "",
1479
       "kind", "mixed"
1480
       });		
1481
    addAnnotation
1482
      (getDocumentRoot_Mixed(), 
1483
       source, 
1484
       new String[] 
1485
       {
1486
       "kind", "elementWildcard",
1487
       "name", ":mixed"
1488
       });		
1489
    addAnnotation
1490
      (getDocumentRoot_XMLNSPrefixMap(), 
1491
       source, 
1492
       new String[] 
1493
       {
1494
       "kind", "attribute",
1495
       "name", "xmlns:prefix"
1496
       });		
1497
    addAnnotation
1498
      (getDocumentRoot_XSISchemaLocation(), 
1499
       source, 
1500
       new String[] 
1501
       {
1502
       "kind", "attribute",
1503
       "name", "xsi:schemaLocation"
1504
       });		
1505
    addAnnotation
1506
      (getDocumentRoot_Comment(), 
1507
       source, 
1508
       new String[] 
1509
       {
1510
       "kind", "element",
1511
       "name", "comment",
1512
       "namespace", "##targetNamespace"
1513
       });		
1514
    addAnnotation
1515
      (getDocumentRoot_PurchaseOrder(), 
1516
       source, 
1517
       new String[] 
1518
       {
1519
       "kind", "element",
1520
       "name", "purchaseOrder",
1521
       "namespace", "##targetNamespace"
1522
       });		
1523
    addAnnotation
1524
      (itemsEClass, 
1525
       source, 
1526
       new String[] 
1527
       {
1528
       "name", "Items",
1529
       "kind", "elementOnly"
1530
       });		
1531
    addAnnotation
1532
      (getItems_Item(), 
1533
       source, 
1534
       new String[] 
1535
       {
1536
       "kind", "element",
1537
       "name", "item"
1538
       });		
1539
    addAnnotation
1540
      (itemTypeEClass, 
1541
       source, 
1542
       new String[] 
1543
       {
1544
       "name", "item_._type",
1545
       "kind", "elementOnly"
1546
       });		
1547
    addAnnotation
1548
      (getItemType_ProductName(), 
1549
       source, 
1550
       new String[] 
1551
       {
1552
       "kind", "element",
1553
       "name", "productName"
1554
       });		
1555
    addAnnotation
1556
      (getItemType_Quantity(), 
1557
       source, 
1558
       new String[] 
1559
       {
1560
       "kind", "element",
1561
       "name", "quantity"
1562
       });		
1563
    addAnnotation
1564
      (getItemType_USPrice(), 
1565
       source, 
1566
       new String[] 
1567
       {
1568
       "kind", "element",
1569
       "name", "USPrice"
1570
       });		
1571
    addAnnotation
1572
      (getItemType_Comment(), 
1573
       source, 
1574
       new String[] 
1575
       {
1576
       "kind", "element",
1577
       "name", "comment",
1578
       "namespace", "##targetNamespace"
1579
       });		
1580
    addAnnotation
1581
      (getItemType_ShipDate(), 
1582
       source, 
1583
       new String[] 
1584
       {
1585
       "kind", "element",
1586
       "name", "shipDate"
1587
       });		
1588
    addAnnotation
1589
      (getItemType_PartNum(), 
1590
       source, 
1591
       new String[] 
1592
       {
1593
       "kind", "attribute",
1594
       "name", "partNum"
1595
       });		
1596
    addAnnotation
1597
      (postcodeEDataType, 
1598
       source, 
1599
       new String[] 
1600
       {
1601
       "name", "Postcode",
1602
       "baseType", "http://www.eclipse.org/emf/2003/XMLType#string",
1603
       "length", "7"
1604
       });		
1605
    addAnnotation
1606
      (purchaseOrderTypeEClass, 
1607
       source, 
1608
       new String[] 
1609
       {
1610
       "name", "PurchaseOrderType",
1611
       "kind", "elementOnly"
1612
       });		
1613
    addAnnotation
1614
      (getPurchaseOrderType_ShipTo(), 
1615
       source, 
1616
       new String[] 
1617
       {
1618
       "kind", "element",
1619
       "name", "shipTo"
1620
       });		
1621
    addAnnotation
1622
      (getPurchaseOrderType_BillTo(), 
1623
       source, 
1624
       new String[] 
1625
       {
1626
       "kind", "element",
1627
       "name", "billTo"
1628
       });		
1629
    addAnnotation
1630
      (getPurchaseOrderType_Comment(), 
1631
       source, 
1632
       new String[] 
1633
       {
1634
       "kind", "element",
1635
       "name", "comment",
1636
       "namespace", "##targetNamespace"
1637
       });		
1638
    addAnnotation
1639
      (getPurchaseOrderType_Items(), 
1640
       source, 
1641
       new String[] 
1642
       {
1643
       "kind", "element",
1644
       "name", "items"
1645
       });		
1646
    addAnnotation
1647
      (getPurchaseOrderType_OrderDate(), 
1648
       source, 
1649
       new String[] 
1650
       {
1651
       "kind", "attribute",
1652
       "name", "orderDate"
1653
       });		
1654
    addAnnotation
1655
      (quantityTypeEDataType, 
1656
       source, 
1657
       new String[] 
1658
       {
1659
       "name", "quantity_._type",
1660
       "baseType", "http://www.eclipse.org/emf/2003/XMLType#positiveInteger",
1661
       "maxExclusive", "100"
1662
       });		
1663
    addAnnotation
1664
      (skuEDataType, 
1665
       source, 
1666
       new String[] 
1667
       {
1668
       "name", "SKU",
1669
       "baseType", "http://www.eclipse.org/emf/2003/XMLType#string",
1670
       "pattern", "\\d{3}-[A-Z]{2}"
1671
       });		
1672
    addAnnotation
1673
      (ukAddressEClass, 
1674
       source, 
1675
       new String[] 
1676
       {
1677
       "name", "UKAddress",
1678
       "kind", "elementOnly"
1679
       });		
1680
    addAnnotation
1681
      (getUKAddress_Postcode(), 
1682
       source, 
1683
       new String[] 
1684
       {
1685
       "kind", "element",
1686
       "name", "postcode"
1687
       });		
1688
    addAnnotation
1689
      (getUKAddress_ExportCode(), 
1690
       source, 
1691
       new String[] 
1692
       {
1693
       "kind", "attribute",
1694
       "name", "exportCode"
1695
       });		
1696
    addAnnotation
1697
      (ukPostcodeEDataType, 
1698
       source, 
1699
       new String[] 
1700
       {
1701
       "name", "UKPostcode",
1702
       "baseType", "Postcode",
1703
       "pattern", "[A-Z]{2}\\d\\s\\d[A-Z]{2}"
1704
       });		
1705
    addAnnotation
1706
      (usAddressEClass, 
1707
       source, 
1708
       new String[] 
1709
       {
1710
       "name", "USAddress",
1711
       "kind", "elementOnly"
1712
       });		
1713
    addAnnotation
1714
      (getUSAddress_State(), 
1715
       source, 
1716
       new String[] 
1717
       {
1718
       "kind", "element",
1719
       "name", "state"
1720
       });		
1721
    addAnnotation
1722
      (getUSAddress_Zip(), 
1723
       source, 
1724
       new String[] 
1725
       {
1726
       "kind", "element",
1727
       "name", "zip"
1728
       });		
1729
    addAnnotation
1730
      (usStateEEnum, 
1731
       source, 
1732
       new String[] 
1733
       {
1734
       "name", "USState"
1735
       });		
1736
    addAnnotation
1737
      (usStateObjectEDataType, 
1738
       source, 
1739
       new String[] 
1740
       {
1741
       "name", "USState:Object",
1742
       "baseType", "USState"
1743
       });
1744
  }
1745
1746
  /**
1747
   * <!-- begin-user-doc -->
1748
   * Defines literals for the meta objects that represent
1749
   * <ul>
1750
   *   <li>each class,</li>
1751
   *   <li>each feature of each class,</li>
1752
   *   <li>each enum,</li>
1753
   *   <li>and each data type</li>
1754
   * </ul>
1755
   * <!-- end-user-doc -->
1756
   * @generated
1757
   */
1758
  public interface Literals
1759
  {
1760
    /**
1761
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl <em>Address</em>}' class.
1762
     * <!-- begin-user-doc -->
1763
     * <!-- end-user-doc -->
1764
     * @see org.eclipse.emf.test.models.ipo.impl.AddressImpl
1765
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getAddress()
1766
     * @generated
1767
     */
1768
    public static final EClass ADDRESS = eINSTANCE.getAddress();
1769
1770
    /**
1771
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
1772
     * <!-- begin-user-doc -->
1773
     * <!-- end-user-doc -->
1774
     * @generated
1775
     */
1776
    public static final EAttribute ADDRESS__NAME = eINSTANCE.getAddress_Name();
1777
1778
    /**
1779
     * The meta object literal for the '<em><b>Street</b></em>' attribute feature.
1780
     * <!-- begin-user-doc -->
1781
     * <!-- end-user-doc -->
1782
     * @generated
1783
     */
1784
    public static final EAttribute ADDRESS__STREET = eINSTANCE.getAddress_Street();
1785
1786
    /**
1787
     * The meta object literal for the '<em><b>City</b></em>' attribute feature.
1788
     * <!-- begin-user-doc -->
1789
     * <!-- end-user-doc -->
1790
     * @generated
1791
     */
1792
    public static final EAttribute ADDRESS__CITY = eINSTANCE.getAddress_City();
1793
1794
    /**
1795
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl <em>Document Root</em>}' class.
1796
     * <!-- begin-user-doc -->
1797
     * <!-- end-user-doc -->
1798
     * @see org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl
1799
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getDocumentRoot()
1800
     * @generated
1801
     */
1802
    public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
1803
1804
    /**
1805
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1806
     * <!-- begin-user-doc -->
1807
     * <!-- end-user-doc -->
1808
     * @generated
1809
     */
1810
    public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
1811
1812
    /**
1813
     * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
1814
     * <!-- begin-user-doc -->
1815
     * <!-- end-user-doc -->
1816
     * @generated
1817
     */
1818
    public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
1819
1820
    /**
1821
     * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
1822
     * <!-- begin-user-doc -->
1823
     * <!-- end-user-doc -->
1824
     * @generated
1825
     */
1826
    public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
1827
1828
    /**
1829
     * The meta object literal for the '<em><b>Comment</b></em>' attribute feature.
1830
     * <!-- begin-user-doc -->
1831
     * <!-- end-user-doc -->
1832
     * @generated
1833
     */
1834
    public static final EAttribute DOCUMENT_ROOT__COMMENT = eINSTANCE.getDocumentRoot_Comment();
1835
1836
    /**
1837
     * The meta object literal for the '<em><b>Purchase Order</b></em>' containment reference feature.
1838
     * <!-- begin-user-doc -->
1839
     * <!-- end-user-doc -->
1840
     * @generated
1841
     */
1842
    public static final EReference DOCUMENT_ROOT__PURCHASE_ORDER = eINSTANCE.getDocumentRoot_PurchaseOrder();
1843
1844
    /**
1845
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl <em>Items</em>}' class.
1846
     * <!-- begin-user-doc -->
1847
     * <!-- end-user-doc -->
1848
     * @see org.eclipse.emf.test.models.ipo.impl.ItemsImpl
1849
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItems()
1850
     * @generated
1851
     */
1852
    public static final EClass ITEMS = eINSTANCE.getItems();
1853
1854
    /**
1855
     * The meta object literal for the '<em><b>Item</b></em>' containment reference list feature.
1856
     * <!-- begin-user-doc -->
1857
     * <!-- end-user-doc -->
1858
     * @generated
1859
     */
1860
    public static final EReference ITEMS__ITEM = eINSTANCE.getItems_Item();
1861
1862
    /**
1863
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl <em>Item Type</em>}' class.
1864
     * <!-- begin-user-doc -->
1865
     * <!-- end-user-doc -->
1866
     * @see org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl
1867
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItemType()
1868
     * @generated
1869
     */
1870
    public static final EClass ITEM_TYPE = eINSTANCE.getItemType();
1871
1872
    /**
1873
     * The meta object literal for the '<em><b>Product Name</b></em>' attribute feature.
1874
     * <!-- begin-user-doc -->
1875
     * <!-- end-user-doc -->
1876
     * @generated
1877
     */
1878
    public static final EAttribute ITEM_TYPE__PRODUCT_NAME = eINSTANCE.getItemType_ProductName();
1879
1880
    /**
1881
     * The meta object literal for the '<em><b>Quantity</b></em>' attribute feature.
1882
     * <!-- begin-user-doc -->
1883
     * <!-- end-user-doc -->
1884
     * @generated
1885
     */
1886
    public static final EAttribute ITEM_TYPE__QUANTITY = eINSTANCE.getItemType_Quantity();
1887
1888
    /**
1889
     * The meta object literal for the '<em><b>US Price</b></em>' attribute feature.
1890
     * <!-- begin-user-doc -->
1891
     * <!-- end-user-doc -->
1892
     * @generated
1893
     */
1894
    public static final EAttribute ITEM_TYPE__US_PRICE = eINSTANCE.getItemType_USPrice();
1895
1896
    /**
1897
     * The meta object literal for the '<em><b>Comment</b></em>' attribute feature.
1898
     * <!-- begin-user-doc -->
1899
     * <!-- end-user-doc -->
1900
     * @generated
1901
     */
1902
    public static final EAttribute ITEM_TYPE__COMMENT = eINSTANCE.getItemType_Comment();
1903
1904
    /**
1905
     * The meta object literal for the '<em><b>Ship Date</b></em>' attribute feature.
1906
     * <!-- begin-user-doc -->
1907
     * <!-- end-user-doc -->
1908
     * @generated
1909
     */
1910
    public static final EAttribute ITEM_TYPE__SHIP_DATE = eINSTANCE.getItemType_ShipDate();
1911
1912
    /**
1913
     * The meta object literal for the '<em><b>Part Num</b></em>' attribute feature.
1914
     * <!-- begin-user-doc -->
1915
     * <!-- end-user-doc -->
1916
     * @generated
1917
     */
1918
    public static final EAttribute ITEM_TYPE__PART_NUM = eINSTANCE.getItemType_PartNum();
1919
1920
    /**
1921
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl <em>Purchase Order Type</em>}' class.
1922
     * <!-- begin-user-doc -->
1923
     * <!-- end-user-doc -->
1924
     * @see org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl
1925
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPurchaseOrderType()
1926
     * @generated
1927
     */
1928
    public static final EClass PURCHASE_ORDER_TYPE = eINSTANCE.getPurchaseOrderType();
1929
1930
    /**
1931
     * The meta object literal for the '<em><b>Ship To</b></em>' containment reference feature.
1932
     * <!-- begin-user-doc -->
1933
     * <!-- end-user-doc -->
1934
     * @generated
1935
     */
1936
    public static final EReference PURCHASE_ORDER_TYPE__SHIP_TO = eINSTANCE.getPurchaseOrderType_ShipTo();
1937
1938
    /**
1939
     * The meta object literal for the '<em><b>Bill To</b></em>' containment reference feature.
1940
     * <!-- begin-user-doc -->
1941
     * <!-- end-user-doc -->
1942
     * @generated
1943
     */
1944
    public static final EReference PURCHASE_ORDER_TYPE__BILL_TO = eINSTANCE.getPurchaseOrderType_BillTo();
1945
1946
    /**
1947
     * The meta object literal for the '<em><b>Comment</b></em>' attribute feature.
1948
     * <!-- begin-user-doc -->
1949
     * <!-- end-user-doc -->
1950
     * @generated
1951
     */
1952
    public static final EAttribute PURCHASE_ORDER_TYPE__COMMENT = eINSTANCE.getPurchaseOrderType_Comment();
1953
1954
    /**
1955
     * The meta object literal for the '<em><b>Items</b></em>' containment reference feature.
1956
     * <!-- begin-user-doc -->
1957
     * <!-- end-user-doc -->
1958
     * @generated
1959
     */
1960
    public static final EReference PURCHASE_ORDER_TYPE__ITEMS = eINSTANCE.getPurchaseOrderType_Items();
1961
1962
    /**
1963
     * The meta object literal for the '<em><b>Order Date</b></em>' attribute feature.
1964
     * <!-- begin-user-doc -->
1965
     * <!-- end-user-doc -->
1966
     * @generated
1967
     */
1968
    public static final EAttribute PURCHASE_ORDER_TYPE__ORDER_DATE = eINSTANCE.getPurchaseOrderType_OrderDate();
1969
1970
    /**
1971
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl <em>UK Address</em>}' class.
1972
     * <!-- begin-user-doc -->
1973
     * <!-- end-user-doc -->
1974
     * @see org.eclipse.emf.test.models.ipo.impl.UKAddressImpl
1975
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKAddress()
1976
     * @generated
1977
     */
1978
    public static final EClass UK_ADDRESS = eINSTANCE.getUKAddress();
1979
1980
    /**
1981
     * The meta object literal for the '<em><b>Postcode</b></em>' attribute feature.
1982
     * <!-- begin-user-doc -->
1983
     * <!-- end-user-doc -->
1984
     * @generated
1985
     */
1986
    public static final EAttribute UK_ADDRESS__POSTCODE = eINSTANCE.getUKAddress_Postcode();
1987
1988
    /**
1989
     * The meta object literal for the '<em><b>Export Code</b></em>' attribute feature.
1990
     * <!-- begin-user-doc -->
1991
     * <!-- end-user-doc -->
1992
     * @generated
1993
     */
1994
    public static final EAttribute UK_ADDRESS__EXPORT_CODE = eINSTANCE.getUKAddress_ExportCode();
1995
1996
    /**
1997
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl <em>US Address</em>}' class.
1998
     * <!-- begin-user-doc -->
1999
     * <!-- end-user-doc -->
2000
     * @see org.eclipse.emf.test.models.ipo.impl.USAddressImpl
2001
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSAddress()
2002
     * @generated
2003
     */
2004
    public static final EClass US_ADDRESS = eINSTANCE.getUSAddress();
2005
2006
    /**
2007
     * The meta object literal for the '<em><b>State</b></em>' attribute feature.
2008
     * <!-- begin-user-doc -->
2009
     * <!-- end-user-doc -->
2010
     * @generated
2011
     */
2012
    public static final EAttribute US_ADDRESS__STATE = eINSTANCE.getUSAddress_State();
2013
2014
    /**
2015
     * The meta object literal for the '<em><b>Zip</b></em>' attribute feature.
2016
     * <!-- begin-user-doc -->
2017
     * <!-- end-user-doc -->
2018
     * @generated
2019
     */
2020
    public static final EAttribute US_ADDRESS__ZIP = eINSTANCE.getUSAddress_Zip();
2021
2022
    /**
2023
     * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}' enum.
2024
     * <!-- begin-user-doc -->
2025
     * <!-- end-user-doc -->
2026
     * @see org.eclipse.emf.test.models.ipo.USState
2027
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState()
2028
     * @generated
2029
     */
2030
    public static final EEnum US_STATE = eINSTANCE.getUSState();
2031
2032
    /**
2033
     * The meta object literal for the '<em>Postcode</em>' data type.
2034
     * <!-- begin-user-doc -->
2035
     * <!-- end-user-doc -->
2036
     * @see java.lang.String
2037
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPostcode()
2038
     * @generated
2039
     */
2040
    public static final EDataType POSTCODE = eINSTANCE.getPostcode();
2041
2042
    /**
2043
     * The meta object literal for the '<em>Quantity Type</em>' data type.
2044
     * <!-- begin-user-doc -->
2045
     * <!-- end-user-doc -->
2046
     * @see java.math.BigInteger
2047
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getQuantityType()
2048
     * @generated
2049
     */
2050
    public static final EDataType QUANTITY_TYPE = eINSTANCE.getQuantityType();
2051
2052
    /**
2053
     * The meta object literal for the '<em>SKU</em>' data type.
2054
     * <!-- begin-user-doc -->
2055
     * <!-- end-user-doc -->
2056
     * @see java.lang.String
2057
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getSKU()
2058
     * @generated
2059
     */
2060
    public static final EDataType SKU = eINSTANCE.getSKU();
2061
2062
    /**
2063
     * The meta object literal for the '<em>UK Postcode</em>' data type.
2064
     * <!-- begin-user-doc -->
2065
     * <!-- end-user-doc -->
2066
     * @see java.lang.String
2067
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKPostcode()
2068
     * @generated
2069
     */
2070
    public static final EDataType UK_POSTCODE = eINSTANCE.getUKPostcode();
2071
2072
    /**
2073
     * The meta object literal for the '<em>US State Object</em>' data type.
2074
     * <!-- begin-user-doc -->
2075
     * <!-- end-user-doc -->
2076
     * @see org.eclipse.emf.test.models.ipo.USState
2077
     * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSStateObject()
2078
     * @generated
2079
     */
2080
    public static final EDataType US_STATE_OBJECT = eINSTANCE.getUSStateObject();
2081
2082
  }
2083
2084
} //IPOPackageImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/UKAddressImpl.java (-290 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UKAddressImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.math.BigInteger;
20
21
import org.eclipse.emf.common.notify.Notification;
22
23
import org.eclipse.emf.ecore.EClass;
24
25
import org.eclipse.emf.ecore.impl.ENotificationImpl;
26
27
import org.eclipse.emf.test.models.ipo.UKAddress;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>UK Address</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl#getPostcode <em>Postcode</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl#getExportCode <em>Export Code</em>}</li>
38
 * </ul>
39
 * </p>
40
 *
41
 * @generated
42
 */
43
public class UKAddressImpl extends AddressImpl implements UKAddress
44
{
45
  /**
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @generated
49
   */
50
  private static final long serialVersionUID = 1L;
51
52
  /**
53
   * The default value of the '{@link #getPostcode() <em>Postcode</em>}' attribute.
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @see #getPostcode()
57
   * @generated
58
   * @ordered
59
   */
60
  protected static final String POSTCODE_EDEFAULT = null;
61
62
  /**
63
   * The cached value of the '{@link #getPostcode() <em>Postcode</em>}' attribute.
64
   * <!-- begin-user-doc -->
65
   * <!-- end-user-doc -->
66
   * @see #getPostcode()
67
   * @generated
68
   * @ordered
69
   */
70
  protected String postcode = POSTCODE_EDEFAULT;
71
72
  /**
73
   * The default value of the '{@link #getExportCode() <em>Export Code</em>}' attribute.
74
   * <!-- begin-user-doc -->
75
   * <!-- end-user-doc -->
76
   * @see #getExportCode()
77
   * @generated
78
   * @ordered
79
   */
80
  protected static final BigInteger EXPORT_CODE_EDEFAULT = new BigInteger("1");
81
82
  /**
83
   * The cached value of the '{@link #getExportCode() <em>Export Code</em>}' attribute.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @see #getExportCode()
87
   * @generated
88
   * @ordered
89
   */
90
  protected BigInteger exportCode = EXPORT_CODE_EDEFAULT;
91
92
  /**
93
   * This is true if the Export Code attribute has been set.
94
   * <!-- begin-user-doc -->
95
   * <!-- end-user-doc -->
96
   * @generated
97
   * @ordered
98
   */
99
  protected boolean exportCodeESet;
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  protected UKAddressImpl()
107
  {
108
    super();
109
  }
110
111
  /**
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @generated
115
   */
116
  @Override
117
  protected EClass eStaticClass()
118
  {
119
    return IPOPackageImpl.Literals.UK_ADDRESS;
120
  }
121
122
  /**
123
   * <!-- begin-user-doc -->
124
   * <!-- end-user-doc -->
125
   * @generated
126
   */
127
  public String getPostcode()
128
  {
129
    return postcode;
130
  }
131
132
  /**
133
   * <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * @generated
136
   */
137
  public void setPostcode(String newPostcode)
138
  {
139
    String oldPostcode = postcode;
140
    postcode = newPostcode;
141
    if (eNotificationRequired())
142
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.UK_ADDRESS__POSTCODE, oldPostcode, postcode));
143
  }
144
145
  /**
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @generated
149
   */
150
  public BigInteger getExportCode()
151
  {
152
    return exportCode;
153
  }
154
155
  /**
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   */
160
  public void setExportCode(BigInteger newExportCode)
161
  {
162
    BigInteger oldExportCode = exportCode;
163
    exportCode = newExportCode;
164
    boolean oldExportCodeESet = exportCodeESet;
165
    exportCodeESet = true;
166
    if (eNotificationRequired())
167
      eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.UK_ADDRESS__EXPORT_CODE, oldExportCode, exportCode, !oldExportCodeESet));
168
  }
169
170
  /**
171
   * <!-- begin-user-doc -->
172
   * <!-- end-user-doc -->
173
   * @generated
174
   */
175
  public void unsetExportCode()
176
  {
177
    BigInteger oldExportCode = exportCode;
178
    boolean oldExportCodeESet = exportCodeESet;
179
    exportCode = EXPORT_CODE_EDEFAULT;
180
    exportCodeESet = false;
181
    if (eNotificationRequired())
182
      eNotify(new ENotificationImpl(this, Notification.UNSET, IPOPackageImpl.UK_ADDRESS__EXPORT_CODE, oldExportCode, EXPORT_CODE_EDEFAULT, oldExportCodeESet));
183
  }
184
185
  /**
186
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
188
   * @generated
189
   */
190
  public boolean isSetExportCode()
191
  {
192
    return exportCodeESet;
193
  }
194
195
  /**
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @generated
199
   */
200
  @Override
201
  public Object eGet(int featureID, boolean resolve, boolean coreType)
202
  {
203
    switch (featureID)
204
    {
205
      case IPOPackageImpl.UK_ADDRESS__POSTCODE:
206
        return getPostcode();
207
      case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE:
208
        return getExportCode();
209
    }
210
    return super.eGet(featureID, resolve, coreType);
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  @Override
219
  public void eSet(int featureID, Object newValue)
220
  {
221
    switch (featureID)
222
    {
223
      case IPOPackageImpl.UK_ADDRESS__POSTCODE:
224
        setPostcode((String)newValue);
225
        return;
226
      case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE:
227
        setExportCode((BigInteger)newValue);
228
        return;
229
    }
230
    super.eSet(featureID, newValue);
231
  }
232
233
  /**
234
   * <!-- begin-user-doc -->
235
   * <!-- end-user-doc -->
236
   * @generated
237
   */
238
  @Override
239
  public void eUnset(int featureID)
240
  {
241
    switch (featureID)
242
    {
243
      case IPOPackageImpl.UK_ADDRESS__POSTCODE:
244
        setPostcode(POSTCODE_EDEFAULT);
245
        return;
246
      case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE:
247
        unsetExportCode();
248
        return;
249
    }
250
    super.eUnset(featureID);
251
  }
252
253
  /**
254
   * <!-- begin-user-doc -->
255
   * <!-- end-user-doc -->
256
   * @generated
257
   */
258
  @Override
259
  public boolean eIsSet(int featureID)
260
  {
261
    switch (featureID)
262
    {
263
      case IPOPackageImpl.UK_ADDRESS__POSTCODE:
264
        return POSTCODE_EDEFAULT == null ? postcode != null : !POSTCODE_EDEFAULT.equals(postcode);
265
      case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE:
266
        return isSetExportCode();
267
    }
268
    return super.eIsSet(featureID);
269
  }
270
271
  /**
272
   * <!-- begin-user-doc -->
273
   * <!-- end-user-doc -->
274
   * @generated
275
   */
276
  @Override
277
  public String toString()
278
  {
279
    if (eIsProxy()) return super.toString();
280
281
    StringBuffer result = new StringBuffer(super.toString());
282
    result.append(" (postcode: ");
283
    result.append(postcode);
284
    result.append(", exportCode: ");
285
    if (exportCodeESet) result.append(exportCode); else result.append("<unset>");
286
    result.append(')');
287
    return result.toString();
288
  }
289
290
} //UKAddressImpl
(-)src/org/eclipse/emf/test/models/ipo/impl/ItemsImpl.java (-188 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ItemsImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.NotificationChain;
23
24
import org.eclipse.emf.common.util.EList;
25
26
import org.eclipse.emf.ecore.EClass;
27
import org.eclipse.emf.ecore.InternalEObject;
28
29
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
30
31
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
32
import org.eclipse.emf.ecore.util.InternalEList;
33
34
import org.eclipse.emf.test.models.ipo.ItemType;
35
import org.eclipse.emf.test.models.ipo.Items;
36
37
/**
38
 * <!-- begin-user-doc -->
39
 * An implementation of the model object '<em><b>Items</b></em>'.
40
 * <!-- end-user-doc -->
41
 * <p>
42
 * The following features are implemented:
43
 * <ul>
44
 *   <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl#getItem <em>Item</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class ItemsImpl extends EDataObjectImpl implements Items
51
{
52
  /**
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  private static final long serialVersionUID = 1L;
58
59
  /**
60
   * The cached value of the '{@link #getItem() <em>Item</em>}' containment reference list.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @see #getItem()
64
   * @generated
65
   * @ordered
66
   */
67
  protected EList<ItemType> item;
68
69
  /**
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @generated
73
   */
74
  protected ItemsImpl()
75
  {
76
    super();
77
  }
78
79
  /**
80
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
82
   * @generated
83
   */
84
  @Override
85
  protected EClass eStaticClass()
86
  {
87
    return IPOPackageImpl.Literals.ITEMS;
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  public List<ItemType> getItem()
96
  {
97
    if (item == null)
98
    {
99
      item = new EObjectContainmentEList<ItemType>(ItemType.class, this, IPOPackageImpl.ITEMS__ITEM);
100
    }
101
    return item;
102
  }
103
104
  /**
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @generated
108
   */
109
  @Override
110
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
111
  {
112
    switch (featureID)
113
    {
114
      case IPOPackageImpl.ITEMS__ITEM:
115
        return ((InternalEList<?>)getItem()).basicRemove(otherEnd, msgs);
116
    }
117
    return super.eInverseRemove(otherEnd, featureID, msgs);
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public Object eGet(int featureID, boolean resolve, boolean coreType)
127
  {
128
    switch (featureID)
129
    {
130
      case IPOPackageImpl.ITEMS__ITEM:
131
        return getItem();
132
    }
133
    return super.eGet(featureID, resolve, coreType);
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  @SuppressWarnings("unchecked")
142
  @Override
143
  public void eSet(int featureID, Object newValue)
144
  {
145
    switch (featureID)
146
    {
147
      case IPOPackageImpl.ITEMS__ITEM:
148
        getItem().clear();
149
        getItem().addAll((Collection<? extends ItemType>)newValue);
150
        return;
151
    }
152
    super.eSet(featureID, newValue);
153
  }
154
155
  /**
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   */
160
  @Override
161
  public void eUnset(int featureID)
162
  {
163
    switch (featureID)
164
    {
165
      case IPOPackageImpl.ITEMS__ITEM:
166
        getItem().clear();
167
        return;
168
    }
169
    super.eUnset(featureID);
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  @Override
178
  public boolean eIsSet(int featureID)
179
  {
180
    switch (featureID)
181
    {
182
      case IPOPackageImpl.ITEMS__ITEM:
183
        return item != null && !item.isEmpty();
184
    }
185
    return super.eIsSet(featureID);
186
  }
187
188
} //ItemsImpl
(-)src/org/eclipse/emf/test/models/ipo/IPOFactory.java (-100 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOFactory.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface IPOFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  IPOFactory INSTANCE = org.eclipse.emf.test.models.ipo.impl.IPOFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Address</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Address</em>'.
42
   * @generated
43
   */
44
  Address createAddress();
45
46
  /**
47
   * Returns a new object of class '<em>Document Root</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Document Root</em>'.
51
   * @generated
52
   */
53
  DocumentRoot createDocumentRoot();
54
55
  /**
56
   * Returns a new object of class '<em>Items</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Items</em>'.
60
   * @generated
61
   */
62
  Items createItems();
63
64
  /**
65
   * Returns a new object of class '<em>Item Type</em>'.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @return a new object of class '<em>Item Type</em>'.
69
   * @generated
70
   */
71
  ItemType createItemType();
72
73
  /**
74
   * Returns a new object of class '<em>Purchase Order Type</em>'.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @return a new object of class '<em>Purchase Order Type</em>'.
78
   * @generated
79
   */
80
  PurchaseOrderType createPurchaseOrderType();
81
82
  /**
83
   * Returns a new object of class '<em>UK Address</em>'.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @return a new object of class '<em>UK Address</em>'.
87
   * @generated
88
   */
89
  UKAddress createUKAddress();
90
91
  /**
92
   * Returns a new object of class '<em>US Address</em>'.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @return a new object of class '<em>US Address</em>'.
96
   * @generated
97
   */
98
  USAddress createUSAddress();
99
100
} //IPOFactory
(-)src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java (-173 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PurchaseOrderType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import javax.xml.datatype.XMLGregorianCalendar;
20
21
22
/**
23
 * <!-- begin-user-doc -->
24
 * A representation of the model object '<em><b>Purchase Order Type</b></em>'.
25
 * <!-- end-user-doc -->
26
 *
27
 * <p>
28
 * The following features are supported:
29
 * <ul>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}</li>
35
 * </ul>
36
 * </p>
37
 *
38
 * @model extendedMetaData="name='PurchaseOrderType' kind='elementOnly'"
39
 * @generated
40
 */
41
public interface PurchaseOrderType
42
{
43
  /**
44
   * Returns the value of the '<em><b>Ship To</b></em>' containment reference.
45
   * <!-- begin-user-doc -->
46
   * <p>
47
   * If the meaning of the '<em>Ship To</em>' containment reference isn't clear,
48
   * there really should be more of a description here...
49
   * </p>
50
   * <!-- end-user-doc -->
51
   * @return the value of the '<em>Ship To</em>' containment reference.
52
   * @see #setShipTo(Address)
53
   * @model containment="true" required="true"
54
   *        extendedMetaData="kind='element' name='shipTo'"
55
   * @generated
56
   */
57
  Address getShipTo();
58
59
  /**
60
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}' containment reference.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @param value the new value of the '<em>Ship To</em>' containment reference.
64
   * @see #getShipTo()
65
   * @generated
66
   */
67
  void setShipTo(Address value);
68
69
  /**
70
   * Returns the value of the '<em><b>Bill To</b></em>' containment reference.
71
   * <!-- begin-user-doc -->
72
   * <p>
73
   * If the meaning of the '<em>Bill To</em>' containment reference isn't clear,
74
   * there really should be more of a description here...
75
   * </p>
76
   * <!-- end-user-doc -->
77
   * @return the value of the '<em>Bill To</em>' containment reference.
78
   * @see #setBillTo(Address)
79
   * @model containment="true" required="true"
80
   *        extendedMetaData="kind='element' name='billTo'"
81
   * @generated
82
   */
83
  Address getBillTo();
84
85
  /**
86
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}' containment reference.
87
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
89
   * @param value the new value of the '<em>Bill To</em>' containment reference.
90
   * @see #getBillTo()
91
   * @generated
92
   */
93
  void setBillTo(Address value);
94
95
  /**
96
   * Returns the value of the '<em><b>Comment</b></em>' attribute.
97
   * <!-- begin-user-doc -->
98
   * <p>
99
   * If the meaning of the '<em>Comment</em>' attribute isn't clear,
100
   * there really should be more of a description here...
101
   * </p>
102
   * <!-- end-user-doc -->
103
   * @return the value of the '<em>Comment</em>' attribute.
104
   * @see #setComment(String)
105
   * @model dataType="org.eclipse.emf.ecore.xml.type.String"
106
   *        extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'"
107
   * @generated
108
   */
109
  String getComment();
110
111
  /**
112
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @param value the new value of the '<em>Comment</em>' attribute.
116
   * @see #getComment()
117
   * @generated
118
   */
119
  void setComment(String value);
120
121
  /**
122
   * Returns the value of the '<em><b>Items</b></em>' containment reference.
123
   * <!-- begin-user-doc -->
124
   * <p>
125
   * If the meaning of the '<em>Items</em>' containment reference isn't clear,
126
   * there really should be more of a description here...
127
   * </p>
128
   * <!-- end-user-doc -->
129
   * @return the value of the '<em>Items</em>' containment reference.
130
   * @see #setItems(Items)
131
   * @model containment="true" required="true"
132
   *        extendedMetaData="kind='element' name='items'"
133
   * @generated
134
   */
135
  Items getItems();
136
137
  /**
138
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}' containment reference.
139
   * <!-- begin-user-doc -->
140
   * <!-- end-user-doc -->
141
   * @param value the new value of the '<em>Items</em>' containment reference.
142
   * @see #getItems()
143
   * @generated
144
   */
145
  void setItems(Items value);
146
147
  /**
148
   * Returns the value of the '<em><b>Order Date</b></em>' attribute.
149
   * <!-- begin-user-doc -->
150
   * <p>
151
   * If the meaning of the '<em>Order Date</em>' attribute isn't clear,
152
   * there really should be more of a description here...
153
   * </p>
154
   * <!-- end-user-doc -->
155
   * @return the value of the '<em>Order Date</em>' attribute.
156
   * @see #setOrderDate(XMLGregorianCalendar)
157
   * @model dataType="org.eclipse.emf.ecore.xml.type.DateTime"
158
   *        extendedMetaData="kind='attribute' name='orderDate'"
159
   * @generated
160
   */
161
  XMLGregorianCalendar getOrderDate();
162
163
  /**
164
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}' attribute.
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @param value the new value of the '<em>Order Date</em>' attribute.
168
   * @see #getOrderDate()
169
   * @generated
170
   */
171
  void setOrderDate(XMLGregorianCalendar value);
172
173
} // PurchaseOrderType
(-)src/org/eclipse/emf/test/models/ipo/ItemType.java (-201 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ItemType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
import javax.xml.datatype.XMLGregorianCalendar;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Item Type</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @model extendedMetaData="name='item_._type' kind='elementOnly'"
41
 * @generated
42
 */
43
public interface ItemType
44
{
45
  /**
46
   * Returns the value of the '<em><b>Product Name</b></em>' attribute.
47
   * <!-- begin-user-doc -->
48
   * <p>
49
   * If the meaning of the '<em>Product Name</em>' attribute isn't clear,
50
   * there really should be more of a description here...
51
   * </p>
52
   * <!-- end-user-doc -->
53
   * @return the value of the '<em>Product Name</em>' attribute.
54
   * @see #setProductName(String)
55
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
56
   *        extendedMetaData="kind='element' name='productName'"
57
   * @generated
58
   */
59
  String getProductName();
60
61
  /**
62
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @param value the new value of the '<em>Product Name</em>' attribute.
66
   * @see #getProductName()
67
   * @generated
68
   */
69
  void setProductName(String value);
70
71
  /**
72
   * Returns the value of the '<em><b>Quantity</b></em>' attribute.
73
   * <!-- begin-user-doc -->
74
   * <p>
75
   * If the meaning of the '<em>Quantity</em>' attribute isn't clear,
76
   * there really should be more of a description here...
77
   * </p>
78
   * <!-- end-user-doc -->
79
   * @return the value of the '<em>Quantity</em>' attribute.
80
   * @see #setQuantity(BigInteger)
81
   * @model dataType="org.eclipse.emf.test.models.ipo.QuantityType" required="true"
82
   *        extendedMetaData="kind='element' name='quantity'"
83
   * @generated
84
   */
85
  BigInteger getQuantity();
86
87
  /**
88
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}' attribute.
89
   * <!-- begin-user-doc -->
90
   * <!-- end-user-doc -->
91
   * @param value the new value of the '<em>Quantity</em>' attribute.
92
   * @see #getQuantity()
93
   * @generated
94
   */
95
  void setQuantity(BigInteger value);
96
97
  /**
98
   * Returns the value of the '<em><b>US Price</b></em>' attribute.
99
   * <!-- begin-user-doc -->
100
   * <p>
101
   * If the meaning of the '<em>US Price</em>' attribute isn't clear,
102
   * there really should be more of a description here...
103
   * </p>
104
   * <!-- end-user-doc -->
105
   * @return the value of the '<em>US Price</em>' attribute.
106
   * @see #setUSPrice(BigDecimal)
107
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
108
   *        extendedMetaData="kind='element' name='USPrice'"
109
   * @generated
110
   */
111
  BigDecimal getUSPrice();
112
113
  /**
114
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}' attribute.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @param value the new value of the '<em>US Price</em>' attribute.
118
   * @see #getUSPrice()
119
   * @generated
120
   */
121
  void setUSPrice(BigDecimal value);
122
123
  /**
124
   * Returns the value of the '<em><b>Comment</b></em>' attribute.
125
   * <!-- begin-user-doc -->
126
   * <p>
127
   * If the meaning of the '<em>Comment</em>' attribute isn't clear,
128
   * there really should be more of a description here...
129
   * </p>
130
   * <!-- end-user-doc -->
131
   * @return the value of the '<em>Comment</em>' attribute.
132
   * @see #setComment(String)
133
   * @model dataType="org.eclipse.emf.ecore.xml.type.String"
134
   *        extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'"
135
   * @generated
136
   */
137
  String getComment();
138
139
  /**
140
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}' attribute.
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @param value the new value of the '<em>Comment</em>' attribute.
144
   * @see #getComment()
145
   * @generated
146
   */
147
  void setComment(String value);
148
149
  /**
150
   * Returns the value of the '<em><b>Ship Date</b></em>' attribute.
151
   * <!-- begin-user-doc -->
152
   * <p>
153
   * If the meaning of the '<em>Ship Date</em>' attribute isn't clear,
154
   * there really should be more of a description here...
155
   * </p>
156
   * <!-- end-user-doc -->
157
   * @return the value of the '<em>Ship Date</em>' attribute.
158
   * @see #setShipDate(XMLGregorianCalendar)
159
   * @model dataType="org.eclipse.emf.ecore.xml.type.Date"
160
   *        extendedMetaData="kind='element' name='shipDate'"
161
   * @generated
162
   */
163
  XMLGregorianCalendar getShipDate();
164
165
  /**
166
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}' attribute.
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @param value the new value of the '<em>Ship Date</em>' attribute.
170
   * @see #getShipDate()
171
   * @generated
172
   */
173
  void setShipDate(XMLGregorianCalendar value);
174
175
  /**
176
   * Returns the value of the '<em><b>Part Num</b></em>' attribute.
177
   * <!-- begin-user-doc -->
178
   * <p>
179
   * If the meaning of the '<em>Part Num</em>' attribute isn't clear,
180
   * there really should be more of a description here...
181
   * </p>
182
   * <!-- end-user-doc -->
183
   * @return the value of the '<em>Part Num</em>' attribute.
184
   * @see #setPartNum(String)
185
   * @model dataType="org.eclipse.emf.test.models.ipo.SKU" required="true"
186
   *        extendedMetaData="kind='attribute' name='partNum'"
187
   * @generated
188
   */
189
  String getPartNum();
190
191
  /**
192
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}' attribute.
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @param value the new value of the '<em>Part Num</em>' attribute.
196
   * @see #getPartNum()
197
   * @generated
198
   */
199
  void setPartNum(String value);
200
201
} // ItemType
(-)src/org/eclipse/emf/test/models/ipo/USState.java (-300 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: USState.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.util.Arrays;
20
import java.util.Collections;
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the literals of the enumeration '<em><b>US State</b></em>',
26
 * and utility methods for working with them.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState()
29
 * @model extendedMetaData="name='USState'"
30
 * @generated
31
 */
32
public enum USState implements InternalUSState
33
{
34
  /**
35
   * The '<em><b>AK</b></em>' literal object.
36
   * <!-- begin-user-doc -->
37
   * <!-- end-user-doc -->
38
   * @see #AK_VALUE
39
   * @generated
40
   * @ordered
41
   */
42
  AK(0, "AK", "AK"),
43
44
  /**
45
   * The '<em><b>AL</b></em>' literal object.
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @see #AL_VALUE
49
   * @generated
50
   * @ordered
51
   */
52
  AL(1, "AL", "AL"),
53
54
  /**
55
   * The '<em><b>AR</b></em>' literal object.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @see #AR_VALUE
59
   * @generated
60
   * @ordered
61
   */
62
  AR(2, "AR", "AR"),
63
64
  /**
65
   * The '<em><b>PA</b></em>' literal object.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @see #PA_VALUE
69
   * @generated
70
   * @ordered
71
   */
72
  PA(3, "PA", "PA");
73
74
  /**
75
   * The '<em><b>AK</b></em>' literal value.
76
   * <!-- begin-user-doc -->
77
   * <p>
78
   * If the meaning of '<em><b>AK</b></em>' literal object isn't clear,
79
   * there really should be more of a description here...
80
   * </p>
81
   * <!-- end-user-doc -->
82
   * @see #AK
83
   * @model
84
   * @generated
85
   * @ordered
86
   */
87
  public static final int AK_VALUE = 0;
88
89
  /**
90
   * The '<em><b>AL</b></em>' literal value.
91
   * <!-- begin-user-doc -->
92
   * <p>
93
   * If the meaning of '<em><b>AL</b></em>' literal object isn't clear,
94
   * there really should be more of a description here...
95
   * </p>
96
   * <!-- end-user-doc -->
97
   * @see #AL
98
   * @model
99
   * @generated
100
   * @ordered
101
   */
102
  public static final int AL_VALUE = 1;
103
104
  /**
105
   * The '<em><b>AR</b></em>' literal value.
106
   * <!-- begin-user-doc -->
107
   * <p>
108
   * If the meaning of '<em><b>AR</b></em>' literal object isn't clear,
109
   * there really should be more of a description here...
110
   * </p>
111
   * <!-- end-user-doc -->
112
   * @see #AR
113
   * @model
114
   * @generated
115
   * @ordered
116
   */
117
  public static final int AR_VALUE = 2;
118
119
  /**
120
   * The '<em><b>PA</b></em>' literal value.
121
   * <!-- begin-user-doc -->
122
   * <p>
123
   * If the meaning of '<em><b>PA</b></em>' literal object isn't clear,
124
   * there really should be more of a description here...
125
   * </p>
126
   * <!-- end-user-doc -->
127
   * @see #PA
128
   * @model
129
   * @generated
130
   * @ordered
131
   */
132
  public static final int PA_VALUE = 3;
133
134
  /**
135
   * An array of all the '<em><b>US State</b></em>' enumerators.
136
   * <!-- begin-user-doc -->
137
   * <!-- end-user-doc -->
138
   * @generated
139
   */
140
  private static final USState[] VALUES_ARRAY =
141
    new USState[]
142
    {
143
      AK,
144
      AL,
145
      AR,
146
      PA,
147
    };
148
149
  /**
150
   * A public read-only list of all the '<em><b>US State</b></em>' enumerators.
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public static final List<USState> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
156
157
  /**
158
   * Returns the '<em><b>US State</b></em>' literal with the specified literal value.
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   */
163
  public static USState get(String literal)
164
  {
165
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
166
    {
167
      USState result = VALUES_ARRAY[i];
168
      if (result.toString().equals(literal))
169
      {
170
        return result;
171
      }
172
    }
173
    return null;
174
  }
175
176
  /**
177
   * Returns the '<em><b>US State</b></em>' literal with the specified name.
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public static USState getByName(String name)
183
  {
184
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
185
    {
186
      USState result = VALUES_ARRAY[i];
187
      if (result.getName().equals(name))
188
      {
189
        return result;
190
      }
191
    }
192
    return null;
193
  }
194
195
  /**
196
   * Returns the '<em><b>US State</b></em>' literal with the specified integer value.
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  public static USState get(int value)
202
  {
203
    switch (value)
204
    {
205
      case AK_VALUE: return AK;
206
      case AL_VALUE: return AL;
207
      case AR_VALUE: return AR;
208
      case PA_VALUE: return PA;
209
    }
210
    return null;
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  private final int value;
219
220
  /**
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @generated
224
   */
225
  private final String name;
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  private final String literal;
233
234
  /**
235
   * Only this class can construct instances.
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @generated
239
   */
240
  private USState(int value, String name, String literal)
241
  {
242
    this.value = value;
243
    this.name = name;
244
    this.literal = literal;
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public int getValue()
253
  {
254
    return value;
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public String getName()
263
  {
264
    return name;
265
  }
266
267
  /**
268
   * <!-- begin-user-doc -->
269
   * <!-- end-user-doc -->
270
   * @generated
271
   */
272
  public String getLiteral()
273
  {
274
    return literal;
275
  }
276
277
  /**
278
   * Returns the literal value of the enumerator, which is its string representation.
279
   * <!-- begin-user-doc -->
280
   * <!-- end-user-doc -->
281
   * @generated
282
   */
283
  @Override
284
  public String toString()
285
  {
286
    return literal;
287
  }
288
  
289
} //USState
290
291
/**
292
 * A private implementation interface used to hide the inheritance from Enumerator.
293
 * <!-- begin-user-doc -->
294
 * <!-- end-user-doc -->
295
 * @generated
296
 */
297
interface InternalUSState extends org.eclipse.emf.common.util.Enumerator
298
{
299
  // Empty
300
}
(-)src/org/eclipse/emf/test/models/ipo/Address.java (-117 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Address.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Address</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}</li>
29
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model extendedMetaData="name='Address' kind='elementOnly'"
35
 * @generated
36
 */
37
public interface Address
38
{
39
  /**
40
   * Returns the value of the '<em><b>Name</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Name</em>' attribute.
48
   * @see #setName(String)
49
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
50
   *        extendedMetaData="kind='element' name='name'"
51
   * @generated
52
   */
53
  String getName();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Name</em>' attribute.
60
   * @see #getName()
61
   * @generated
62
   */
63
  void setName(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Street</b></em>' attribute.
67
   * <!-- begin-user-doc -->
68
   * <p>
69
   * If the meaning of the '<em>Street</em>' attribute isn't clear,
70
   * there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * @return the value of the '<em>Street</em>' attribute.
74
   * @see #setStreet(String)
75
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
76
   *        extendedMetaData="kind='element' name='street'"
77
   * @generated
78
   */
79
  String getStreet();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Street</em>' attribute.
86
   * @see #getStreet()
87
   * @generated
88
   */
89
  void setStreet(String value);
90
91
  /**
92
   * Returns the value of the '<em><b>City</b></em>' attribute.
93
   * <!-- begin-user-doc -->
94
   * <p>
95
   * If the meaning of the '<em>City</em>' attribute isn't clear,
96
   * there really should be more of a description here...
97
   * </p>
98
   * <!-- end-user-doc -->
99
   * @return the value of the '<em>City</em>' attribute.
100
   * @see #setCity(String)
101
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
102
   *        extendedMetaData="kind='element' name='city'"
103
   * @generated
104
   */
105
  String getCity();
106
107
  /**
108
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}' attribute.
109
   * <!-- begin-user-doc -->
110
   * <!-- end-user-doc -->
111
   * @param value the new value of the '<em>City</em>' attribute.
112
   * @see #getCity()
113
   * @generated
114
   */
115
  void setCity(String value);
116
117
} // Address
(-)src/org/eclipse/emf/test/models/ipo/USAddress.java (-122 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: USAddress.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.math.BigInteger;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>US Address</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model extendedMetaData="name='USAddress' kind='elementOnly'"
35
 * @generated
36
 */
37
public interface USAddress extends Address
38
{
39
  /**
40
   * Returns the value of the '<em><b>State</b></em>' attribute.
41
   * The default value is <code>"AK"</code>.
42
   * The literals are from the enumeration {@link org.eclipse.emf.test.models.ipo.USState}.
43
   * <!-- begin-user-doc -->
44
   * <p>
45
   * If the meaning of the '<em>State</em>' attribute isn't clear,
46
   * there really should be more of a description here...
47
   * </p>
48
   * <!-- end-user-doc -->
49
   * @return the value of the '<em>State</em>' attribute.
50
   * @see org.eclipse.emf.test.models.ipo.USState
51
   * @see #isSetState()
52
   * @see #unsetState()
53
   * @see #setState(USState)
54
   * @model default="AK" unsettable="true" required="true"
55
   *        extendedMetaData="kind='element' name='state'"
56
   * @generated
57
   */
58
  USState getState();
59
60
  /**
61
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute.
62
   * <!-- begin-user-doc -->
63
   * <!-- end-user-doc -->
64
   * @param value the new value of the '<em>State</em>' attribute.
65
   * @see org.eclipse.emf.test.models.ipo.USState
66
   * @see #isSetState()
67
   * @see #unsetState()
68
   * @see #getState()
69
   * @generated
70
   */
71
  void setState(USState value);
72
73
  /**
74
   * Unsets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #isSetState()
78
   * @see #getState()
79
   * @see #setState(USState)
80
   * @generated
81
   */
82
  void unsetState();
83
84
  /**
85
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute is set.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @return whether the value of the '<em>State</em>' attribute is set.
89
   * @see #unsetState()
90
   * @see #getState()
91
   * @see #setState(USState)
92
   * @generated
93
   */
94
  boolean isSetState();
95
96
  /**
97
   * Returns the value of the '<em><b>Zip</b></em>' attribute.
98
   * <!-- begin-user-doc -->
99
   * <p>
100
   * If the meaning of the '<em>Zip</em>' attribute isn't clear,
101
   * there really should be more of a description here...
102
   * </p>
103
   * <!-- end-user-doc -->
104
   * @return the value of the '<em>Zip</em>' attribute.
105
   * @see #setZip(BigInteger)
106
   * @model dataType="org.eclipse.emf.ecore.xml.type.PositiveInteger" required="true"
107
   *        extendedMetaData="kind='element' name='zip'"
108
   * @generated
109
   */
110
  BigInteger getZip();
111
112
  /**
113
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}' attribute.
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @param value the new value of the '<em>Zip</em>' attribute.
117
   * @see #getZip()
118
   * @generated
119
   */
120
  void setZip(BigInteger value);
121
122
} // USAddress
(-)src/org/eclipse/emf/test/models/ipo/DocumentRoot.java (-145 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Document Root</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed <em>Mixed</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}</li>
36
 * </ul>
37
 * </p>
38
 *
39
 * @model extendedMetaData="name='' kind='mixed'"
40
 * @generated
41
 */
42
public interface DocumentRoot
43
{
44
  /**
45
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
46
   * <!-- begin-user-doc -->
47
   * <p>
48
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
49
   * there really should be more of a description here...
50
   * </p>
51
   * <!-- end-user-doc -->
52
   * @return the value of the '<em>Mixed</em>' attribute list.
53
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
54
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
55
   * @generated
56
   */
57
  Sequence getMixed();
58
59
  /**
60
   * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
61
   * The key is of type {@link java.lang.String},
62
   * and the value is of type {@link java.lang.String},
63
   * <!-- begin-user-doc -->
64
   * <p>
65
   * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
66
   * there really should be more of a description here...
67
   * </p>
68
   * <!-- end-user-doc -->
69
   * @return the value of the '<em>XMLNS Prefix Map</em>' map.
70
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
71
   *        extendedMetaData="kind='attribute' name='xmlns:prefix'"
72
   * @generated
73
   */
74
  Map<String, String> getXMLNSPrefixMap();
75
76
  /**
77
   * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
78
   * The key is of type {@link java.lang.String},
79
   * and the value is of type {@link java.lang.String},
80
   * <!-- begin-user-doc -->
81
   * <p>
82
   * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
83
   * there really should be more of a description here...
84
   * </p>
85
   * <!-- end-user-doc -->
86
   * @return the value of the '<em>XSI Schema Location</em>' map.
87
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
88
   *        extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
89
   * @generated
90
   */
91
  Map<String, String> getXSISchemaLocation();
92
93
  /**
94
   * Returns the value of the '<em><b>Comment</b></em>' attribute.
95
   * <!-- begin-user-doc -->
96
   * <p>
97
   * If the meaning of the '<em>Comment</em>' attribute isn't clear,
98
   * there really should be more of a description here...
99
   * </p>
100
   * <!-- end-user-doc -->
101
   * @return the value of the '<em>Comment</em>' attribute.
102
   * @see #setComment(String)
103
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
104
   *        extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'"
105
   * @generated
106
   */
107
  String getComment();
108
109
  /**
110
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}' attribute.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @param value the new value of the '<em>Comment</em>' attribute.
114
   * @see #getComment()
115
   * @generated
116
   */
117
  void setComment(String value);
118
119
  /**
120
   * Returns the value of the '<em><b>Purchase Order</b></em>' containment reference.
121
   * <!-- begin-user-doc -->
122
   * <p>
123
   * If the meaning of the '<em>Purchase Order</em>' containment reference isn't clear,
124
   * there really should be more of a description here...
125
   * </p>
126
   * <!-- end-user-doc -->
127
   * @return the value of the '<em>Purchase Order</em>' containment reference.
128
   * @see #setPurchaseOrder(PurchaseOrderType)
129
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
130
   *        extendedMetaData="kind='element' name='purchaseOrder' namespace='##targetNamespace'"
131
   * @generated
132
   */
133
  PurchaseOrderType getPurchaseOrder();
134
135
  /**
136
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}' containment reference.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @param value the new value of the '<em>Purchase Order</em>' containment reference.
140
   * @see #getPurchaseOrder()
141
   * @generated
142
   */
143
  void setPurchaseOrder(PurchaseOrderType value);
144
145
} // DocumentRoot
(-)src/org/eclipse/emf/test/models/ipo/UKAddress.java (-119 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UKAddress.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.math.BigInteger;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>UK Address</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model extendedMetaData="name='UKAddress' kind='elementOnly'"
35
 * @generated
36
 */
37
public interface UKAddress extends Address
38
{
39
  /**
40
   * Returns the value of the '<em><b>Postcode</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Postcode</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Postcode</em>' attribute.
48
   * @see #setPostcode(String)
49
   * @model dataType="org.eclipse.emf.test.models.ipo.UKPostcode" required="true"
50
   *        extendedMetaData="kind='element' name='postcode'"
51
   * @generated
52
   */
53
  String getPostcode();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Postcode</em>' attribute.
60
   * @see #getPostcode()
61
   * @generated
62
   */
63
  void setPostcode(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Export Code</b></em>' attribute.
67
   * The default value is <code>"1"</code>.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Export Code</em>' attribute isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Export Code</em>' attribute.
75
   * @see #isSetExportCode()
76
   * @see #unsetExportCode()
77
   * @see #setExportCode(BigInteger)
78
   * @model default="1" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.PositiveInteger"
79
   *        extendedMetaData="kind='attribute' name='exportCode'"
80
   * @generated
81
   */
82
  BigInteger getExportCode();
83
84
  /**
85
   * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @param value the new value of the '<em>Export Code</em>' attribute.
89
   * @see #isSetExportCode()
90
   * @see #unsetExportCode()
91
   * @see #getExportCode()
92
   * @generated
93
   */
94
  void setExportCode(BigInteger value);
95
96
  /**
97
   * Unsets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute.
98
   * <!-- begin-user-doc -->
99
   * <!-- end-user-doc -->
100
   * @see #isSetExportCode()
101
   * @see #getExportCode()
102
   * @see #setExportCode(BigInteger)
103
   * @generated
104
   */
105
  void unsetExportCode();
106
107
  /**
108
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute is set.
109
   * <!-- begin-user-doc -->
110
   * <!-- end-user-doc -->
111
   * @return whether the value of the '<em>Export Code</em>' attribute is set.
112
   * @see #unsetExportCode()
113
   * @see #getExportCode()
114
   * @see #setExportCode(BigInteger)
115
   * @generated
116
   */
117
  boolean isSetExportCode();
118
119
} // UKAddress
(-)src/org/eclipse/emf/test/models/ipo/Items.java (-54 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Items.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Items</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.ipo.Items#getItem <em>Item</em>}</li>
30
 * </ul>
31
 * </p>
32
 *
33
 * @model extendedMetaData="name='Items' kind='elementOnly'"
34
 * @generated
35
 */
36
public interface Items
37
{
38
  /**
39
   * Returns the value of the '<em><b>Item</b></em>' containment reference list.
40
   * The list contents are of type {@link org.eclipse.emf.test.models.ipo.ItemType}.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Item</em>' containment reference list isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Item</em>' containment reference list.
48
   * @model containment="true"
49
   *        extendedMetaData="kind='element' name='item'"
50
   * @generated
51
   */
52
  List<ItemType> getItem();
53
54
} // Items
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/DocumentRootImpl.java (-632 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EMap;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.EStructuralFeature;
29
import org.eclipse.emf.ecore.EcorePackage;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
37
import org.eclipse.emf.ecore.sdo.util.ESequence;
38
39
import org.eclipse.emf.ecore.util.BasicFeatureMap;
40
import org.eclipse.emf.ecore.util.EcoreEMap;
41
import org.eclipse.emf.ecore.util.FeatureMap;
42
import org.eclipse.emf.ecore.util.InternalEList;
43
44
import org.eclipse.emf.test.models.personal.mixed.DocumentRoot;
45
import org.eclipse.emf.test.models.personal.mixed.LinkType;
46
import org.eclipse.emf.test.models.personal.mixed.NameType;
47
import org.eclipse.emf.test.models.personal.mixed.PersonType;
48
import org.eclipse.emf.test.models.personal.mixed.PersonnelType;
49
import org.eclipse.emf.test.models.personal.mixed.UrlType;
50
51
/**
52
 * <!-- begin-user-doc -->
53
 * An implementation of the model object '<em><b>Document Root</b></em>'.
54
 * <!-- end-user-doc -->
55
 * <p>
56
 * The following features are implemented:
57
 * <ul>
58
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getEmail <em>Email</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getFamily <em>Family</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getGiven <em>Given</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getLink <em>Link</em>}</li>
65
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getName <em>Name</em>}</li>
66
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getPerson <em>Person</em>}</li>
67
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getPersonnel <em>Personnel</em>}</li>
68
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getUrl <em>Url</em>}</li>
69
 * </ul>
70
 * </p>
71
 *
72
 * @generated
73
 */
74
public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot
75
{
76
  /**
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
80
   */
81
  private static final long serialVersionUID = 1L;
82
83
  /**
84
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getMixed()
88
   * @generated
89
   * @ordered
90
   */
91
  protected ESequence mixed;
92
93
  /**
94
   * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #getXMLNSPrefixMap()
98
   * @generated
99
   * @ordered
100
   */
101
  protected EMap<String, String> xMLNSPrefixMap;
102
103
  /**
104
   * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #getXSISchemaLocation()
108
   * @generated
109
   * @ordered
110
   */
111
  protected EMap<String, String> xSISchemaLocation;
112
113
  /**
114
   * The default value of the '{@link #getEmail() <em>Email</em>}' attribute.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @see #getEmail()
118
   * @generated
119
   * @ordered
120
   */
121
  protected static final String EMAIL_EDEFAULT = null;
122
123
  /**
124
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
125
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
127
   * @see #getFamily()
128
   * @generated
129
   * @ordered
130
   */
131
  protected static final String FAMILY_EDEFAULT = null;
132
133
  /**
134
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @see #getGiven()
138
   * @generated
139
   * @ordered
140
   */
141
  protected static final String GIVEN_EDEFAULT = null;
142
143
  /**
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @generated
147
   */
148
  protected DocumentRootImpl()
149
  {
150
    super();
151
  }
152
153
  /**
154
   * <!-- begin-user-doc -->
155
   * <!-- end-user-doc -->
156
   * @generated
157
   */
158
  @Override
159
  protected EClass eStaticClass()
160
  {
161
    return MixedPackageImpl.Literals.DOCUMENT_ROOT;
162
  }
163
164
  /**
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @generated
168
   */
169
  public Sequence getMixed()
170
  {
171
    if (mixed == null)
172
    {
173
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.DOCUMENT_ROOT__MIXED));
174
    }
175
    return mixed;
176
  }
177
178
  /**
179
   * <!-- begin-user-doc -->
180
   * <!-- end-user-doc -->
181
   * @generated
182
   */
183
  public Map<String, String> getXMLNSPrefixMap()
184
  {
185
    if (xMLNSPrefixMap == null)
186
    {
187
      xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
188
    }
189
    return xMLNSPrefixMap.map();
190
  }
191
192
  /**
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @generated
196
   */
197
  public Map<String, String> getXSISchemaLocation()
198
  {
199
    if (xSISchemaLocation == null)
200
    {
201
      xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
202
    }
203
    return xSISchemaLocation.map();
204
  }
205
206
  /**
207
   * <!-- begin-user-doc -->
208
   * <!-- end-user-doc -->
209
   * @generated
210
   */
211
  public String getEmail()
212
  {
213
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, true);
214
  }
215
216
  /**
217
   * <!-- begin-user-doc -->
218
   * <!-- end-user-doc -->
219
   * @generated
220
   */
221
  public void setEmail(String newEmail)
222
  {
223
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, newEmail);
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  public String getFamily()
232
  {
233
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, true);
234
  }
235
236
  /**
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   */
241
  public void setFamily(String newFamily)
242
  {
243
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, newFamily);
244
  }
245
246
  /**
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @generated
250
   */
251
  public String getGiven()
252
  {
253
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, true);
254
  }
255
256
  /**
257
   * <!-- begin-user-doc -->
258
   * <!-- end-user-doc -->
259
   * @generated
260
   */
261
  public void setGiven(String newGiven)
262
  {
263
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, newGiven);
264
  }
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public LinkType getLink()
272
  {
273
    return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, true);
274
  }
275
276
  /**
277
   * <!-- begin-user-doc -->
278
   * <!-- end-user-doc -->
279
   * @generated
280
   */
281
  public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs)
282
  {
283
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink, msgs);
284
  }
285
286
  /**
287
   * <!-- begin-user-doc -->
288
   * <!-- end-user-doc -->
289
   * @generated
290
   */
291
  public void setLink(LinkType newLink)
292
  {
293
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink);
294
  }
295
296
  /**
297
   * <!-- begin-user-doc -->
298
   * <!-- end-user-doc -->
299
   * @generated
300
   */
301
  public NameType getName()
302
  {
303
    return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, true);
304
  }
305
306
  /**
307
   * <!-- begin-user-doc -->
308
   * <!-- end-user-doc -->
309
   * @generated
310
   */
311
  public NotificationChain basicSetName(NameType newName, NotificationChain msgs)
312
  {
313
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName, msgs);
314
  }
315
316
  /**
317
   * <!-- begin-user-doc -->
318
   * <!-- end-user-doc -->
319
   * @generated
320
   */
321
  public void setName(NameType newName)
322
  {
323
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName);
324
  }
325
326
  /**
327
   * <!-- begin-user-doc -->
328
   * <!-- end-user-doc -->
329
   * @generated
330
   */
331
  public PersonType getPerson()
332
  {
333
    return (PersonType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, true);
334
  }
335
336
  /**
337
   * <!-- begin-user-doc -->
338
   * <!-- end-user-doc -->
339
   * @generated
340
   */
341
  public NotificationChain basicSetPerson(PersonType newPerson, NotificationChain msgs)
342
  {
343
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson, msgs);
344
  }
345
346
  /**
347
   * <!-- begin-user-doc -->
348
   * <!-- end-user-doc -->
349
   * @generated
350
   */
351
  public void setPerson(PersonType newPerson)
352
  {
353
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson);
354
  }
355
356
  /**
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   */
361
  public PersonnelType getPersonnel()
362
  {
363
    return (PersonnelType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, true);
364
  }
365
366
  /**
367
   * <!-- begin-user-doc -->
368
   * <!-- end-user-doc -->
369
   * @generated
370
   */
371
  public NotificationChain basicSetPersonnel(PersonnelType newPersonnel, NotificationChain msgs)
372
  {
373
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel, msgs);
374
  }
375
376
  /**
377
   * <!-- begin-user-doc -->
378
   * <!-- end-user-doc -->
379
   * @generated
380
   */
381
  public void setPersonnel(PersonnelType newPersonnel)
382
  {
383
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel);
384
  }
385
386
  /**
387
   * <!-- begin-user-doc -->
388
   * <!-- end-user-doc -->
389
   * @generated
390
   */
391
  public UrlType getUrl()
392
  {
393
    return (UrlType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, true);
394
  }
395
396
  /**
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @generated
400
   */
401
  public NotificationChain basicSetUrl(UrlType newUrl, NotificationChain msgs)
402
  {
403
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl, msgs);
404
  }
405
406
  /**
407
   * <!-- begin-user-doc -->
408
   * <!-- end-user-doc -->
409
   * @generated
410
   */
411
  public void setUrl(UrlType newUrl)
412
  {
413
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl);
414
  }
415
416
  /**
417
   * <!-- begin-user-doc -->
418
   * <!-- end-user-doc -->
419
   * @generated
420
   */
421
  @Override
422
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
423
  {
424
    switch (featureID)
425
    {
426
      case MixedPackageImpl.DOCUMENT_ROOT__MIXED:
427
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
428
      case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
429
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs);
430
      case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
431
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs);
432
      case MixedPackageImpl.DOCUMENT_ROOT__LINK:
433
        return basicSetLink(null, msgs);
434
      case MixedPackageImpl.DOCUMENT_ROOT__NAME:
435
        return basicSetName(null, msgs);
436
      case MixedPackageImpl.DOCUMENT_ROOT__PERSON:
437
        return basicSetPerson(null, msgs);
438
      case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL:
439
        return basicSetPersonnel(null, msgs);
440
      case MixedPackageImpl.DOCUMENT_ROOT__URL:
441
        return basicSetUrl(null, msgs);
442
    }
443
    return super.eInverseRemove(otherEnd, featureID, msgs);
444
  }
445
446
  /**
447
   * <!-- begin-user-doc -->
448
   * <!-- end-user-doc -->
449
   * @generated
450
   */
451
  @Override
452
  public Object eGet(int featureID, boolean resolve, boolean coreType)
453
  {
454
    switch (featureID)
455
    {
456
      case MixedPackageImpl.DOCUMENT_ROOT__MIXED:
457
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
458
        return getMixed();
459
      case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
460
        if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap();
461
        else return getXMLNSPrefixMap();
462
      case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
463
        if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap();
464
        else return getXSISchemaLocation();
465
      case MixedPackageImpl.DOCUMENT_ROOT__EMAIL:
466
        return getEmail();
467
      case MixedPackageImpl.DOCUMENT_ROOT__FAMILY:
468
        return getFamily();
469
      case MixedPackageImpl.DOCUMENT_ROOT__GIVEN:
470
        return getGiven();
471
      case MixedPackageImpl.DOCUMENT_ROOT__LINK:
472
        return getLink();
473
      case MixedPackageImpl.DOCUMENT_ROOT__NAME:
474
        return getName();
475
      case MixedPackageImpl.DOCUMENT_ROOT__PERSON:
476
        return getPerson();
477
      case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL:
478
        return getPersonnel();
479
      case MixedPackageImpl.DOCUMENT_ROOT__URL:
480
        return getUrl();
481
    }
482
    return super.eGet(featureID, resolve, coreType);
483
  }
484
485
  /**
486
   * <!-- begin-user-doc -->
487
   * <!-- end-user-doc -->
488
   * @generated
489
   */
490
  @Override
491
  public void eSet(int featureID, Object newValue)
492
  {
493
    switch (featureID)
494
    {
495
      case MixedPackageImpl.DOCUMENT_ROOT__MIXED:
496
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
497
        return;
498
      case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
499
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue);
500
        return;
501
      case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
502
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue);
503
        return;
504
      case MixedPackageImpl.DOCUMENT_ROOT__EMAIL:
505
        setEmail((String)newValue);
506
        return;
507
      case MixedPackageImpl.DOCUMENT_ROOT__FAMILY:
508
        setFamily((String)newValue);
509
        return;
510
      case MixedPackageImpl.DOCUMENT_ROOT__GIVEN:
511
        setGiven((String)newValue);
512
        return;
513
      case MixedPackageImpl.DOCUMENT_ROOT__LINK:
514
        setLink((LinkType)newValue);
515
        return;
516
      case MixedPackageImpl.DOCUMENT_ROOT__NAME:
517
        setName((NameType)newValue);
518
        return;
519
      case MixedPackageImpl.DOCUMENT_ROOT__PERSON:
520
        setPerson((PersonType)newValue);
521
        return;
522
      case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL:
523
        setPersonnel((PersonnelType)newValue);
524
        return;
525
      case MixedPackageImpl.DOCUMENT_ROOT__URL:
526
        setUrl((UrlType)newValue);
527
        return;
528
    }
529
    super.eSet(featureID, newValue);
530
  }
531
532
  /**
533
   * <!-- begin-user-doc -->
534
   * <!-- end-user-doc -->
535
   * @generated
536
   */
537
  @Override
538
  public void eUnset(int featureID)
539
  {
540
    switch (featureID)
541
    {
542
      case MixedPackageImpl.DOCUMENT_ROOT__MIXED:
543
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
544
        return;
545
      case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
546
        getXMLNSPrefixMap().clear();
547
        return;
548
      case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
549
        getXSISchemaLocation().clear();
550
        return;
551
      case MixedPackageImpl.DOCUMENT_ROOT__EMAIL:
552
        setEmail(EMAIL_EDEFAULT);
553
        return;
554
      case MixedPackageImpl.DOCUMENT_ROOT__FAMILY:
555
        setFamily(FAMILY_EDEFAULT);
556
        return;
557
      case MixedPackageImpl.DOCUMENT_ROOT__GIVEN:
558
        setGiven(GIVEN_EDEFAULT);
559
        return;
560
      case MixedPackageImpl.DOCUMENT_ROOT__LINK:
561
        setLink((LinkType)null);
562
        return;
563
      case MixedPackageImpl.DOCUMENT_ROOT__NAME:
564
        setName((NameType)null);
565
        return;
566
      case MixedPackageImpl.DOCUMENT_ROOT__PERSON:
567
        setPerson((PersonType)null);
568
        return;
569
      case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL:
570
        setPersonnel((PersonnelType)null);
571
        return;
572
      case MixedPackageImpl.DOCUMENT_ROOT__URL:
573
        setUrl((UrlType)null);
574
        return;
575
    }
576
    super.eUnset(featureID);
577
  }
578
579
  /**
580
   * <!-- begin-user-doc -->
581
   * <!-- end-user-doc -->
582
   * @generated
583
   */
584
  @Override
585
  public boolean eIsSet(int featureID)
586
  {
587
    switch (featureID)
588
    {
589
      case MixedPackageImpl.DOCUMENT_ROOT__MIXED:
590
        return mixed != null && !mixed.featureMap().isEmpty();
591
      case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
592
        return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
593
      case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
594
        return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
595
      case MixedPackageImpl.DOCUMENT_ROOT__EMAIL:
596
        return EMAIL_EDEFAULT == null ? getEmail() != null : !EMAIL_EDEFAULT.equals(getEmail());
597
      case MixedPackageImpl.DOCUMENT_ROOT__FAMILY:
598
        return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily());
599
      case MixedPackageImpl.DOCUMENT_ROOT__GIVEN:
600
        return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven());
601
      case MixedPackageImpl.DOCUMENT_ROOT__LINK:
602
        return getLink() != null;
603
      case MixedPackageImpl.DOCUMENT_ROOT__NAME:
604
        return getName() != null;
605
      case MixedPackageImpl.DOCUMENT_ROOT__PERSON:
606
        return getPerson() != null;
607
      case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL:
608
        return getPersonnel() != null;
609
      case MixedPackageImpl.DOCUMENT_ROOT__URL:
610
        return getUrl() != null;
611
    }
612
    return super.eIsSet(featureID);
613
  }
614
615
  /**
616
   * <!-- begin-user-doc -->
617
   * <!-- end-user-doc -->
618
   * @generated
619
   */
620
  @Override
621
  public String toString()
622
  {
623
    if (eIsProxy()) return super.toString();
624
625
    StringBuffer result = new StringBuffer(super.toString());
626
    result.append(" (mixed: ");
627
    result.append(mixed);
628
    result.append(')');
629
    return result.toString();
630
  }
631
632
} //DocumentRootImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java (-286 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import org.eclipse.emf.common.notify.NotificationChain;
22
23
import org.eclipse.emf.ecore.EClass;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
27
28
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
29
import org.eclipse.emf.ecore.sdo.util.ESequence;
30
31
import org.eclipse.emf.ecore.util.BasicFeatureMap;
32
import org.eclipse.emf.ecore.util.FeatureMap;
33
import org.eclipse.emf.ecore.util.InternalEList;
34
35
import org.eclipse.emf.test.models.personal.mixed.NameType;
36
37
/**
38
 * <!-- begin-user-doc -->
39
 * An implementation of the model object '<em><b>Name Type</b></em>'.
40
 * <!-- end-user-doc -->
41
 * <p>
42
 * The following features are implemented:
43
 * <ul>
44
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getMixed <em>Mixed</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getFamily <em>Family</em>}</li>
46
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getGiven <em>Given</em>}</li>
47
 * </ul>
48
 * </p>
49
 *
50
 * @generated
51
 */
52
public class NameTypeImpl extends EDataObjectImpl implements NameType
53
{
54
  /**
55
   * <!-- begin-user-doc -->
56
   * <!-- end-user-doc -->
57
   * @generated
58
   */
59
  private static final long serialVersionUID = 1L;
60
61
  /**
62
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getMixed()
66
   * @generated
67
   * @ordered
68
   */
69
  protected ESequence mixed;
70
71
  /**
72
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @see #getFamily()
76
   * @generated
77
   * @ordered
78
   */
79
  protected static final String FAMILY_EDEFAULT = null;
80
81
  /**
82
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @see #getGiven()
86
   * @generated
87
   * @ordered
88
   */
89
  protected static final String GIVEN_EDEFAULT = null;
90
91
  /**
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @generated
95
   */
96
  protected NameTypeImpl()
97
  {
98
    super();
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  protected EClass eStaticClass()
108
  {
109
    return MixedPackageImpl.Literals.NAME_TYPE;
110
  }
111
112
  /**
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   */
117
  public Sequence getMixed()
118
  {
119
    if (mixed == null)
120
    {
121
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.NAME_TYPE__MIXED));
122
    }
123
    return mixed;
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public String getFamily()
132
  {
133
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, true);
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  public void setFamily(String newFamily)
142
  {
143
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, newFamily);
144
  }
145
146
  /**
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   */
151
  public String getGiven()
152
  {
153
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, true);
154
  }
155
156
  /**
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
159
   * @generated
160
   */
161
  public void setGiven(String newGiven)
162
  {
163
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, newGiven);
164
  }
165
166
  /**
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   */
171
  @Override
172
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
173
  {
174
    switch (featureID)
175
    {
176
      case MixedPackageImpl.NAME_TYPE__MIXED:
177
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
178
    }
179
    return super.eInverseRemove(otherEnd, featureID, msgs);
180
  }
181
182
  /**
183
   * <!-- begin-user-doc -->
184
   * <!-- end-user-doc -->
185
   * @generated
186
   */
187
  @Override
188
  public Object eGet(int featureID, boolean resolve, boolean coreType)
189
  {
190
    switch (featureID)
191
    {
192
      case MixedPackageImpl.NAME_TYPE__MIXED:
193
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
194
        return getMixed();
195
      case MixedPackageImpl.NAME_TYPE__FAMILY:
196
        return getFamily();
197
      case MixedPackageImpl.NAME_TYPE__GIVEN:
198
        return getGiven();
199
    }
200
    return super.eGet(featureID, resolve, coreType);
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  @Override
209
  public void eSet(int featureID, Object newValue)
210
  {
211
    switch (featureID)
212
    {
213
      case MixedPackageImpl.NAME_TYPE__MIXED:
214
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
215
        return;
216
      case MixedPackageImpl.NAME_TYPE__FAMILY:
217
        setFamily((String)newValue);
218
        return;
219
      case MixedPackageImpl.NAME_TYPE__GIVEN:
220
        setGiven((String)newValue);
221
        return;
222
    }
223
    super.eSet(featureID, newValue);
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  @Override
232
  public void eUnset(int featureID)
233
  {
234
    switch (featureID)
235
    {
236
      case MixedPackageImpl.NAME_TYPE__MIXED:
237
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
238
        return;
239
      case MixedPackageImpl.NAME_TYPE__FAMILY:
240
        setFamily(FAMILY_EDEFAULT);
241
        return;
242
      case MixedPackageImpl.NAME_TYPE__GIVEN:
243
        setGiven(GIVEN_EDEFAULT);
244
        return;
245
    }
246
    super.eUnset(featureID);
247
  }
248
249
  /**
250
   * <!-- begin-user-doc -->
251
   * <!-- end-user-doc -->
252
   * @generated
253
   */
254
  @Override
255
  public boolean eIsSet(int featureID)
256
  {
257
    switch (featureID)
258
    {
259
      case MixedPackageImpl.NAME_TYPE__MIXED:
260
        return mixed != null && !mixed.featureMap().isEmpty();
261
      case MixedPackageImpl.NAME_TYPE__FAMILY:
262
        return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily());
263
      case MixedPackageImpl.NAME_TYPE__GIVEN:
264
        return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven());
265
    }
266
    return super.eIsSet(featureID);
267
  }
268
269
  /**
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @generated
273
   */
274
  @Override
275
  public String toString()
276
  {
277
    if (eIsProxy()) return super.toString();
278
279
    StringBuffer result = new StringBuffer(super.toString());
280
    result.append(" (mixed: ");
281
    result.append(mixed);
282
    result.append(')');
283
    return result.toString();
284
  }
285
286
} //NameTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java (-234 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.mixed.UrlType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Url Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl#getHref <em>Href</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class UrlTypeImpl extends EDataObjectImpl implements UrlType
43
{
44
  /**
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  private static final long serialVersionUID = 1L;
50
51
  /**
52
   * The default value of the '{@link #getHref() <em>Href</em>}' attribute.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @see #getHref()
56
   * @generated
57
   * @ordered
58
   */
59
  protected static final String HREF_EDEFAULT = "http://";
60
61
  /**
62
   * The cached value of the '{@link #getHref() <em>Href</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getHref()
66
   * @generated
67
   * @ordered
68
   */
69
  protected String href = HREF_EDEFAULT;
70
71
  /**
72
   * This is true if the Href attribute has been set.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   * @ordered
77
   */
78
  protected boolean hrefESet;
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  protected UrlTypeImpl()
86
  {
87
    super();
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  @Override
96
  protected EClass eStaticClass()
97
  {
98
    return MixedPackageImpl.Literals.URL_TYPE;
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  public String getHref()
107
  {
108
    return href;
109
  }
110
111
  /**
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @generated
115
   */
116
  public void setHref(String newHref)
117
  {
118
    String oldHref = href;
119
    href = newHref;
120
    boolean oldHrefESet = hrefESet;
121
    hrefESet = true;
122
    if (eNotificationRequired())
123
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet));
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public void unsetHref()
132
  {
133
    String oldHref = href;
134
    boolean oldHrefESet = hrefESet;
135
    href = HREF_EDEFAULT;
136
    hrefESet = false;
137
    if (eNotificationRequired())
138
      eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet));
139
  }
140
141
  /**
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @generated
145
   */
146
  public boolean isSetHref()
147
  {
148
    return hrefESet;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @Override
157
  public Object eGet(int featureID, boolean resolve, boolean coreType)
158
  {
159
    switch (featureID)
160
    {
161
      case MixedPackageImpl.URL_TYPE__HREF:
162
        return getHref();
163
    }
164
    return super.eGet(featureID, resolve, coreType);
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  @Override
173
  public void eSet(int featureID, Object newValue)
174
  {
175
    switch (featureID)
176
    {
177
      case MixedPackageImpl.URL_TYPE__HREF:
178
        setHref((String)newValue);
179
        return;
180
    }
181
    super.eSet(featureID, newValue);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public void eUnset(int featureID)
191
  {
192
    switch (featureID)
193
    {
194
      case MixedPackageImpl.URL_TYPE__HREF:
195
        unsetHref();
196
        return;
197
    }
198
    super.eUnset(featureID);
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  @Override
207
  public boolean eIsSet(int featureID)
208
  {
209
    switch (featureID)
210
    {
211
      case MixedPackageImpl.URL_TYPE__HREF:
212
        return isSetHref();
213
    }
214
    return super.eIsSet(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public String toString()
224
  {
225
    if (eIsProxy()) return super.toString();
226
227
    StringBuffer result = new StringBuffer(super.toString());
228
    result.append(" (href: ");
229
    if (hrefESet) result.append(href); else result.append("<unset>");
230
    result.append(')');
231
    return result.toString();
232
  }
233
234
} //UrlTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java (-1907 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedPackageImpl.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EDataType;
22
import org.eclipse.emf.ecore.EEnum;
23
import org.eclipse.emf.ecore.EFactory;
24
import org.eclipse.emf.ecore.EPackage;
25
import org.eclipse.emf.ecore.EReference;
26
27
import org.eclipse.emf.ecore.impl.EPackageImpl;
28
29
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
30
31
import org.eclipse.emf.test.models.personal.mixed.ContrType;
32
import org.eclipse.emf.test.models.personal.mixed.DocumentRoot;
33
import org.eclipse.emf.test.models.personal.mixed.LinkType;
34
import org.eclipse.emf.test.models.personal.mixed.MixedFactory;
35
import org.eclipse.emf.test.models.personal.mixed.NameType;
36
import org.eclipse.emf.test.models.personal.mixed.PersonType;
37
import org.eclipse.emf.test.models.personal.mixed.PersonnelType;
38
import org.eclipse.emf.test.models.personal.mixed.UrlType;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * The <b>Package</b> for the model.
43
 * It contains accessors for the meta objects to represent
44
 * <ul>
45
 *   <li>each class,</li>
46
 *   <li>each feature of each class,</li>
47
 *   <li>each enum,</li>
48
 *   <li>and each data type</li>
49
 * </ul>
50
 * <!-- end-user-doc -->
51
 * @see org.eclipse.emf.test.models.personal.mixed.MixedFactory
52
 * @model kind="package"
53
 * @generated
54
 */
55
public class MixedPackageImpl extends EPackageImpl
56
{
57
  /**
58
   * The package name.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNAME = "mixed";
64
65
  /**
66
   * The package namespace URI.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personalMixed";
72
73
  /**
74
   * The package namespace name.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final String eNS_PREFIX = "mixed";
80
81
  /**
82
   * The singleton instance of the package.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  public static final MixedPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl.init();
88
89
  /**
90
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl
94
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot()
95
   * @generated
96
   */
97
  public static final int DOCUMENT_ROOT = 0;
98
99
  /**
100
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @generated
104
   * @ordered
105
   */
106
  public static final int DOCUMENT_ROOT__MIXED = 0;
107
108
  /**
109
   * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
110
   * <!-- begin-user-doc -->
111
   * <!-- end-user-doc -->
112
   * @generated
113
   * @ordered
114
   */
115
  public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
116
117
  /**
118
   * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
119
   * <!-- begin-user-doc -->
120
   * <!-- end-user-doc -->
121
   * @generated
122
   * @ordered
123
   */
124
  public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
125
126
  /**
127
   * The feature id for the '<em><b>Email</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   * @ordered
132
   */
133
  public static final int DOCUMENT_ROOT__EMAIL = 3;
134
135
  /**
136
   * The feature id for the '<em><b>Family</b></em>' attribute.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   * @ordered
141
   */
142
  public static final int DOCUMENT_ROOT__FAMILY = 4;
143
144
  /**
145
   * The feature id for the '<em><b>Given</b></em>' attribute.
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @generated
149
   * @ordered
150
   */
151
  public static final int DOCUMENT_ROOT__GIVEN = 5;
152
153
  /**
154
   * The feature id for the '<em><b>Link</b></em>' containment reference.
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   * @ordered
159
   */
160
  public static final int DOCUMENT_ROOT__LINK = 6;
161
162
  /**
163
   * The feature id for the '<em><b>Name</b></em>' containment reference.
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   * @ordered
168
   */
169
  public static final int DOCUMENT_ROOT__NAME = 7;
170
171
  /**
172
   * The feature id for the '<em><b>Person</b></em>' containment reference.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   * @ordered
177
   */
178
  public static final int DOCUMENT_ROOT__PERSON = 8;
179
180
  /**
181
   * The feature id for the '<em><b>Personnel</b></em>' containment reference.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   * @ordered
186
   */
187
  public static final int DOCUMENT_ROOT__PERSONNEL = 9;
188
189
  /**
190
   * The feature id for the '<em><b>Url</b></em>' containment reference.
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   * @ordered
195
   */
196
  public static final int DOCUMENT_ROOT__URL = 10;
197
198
  /**
199
   * The number of structural features of the '<em>Document Root</em>' class.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   * @ordered
204
   */
205
  public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11;
206
207
  /**
208
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class.
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl
212
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType()
213
   * @generated
214
   */
215
  public static final int LINK_TYPE = 1;
216
217
  /**
218
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
219
   * <!-- begin-user-doc -->
220
   * <!-- end-user-doc -->
221
   * @generated
222
   * @ordered
223
   */
224
  public static final int LINK_TYPE__MIXED = 0;
225
226
  /**
227
   * The feature id for the '<em><b>Manager</b></em>' attribute.
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   * @ordered
232
   */
233
  public static final int LINK_TYPE__MANAGER = 1;
234
235
  /**
236
   * The feature id for the '<em><b>Subordinates</b></em>' attribute.
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   * @ordered
241
   */
242
  public static final int LINK_TYPE__SUBORDINATES = 2;
243
244
  /**
245
   * The number of structural features of the '<em>Link Type</em>' class.
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @generated
249
   * @ordered
250
   */
251
  public static final int LINK_TYPE_FEATURE_COUNT = 3;
252
253
  /**
254
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class.
255
   * <!-- begin-user-doc -->
256
   * <!-- end-user-doc -->
257
   * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl
258
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType()
259
   * @generated
260
   */
261
  public static final int NAME_TYPE = 2;
262
263
  /**
264
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @generated
268
   * @ordered
269
   */
270
  public static final int NAME_TYPE__MIXED = 0;
271
272
  /**
273
   * The feature id for the '<em><b>Family</b></em>' attribute.
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   * @ordered
278
   */
279
  public static final int NAME_TYPE__FAMILY = 1;
280
281
  /**
282
   * The feature id for the '<em><b>Given</b></em>' attribute.
283
   * <!-- begin-user-doc -->
284
   * <!-- end-user-doc -->
285
   * @generated
286
   * @ordered
287
   */
288
  public static final int NAME_TYPE__GIVEN = 2;
289
290
  /**
291
   * The number of structural features of the '<em>Name Type</em>' class.
292
   * <!-- begin-user-doc -->
293
   * <!-- end-user-doc -->
294
   * @generated
295
   * @ordered
296
   */
297
  public static final int NAME_TYPE_FEATURE_COUNT = 3;
298
299
  /**
300
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl
304
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType()
305
   * @generated
306
   */
307
  public static final int PERSONNEL_TYPE = 3;
308
309
  /**
310
   * The feature id for the '<em><b>Person</b></em>' containment reference list.
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @generated
314
   * @ordered
315
   */
316
  public static final int PERSONNEL_TYPE__PERSON = 0;
317
318
  /**
319
   * The number of structural features of the '<em>Personnel Type</em>' class.
320
   * <!-- begin-user-doc -->
321
   * <!-- end-user-doc -->
322
   * @generated
323
   * @ordered
324
   */
325
  public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1;
326
327
  /**
328
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class.
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl
332
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType()
333
   * @generated
334
   */
335
  public static final int PERSON_TYPE = 4;
336
337
  /**
338
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   * @ordered
343
   */
344
  public static final int PERSON_TYPE__MIXED = 0;
345
346
  /**
347
   * The feature id for the '<em><b>Name</b></em>' containment reference.
348
   * <!-- begin-user-doc -->
349
   * <!-- end-user-doc -->
350
   * @generated
351
   * @ordered
352
   */
353
  public static final int PERSON_TYPE__NAME = 1;
354
355
  /**
356
   * The feature id for the '<em><b>Email</b></em>' attribute list.
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   * @ordered
361
   */
362
  public static final int PERSON_TYPE__EMAIL = 2;
363
364
  /**
365
   * The feature id for the '<em><b>Url</b></em>' containment reference list.
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   * @ordered
370
   */
371
  public static final int PERSON_TYPE__URL = 3;
372
373
  /**
374
   * The feature id for the '<em><b>Link</b></em>' containment reference.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @generated
378
   * @ordered
379
   */
380
  public static final int PERSON_TYPE__LINK = 4;
381
382
  /**
383
   * The feature id for the '<em><b>Any</b></em>' attribute list.
384
   * <!-- begin-user-doc -->
385
   * <!-- end-user-doc -->
386
   * @generated
387
   * @ordered
388
   */
389
  public static final int PERSON_TYPE__ANY = 5;
390
391
  /**
392
   * The feature id for the '<em><b>Contr</b></em>' attribute.
393
   * <!-- begin-user-doc -->
394
   * <!-- end-user-doc -->
395
   * @generated
396
   * @ordered
397
   */
398
  public static final int PERSON_TYPE__CONTR = 6;
399
400
  /**
401
   * The feature id for the '<em><b>Id</b></em>' attribute.
402
   * <!-- begin-user-doc -->
403
   * <!-- end-user-doc -->
404
   * @generated
405
   * @ordered
406
   */
407
  public static final int PERSON_TYPE__ID = 7;
408
409
  /**
410
   * The feature id for the '<em><b>Salary</b></em>' attribute.
411
   * <!-- begin-user-doc -->
412
   * <!-- end-user-doc -->
413
   * @generated
414
   * @ordered
415
   */
416
  public static final int PERSON_TYPE__SALARY = 8;
417
418
  /**
419
   * The number of structural features of the '<em>Person Type</em>' class.
420
   * <!-- begin-user-doc -->
421
   * <!-- end-user-doc -->
422
   * @generated
423
   * @ordered
424
   */
425
  public static final int PERSON_TYPE_FEATURE_COUNT = 9;
426
427
  /**
428
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class.
429
   * <!-- begin-user-doc -->
430
   * <!-- end-user-doc -->
431
   * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl
432
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType()
433
   * @generated
434
   */
435
  public static final int URL_TYPE = 5;
436
437
  /**
438
   * The feature id for the '<em><b>Href</b></em>' attribute.
439
   * <!-- begin-user-doc -->
440
   * <!-- end-user-doc -->
441
   * @generated
442
   * @ordered
443
   */
444
  public static final int URL_TYPE__HREF = 0;
445
446
  /**
447
   * The number of structural features of the '<em>Url Type</em>' class.
448
   * <!-- begin-user-doc -->
449
   * <!-- end-user-doc -->
450
   * @generated
451
   * @ordered
452
   */
453
  public static final int URL_TYPE_FEATURE_COUNT = 1;
454
455
  /**
456
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum.
457
   * <!-- begin-user-doc -->
458
   * <!-- end-user-doc -->
459
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
460
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType()
461
   * @generated
462
   */
463
  public static final int CONTR_TYPE = 6;
464
465
  /**
466
   * The meta object id for the '<em>Contr Type Object</em>' data type.
467
   * <!-- begin-user-doc -->
468
   * <!-- end-user-doc -->
469
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
470
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject()
471
   * @generated
472
   */
473
  public static final int CONTR_TYPE_OBJECT = 7;
474
475
  /**
476
   * <!-- begin-user-doc -->
477
   * <!-- end-user-doc -->
478
   * @generated
479
   */
480
  private EClass documentRootEClass = null;
481
482
  /**
483
   * <!-- begin-user-doc -->
484
   * <!-- end-user-doc -->
485
   * @generated
486
   */
487
  private EClass linkTypeEClass = null;
488
489
  /**
490
   * <!-- begin-user-doc -->
491
   * <!-- end-user-doc -->
492
   * @generated
493
   */
494
  private EClass nameTypeEClass = null;
495
496
  /**
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @generated
500
   */
501
  private EClass personnelTypeEClass = null;
502
503
  /**
504
   * <!-- begin-user-doc -->
505
   * <!-- end-user-doc -->
506
   * @generated
507
   */
508
  private EClass personTypeEClass = null;
509
510
  /**
511
   * <!-- begin-user-doc -->
512
   * <!-- end-user-doc -->
513
   * @generated
514
   */
515
  private EClass urlTypeEClass = null;
516
517
  /**
518
   * <!-- begin-user-doc -->
519
   * <!-- end-user-doc -->
520
   * @generated
521
   */
522
  private EEnum contrTypeEEnum = null;
523
524
  /**
525
   * <!-- begin-user-doc -->
526
   * <!-- end-user-doc -->
527
   * @generated
528
   */
529
  private EDataType contrTypeObjectEDataType = null;
530
531
  /**
532
   * Creates an instance of the model <b>Package</b>, registered with
533
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
534
   * package URI value.
535
   * <p>Note: the correct way to create the package is via the static
536
   * factory method {@link #init init()}, which also performs
537
   * initialization of the package, or returns the registered package,
538
   * if one already exists.
539
   * <!-- begin-user-doc -->
540
   * <!-- end-user-doc -->
541
   * @see org.eclipse.emf.ecore.EPackage.Registry
542
   * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#eNS_URI
543
   * @see #init()
544
   * @generated
545
   */
546
  private MixedPackageImpl()
547
  {
548
    super(eNS_URI, ((EFactory)MixedFactory.INSTANCE));
549
  }
550
551
  /**
552
   * <!-- begin-user-doc -->
553
   * <!-- end-user-doc -->
554
   * @generated
555
   */
556
  private static boolean isInited = false;
557
558
  /**
559
   * Creates, registers, and initializes the <b>Package</b> for this
560
   * model, and for any others upon which it depends.  Simple
561
   * dependencies are satisfied by calling this method on all
562
   * dependent packages before doing anything else.  This method drives
563
   * initialization for interdependent packages directly, in parallel
564
   * with this package, itself.
565
   * <p>Of this package and its interdependencies, all packages which
566
   * have not yet been registered by their URI values are first created
567
   * and registered.  The packages are then initialized in two steps:
568
   * meta-model objects for all of the packages are created before any
569
   * are initialized, since one package's meta-model objects may refer to
570
   * those of another.
571
   * <p>Invocation of this method will not affect any packages that have
572
   * already been initialized.
573
   * <!-- begin-user-doc -->
574
   * <!-- end-user-doc -->
575
   * @see #eNS_URI
576
   * @see #createPackageContents()
577
   * @see #initializePackageContents()
578
   * @generated
579
   */
580
  public static MixedPackageImpl init()
581
  {
582
    if (isInited) return (MixedPackageImpl)EPackage.Registry.INSTANCE.getEPackage(MixedPackageImpl.eNS_URI);
583
584
    // Obtain or create and register package
585
    MixedPackageImpl theMixedPackageImpl = (MixedPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MixedPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MixedPackageImpl());
586
587
    isInited = true;
588
589
    // Initialize simple dependencies
590
    XMLTypePackage.eINSTANCE.eClass();
591
592
    // Create package meta-data objects
593
    theMixedPackageImpl.createPackageContents();
594
595
    // Initialize created meta-data
596
    theMixedPackageImpl.initializePackageContents();
597
598
    // Mark meta-data to indicate it can't be changed
599
    theMixedPackageImpl.freeze();
600
601
    return theMixedPackageImpl;
602
  }
603
604
605
  /**
606
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'.
607
   * <!-- begin-user-doc -->
608
   * <!-- end-user-doc -->
609
   * @return the meta object for class '<em>Document Root</em>'.
610
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot
611
   * @generated
612
   */
613
  public EClass getDocumentRoot()
614
  {
615
    return documentRootEClass;
616
  }
617
618
  /**
619
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed <em>Mixed</em>}'.
620
   * <!-- begin-user-doc -->
621
   * <!-- end-user-doc -->
622
   * @return the meta object for the attribute list '<em>Mixed</em>'.
623
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed()
624
   * @see #getDocumentRoot()
625
   * @generated
626
   */
627
  public EAttribute getDocumentRoot_Mixed()
628
  {
629
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
630
  }
631
632
  /**
633
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
634
   * <!-- begin-user-doc -->
635
   * <!-- end-user-doc -->
636
   * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
637
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap()
638
   * @see #getDocumentRoot()
639
   * @generated
640
   */
641
  public EReference getDocumentRoot_XMLNSPrefixMap()
642
  {
643
    return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
644
  }
645
646
  /**
647
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
648
   * <!-- begin-user-doc -->
649
   * <!-- end-user-doc -->
650
   * @return the meta object for the map '<em>XSI Schema Location</em>'.
651
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation()
652
   * @see #getDocumentRoot()
653
   * @generated
654
   */
655
  public EReference getDocumentRoot_XSISchemaLocation()
656
  {
657
    return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
658
  }
659
660
  /**
661
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}'.
662
   * <!-- begin-user-doc -->
663
   * <!-- end-user-doc -->
664
   * @return the meta object for the attribute '<em>Email</em>'.
665
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail()
666
   * @see #getDocumentRoot()
667
   * @generated
668
   */
669
  public EAttribute getDocumentRoot_Email()
670
  {
671
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3);
672
  }
673
674
  /**
675
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}'.
676
   * <!-- begin-user-doc -->
677
   * <!-- end-user-doc -->
678
   * @return the meta object for the attribute '<em>Family</em>'.
679
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily()
680
   * @see #getDocumentRoot()
681
   * @generated
682
   */
683
  public EAttribute getDocumentRoot_Family()
684
  {
685
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4);
686
  }
687
688
  /**
689
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}'.
690
   * <!-- begin-user-doc -->
691
   * <!-- end-user-doc -->
692
   * @return the meta object for the attribute '<em>Given</em>'.
693
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven()
694
   * @see #getDocumentRoot()
695
   * @generated
696
   */
697
  public EAttribute getDocumentRoot_Given()
698
  {
699
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5);
700
  }
701
702
  /**
703
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}'.
704
   * <!-- begin-user-doc -->
705
   * <!-- end-user-doc -->
706
   * @return the meta object for the containment reference '<em>Link</em>'.
707
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink()
708
   * @see #getDocumentRoot()
709
   * @generated
710
   */
711
  public EReference getDocumentRoot_Link()
712
  {
713
    return (EReference)documentRootEClass.getEStructuralFeatures().get(6);
714
  }
715
716
  /**
717
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}'.
718
   * <!-- begin-user-doc -->
719
   * <!-- end-user-doc -->
720
   * @return the meta object for the containment reference '<em>Name</em>'.
721
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName()
722
   * @see #getDocumentRoot()
723
   * @generated
724
   */
725
  public EReference getDocumentRoot_Name()
726
  {
727
    return (EReference)documentRootEClass.getEStructuralFeatures().get(7);
728
  }
729
730
  /**
731
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}'.
732
   * <!-- begin-user-doc -->
733
   * <!-- end-user-doc -->
734
   * @return the meta object for the containment reference '<em>Person</em>'.
735
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson()
736
   * @see #getDocumentRoot()
737
   * @generated
738
   */
739
  public EReference getDocumentRoot_Person()
740
  {
741
    return (EReference)documentRootEClass.getEStructuralFeatures().get(8);
742
  }
743
744
  /**
745
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}'.
746
   * <!-- begin-user-doc -->
747
   * <!-- end-user-doc -->
748
   * @return the meta object for the containment reference '<em>Personnel</em>'.
749
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel()
750
   * @see #getDocumentRoot()
751
   * @generated
752
   */
753
  public EReference getDocumentRoot_Personnel()
754
  {
755
    return (EReference)documentRootEClass.getEStructuralFeatures().get(9);
756
  }
757
758
  /**
759
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}'.
760
   * <!-- begin-user-doc -->
761
   * <!-- end-user-doc -->
762
   * @return the meta object for the containment reference '<em>Url</em>'.
763
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl()
764
   * @see #getDocumentRoot()
765
   * @generated
766
   */
767
  public EReference getDocumentRoot_Url()
768
  {
769
    return (EReference)documentRootEClass.getEStructuralFeatures().get(10);
770
  }
771
772
  /**
773
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'.
774
   * <!-- begin-user-doc -->
775
   * <!-- end-user-doc -->
776
   * @return the meta object for class '<em>Link Type</em>'.
777
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType
778
   * @generated
779
   */
780
  public EClass getLinkType()
781
  {
782
    return linkTypeEClass;
783
  }
784
785
  /**
786
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}'.
787
   * <!-- begin-user-doc -->
788
   * <!-- end-user-doc -->
789
   * @return the meta object for the attribute list '<em>Mixed</em>'.
790
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed()
791
   * @see #getLinkType()
792
   * @generated
793
   */
794
  public EAttribute getLinkType_Mixed()
795
  {
796
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0);
797
  }
798
799
  /**
800
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}'.
801
   * <!-- begin-user-doc -->
802
   * <!-- end-user-doc -->
803
   * @return the meta object for the attribute '<em>Manager</em>'.
804
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getManager()
805
   * @see #getLinkType()
806
   * @generated
807
   */
808
  public EAttribute getLinkType_Manager()
809
  {
810
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1);
811
  }
812
813
  /**
814
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}'.
815
   * <!-- begin-user-doc -->
816
   * <!-- end-user-doc -->
817
   * @return the meta object for the attribute '<em>Subordinates</em>'.
818
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates()
819
   * @see #getLinkType()
820
   * @generated
821
   */
822
  public EAttribute getLinkType_Subordinates()
823
  {
824
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(2);
825
  }
826
827
  /**
828
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'.
829
   * <!-- begin-user-doc -->
830
   * <!-- end-user-doc -->
831
   * @return the meta object for class '<em>Name Type</em>'.
832
   * @see org.eclipse.emf.test.models.personal.mixed.NameType
833
   * @generated
834
   */
835
  public EClass getNameType()
836
  {
837
    return nameTypeEClass;
838
  }
839
840
  /**
841
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}'.
842
   * <!-- begin-user-doc -->
843
   * <!-- end-user-doc -->
844
   * @return the meta object for the attribute list '<em>Mixed</em>'.
845
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getMixed()
846
   * @see #getNameType()
847
   * @generated
848
   */
849
  public EAttribute getNameType_Mixed()
850
  {
851
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0);
852
  }
853
854
  /**
855
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}'.
856
   * <!-- begin-user-doc -->
857
   * <!-- end-user-doc -->
858
   * @return the meta object for the attribute '<em>Family</em>'.
859
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getFamily()
860
   * @see #getNameType()
861
   * @generated
862
   */
863
  public EAttribute getNameType_Family()
864
  {
865
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1);
866
  }
867
868
  /**
869
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}'.
870
   * <!-- begin-user-doc -->
871
   * <!-- end-user-doc -->
872
   * @return the meta object for the attribute '<em>Given</em>'.
873
   * @see org.eclipse.emf.test.models.personal.mixed.NameType#getGiven()
874
   * @see #getNameType()
875
   * @generated
876
   */
877
  public EAttribute getNameType_Given()
878
  {
879
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(2);
880
  }
881
882
  /**
883
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'.
884
   * <!-- begin-user-doc -->
885
   * <!-- end-user-doc -->
886
   * @return the meta object for class '<em>Personnel Type</em>'.
887
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType
888
   * @generated
889
   */
890
  public EClass getPersonnelType()
891
  {
892
    return personnelTypeEClass;
893
  }
894
895
  /**
896
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson <em>Person</em>}'.
897
   * <!-- begin-user-doc -->
898
   * <!-- end-user-doc -->
899
   * @return the meta object for the containment reference list '<em>Person</em>'.
900
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson()
901
   * @see #getPersonnelType()
902
   * @generated
903
   */
904
  public EReference getPersonnelType_Person()
905
  {
906
    return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0);
907
  }
908
909
  /**
910
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'.
911
   * <!-- begin-user-doc -->
912
   * <!-- end-user-doc -->
913
   * @return the meta object for class '<em>Person Type</em>'.
914
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType
915
   * @generated
916
   */
917
  public EClass getPersonType()
918
  {
919
    return personTypeEClass;
920
  }
921
922
  /**
923
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}'.
924
   * <!-- begin-user-doc -->
925
   * <!-- end-user-doc -->
926
   * @return the meta object for the attribute list '<em>Mixed</em>'.
927
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed()
928
   * @see #getPersonType()
929
   * @generated
930
   */
931
  public EAttribute getPersonType_Mixed()
932
  {
933
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(0);
934
  }
935
936
  /**
937
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}'.
938
   * <!-- begin-user-doc -->
939
   * <!-- end-user-doc -->
940
   * @return the meta object for the containment reference '<em>Name</em>'.
941
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getName()
942
   * @see #getPersonType()
943
   * @generated
944
   */
945
  public EReference getPersonType_Name()
946
  {
947
    return (EReference)personTypeEClass.getEStructuralFeatures().get(1);
948
  }
949
950
  /**
951
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}'.
952
   * <!-- begin-user-doc -->
953
   * <!-- end-user-doc -->
954
   * @return the meta object for the attribute list '<em>Email</em>'.
955
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail()
956
   * @see #getPersonType()
957
   * @generated
958
   */
959
  public EAttribute getPersonType_Email()
960
  {
961
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(2);
962
  }
963
964
  /**
965
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}'.
966
   * <!-- begin-user-doc -->
967
   * <!-- end-user-doc -->
968
   * @return the meta object for the containment reference list '<em>Url</em>'.
969
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl()
970
   * @see #getPersonType()
971
   * @generated
972
   */
973
  public EReference getPersonType_Url()
974
  {
975
    return (EReference)personTypeEClass.getEStructuralFeatures().get(3);
976
  }
977
978
  /**
979
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}'.
980
   * <!-- begin-user-doc -->
981
   * <!-- end-user-doc -->
982
   * @return the meta object for the containment reference '<em>Link</em>'.
983
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getLink()
984
   * @see #getPersonType()
985
   * @generated
986
   */
987
  public EReference getPersonType_Link()
988
  {
989
    return (EReference)personTypeEClass.getEStructuralFeatures().get(4);
990
  }
991
992
  /**
993
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}'.
994
   * <!-- begin-user-doc -->
995
   * <!-- end-user-doc -->
996
   * @return the meta object for the attribute list '<em>Any</em>'.
997
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getAny()
998
   * @see #getPersonType()
999
   * @generated
1000
   */
1001
  public EAttribute getPersonType_Any()
1002
  {
1003
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5);
1004
  }
1005
1006
  /**
1007
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}'.
1008
   * <!-- begin-user-doc -->
1009
   * <!-- end-user-doc -->
1010
   * @return the meta object for the attribute '<em>Contr</em>'.
1011
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getContr()
1012
   * @see #getPersonType()
1013
   * @generated
1014
   */
1015
  public EAttribute getPersonType_Contr()
1016
  {
1017
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6);
1018
  }
1019
1020
  /**
1021
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}'.
1022
   * <!-- begin-user-doc -->
1023
   * <!-- end-user-doc -->
1024
   * @return the meta object for the attribute '<em>Id</em>'.
1025
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getId()
1026
   * @see #getPersonType()
1027
   * @generated
1028
   */
1029
  public EAttribute getPersonType_Id()
1030
  {
1031
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(7);
1032
  }
1033
1034
  /**
1035
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}'.
1036
   * <!-- begin-user-doc -->
1037
   * <!-- end-user-doc -->
1038
   * @return the meta object for the attribute '<em>Salary</em>'.
1039
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary()
1040
   * @see #getPersonType()
1041
   * @generated
1042
   */
1043
  public EAttribute getPersonType_Salary()
1044
  {
1045
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(8);
1046
  }
1047
1048
  /**
1049
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'.
1050
   * <!-- begin-user-doc -->
1051
   * <!-- end-user-doc -->
1052
   * @return the meta object for class '<em>Url Type</em>'.
1053
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType
1054
   * @generated
1055
   */
1056
  public EClass getUrlType()
1057
  {
1058
    return urlTypeEClass;
1059
  }
1060
1061
  /**
1062
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}'.
1063
   * <!-- begin-user-doc -->
1064
   * <!-- end-user-doc -->
1065
   * @return the meta object for the attribute '<em>Href</em>'.
1066
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType#getHref()
1067
   * @see #getUrlType()
1068
   * @generated
1069
   */
1070
  public EAttribute getUrlType_Href()
1071
  {
1072
    return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0);
1073
  }
1074
1075
  /**
1076
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}'.
1077
   * <!-- begin-user-doc -->
1078
   * <!-- end-user-doc -->
1079
   * @return the meta object for enum '<em>Contr Type</em>'.
1080
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1081
   * @generated
1082
   */
1083
  public EEnum getContrType()
1084
  {
1085
    return contrTypeEEnum;
1086
  }
1087
1088
  /**
1089
   * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type Object</em>}'.
1090
   * <!-- begin-user-doc -->
1091
   * <!-- end-user-doc -->
1092
   * @return the meta object for data type '<em>Contr Type Object</em>'.
1093
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1094
   * @model instanceClass="org.eclipse.emf.test.models.personal.mixed.ContrType"
1095
   *        extendedMetaData="name='contr_._type:Object' baseType='contr_._type'"
1096
   * @generated
1097
   */
1098
  public EDataType getContrTypeObject()
1099
  {
1100
    return contrTypeObjectEDataType;
1101
  }
1102
1103
  /**
1104
   * Returns the factory that creates the instances of the model.
1105
   * <!-- begin-user-doc -->
1106
   * <!-- end-user-doc -->
1107
   * @return the factory that creates the instances of the model.
1108
   * @generated
1109
   */
1110
  public MixedFactory getMixedFactory()
1111
  {
1112
    return (MixedFactory)getEFactoryInstance();
1113
  }
1114
1115
  /**
1116
   * <!-- begin-user-doc -->
1117
   * <!-- end-user-doc -->
1118
   * @generated
1119
   */
1120
  private boolean isCreated = false;
1121
1122
  /**
1123
   * Creates the meta-model objects for the package.  This method is
1124
   * guarded to have no affect on any invocation but its first.
1125
   * <!-- begin-user-doc -->
1126
   * <!-- end-user-doc -->
1127
   * @generated
1128
   */
1129
  public void createPackageContents()
1130
  {
1131
    if (isCreated) return;
1132
    isCreated = true;
1133
1134
    // Create classes and their features
1135
    documentRootEClass = createEClass(DOCUMENT_ROOT);
1136
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
1137
    createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
1138
    createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
1139
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL);
1140
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY);
1141
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN);
1142
    createEReference(documentRootEClass, DOCUMENT_ROOT__LINK);
1143
    createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
1144
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON);
1145
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL);
1146
    createEReference(documentRootEClass, DOCUMENT_ROOT__URL);
1147
1148
    linkTypeEClass = createEClass(LINK_TYPE);
1149
    createEAttribute(linkTypeEClass, LINK_TYPE__MIXED);
1150
    createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER);
1151
    createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES);
1152
1153
    nameTypeEClass = createEClass(NAME_TYPE);
1154
    createEAttribute(nameTypeEClass, NAME_TYPE__MIXED);
1155
    createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY);
1156
    createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN);
1157
1158
    personnelTypeEClass = createEClass(PERSONNEL_TYPE);
1159
    createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON);
1160
1161
    personTypeEClass = createEClass(PERSON_TYPE);
1162
    createEAttribute(personTypeEClass, PERSON_TYPE__MIXED);
1163
    createEReference(personTypeEClass, PERSON_TYPE__NAME);
1164
    createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL);
1165
    createEReference(personTypeEClass, PERSON_TYPE__URL);
1166
    createEReference(personTypeEClass, PERSON_TYPE__LINK);
1167
    createEAttribute(personTypeEClass, PERSON_TYPE__ANY);
1168
    createEAttribute(personTypeEClass, PERSON_TYPE__CONTR);
1169
    createEAttribute(personTypeEClass, PERSON_TYPE__ID);
1170
    createEAttribute(personTypeEClass, PERSON_TYPE__SALARY);
1171
1172
    urlTypeEClass = createEClass(URL_TYPE);
1173
    createEAttribute(urlTypeEClass, URL_TYPE__HREF);
1174
1175
    // Create enums
1176
    contrTypeEEnum = createEEnum(CONTR_TYPE);
1177
1178
    // Create data types
1179
    contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT);
1180
  }
1181
1182
  /**
1183
   * <!-- begin-user-doc -->
1184
   * <!-- end-user-doc -->
1185
   * @generated
1186
   */
1187
  private boolean isInitialized = false;
1188
1189
  /**
1190
   * Complete the initialization of the package and its meta-model.  This
1191
   * method is guarded to have no affect on any invocation but its first.
1192
   * <!-- begin-user-doc -->
1193
   * <!-- end-user-doc -->
1194
   * @generated
1195
   */
1196
  public void initializePackageContents()
1197
  {
1198
    if (isInitialized) return;
1199
    isInitialized = true;
1200
1201
    // Initialize package
1202
    setName(eNAME);
1203
    setNsPrefix(eNS_PREFIX);
1204
    setNsURI(eNS_URI);
1205
1206
    // Obtain other dependent packages
1207
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1208
1209
    // Create type parameters
1210
1211
    // Set bounds for type parameters
1212
1213
    // Add supertypes to classes
1214
1215
    // Initialize classes and features; add operations and parameters
1216
    initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1217
    initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1218
    initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1219
    initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1220
    initEAttribute(getDocumentRoot_Email(), theXMLTypePackage.getString(), "email", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1221
    initEAttribute(getDocumentRoot_Family(), theXMLTypePackage.getString(), "family", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1222
    initEAttribute(getDocumentRoot_Given(), theXMLTypePackage.getString(), "given", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1223
    initEReference(getDocumentRoot_Link(), this.getLinkType(), null, "link", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1224
    initEReference(getDocumentRoot_Name(), this.getNameType(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1225
    initEReference(getDocumentRoot_Person(), this.getPersonType(), null, "person", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1226
    initEReference(getDocumentRoot_Personnel(), this.getPersonnelType(), null, "personnel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1227
    initEReference(getDocumentRoot_Url(), this.getUrlType(), null, "url", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1228
1229
    initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1230
    initEAttribute(getLinkType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1231
    initEAttribute(getLinkType_Manager(), theXMLTypePackage.getIDREF(), "manager", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1232
    initEAttribute(getLinkType_Subordinates(), theXMLTypePackage.getIDREFS(), "subordinates", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1233
1234
    initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1235
    initEAttribute(getNameType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1236
    initEAttribute(getNameType_Family(), theXMLTypePackage.getString(), "family", null, 1, 1, NameType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1237
    initEAttribute(getNameType_Given(), theXMLTypePackage.getString(), "given", null, 1, 1, NameType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1238
1239
    initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1240
    initEReference(getPersonnelType_Person(), this.getPersonType(), null, "person", null, 1, -1, PersonnelType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1241
1242
    initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1243
    initEAttribute(getPersonType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1244
    initEReference(getPersonType_Name(), this.getNameType(), null, "name", null, 1, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1245
    initEAttribute(getPersonType_Email(), theXMLTypePackage.getString(), "email", null, 0, -1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1246
    initEReference(getPersonType_Url(), this.getUrlType(), null, "url", null, 0, -1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1247
    initEReference(getPersonType_Link(), this.getLinkType(), null, "link", null, 1, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1248
    initEAttribute(getPersonType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 0, 1, PersonType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1249
    initEAttribute(getPersonType_Contr(), this.getContrType(), "contr", "false", 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1250
    initEAttribute(getPersonType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1251
    initEAttribute(getPersonType_Salary(), theXMLTypePackage.getInteger(), "salary", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1252
1253
    initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1254
    initEAttribute(getUrlType_Href(), theXMLTypePackage.getString(), "href", "http://", 0, 1, UrlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1255
1256
    // Initialize enums and add enum literals
1257
    initEEnum(contrTypeEEnum, ContrType.class, "ContrType");
1258
    addEEnumLiteral(contrTypeEEnum, ContrType.TRUE);
1259
    addEEnumLiteral(contrTypeEEnum, ContrType.FALSE);
1260
1261
    // Initialize data types
1262
    initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
1263
1264
    // Create resource
1265
    createResource(eNS_URI);
1266
1267
    // Create annotations
1268
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1269
    createExtendedMetaDataAnnotations();
1270
  }
1271
1272
  /**
1273
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1274
   * <!-- begin-user-doc -->
1275
   * <!-- end-user-doc -->
1276
   * @generated
1277
   */
1278
  protected void createExtendedMetaDataAnnotations()
1279
  {
1280
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
1281
    addAnnotation
1282
      (contrTypeEEnum, 
1283
       source, 
1284
       new String[] 
1285
       {
1286
       "name", "contr_._type"
1287
       });		
1288
    addAnnotation
1289
      (contrTypeObjectEDataType, 
1290
       source, 
1291
       new String[] 
1292
       {
1293
       "name", "contr_._type:Object",
1294
       "baseType", "contr_._type"
1295
       });		
1296
    addAnnotation
1297
      (documentRootEClass, 
1298
       source, 
1299
       new String[] 
1300
       {
1301
       "name", "",
1302
       "kind", "mixed"
1303
       });		
1304
    addAnnotation
1305
      (getDocumentRoot_Mixed(), 
1306
       source, 
1307
       new String[] 
1308
       {
1309
       "kind", "elementWildcard",
1310
       "name", ":mixed"
1311
       });		
1312
    addAnnotation
1313
      (getDocumentRoot_XMLNSPrefixMap(), 
1314
       source, 
1315
       new String[] 
1316
       {
1317
       "kind", "attribute",
1318
       "name", "xmlns:prefix"
1319
       });		
1320
    addAnnotation
1321
      (getDocumentRoot_XSISchemaLocation(), 
1322
       source, 
1323
       new String[] 
1324
       {
1325
       "kind", "attribute",
1326
       "name", "xsi:schemaLocation"
1327
       });		
1328
    addAnnotation
1329
      (getDocumentRoot_Email(), 
1330
       source, 
1331
       new String[] 
1332
       {
1333
       "kind", "element",
1334
       "name", "email",
1335
       "namespace", "##targetNamespace"
1336
       });		
1337
    addAnnotation
1338
      (getDocumentRoot_Family(), 
1339
       source, 
1340
       new String[] 
1341
       {
1342
       "kind", "element",
1343
       "name", "family",
1344
       "namespace", "##targetNamespace"
1345
       });		
1346
    addAnnotation
1347
      (getDocumentRoot_Given(), 
1348
       source, 
1349
       new String[] 
1350
       {
1351
       "kind", "element",
1352
       "name", "given",
1353
       "namespace", "##targetNamespace"
1354
       });		
1355
    addAnnotation
1356
      (getDocumentRoot_Link(), 
1357
       source, 
1358
       new String[] 
1359
       {
1360
       "kind", "element",
1361
       "name", "link",
1362
       "namespace", "##targetNamespace"
1363
       });		
1364
    addAnnotation
1365
      (getDocumentRoot_Name(), 
1366
       source, 
1367
       new String[] 
1368
       {
1369
       "kind", "element",
1370
       "name", "name",
1371
       "namespace", "##targetNamespace"
1372
       });		
1373
    addAnnotation
1374
      (getDocumentRoot_Person(), 
1375
       source, 
1376
       new String[] 
1377
       {
1378
       "kind", "element",
1379
       "name", "person",
1380
       "namespace", "##targetNamespace"
1381
       });		
1382
    addAnnotation
1383
      (getDocumentRoot_Personnel(), 
1384
       source, 
1385
       new String[] 
1386
       {
1387
       "kind", "element",
1388
       "name", "personnel",
1389
       "namespace", "##targetNamespace"
1390
       });		
1391
    addAnnotation
1392
      (getDocumentRoot_Url(), 
1393
       source, 
1394
       new String[] 
1395
       {
1396
       "kind", "element",
1397
       "name", "url",
1398
       "namespace", "##targetNamespace"
1399
       });		
1400
    addAnnotation
1401
      (linkTypeEClass, 
1402
       source, 
1403
       new String[] 
1404
       {
1405
       "name", "linkType",
1406
       "kind", "mixed"
1407
       });		
1408
    addAnnotation
1409
      (getLinkType_Mixed(), 
1410
       source, 
1411
       new String[] 
1412
       {
1413
       "kind", "elementWildcard",
1414
       "name", ":mixed"
1415
       });		
1416
    addAnnotation
1417
      (getLinkType_Manager(), 
1418
       source, 
1419
       new String[] 
1420
       {
1421
       "kind", "attribute",
1422
       "name", "manager"
1423
       });		
1424
    addAnnotation
1425
      (getLinkType_Subordinates(), 
1426
       source, 
1427
       new String[] 
1428
       {
1429
       "kind", "attribute",
1430
       "name", "subordinates"
1431
       });		
1432
    addAnnotation
1433
      (nameTypeEClass, 
1434
       source, 
1435
       new String[] 
1436
       {
1437
       "name", "nameType",
1438
       "kind", "mixed"
1439
       });		
1440
    addAnnotation
1441
      (getNameType_Mixed(), 
1442
       source, 
1443
       new String[] 
1444
       {
1445
       "kind", "elementWildcard",
1446
       "name", ":mixed"
1447
       });		
1448
    addAnnotation
1449
      (getNameType_Family(), 
1450
       source, 
1451
       new String[] 
1452
       {
1453
       "kind", "element",
1454
       "name", "family",
1455
       "namespace", "##targetNamespace"
1456
       });		
1457
    addAnnotation
1458
      (getNameType_Given(), 
1459
       source, 
1460
       new String[] 
1461
       {
1462
       "kind", "element",
1463
       "name", "given",
1464
       "namespace", "##targetNamespace"
1465
       });		
1466
    addAnnotation
1467
      (personnelTypeEClass, 
1468
       source, 
1469
       new String[] 
1470
       {
1471
       "name", "personnel_._type",
1472
       "kind", "elementOnly"
1473
       });		
1474
    addAnnotation
1475
      (getPersonnelType_Person(), 
1476
       source, 
1477
       new String[] 
1478
       {
1479
       "kind", "element",
1480
       "name", "person",
1481
       "namespace", "##targetNamespace"
1482
       });		
1483
    addAnnotation
1484
      (personTypeEClass, 
1485
       source, 
1486
       new String[] 
1487
       {
1488
       "name", "personType",
1489
       "kind", "mixed"
1490
       });		
1491
    addAnnotation
1492
      (getPersonType_Mixed(), 
1493
       source, 
1494
       new String[] 
1495
       {
1496
       "kind", "elementWildcard",
1497
       "name", ":mixed"
1498
       });		
1499
    addAnnotation
1500
      (getPersonType_Name(), 
1501
       source, 
1502
       new String[] 
1503
       {
1504
       "kind", "element",
1505
       "name", "name",
1506
       "namespace", "##targetNamespace"
1507
       });		
1508
    addAnnotation
1509
      (getPersonType_Email(), 
1510
       source, 
1511
       new String[] 
1512
       {
1513
       "kind", "element",
1514
       "name", "email",
1515
       "namespace", "##targetNamespace"
1516
       });		
1517
    addAnnotation
1518
      (getPersonType_Url(), 
1519
       source, 
1520
       new String[] 
1521
       {
1522
       "kind", "element",
1523
       "name", "url",
1524
       "namespace", "##targetNamespace"
1525
       });		
1526
    addAnnotation
1527
      (getPersonType_Link(), 
1528
       source, 
1529
       new String[] 
1530
       {
1531
       "kind", "element",
1532
       "name", "link",
1533
       "namespace", "##targetNamespace"
1534
       });		
1535
    addAnnotation
1536
      (getPersonType_Any(), 
1537
       source, 
1538
       new String[] 
1539
       {
1540
       "kind", "elementWildcard",
1541
       "wildcards", "##any",
1542
       "name", ":5",
1543
       "processing", "lax"
1544
       });		
1545
    addAnnotation
1546
      (getPersonType_Contr(), 
1547
       source, 
1548
       new String[] 
1549
       {
1550
       "kind", "attribute",
1551
       "name", "contr"
1552
       });		
1553
    addAnnotation
1554
      (getPersonType_Id(), 
1555
       source, 
1556
       new String[] 
1557
       {
1558
       "kind", "attribute",
1559
       "name", "id"
1560
       });		
1561
    addAnnotation
1562
      (getPersonType_Salary(), 
1563
       source, 
1564
       new String[] 
1565
       {
1566
       "kind", "attribute",
1567
       "name", "salary"
1568
       });		
1569
    addAnnotation
1570
      (urlTypeEClass, 
1571
       source, 
1572
       new String[] 
1573
       {
1574
       "name", "url_._type",
1575
       "kind", "empty"
1576
       });		
1577
    addAnnotation
1578
      (getUrlType_Href(), 
1579
       source, 
1580
       new String[] 
1581
       {
1582
       "kind", "attribute",
1583
       "name", "href"
1584
       });
1585
  }
1586
1587
  /**
1588
   * <!-- begin-user-doc -->
1589
   * Defines literals for the meta objects that represent
1590
   * <ul>
1591
   *   <li>each class,</li>
1592
   *   <li>each feature of each class,</li>
1593
   *   <li>each enum,</li>
1594
   *   <li>and each data type</li>
1595
   * </ul>
1596
   * <!-- end-user-doc -->
1597
   * @generated
1598
   */
1599
  public interface Literals
1600
  {
1601
    /**
1602
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class.
1603
     * <!-- begin-user-doc -->
1604
     * <!-- end-user-doc -->
1605
     * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl
1606
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot()
1607
     * @generated
1608
     */
1609
    public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
1610
1611
    /**
1612
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1613
     * <!-- begin-user-doc -->
1614
     * <!-- end-user-doc -->
1615
     * @generated
1616
     */
1617
    public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
1618
1619
    /**
1620
     * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
1621
     * <!-- begin-user-doc -->
1622
     * <!-- end-user-doc -->
1623
     * @generated
1624
     */
1625
    public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
1626
1627
    /**
1628
     * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
1629
     * <!-- begin-user-doc -->
1630
     * <!-- end-user-doc -->
1631
     * @generated
1632
     */
1633
    public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
1634
1635
    /**
1636
     * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
1637
     * <!-- begin-user-doc -->
1638
     * <!-- end-user-doc -->
1639
     * @generated
1640
     */
1641
    public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email();
1642
1643
    /**
1644
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1645
     * <!-- begin-user-doc -->
1646
     * <!-- end-user-doc -->
1647
     * @generated
1648
     */
1649
    public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family();
1650
1651
    /**
1652
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1653
     * <!-- begin-user-doc -->
1654
     * <!-- end-user-doc -->
1655
     * @generated
1656
     */
1657
    public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given();
1658
1659
    /**
1660
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1661
     * <!-- begin-user-doc -->
1662
     * <!-- end-user-doc -->
1663
     * @generated
1664
     */
1665
    public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link();
1666
1667
    /**
1668
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1669
     * <!-- begin-user-doc -->
1670
     * <!-- end-user-doc -->
1671
     * @generated
1672
     */
1673
    public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name();
1674
1675
    /**
1676
     * The meta object literal for the '<em><b>Person</b></em>' containment reference feature.
1677
     * <!-- begin-user-doc -->
1678
     * <!-- end-user-doc -->
1679
     * @generated
1680
     */
1681
    public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person();
1682
1683
    /**
1684
     * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature.
1685
     * <!-- begin-user-doc -->
1686
     * <!-- end-user-doc -->
1687
     * @generated
1688
     */
1689
    public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel();
1690
1691
    /**
1692
     * The meta object literal for the '<em><b>Url</b></em>' containment reference feature.
1693
     * <!-- begin-user-doc -->
1694
     * <!-- end-user-doc -->
1695
     * @generated
1696
     */
1697
    public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url();
1698
1699
    /**
1700
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class.
1701
     * <!-- begin-user-doc -->
1702
     * <!-- end-user-doc -->
1703
     * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl
1704
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType()
1705
     * @generated
1706
     */
1707
    public static final EClass LINK_TYPE = eINSTANCE.getLinkType();
1708
1709
    /**
1710
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1711
     * <!-- begin-user-doc -->
1712
     * <!-- end-user-doc -->
1713
     * @generated
1714
     */
1715
    public static final EAttribute LINK_TYPE__MIXED = eINSTANCE.getLinkType_Mixed();
1716
1717
    /**
1718
     * The meta object literal for the '<em><b>Manager</b></em>' attribute feature.
1719
     * <!-- begin-user-doc -->
1720
     * <!-- end-user-doc -->
1721
     * @generated
1722
     */
1723
    public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager();
1724
1725
    /**
1726
     * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature.
1727
     * <!-- begin-user-doc -->
1728
     * <!-- end-user-doc -->
1729
     * @generated
1730
     */
1731
    public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates();
1732
1733
    /**
1734
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class.
1735
     * <!-- begin-user-doc -->
1736
     * <!-- end-user-doc -->
1737
     * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl
1738
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType()
1739
     * @generated
1740
     */
1741
    public static final EClass NAME_TYPE = eINSTANCE.getNameType();
1742
1743
    /**
1744
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1745
     * <!-- begin-user-doc -->
1746
     * <!-- end-user-doc -->
1747
     * @generated
1748
     */
1749
    public static final EAttribute NAME_TYPE__MIXED = eINSTANCE.getNameType_Mixed();
1750
1751
    /**
1752
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1753
     * <!-- begin-user-doc -->
1754
     * <!-- end-user-doc -->
1755
     * @generated
1756
     */
1757
    public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family();
1758
1759
    /**
1760
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1761
     * <!-- begin-user-doc -->
1762
     * <!-- end-user-doc -->
1763
     * @generated
1764
     */
1765
    public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given();
1766
1767
    /**
1768
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
1769
     * <!-- begin-user-doc -->
1770
     * <!-- end-user-doc -->
1771
     * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl
1772
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType()
1773
     * @generated
1774
     */
1775
    public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType();
1776
1777
    /**
1778
     * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature.
1779
     * <!-- begin-user-doc -->
1780
     * <!-- end-user-doc -->
1781
     * @generated
1782
     */
1783
    public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person();
1784
1785
    /**
1786
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class.
1787
     * <!-- begin-user-doc -->
1788
     * <!-- end-user-doc -->
1789
     * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl
1790
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType()
1791
     * @generated
1792
     */
1793
    public static final EClass PERSON_TYPE = eINSTANCE.getPersonType();
1794
1795
    /**
1796
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1797
     * <!-- begin-user-doc -->
1798
     * <!-- end-user-doc -->
1799
     * @generated
1800
     */
1801
    public static final EAttribute PERSON_TYPE__MIXED = eINSTANCE.getPersonType_Mixed();
1802
1803
    /**
1804
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1805
     * <!-- begin-user-doc -->
1806
     * <!-- end-user-doc -->
1807
     * @generated
1808
     */
1809
    public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name();
1810
1811
    /**
1812
     * The meta object literal for the '<em><b>Email</b></em>' attribute list feature.
1813
     * <!-- begin-user-doc -->
1814
     * <!-- end-user-doc -->
1815
     * @generated
1816
     */
1817
    public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email();
1818
1819
    /**
1820
     * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature.
1821
     * <!-- begin-user-doc -->
1822
     * <!-- end-user-doc -->
1823
     * @generated
1824
     */
1825
    public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url();
1826
1827
    /**
1828
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1829
     * <!-- begin-user-doc -->
1830
     * <!-- end-user-doc -->
1831
     * @generated
1832
     */
1833
    public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link();
1834
1835
    /**
1836
     * The meta object literal for the '<em><b>Any</b></em>' attribute list feature.
1837
     * <!-- begin-user-doc -->
1838
     * <!-- end-user-doc -->
1839
     * @generated
1840
     */
1841
    public static final EAttribute PERSON_TYPE__ANY = eINSTANCE.getPersonType_Any();
1842
1843
    /**
1844
     * The meta object literal for the '<em><b>Contr</b></em>' attribute feature.
1845
     * <!-- begin-user-doc -->
1846
     * <!-- end-user-doc -->
1847
     * @generated
1848
     */
1849
    public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr();
1850
1851
    /**
1852
     * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
1853
     * <!-- begin-user-doc -->
1854
     * <!-- end-user-doc -->
1855
     * @generated
1856
     */
1857
    public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id();
1858
1859
    /**
1860
     * The meta object literal for the '<em><b>Salary</b></em>' attribute feature.
1861
     * <!-- begin-user-doc -->
1862
     * <!-- end-user-doc -->
1863
     * @generated
1864
     */
1865
    public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary();
1866
1867
    /**
1868
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class.
1869
     * <!-- begin-user-doc -->
1870
     * <!-- end-user-doc -->
1871
     * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl
1872
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType()
1873
     * @generated
1874
     */
1875
    public static final EClass URL_TYPE = eINSTANCE.getUrlType();
1876
1877
    /**
1878
     * The meta object literal for the '<em><b>Href</b></em>' attribute feature.
1879
     * <!-- begin-user-doc -->
1880
     * <!-- end-user-doc -->
1881
     * @generated
1882
     */
1883
    public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href();
1884
1885
    /**
1886
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum.
1887
     * <!-- begin-user-doc -->
1888
     * <!-- end-user-doc -->
1889
     * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1890
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType()
1891
     * @generated
1892
     */
1893
    public static final EEnum CONTR_TYPE = eINSTANCE.getContrType();
1894
1895
    /**
1896
     * The meta object literal for the '<em>Contr Type Object</em>' data type.
1897
     * <!-- begin-user-doc -->
1898
     * <!-- end-user-doc -->
1899
     * @see org.eclipse.emf.test.models.personal.mixed.ContrType
1900
     * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject()
1901
     * @generated
1902
     */
1903
    public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject();
1904
1905
  }
1906
1907
} //MixedPackageImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedFactoryImpl.java,v 1.2 2007/01/18 22:06:42 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.personal.mixed.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class MixedFactoryImpl extends EFactoryImpl implements MixedFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final MixedFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static MixedFactoryImpl init()
53
  {
54
    try
55
    {
56
      MixedFactoryImpl theMixedFactory = (MixedFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personalMixed"); 
57
      if (theMixedFactory != null)
58
      {
59
        return theMixedFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new MixedFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public MixedFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case MixedPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
91
      case MixedPackageImpl.LINK_TYPE: return (EObject)createLinkType();
92
      case MixedPackageImpl.NAME_TYPE: return (EObject)createNameType();
93
      case MixedPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType();
94
      case MixedPackageImpl.PERSON_TYPE: return (EObject)createPersonType();
95
      case MixedPackageImpl.URL_TYPE: return (EObject)createUrlType();
96
      default:
97
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
98
    }
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  public Object createFromString(EDataType eDataType, String initialValue)
108
  {
109
    switch (eDataType.getClassifierID())
110
    {
111
      case MixedPackageImpl.CONTR_TYPE:
112
        return createContrTypeFromString(eDataType, initialValue);
113
      case MixedPackageImpl.CONTR_TYPE_OBJECT:
114
        return createContrTypeObjectFromString(eDataType, initialValue);
115
      default:
116
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
117
    }
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public String convertToString(EDataType eDataType, Object instanceValue)
127
  {
128
    switch (eDataType.getClassifierID())
129
    {
130
      case MixedPackageImpl.CONTR_TYPE:
131
        return convertContrTypeToString(eDataType, instanceValue);
132
      case MixedPackageImpl.CONTR_TYPE_OBJECT:
133
        return convertContrTypeObjectToString(eDataType, instanceValue);
134
      default:
135
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
136
    }
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  public DocumentRoot createDocumentRoot()
145
  {
146
    DocumentRootImpl documentRoot = new DocumentRootImpl();
147
    return documentRoot;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public LinkType createLinkType()
156
  {
157
    LinkTypeImpl linkType = new LinkTypeImpl();
158
    return linkType;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NameType createNameType()
167
  {
168
    NameTypeImpl nameType = new NameTypeImpl();
169
    return nameType;
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  public PersonnelType createPersonnelType()
178
  {
179
    PersonnelTypeImpl personnelType = new PersonnelTypeImpl();
180
    return personnelType;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public PersonType createPersonType()
189
  {
190
    PersonTypeImpl personType = new PersonTypeImpl();
191
    return personType;
192
  }
193
194
  /**
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   */
199
  public UrlType createUrlType()
200
  {
201
    UrlTypeImpl urlType = new UrlTypeImpl();
202
    return urlType;
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public ContrType createContrTypeFromString(EDataType eDataType, String initialValue)
211
  {
212
    ContrType result = ContrType.get(initialValue);
213
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
214
    return result;
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertContrTypeToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return instanceValue == null ? null : instanceValue.toString();
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue)
233
  {
234
    return createContrTypeFromString(MixedPackageImpl.Literals.CONTR_TYPE, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return convertContrTypeToString(MixedPackageImpl.Literals.CONTR_TYPE, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public MixedPackageImpl getMixedPackageImpl()
253
  {
254
    return (MixedPackageImpl)getEPackage();
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @deprecated
261
   * @generated
262
   */
263
  @Deprecated
264
  public static MixedPackageImpl getPackage()
265
  {
266
    return MixedPackageImpl.eINSTANCE;
267
  }
268
269
} //MixedFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java (-577 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.math.BigInteger;
22
23
import java.util.Collection;
24
import java.util.List;
25
26
import org.eclipse.emf.common.notify.Notification;
27
import org.eclipse.emf.common.notify.NotificationChain;
28
29
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.ENotificationImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
37
import org.eclipse.emf.ecore.sdo.util.ESequence;
38
39
import org.eclipse.emf.ecore.util.BasicFeatureMap;
40
import org.eclipse.emf.ecore.util.FeatureMap;
41
import org.eclipse.emf.ecore.util.InternalEList;
42
43
import org.eclipse.emf.test.models.personal.mixed.ContrType;
44
import org.eclipse.emf.test.models.personal.mixed.LinkType;
45
import org.eclipse.emf.test.models.personal.mixed.NameType;
46
import org.eclipse.emf.test.models.personal.mixed.PersonType;
47
import org.eclipse.emf.test.models.personal.mixed.UrlType;
48
49
/**
50
 * <!-- begin-user-doc -->
51
 * An implementation of the model object '<em><b>Person Type</b></em>'.
52
 * <!-- end-user-doc -->
53
 * <p>
54
 * The following features are implemented:
55
 * <ul>
56
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getMixed <em>Mixed</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getName <em>Name</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getEmail <em>Email</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getUrl <em>Url</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getLink <em>Link</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getAny <em>Any</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getContr <em>Contr</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getId <em>Id</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getSalary <em>Salary</em>}</li>
65
 * </ul>
66
 * </p>
67
 *
68
 * @generated
69
 */
70
public class PersonTypeImpl extends EDataObjectImpl implements PersonType
71
{
72
  /**
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   */
77
  private static final long serialVersionUID = 1L;
78
79
  /**
80
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @see #getMixed()
84
   * @generated
85
   * @ordered
86
   */
87
  protected ESequence mixed;
88
89
  /**
90
   * The default value of the '{@link #getContr() <em>Contr</em>}' attribute.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see #getContr()
94
   * @generated
95
   * @ordered
96
   */
97
  protected static final ContrType CONTR_EDEFAULT = ContrType.FALSE;
98
99
  /**
100
   * The cached value of the '{@link #getContr() <em>Contr</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @see #getContr()
104
   * @generated
105
   * @ordered
106
   */
107
  protected ContrType contr = CONTR_EDEFAULT;
108
109
  /**
110
   * This is true if the Contr attribute has been set.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @generated
114
   * @ordered
115
   */
116
  protected boolean contrESet;
117
118
  /**
119
   * The default value of the '{@link #getId() <em>Id</em>}' attribute.
120
   * <!-- begin-user-doc -->
121
   * <!-- end-user-doc -->
122
   * @see #getId()
123
   * @generated
124
   * @ordered
125
   */
126
  protected static final String ID_EDEFAULT = null;
127
128
  /**
129
   * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
130
   * <!-- begin-user-doc -->
131
   * <!-- end-user-doc -->
132
   * @see #getId()
133
   * @generated
134
   * @ordered
135
   */
136
  protected String id = ID_EDEFAULT;
137
138
  /**
139
   * The default value of the '{@link #getSalary() <em>Salary</em>}' attribute.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @see #getSalary()
143
   * @generated
144
   * @ordered
145
   */
146
  protected static final BigInteger SALARY_EDEFAULT = null;
147
148
  /**
149
   * The cached value of the '{@link #getSalary() <em>Salary</em>}' attribute.
150
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
152
   * @see #getSalary()
153
   * @generated
154
   * @ordered
155
   */
156
  protected BigInteger salary = SALARY_EDEFAULT;
157
158
  /**
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   */
163
  protected PersonTypeImpl()
164
  {
165
    super();
166
  }
167
168
  /**
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @generated
172
   */
173
  @Override
174
  protected EClass eStaticClass()
175
  {
176
    return MixedPackageImpl.Literals.PERSON_TYPE;
177
  }
178
179
  /**
180
   * <!-- begin-user-doc -->
181
   * <!-- end-user-doc -->
182
   * @generated
183
   */
184
  public Sequence getMixed()
185
  {
186
    if (mixed == null)
187
    {
188
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.PERSON_TYPE__MIXED));
189
    }
190
    return mixed;
191
  }
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  public NameType getName()
199
  {
200
    return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__NAME, true);
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  public NotificationChain basicSetName(NameType newName, NotificationChain msgs)
209
  {
210
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName, msgs);
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  public void setName(NameType newName)
219
  {
220
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName);
221
  }
222
223
  /**
224
   * <!-- begin-user-doc -->
225
   * <!-- end-user-doc -->
226
   * @generated
227
   */
228
  public List<String> getEmail()
229
  {
230
    return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__EMAIL);
231
  }
232
233
  /**
234
   * <!-- begin-user-doc -->
235
   * <!-- end-user-doc -->
236
   * @generated
237
   */
238
  public List<UrlType> getUrl()
239
  {
240
    return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__URL);
241
  }
242
243
  /**
244
   * <!-- begin-user-doc -->
245
   * <!-- end-user-doc -->
246
   * @generated
247
   */
248
  public LinkType getLink()
249
  {
250
    return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__LINK, true);
251
  }
252
253
  /**
254
   * <!-- begin-user-doc -->
255
   * <!-- end-user-doc -->
256
   * @generated
257
   */
258
  public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs)
259
  {
260
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink, msgs);
261
  }
262
263
  /**
264
   * <!-- begin-user-doc -->
265
   * <!-- end-user-doc -->
266
   * @generated
267
   */
268
  public void setLink(LinkType newLink)
269
  {
270
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink);
271
  }
272
273
  /**
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   */
278
  public Sequence getAny()
279
  {
280
    return new BasicESequence((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().<FeatureMap.Entry>list(MixedPackageImpl.Literals.PERSON_TYPE__ANY));
281
  }
282
283
  /**
284
   * <!-- begin-user-doc -->
285
   * <!-- end-user-doc -->
286
   * @generated
287
   */
288
  public ContrType getContr()
289
  {
290
    return contr;
291
  }
292
293
  /**
294
   * <!-- begin-user-doc -->
295
   * <!-- end-user-doc -->
296
   * @generated
297
   */
298
  public void setContr(ContrType newContr)
299
  {
300
    ContrType oldContr = contr;
301
    contr = newContr == null ? CONTR_EDEFAULT : newContr;
302
    boolean oldContrESet = contrESet;
303
    contrESet = true;
304
    if (eNotificationRequired())
305
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, contr, !oldContrESet));
306
  }
307
308
  /**
309
   * <!-- begin-user-doc -->
310
   * <!-- end-user-doc -->
311
   * @generated
312
   */
313
  public void unsetContr()
314
  {
315
    ContrType oldContr = contr;
316
    boolean oldContrESet = contrESet;
317
    contr = CONTR_EDEFAULT;
318
    contrESet = false;
319
    if (eNotificationRequired())
320
      eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, CONTR_EDEFAULT, oldContrESet));
321
  }
322
323
  /**
324
   * <!-- begin-user-doc -->
325
   * <!-- end-user-doc -->
326
   * @generated
327
   */
328
  public boolean isSetContr()
329
  {
330
    return contrESet;
331
  }
332
333
  /**
334
   * <!-- begin-user-doc -->
335
   * <!-- end-user-doc -->
336
   * @generated
337
   */
338
  public String getId()
339
  {
340
    return id;
341
  }
342
343
  /**
344
   * <!-- begin-user-doc -->
345
   * <!-- end-user-doc -->
346
   * @generated
347
   */
348
  public void setId(String newId)
349
  {
350
    String oldId = id;
351
    id = newId;
352
    if (eNotificationRequired())
353
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__ID, oldId, id));
354
  }
355
356
  /**
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   */
361
  public BigInteger getSalary()
362
  {
363
    return salary;
364
  }
365
366
  /**
367
   * <!-- begin-user-doc -->
368
   * <!-- end-user-doc -->
369
   * @generated
370
   */
371
  public void setSalary(BigInteger newSalary)
372
  {
373
    BigInteger oldSalary = salary;
374
    salary = newSalary;
375
    if (eNotificationRequired())
376
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__SALARY, oldSalary, salary));
377
  }
378
379
  /**
380
   * <!-- begin-user-doc -->
381
   * <!-- end-user-doc -->
382
   * @generated
383
   */
384
  @Override
385
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
386
  {
387
    switch (featureID)
388
    {
389
      case MixedPackageImpl.PERSON_TYPE__MIXED:
390
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
391
      case MixedPackageImpl.PERSON_TYPE__NAME:
392
        return basicSetName(null, msgs);
393
      case MixedPackageImpl.PERSON_TYPE__URL:
394
        return ((InternalEList<?>)getUrl()).basicRemove(otherEnd, msgs);
395
      case MixedPackageImpl.PERSON_TYPE__LINK:
396
        return basicSetLink(null, msgs);
397
      case MixedPackageImpl.PERSON_TYPE__ANY:
398
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs);
399
    }
400
    return super.eInverseRemove(otherEnd, featureID, msgs);
401
  }
402
403
  /**
404
   * <!-- begin-user-doc -->
405
   * <!-- end-user-doc -->
406
   * @generated
407
   */
408
  @Override
409
  public Object eGet(int featureID, boolean resolve, boolean coreType)
410
  {
411
    switch (featureID)
412
    {
413
      case MixedPackageImpl.PERSON_TYPE__MIXED:
414
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
415
        return getMixed();
416
      case MixedPackageImpl.PERSON_TYPE__NAME:
417
        return getName();
418
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
419
        return getEmail();
420
      case MixedPackageImpl.PERSON_TYPE__URL:
421
        return getUrl();
422
      case MixedPackageImpl.PERSON_TYPE__LINK:
423
        return getLink();
424
      case MixedPackageImpl.PERSON_TYPE__ANY:
425
        if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap();
426
        return getAny();
427
      case MixedPackageImpl.PERSON_TYPE__CONTR:
428
        return getContr();
429
      case MixedPackageImpl.PERSON_TYPE__ID:
430
        return getId();
431
      case MixedPackageImpl.PERSON_TYPE__SALARY:
432
        return getSalary();
433
    }
434
    return super.eGet(featureID, resolve, coreType);
435
  }
436
437
  /**
438
   * <!-- begin-user-doc -->
439
   * <!-- end-user-doc -->
440
   * @generated
441
   */
442
  @SuppressWarnings("unchecked")
443
  @Override
444
  public void eSet(int featureID, Object newValue)
445
  {
446
    switch (featureID)
447
    {
448
      case MixedPackageImpl.PERSON_TYPE__MIXED:
449
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
450
        return;
451
      case MixedPackageImpl.PERSON_TYPE__NAME:
452
        setName((NameType)newValue);
453
        return;
454
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
455
        getEmail().clear();
456
        getEmail().addAll((Collection<? extends String>)newValue);
457
        return;
458
      case MixedPackageImpl.PERSON_TYPE__URL:
459
        getUrl().clear();
460
        getUrl().addAll((Collection<? extends UrlType>)newValue);
461
        return;
462
      case MixedPackageImpl.PERSON_TYPE__LINK:
463
        setLink((LinkType)newValue);
464
        return;
465
      case MixedPackageImpl.PERSON_TYPE__ANY:
466
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue);
467
        return;
468
      case MixedPackageImpl.PERSON_TYPE__CONTR:
469
        setContr((ContrType)newValue);
470
        return;
471
      case MixedPackageImpl.PERSON_TYPE__ID:
472
        setId((String)newValue);
473
        return;
474
      case MixedPackageImpl.PERSON_TYPE__SALARY:
475
        setSalary((BigInteger)newValue);
476
        return;
477
    }
478
    super.eSet(featureID, newValue);
479
  }
480
481
  /**
482
   * <!-- begin-user-doc -->
483
   * <!-- end-user-doc -->
484
   * @generated
485
   */
486
  @Override
487
  public void eUnset(int featureID)
488
  {
489
    switch (featureID)
490
    {
491
      case MixedPackageImpl.PERSON_TYPE__MIXED:
492
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
493
        return;
494
      case MixedPackageImpl.PERSON_TYPE__NAME:
495
        setName((NameType)null);
496
        return;
497
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
498
        getEmail().clear();
499
        return;
500
      case MixedPackageImpl.PERSON_TYPE__URL:
501
        getUrl().clear();
502
        return;
503
      case MixedPackageImpl.PERSON_TYPE__LINK:
504
        setLink((LinkType)null);
505
        return;
506
      case MixedPackageImpl.PERSON_TYPE__ANY:
507
        ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear();
508
        return;
509
      case MixedPackageImpl.PERSON_TYPE__CONTR:
510
        unsetContr();
511
        return;
512
      case MixedPackageImpl.PERSON_TYPE__ID:
513
        setId(ID_EDEFAULT);
514
        return;
515
      case MixedPackageImpl.PERSON_TYPE__SALARY:
516
        setSalary(SALARY_EDEFAULT);
517
        return;
518
    }
519
    super.eUnset(featureID);
520
  }
521
522
  /**
523
   * <!-- begin-user-doc -->
524
   * <!-- end-user-doc -->
525
   * @generated
526
   */
527
  @Override
528
  public boolean eIsSet(int featureID)
529
  {
530
    switch (featureID)
531
    {
532
      case MixedPackageImpl.PERSON_TYPE__MIXED:
533
        return mixed != null && !mixed.featureMap().isEmpty();
534
      case MixedPackageImpl.PERSON_TYPE__NAME:
535
        return getName() != null;
536
      case MixedPackageImpl.PERSON_TYPE__EMAIL:
537
        return !getEmail().isEmpty();
538
      case MixedPackageImpl.PERSON_TYPE__URL:
539
        return !getUrl().isEmpty();
540
      case MixedPackageImpl.PERSON_TYPE__LINK:
541
        return getLink() != null;
542
      case MixedPackageImpl.PERSON_TYPE__ANY:
543
        return !((FeatureMap.Internal.Wrapper)getAny()).featureMap().isEmpty();
544
      case MixedPackageImpl.PERSON_TYPE__CONTR:
545
        return isSetContr();
546
      case MixedPackageImpl.PERSON_TYPE__ID:
547
        return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
548
      case MixedPackageImpl.PERSON_TYPE__SALARY:
549
        return SALARY_EDEFAULT == null ? salary != null : !SALARY_EDEFAULT.equals(salary);
550
    }
551
    return super.eIsSet(featureID);
552
  }
553
554
  /**
555
   * <!-- begin-user-doc -->
556
   * <!-- end-user-doc -->
557
   * @generated
558
   */
559
  @Override
560
  public String toString()
561
  {
562
    if (eIsProxy()) return super.toString();
563
564
    StringBuffer result = new StringBuffer(super.toString());
565
    result.append(" (mixed: ");
566
    result.append(mixed);
567
    result.append(", contr: ");
568
    if (contrESet) result.append(contr); else result.append("<unset>");
569
    result.append(", id: ");
570
    result.append(id);
571
    result.append(", salary: ");
572
    result.append(salary);
573
    result.append(')');
574
    return result.toString();
575
  }
576
577
} //PersonTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/LinkTypeImpl.java (-322 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LinkTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.List;
22
23
import org.eclipse.emf.common.notify.Notification;
24
import org.eclipse.emf.common.notify.NotificationChain;
25
26
import org.eclipse.emf.ecore.EClass;
27
import org.eclipse.emf.ecore.InternalEObject;
28
29
import org.eclipse.emf.ecore.impl.ENotificationImpl;
30
31
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
32
33
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
34
import org.eclipse.emf.ecore.sdo.util.ESequence;
35
36
import org.eclipse.emf.ecore.util.BasicFeatureMap;
37
import org.eclipse.emf.ecore.util.FeatureMap;
38
import org.eclipse.emf.ecore.util.InternalEList;
39
40
import org.eclipse.emf.test.models.personal.mixed.LinkType;
41
42
/**
43
 * <!-- begin-user-doc -->
44
 * An implementation of the model object '<em><b>Link Type</b></em>'.
45
 * <!-- end-user-doc -->
46
 * <p>
47
 * The following features are implemented:
48
 * <ul>
49
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getMixed <em>Mixed</em>}</li>
50
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getManager <em>Manager</em>}</li>
51
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getSubordinates <em>Subordinates</em>}</li>
52
 * </ul>
53
 * </p>
54
 *
55
 * @generated
56
 */
57
public class LinkTypeImpl extends EDataObjectImpl implements LinkType
58
{
59
  /**
60
   * <!-- begin-user-doc -->
61
   * <!-- end-user-doc -->
62
   * @generated
63
   */
64
  private static final long serialVersionUID = 1L;
65
66
  /**
67
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
68
   * <!-- begin-user-doc -->
69
   * <!-- end-user-doc -->
70
   * @see #getMixed()
71
   * @generated
72
   * @ordered
73
   */
74
  protected ESequence mixed;
75
76
  /**
77
   * The default value of the '{@link #getManager() <em>Manager</em>}' attribute.
78
   * <!-- begin-user-doc -->
79
   * <!-- end-user-doc -->
80
   * @see #getManager()
81
   * @generated
82
   * @ordered
83
   */
84
  protected static final String MANAGER_EDEFAULT = null;
85
86
  /**
87
   * The cached value of the '{@link #getManager() <em>Manager</em>}' attribute.
88
   * <!-- begin-user-doc -->
89
   * <!-- end-user-doc -->
90
   * @see #getManager()
91
   * @generated
92
   * @ordered
93
   */
94
  protected String manager = MANAGER_EDEFAULT;
95
96
  /**
97
   * The default value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute.
98
   * <!-- begin-user-doc -->
99
   * <!-- end-user-doc -->
100
   * @see #getSubordinates()
101
   * @generated
102
   * @ordered
103
   */
104
  protected static final List<String> SUBORDINATES_EDEFAULT = null;
105
106
  /**
107
   * The cached value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute.
108
   * <!-- begin-user-doc -->
109
   * <!-- end-user-doc -->
110
   * @see #getSubordinates()
111
   * @generated
112
   * @ordered
113
   */
114
  protected List<String> subordinates = SUBORDINATES_EDEFAULT;
115
116
  /**
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @generated
120
   */
121
  protected LinkTypeImpl()
122
  {
123
    super();
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  @Override
132
  protected EClass eStaticClass()
133
  {
134
    return MixedPackageImpl.Literals.LINK_TYPE;
135
  }
136
137
  /**
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @generated
141
   */
142
  public Sequence getMixed()
143
  {
144
    if (mixed == null)
145
    {
146
      mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.LINK_TYPE__MIXED));
147
    }
148
    return mixed;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  public String getManager()
157
  {
158
    return manager;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public void setManager(String newManager)
167
  {
168
    String oldManager = manager;
169
    manager = newManager;
170
    if (eNotificationRequired())
171
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.LINK_TYPE__MANAGER, oldManager, manager));
172
  }
173
174
  /**
175
   * <!-- begin-user-doc -->
176
   * <!-- end-user-doc -->
177
   * @generated
178
   */
179
  public List<String> getSubordinates()
180
  {
181
    return subordinates;
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  public void setSubordinates(List<String> newSubordinates)
190
  {
191
    List<String> oldSubordinates = subordinates;
192
    subordinates = newSubordinates;
193
    if (eNotificationRequired())
194
      eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.LINK_TYPE__SUBORDINATES, oldSubordinates, subordinates));
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @generated
201
   */
202
  @Override
203
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
204
  {
205
    switch (featureID)
206
    {
207
      case MixedPackageImpl.LINK_TYPE__MIXED:
208
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
209
    }
210
    return super.eInverseRemove(otherEnd, featureID, msgs);
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  @Override
219
  public Object eGet(int featureID, boolean resolve, boolean coreType)
220
  {
221
    switch (featureID)
222
    {
223
      case MixedPackageImpl.LINK_TYPE__MIXED:
224
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
225
        return getMixed();
226
      case MixedPackageImpl.LINK_TYPE__MANAGER:
227
        return getManager();
228
      case MixedPackageImpl.LINK_TYPE__SUBORDINATES:
229
        return getSubordinates();
230
    }
231
    return super.eGet(featureID, resolve, coreType);
232
  }
233
234
  /**
235
   * <!-- begin-user-doc -->
236
   * <!-- end-user-doc -->
237
   * @generated
238
   */
239
  @SuppressWarnings("unchecked")
240
  @Override
241
  public void eSet(int featureID, Object newValue)
242
  {
243
    switch (featureID)
244
    {
245
      case MixedPackageImpl.LINK_TYPE__MIXED:
246
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
247
        return;
248
      case MixedPackageImpl.LINK_TYPE__MANAGER:
249
        setManager((String)newValue);
250
        return;
251
      case MixedPackageImpl.LINK_TYPE__SUBORDINATES:
252
        setSubordinates((List<String>)newValue);
253
        return;
254
    }
255
    super.eSet(featureID, newValue);
256
  }
257
258
  /**
259
   * <!-- begin-user-doc -->
260
   * <!-- end-user-doc -->
261
   * @generated
262
   */
263
  @Override
264
  public void eUnset(int featureID)
265
  {
266
    switch (featureID)
267
    {
268
      case MixedPackageImpl.LINK_TYPE__MIXED:
269
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
270
        return;
271
      case MixedPackageImpl.LINK_TYPE__MANAGER:
272
        setManager(MANAGER_EDEFAULT);
273
        return;
274
      case MixedPackageImpl.LINK_TYPE__SUBORDINATES:
275
        setSubordinates(SUBORDINATES_EDEFAULT);
276
        return;
277
    }
278
    super.eUnset(featureID);
279
  }
280
281
  /**
282
   * <!-- begin-user-doc -->
283
   * <!-- end-user-doc -->
284
   * @generated
285
   */
286
  @Override
287
  public boolean eIsSet(int featureID)
288
  {
289
    switch (featureID)
290
    {
291
      case MixedPackageImpl.LINK_TYPE__MIXED:
292
        return mixed != null && !mixed.featureMap().isEmpty();
293
      case MixedPackageImpl.LINK_TYPE__MANAGER:
294
        return MANAGER_EDEFAULT == null ? manager != null : !MANAGER_EDEFAULT.equals(manager);
295
      case MixedPackageImpl.LINK_TYPE__SUBORDINATES:
296
        return SUBORDINATES_EDEFAULT == null ? subordinates != null : !SUBORDINATES_EDEFAULT.equals(subordinates);
297
    }
298
    return super.eIsSet(featureID);
299
  }
300
301
  /**
302
   * <!-- begin-user-doc -->
303
   * <!-- end-user-doc -->
304
   * @generated
305
   */
306
  @Override
307
  public String toString()
308
  {
309
    if (eIsProxy()) return super.toString();
310
311
    StringBuffer result = new StringBuffer(super.toString());
312
    result.append(" (mixed: ");
313
    result.append(mixed);
314
    result.append(", manager: ");
315
    result.append(manager);
316
    result.append(", subordinates: ");
317
    result.append(subordinates);
318
    result.append(')');
319
    return result.toString();
320
  }
321
322
} //LinkTypeImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/impl/PersonnelTypeImpl.java (-188 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonnelTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.NotificationChain;
23
24
import org.eclipse.emf.common.util.EList;
25
26
import org.eclipse.emf.ecore.EClass;
27
import org.eclipse.emf.ecore.InternalEObject;
28
29
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
30
31
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
32
import org.eclipse.emf.ecore.util.InternalEList;
33
34
import org.eclipse.emf.test.models.personal.mixed.PersonType;
35
import org.eclipse.emf.test.models.personal.mixed.PersonnelType;
36
37
/**
38
 * <!-- begin-user-doc -->
39
 * An implementation of the model object '<em><b>Personnel Type</b></em>'.
40
 * <!-- end-user-doc -->
41
 * <p>
42
 * The following features are implemented:
43
 * <ul>
44
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl#getPerson <em>Person</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class PersonnelTypeImpl extends EDataObjectImpl implements PersonnelType
51
{
52
  /**
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  private static final long serialVersionUID = 1L;
58
59
  /**
60
   * The cached value of the '{@link #getPerson() <em>Person</em>}' containment reference list.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @see #getPerson()
64
   * @generated
65
   * @ordered
66
   */
67
  protected EList<PersonType> person;
68
69
  /**
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @generated
73
   */
74
  protected PersonnelTypeImpl()
75
  {
76
    super();
77
  }
78
79
  /**
80
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
82
   * @generated
83
   */
84
  @Override
85
  protected EClass eStaticClass()
86
  {
87
    return MixedPackageImpl.Literals.PERSONNEL_TYPE;
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  public List<PersonType> getPerson()
96
  {
97
    if (person == null)
98
    {
99
      person = new EObjectContainmentEList<PersonType>(PersonType.class, this, MixedPackageImpl.PERSONNEL_TYPE__PERSON);
100
    }
101
    return person;
102
  }
103
104
  /**
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @generated
108
   */
109
  @Override
110
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
111
  {
112
    switch (featureID)
113
    {
114
      case MixedPackageImpl.PERSONNEL_TYPE__PERSON:
115
        return ((InternalEList<?>)getPerson()).basicRemove(otherEnd, msgs);
116
    }
117
    return super.eInverseRemove(otherEnd, featureID, msgs);
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public Object eGet(int featureID, boolean resolve, boolean coreType)
127
  {
128
    switch (featureID)
129
    {
130
      case MixedPackageImpl.PERSONNEL_TYPE__PERSON:
131
        return getPerson();
132
    }
133
    return super.eGet(featureID, resolve, coreType);
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  @SuppressWarnings("unchecked")
142
  @Override
143
  public void eSet(int featureID, Object newValue)
144
  {
145
    switch (featureID)
146
    {
147
      case MixedPackageImpl.PERSONNEL_TYPE__PERSON:
148
        getPerson().clear();
149
        getPerson().addAll((Collection<? extends PersonType>)newValue);
150
        return;
151
    }
152
    super.eSet(featureID, newValue);
153
  }
154
155
  /**
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   */
160
  @Override
161
  public void eUnset(int featureID)
162
  {
163
    switch (featureID)
164
    {
165
      case MixedPackageImpl.PERSONNEL_TYPE__PERSON:
166
        getPerson().clear();
167
        return;
168
    }
169
    super.eUnset(featureID);
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  @Override
178
  public boolean eIsSet(int featureID)
179
  {
180
    switch (featureID)
181
    {
182
      case MixedPackageImpl.PERSONNEL_TYPE__PERSON:
183
        return person != null && !person.isEmpty();
184
    }
185
    return super.eIsSet(featureID);
186
  }
187
188
} //PersonnelTypeImpl
(-)src/org/eclipse/emf/test/models/personal/PersonnelType.java (-54 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonnelType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Personnel Type</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonnelType#getPerson <em>Person</em>}</li>
30
 * </ul>
31
 * </p>
32
 *
33
 * @model extendedMetaData="name='personnel_._type' kind='elementOnly'"
34
 * @generated
35
 */
36
public interface PersonnelType
37
{
38
  /**
39
   * Returns the value of the '<em><b>Person</b></em>' containment reference list.
40
   * The list contents are of type {@link org.eclipse.emf.test.models.personal.PersonType}.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Person</em>' containment reference list isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Person</em>' containment reference list.
48
   * @model containment="true" required="true"
49
   *        extendedMetaData="kind='element' name='person' namespace='##targetNamespace'"
50
   * @generated
51
   */
52
  List<PersonType> getPerson();
53
54
} // PersonnelType
(-)src/org/eclipse/emf/test/models/personal/ContrType.java (-246 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ContrType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
import java.util.Arrays;
20
import java.util.Collections;
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the literals of the enumeration '<em><b>Contr Type</b></em>',
26
 * and utility methods for working with them.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType()
29
 * @model extendedMetaData="name='contr_._type'"
30
 * @generated
31
 */
32
public enum ContrType implements InternalContrType
33
{
34
  /**
35
   * The '<em><b>True</b></em>' literal object.
36
   * <!-- begin-user-doc -->
37
   * <!-- end-user-doc -->
38
   * @see #TRUE_VALUE
39
   * @generated
40
   * @ordered
41
   */
42
  TRUE(0, "true", "true"),
43
44
  /**
45
   * The '<em><b>False</b></em>' literal object.
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @see #FALSE_VALUE
49
   * @generated
50
   * @ordered
51
   */
52
  FALSE(1, "false", "false");
53
54
  /**
55
   * The '<em><b>True</b></em>' literal value.
56
   * <!-- begin-user-doc -->
57
   * <p>
58
   * If the meaning of '<em><b>True</b></em>' literal object isn't clear,
59
   * there really should be more of a description here...
60
   * </p>
61
   * <!-- end-user-doc -->
62
   * @see #TRUE
63
   * @model name="true"
64
   * @generated
65
   * @ordered
66
   */
67
  public static final int TRUE_VALUE = 0;
68
69
  /**
70
   * The '<em><b>False</b></em>' literal value.
71
   * <!-- begin-user-doc -->
72
   * <p>
73
   * If the meaning of '<em><b>False</b></em>' literal object isn't clear,
74
   * there really should be more of a description here...
75
   * </p>
76
   * <!-- end-user-doc -->
77
   * @see #FALSE
78
   * @model name="false"
79
   * @generated
80
   * @ordered
81
   */
82
  public static final int FALSE_VALUE = 1;
83
84
  /**
85
   * An array of all the '<em><b>Contr Type</b></em>' enumerators.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  private static final ContrType[] VALUES_ARRAY =
91
    new ContrType[]
92
    {
93
      TRUE,
94
      FALSE,
95
    };
96
97
  /**
98
   * A public read-only list of all the '<em><b>Contr Type</b></em>' enumerators.
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  public static final List<ContrType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
104
105
  /**
106
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified literal value.
107
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
109
   * @generated
110
   */
111
  public static ContrType get(String literal)
112
  {
113
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
114
    {
115
      ContrType result = VALUES_ARRAY[i];
116
      if (result.toString().equals(literal))
117
      {
118
        return result;
119
      }
120
    }
121
    return null;
122
  }
123
124
  /**
125
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified name.
126
   * <!-- begin-user-doc -->
127
   * <!-- end-user-doc -->
128
   * @generated
129
   */
130
  public static ContrType getByName(String name)
131
  {
132
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
133
    {
134
      ContrType result = VALUES_ARRAY[i];
135
      if (result.getName().equals(name))
136
      {
137
        return result;
138
      }
139
    }
140
    return null;
141
  }
142
143
  /**
144
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified integer value.
145
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
147
   * @generated
148
   */
149
  public static ContrType get(int value)
150
  {
151
    switch (value)
152
    {
153
      case TRUE_VALUE: return TRUE;
154
      case FALSE_VALUE: return FALSE;
155
    }
156
    return null;
157
  }
158
159
  /**
160
   * <!-- begin-user-doc -->
161
   * <!-- end-user-doc -->
162
   * @generated
163
   */
164
  private final int value;
165
166
  /**
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   */
171
  private final String name;
172
173
  /**
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   */
178
  private final String literal;
179
180
  /**
181
   * Only this class can construct instances.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   */
186
  private ContrType(int value, String name, String literal)
187
  {
188
    this.value = value;
189
    this.name = name;
190
    this.literal = literal;
191
  }
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  public int getValue()
199
  {
200
    return value;
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  public String getName()
209
  {
210
    return name;
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  public String getLiteral()
219
  {
220
    return literal;
221
  }
222
223
  /**
224
   * Returns the literal value of the enumerator, which is its string representation.
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  @Override
230
  public String toString()
231
  {
232
    return literal;
233
  }
234
  
235
} //ContrType
236
237
/**
238
 * A private implementation interface used to hide the inheritance from Enumerator.
239
 * <!-- begin-user-doc -->
240
 * <!-- end-user-doc -->
241
 * @generated
242
 */
243
interface InternalContrType extends org.eclipse.emf.common.util.Enumerator
244
{
245
  // Empty
246
}
(-)src/org/eclipse/emf/test/models/personal/DocumentRoot.java (-307 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Document Root</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getMixed <em>Mixed</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}</li>
40
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}</li>
42
 * </ul>
43
 * </p>
44
 *
45
 * @model extendedMetaData="name='' kind='mixed'"
46
 * @generated
47
 */
48
public interface DocumentRoot
49
{
50
  /**
51
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
52
   * <!-- begin-user-doc -->
53
   * <p>
54
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
55
   * there really should be more of a description here...
56
   * </p>
57
   * <!-- end-user-doc -->
58
   * @return the value of the '<em>Mixed</em>' attribute list.
59
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
60
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
61
   * @generated
62
   */
63
  Sequence getMixed();
64
65
  /**
66
   * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
67
   * The key is of type {@link java.lang.String},
68
   * and the value is of type {@link java.lang.String},
69
   * <!-- begin-user-doc -->
70
   * <p>
71
   * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
72
   * there really should be more of a description here...
73
   * </p>
74
   * <!-- end-user-doc -->
75
   * @return the value of the '<em>XMLNS Prefix Map</em>' map.
76
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
77
   *        extendedMetaData="kind='attribute' name='xmlns:prefix'"
78
   * @generated
79
   */
80
  Map<String, String> getXMLNSPrefixMap();
81
82
  /**
83
   * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
84
   * The key is of type {@link java.lang.String},
85
   * and the value is of type {@link java.lang.String},
86
   * <!-- begin-user-doc -->
87
   * <p>
88
   * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
89
   * there really should be more of a description here...
90
   * </p>
91
   * <!-- end-user-doc -->
92
   * @return the value of the '<em>XSI Schema Location</em>' map.
93
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
94
   *        extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
95
   * @generated
96
   */
97
  Map<String, String> getXSISchemaLocation();
98
99
  /**
100
   * Returns the value of the '<em><b>Email</b></em>' attribute.
101
   * <!-- begin-user-doc -->
102
   * <p>
103
   * If the meaning of the '<em>Email</em>' attribute isn't clear,
104
   * there really should be more of a description here...
105
   * </p>
106
   * <!-- end-user-doc -->
107
   * @return the value of the '<em>Email</em>' attribute.
108
   * @see #setEmail(String)
109
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
110
   *        extendedMetaData="kind='element' name='email' namespace='##targetNamespace'"
111
   * @generated
112
   */
113
  String getEmail();
114
115
  /**
116
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}' attribute.
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @param value the new value of the '<em>Email</em>' attribute.
120
   * @see #getEmail()
121
   * @generated
122
   */
123
  void setEmail(String value);
124
125
  /**
126
   * Returns the value of the '<em><b>Family</b></em>' attribute.
127
   * <!-- begin-user-doc -->
128
   * <p>
129
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
130
   * there really should be more of a description here...
131
   * </p>
132
   * <!-- end-user-doc -->
133
   * @return the value of the '<em>Family</em>' attribute.
134
   * @see #setFamily(String)
135
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
136
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
137
   * @generated
138
   */
139
  String getFamily();
140
141
  /**
142
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}' attribute.
143
   * <!-- begin-user-doc -->
144
   * <!-- end-user-doc -->
145
   * @param value the new value of the '<em>Family</em>' attribute.
146
   * @see #getFamily()
147
   * @generated
148
   */
149
  void setFamily(String value);
150
151
  /**
152
   * Returns the value of the '<em><b>Given</b></em>' attribute.
153
   * <!-- begin-user-doc -->
154
   * <p>
155
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
156
   * there really should be more of a description here...
157
   * </p>
158
   * <!-- end-user-doc -->
159
   * @return the value of the '<em>Given</em>' attribute.
160
   * @see #setGiven(String)
161
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
162
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
163
   * @generated
164
   */
165
  String getGiven();
166
167
  /**
168
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}' attribute.
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @param value the new value of the '<em>Given</em>' attribute.
172
   * @see #getGiven()
173
   * @generated
174
   */
175
  void setGiven(String value);
176
177
  /**
178
   * Returns the value of the '<em><b>Link</b></em>' containment reference.
179
   * <!-- begin-user-doc -->
180
   * <p>
181
   * If the meaning of the '<em>Link</em>' containment reference isn't clear,
182
   * there really should be more of a description here...
183
   * </p>
184
   * <!-- end-user-doc -->
185
   * @return the value of the '<em>Link</em>' containment reference.
186
   * @see #setLink(LinkType)
187
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
188
   *        extendedMetaData="kind='element' name='link' namespace='##targetNamespace'"
189
   * @generated
190
   */
191
  LinkType getLink();
192
193
  /**
194
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}' containment reference.
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @param value the new value of the '<em>Link</em>' containment reference.
198
   * @see #getLink()
199
   * @generated
200
   */
201
  void setLink(LinkType value);
202
203
  /**
204
   * Returns the value of the '<em><b>Name</b></em>' containment reference.
205
   * <!-- begin-user-doc -->
206
   * <p>
207
   * If the meaning of the '<em>Name</em>' containment reference isn't clear,
208
   * there really should be more of a description here...
209
   * </p>
210
   * <!-- end-user-doc -->
211
   * @return the value of the '<em>Name</em>' containment reference.
212
   * @see #setName(NameType)
213
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
214
   *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
215
   * @generated
216
   */
217
  NameType getName();
218
219
  /**
220
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}' containment reference.
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @param value the new value of the '<em>Name</em>' containment reference.
224
   * @see #getName()
225
   * @generated
226
   */
227
  void setName(NameType value);
228
229
  /**
230
   * Returns the value of the '<em><b>Person</b></em>' containment reference.
231
   * <!-- begin-user-doc -->
232
   * <p>
233
   * If the meaning of the '<em>Person</em>' containment reference isn't clear,
234
   * there really should be more of a description here...
235
   * </p>
236
   * <!-- end-user-doc -->
237
   * @return the value of the '<em>Person</em>' containment reference.
238
   * @see #setPerson(PersonType)
239
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
240
   *        extendedMetaData="kind='element' name='person' namespace='##targetNamespace'"
241
   * @generated
242
   */
243
  PersonType getPerson();
244
245
  /**
246
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}' containment reference.
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @param value the new value of the '<em>Person</em>' containment reference.
250
   * @see #getPerson()
251
   * @generated
252
   */
253
  void setPerson(PersonType value);
254
255
  /**
256
   * Returns the value of the '<em><b>Personnel</b></em>' containment reference.
257
   * <!-- begin-user-doc -->
258
   * <p>
259
   * If the meaning of the '<em>Personnel</em>' containment reference isn't clear,
260
   * there really should be more of a description here...
261
   * </p>
262
   * <!-- end-user-doc -->
263
   * @return the value of the '<em>Personnel</em>' containment reference.
264
   * @see #setPersonnel(PersonnelType)
265
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
266
   *        extendedMetaData="kind='element' name='personnel' namespace='##targetNamespace'"
267
   * @generated
268
   */
269
  PersonnelType getPersonnel();
270
271
  /**
272
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}' containment reference.
273
   * <!-- begin-user-doc -->
274
   * <!-- end-user-doc -->
275
   * @param value the new value of the '<em>Personnel</em>' containment reference.
276
   * @see #getPersonnel()
277
   * @generated
278
   */
279
  void setPersonnel(PersonnelType value);
280
281
  /**
282
   * Returns the value of the '<em><b>Url</b></em>' containment reference.
283
   * <!-- begin-user-doc -->
284
   * <p>
285
   * If the meaning of the '<em>Url</em>' containment reference isn't clear,
286
   * there really should be more of a description here...
287
   * </p>
288
   * <!-- end-user-doc -->
289
   * @return the value of the '<em>Url</em>' containment reference.
290
   * @see #setUrl(UrlType)
291
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
292
   *        extendedMetaData="kind='element' name='url' namespace='##targetNamespace'"
293
   * @generated
294
   */
295
  UrlType getUrl();
296
297
  /**
298
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}' containment reference.
299
   * <!-- begin-user-doc -->
300
   * <!-- end-user-doc -->
301
   * @param value the new value of the '<em>Url</em>' containment reference.
302
   * @see #getUrl()
303
   * @generated
304
   */
305
  void setUrl(UrlType value);
306
307
} // DocumentRoot
(-)src/org/eclipse/emf/test/models/personal/NameType.java (-90 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Name Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}</li>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}</li>
30
 * </ul>
31
 * </p>
32
 *
33
 * @model extendedMetaData="name='nameType' kind='elementOnly'"
34
 * @generated
35
 */
36
public interface NameType
37
{
38
  /**
39
   * Returns the value of the '<em><b>Family</b></em>' attribute.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Family</em>' attribute.
47
   * @see #setFamily(String)
48
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
49
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
50
   * @generated
51
   */
52
  String getFamily();
53
54
  /**
55
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}' attribute.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @param value the new value of the '<em>Family</em>' attribute.
59
   * @see #getFamily()
60
   * @generated
61
   */
62
  void setFamily(String value);
63
64
  /**
65
   * Returns the value of the '<em><b>Given</b></em>' attribute.
66
   * <!-- begin-user-doc -->
67
   * <p>
68
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
69
   * there really should be more of a description here...
70
   * </p>
71
   * <!-- end-user-doc -->
72
   * @return the value of the '<em>Given</em>' attribute.
73
   * @see #setGiven(String)
74
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
75
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
76
   * @generated
77
   */
78
  String getGiven();
79
80
  /**
81
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}' attribute.
82
   * <!-- begin-user-doc -->
83
   * <!-- end-user-doc -->
84
   * @param value the new value of the '<em>Given</em>' attribute.
85
   * @see #getGiven()
86
   * @generated
87
   */
88
  void setGiven(String value);
89
90
} // NameType
(-)src/org/eclipse/emf/test/models/personal/UrlType.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Url Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @model extendedMetaData="name='url_._type' kind='empty'"
33
 * @generated
34
 */
35
public interface UrlType
36
{
37
  /**
38
   * Returns the value of the '<em><b>Href</b></em>' attribute.
39
   * The default value is <code>"http://"</code>.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Href</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Href</em>' attribute.
47
   * @see #isSetHref()
48
   * @see #unsetHref()
49
   * @see #setHref(String)
50
   * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
51
   *        extendedMetaData="kind='attribute' name='href'"
52
   * @generated
53
   */
54
  String getHref();
55
56
  /**
57
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute.
58
   * <!-- begin-user-doc -->
59
   * <!-- end-user-doc -->
60
   * @param value the new value of the '<em>Href</em>' attribute.
61
   * @see #isSetHref()
62
   * @see #unsetHref()
63
   * @see #getHref()
64
   * @generated
65
   */
66
  void setHref(String value);
67
68
  /**
69
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute.
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @see #isSetHref()
73
   * @see #getHref()
74
   * @see #setHref(String)
75
   * @generated
76
   */
77
  void unsetHref();
78
79
  /**
80
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute is set.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @return whether the value of the '<em>Href</em>' attribute is set.
84
   * @see #unsetHref()
85
   * @see #getHref()
86
   * @see #setHref(String)
87
   * @generated
88
   */
89
  boolean isSetHref();
90
91
} // UrlType
(-)src/org/eclipse/emf/test/models/personal/PersonalFactory.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalFactory.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface PersonalFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  PersonalFactory INSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Document Root</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Document Root</em>'.
42
   * @generated
43
   */
44
  DocumentRoot createDocumentRoot();
45
46
  /**
47
   * Returns a new object of class '<em>Link Type</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Link Type</em>'.
51
   * @generated
52
   */
53
  LinkType createLinkType();
54
55
  /**
56
   * Returns a new object of class '<em>Name Type</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Name Type</em>'.
60
   * @generated
61
   */
62
  NameType createNameType();
63
64
  /**
65
   * Returns a new object of class '<em>Personnel Type</em>'.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @return a new object of class '<em>Personnel Type</em>'.
69
   * @generated
70
   */
71
  PersonnelType createPersonnelType();
72
73
  /**
74
   * Returns a new object of class '<em>Person Type</em>'.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @return a new object of class '<em>Person Type</em>'.
78
   * @generated
79
   */
80
  PersonType createPersonType();
81
82
  /**
83
   * Returns a new object of class '<em>Url Type</em>'.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @return a new object of class '<em>Url Type</em>'.
87
   * @generated
88
   */
89
  UrlType createUrlType();
90
91
} //PersonalFactory
(-)src/org/eclipse/emf/test/models/personal/PersonType.java (-239 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
import java.math.BigInteger;
20
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Person Type</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getEmail <em>Email</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getUrl <em>Url</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}</li>
38
 * </ul>
39
 * </p>
40
 *
41
 * @model extendedMetaData="name='personType' kind='elementOnly'"
42
 * @generated
43
 */
44
public interface PersonType
45
{
46
  /**
47
   * Returns the value of the '<em><b>Name</b></em>' containment reference.
48
   * <!-- begin-user-doc -->
49
   * <p>
50
   * If the meaning of the '<em>Name</em>' containment reference isn't clear,
51
   * there really should be more of a description here...
52
   * </p>
53
   * <!-- end-user-doc -->
54
   * @return the value of the '<em>Name</em>' containment reference.
55
   * @see #setName(NameType)
56
   * @model containment="true" required="true"
57
   *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
58
   * @generated
59
   */
60
  NameType getName();
61
62
  /**
63
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}' containment reference.
64
   * <!-- begin-user-doc -->
65
   * <!-- end-user-doc -->
66
   * @param value the new value of the '<em>Name</em>' containment reference.
67
   * @see #getName()
68
   * @generated
69
   */
70
  void setName(NameType value);
71
72
  /**
73
   * Returns the value of the '<em><b>Email</b></em>' attribute list.
74
   * The list contents are of type {@link java.lang.String}.
75
   * <!-- begin-user-doc -->
76
   * <p>
77
   * If the meaning of the '<em>Email</em>' attribute list isn't clear,
78
   * there really should be more of a description here...
79
   * </p>
80
   * <!-- end-user-doc -->
81
   * @return the value of the '<em>Email</em>' attribute list.
82
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
83
   *        extendedMetaData="kind='element' name='email' namespace='##targetNamespace'"
84
   * @generated
85
   */
86
  List<String> getEmail();
87
88
  /**
89
   * Returns the value of the '<em><b>Url</b></em>' containment reference list.
90
   * The list contents are of type {@link org.eclipse.emf.test.models.personal.UrlType}.
91
   * <!-- begin-user-doc -->
92
   * <p>
93
   * If the meaning of the '<em>Url</em>' containment reference list isn't clear,
94
   * there really should be more of a description here...
95
   * </p>
96
   * <!-- end-user-doc -->
97
   * @return the value of the '<em>Url</em>' containment reference list.
98
   * @model containment="true"
99
   *        extendedMetaData="kind='element' name='url' namespace='##targetNamespace'"
100
   * @generated
101
   */
102
  List<UrlType> getUrl();
103
104
  /**
105
   * Returns the value of the '<em><b>Link</b></em>' containment reference.
106
   * <!-- begin-user-doc -->
107
   * <p>
108
   * If the meaning of the '<em>Link</em>' containment reference isn't clear,
109
   * there really should be more of a description here...
110
   * </p>
111
   * <!-- end-user-doc -->
112
   * @return the value of the '<em>Link</em>' containment reference.
113
   * @see #setLink(LinkType)
114
   * @model containment="true"
115
   *        extendedMetaData="kind='element' name='link' namespace='##targetNamespace'"
116
   * @generated
117
   */
118
  LinkType getLink();
119
120
  /**
121
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}' containment reference.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @param value the new value of the '<em>Link</em>' containment reference.
125
   * @see #getLink()
126
   * @generated
127
   */
128
  void setLink(LinkType value);
129
130
  /**
131
   * Returns the value of the '<em><b>Contr</b></em>' attribute.
132
   * The default value is <code>"false"</code>.
133
   * The literals are from the enumeration {@link org.eclipse.emf.test.models.personal.ContrType}.
134
   * <!-- begin-user-doc -->
135
   * <p>
136
   * If the meaning of the '<em>Contr</em>' attribute isn't clear,
137
   * there really should be more of a description here...
138
   * </p>
139
   * <!-- end-user-doc -->
140
   * @return the value of the '<em>Contr</em>' attribute.
141
   * @see org.eclipse.emf.test.models.personal.ContrType
142
   * @see #isSetContr()
143
   * @see #unsetContr()
144
   * @see #setContr(ContrType)
145
   * @model default="false" unsettable="true"
146
   *        extendedMetaData="kind='attribute' name='contr'"
147
   * @generated
148
   */
149
  ContrType getContr();
150
151
  /**
152
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute.
153
   * <!-- begin-user-doc -->
154
   * <!-- end-user-doc -->
155
   * @param value the new value of the '<em>Contr</em>' attribute.
156
   * @see org.eclipse.emf.test.models.personal.ContrType
157
   * @see #isSetContr()
158
   * @see #unsetContr()
159
   * @see #getContr()
160
   * @generated
161
   */
162
  void setContr(ContrType value);
163
164
  /**
165
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute.
166
   * <!-- begin-user-doc -->
167
   * <!-- end-user-doc -->
168
   * @see #isSetContr()
169
   * @see #getContr()
170
   * @see #setContr(ContrType)
171
   * @generated
172
   */
173
  void unsetContr();
174
175
  /**
176
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute is set.
177
   * <!-- begin-user-doc -->
178
   * <!-- end-user-doc -->
179
   * @return whether the value of the '<em>Contr</em>' attribute is set.
180
   * @see #unsetContr()
181
   * @see #getContr()
182
   * @see #setContr(ContrType)
183
   * @generated
184
   */
185
  boolean isSetContr();
186
187
  /**
188
   * Returns the value of the '<em><b>Id</b></em>' attribute.
189
   * <!-- begin-user-doc -->
190
   * <p>
191
   * If the meaning of the '<em>Id</em>' attribute isn't clear,
192
   * there really should be more of a description here...
193
   * </p>
194
   * <!-- end-user-doc -->
195
   * @return the value of the '<em>Id</em>' attribute.
196
   * @see #setId(String)
197
   * @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true"
198
   *        extendedMetaData="kind='attribute' name='id'"
199
   * @generated
200
   */
201
  String getId();
202
203
  /**
204
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}' attribute.
205
   * <!-- begin-user-doc -->
206
   * <!-- end-user-doc -->
207
   * @param value the new value of the '<em>Id</em>' attribute.
208
   * @see #getId()
209
   * @generated
210
   */
211
  void setId(String value);
212
213
  /**
214
   * Returns the value of the '<em><b>Salary</b></em>' attribute.
215
   * <!-- begin-user-doc -->
216
   * <p>
217
   * If the meaning of the '<em>Salary</em>' attribute isn't clear,
218
   * there really should be more of a description here...
219
   * </p>
220
   * <!-- end-user-doc -->
221
   * @return the value of the '<em>Salary</em>' attribute.
222
   * @see #setSalary(BigInteger)
223
   * @model dataType="org.eclipse.emf.ecore.xml.type.Integer"
224
   *        extendedMetaData="kind='attribute' name='salary'"
225
   * @generated
226
   */
227
  BigInteger getSalary();
228
229
  /**
230
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}' attribute.
231
   * <!-- begin-user-doc -->
232
   * <!-- end-user-doc -->
233
   * @param value the new value of the '<em>Salary</em>' attribute.
234
   * @see #getSalary()
235
   * @generated
236
   */
237
  void setSalary(BigInteger value);
238
239
} // PersonType
(-)src/org/eclipse/emf/test/models/personal/LinkType.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LinkType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Link Type</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model extendedMetaData="name='linkType' kind='empty'"
35
 * @generated
36
 */
37
public interface LinkType
38
{
39
  /**
40
   * Returns the value of the '<em><b>Manager</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Manager</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Manager</em>' attribute.
48
   * @see #setManager(String)
49
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREF"
50
   *        extendedMetaData="kind='attribute' name='manager'"
51
   * @generated
52
   */
53
  String getManager();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Manager</em>' attribute.
60
   * @see #getManager()
61
   * @generated
62
   */
63
  void setManager(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Subordinates</b></em>' attribute.
67
   * <!-- begin-user-doc -->
68
   * <p>
69
   * If the meaning of the '<em>Subordinates</em>' attribute isn't clear,
70
   * there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * @return the value of the '<em>Subordinates</em>' attribute.
74
   * @see #setSubordinates(List)
75
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREFS" many="false"
76
   *        extendedMetaData="kind='attribute' name='subordinates'"
77
   * @generated
78
   */
79
  List<String> getSubordinates();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Subordinates</em>' attribute.
86
   * @see #getSubordinates()
87
   * @generated
88
   */
89
  void setSubordinates(List<String> value);
90
91
} // LinkType
(-)src/org/eclipse/emf/test/models/personal/impl/PersonnelTypeImpl.java (-188 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonnelTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.NotificationChain;
23
24
import org.eclipse.emf.common.util.EList;
25
26
import org.eclipse.emf.ecore.EClass;
27
import org.eclipse.emf.ecore.InternalEObject;
28
29
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
30
31
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
32
import org.eclipse.emf.ecore.util.InternalEList;
33
34
import org.eclipse.emf.test.models.personal.PersonType;
35
import org.eclipse.emf.test.models.personal.PersonnelType;
36
37
/**
38
 * <!-- begin-user-doc -->
39
 * An implementation of the model object '<em><b>Personnel Type</b></em>'.
40
 * <!-- end-user-doc -->
41
 * <p>
42
 * The following features are implemented:
43
 * <ul>
44
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl#getPerson <em>Person</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class PersonnelTypeImpl extends EDataObjectImpl implements PersonnelType
51
{
52
  /**
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  private static final long serialVersionUID = 1L;
58
59
  /**
60
   * The cached value of the '{@link #getPerson() <em>Person</em>}' containment reference list.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @see #getPerson()
64
   * @generated
65
   * @ordered
66
   */
67
  protected EList<PersonType> person;
68
69
  /**
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @generated
73
   */
74
  protected PersonnelTypeImpl()
75
  {
76
    super();
77
  }
78
79
  /**
80
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
82
   * @generated
83
   */
84
  @Override
85
  protected EClass eStaticClass()
86
  {
87
    return PersonalPackageImpl.Literals.PERSONNEL_TYPE;
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  public List<PersonType> getPerson()
96
  {
97
    if (person == null)
98
    {
99
      person = new EObjectContainmentEList<PersonType>(PersonType.class, this, PersonalPackageImpl.PERSONNEL_TYPE__PERSON);
100
    }
101
    return person;
102
  }
103
104
  /**
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @generated
108
   */
109
  @Override
110
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
111
  {
112
    switch (featureID)
113
    {
114
      case PersonalPackageImpl.PERSONNEL_TYPE__PERSON:
115
        return ((InternalEList<?>)getPerson()).basicRemove(otherEnd, msgs);
116
    }
117
    return super.eInverseRemove(otherEnd, featureID, msgs);
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public Object eGet(int featureID, boolean resolve, boolean coreType)
127
  {
128
    switch (featureID)
129
    {
130
      case PersonalPackageImpl.PERSONNEL_TYPE__PERSON:
131
        return getPerson();
132
    }
133
    return super.eGet(featureID, resolve, coreType);
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  @SuppressWarnings("unchecked")
142
  @Override
143
  public void eSet(int featureID, Object newValue)
144
  {
145
    switch (featureID)
146
    {
147
      case PersonalPackageImpl.PERSONNEL_TYPE__PERSON:
148
        getPerson().clear();
149
        getPerson().addAll((Collection<? extends PersonType>)newValue);
150
        return;
151
    }
152
    super.eSet(featureID, newValue);
153
  }
154
155
  /**
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   */
160
  @Override
161
  public void eUnset(int featureID)
162
  {
163
    switch (featureID)
164
    {
165
      case PersonalPackageImpl.PERSONNEL_TYPE__PERSON:
166
        getPerson().clear();
167
        return;
168
    }
169
    super.eUnset(featureID);
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  @Override
178
  public boolean eIsSet(int featureID)
179
  {
180
    switch (featureID)
181
    {
182
      case PersonalPackageImpl.PERSONNEL_TYPE__PERSON:
183
        return person != null && !person.isEmpty();
184
    }
185
    return super.eIsSet(featureID);
186
  }
187
188
} //PersonnelTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/DocumentRootImpl.java (-632 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EMap;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.EStructuralFeature;
29
import org.eclipse.emf.ecore.EcorePackage;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.sdo.util.BasicESequence;
37
import org.eclipse.emf.ecore.sdo.util.ESequence;
38
39
import org.eclipse.emf.ecore.util.BasicFeatureMap;
40
import org.eclipse.emf.ecore.util.EcoreEMap;
41
import org.eclipse.emf.ecore.util.FeatureMap;
42
import org.eclipse.emf.ecore.util.InternalEList;
43
44
import org.eclipse.emf.test.models.personal.DocumentRoot;
45
import org.eclipse.emf.test.models.personal.LinkType;
46
import org.eclipse.emf.test.models.personal.NameType;
47
import org.eclipse.emf.test.models.personal.PersonType;
48
import org.eclipse.emf.test.models.personal.PersonnelType;
49
import org.eclipse.emf.test.models.personal.UrlType;
50
51
/**
52
 * <!-- begin-user-doc -->
53
 * An implementation of the model object '<em><b>Document Root</b></em>'.
54
 * <!-- end-user-doc -->
55
 * <p>
56
 * The following features are implemented:
57
 * <ul>
58
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getEmail <em>Email</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getFamily <em>Family</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getGiven <em>Given</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getLink <em>Link</em>}</li>
65
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getName <em>Name</em>}</li>
66
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getPerson <em>Person</em>}</li>
67
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getPersonnel <em>Personnel</em>}</li>
68
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getUrl <em>Url</em>}</li>
69
 * </ul>
70
 * </p>
71
 *
72
 * @generated
73
 */
74
public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot
75
{
76
  /**
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
80
   */
81
  private static final long serialVersionUID = 1L;
82
83
  /**
84
   * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getMixed()
88
   * @generated
89
   * @ordered
90
   */
91
  protected ESequence mixed;
92
93
  /**
94
   * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #getXMLNSPrefixMap()
98
   * @generated
99
   * @ordered
100
   */
101
  protected EMap<String, String> xMLNSPrefixMap;
102
103
  /**
104
   * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #getXSISchemaLocation()
108
   * @generated
109
   * @ordered
110
   */
111
  protected EMap<String, String> xSISchemaLocation;
112
113
  /**
114
   * The default value of the '{@link #getEmail() <em>Email</em>}' attribute.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @see #getEmail()
118
   * @generated
119
   * @ordered
120
   */
121
  protected static final String EMAIL_EDEFAULT = null;
122
123
  /**
124
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
125
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
127
   * @see #getFamily()
128
   * @generated
129
   * @ordered
130
   */
131
  protected static final String FAMILY_EDEFAULT = null;
132
133
  /**
134
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
135
   * <!-- begin-user-doc -->
136
   * <!-- end-user-doc -->
137
   * @see #getGiven()
138
   * @generated
139
   * @ordered
140
   */
141
  protected static final String GIVEN_EDEFAULT = null;
142
143
  /**
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @generated
147
   */
148
  protected DocumentRootImpl()
149
  {
150
    super();
151
  }
152
153
  /**
154
   * <!-- begin-user-doc -->
155
   * <!-- end-user-doc -->
156
   * @generated
157
   */
158
  @Override
159
  protected EClass eStaticClass()
160
  {
161
    return PersonalPackageImpl.Literals.DOCUMENT_ROOT;
162
  }
163
164
  /**
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @generated
168
   */
169
  public Sequence getMixed()
170
  {
171
    if (mixed == null)
172
    {
173
      mixed = new BasicESequence(new BasicFeatureMap(this, PersonalPackageImpl.DOCUMENT_ROOT__MIXED));
174
    }
175
    return mixed;
176
  }
177
178
  /**
179
   * <!-- begin-user-doc -->
180
   * <!-- end-user-doc -->
181
   * @generated
182
   */
183
  public Map<String, String> getXMLNSPrefixMap()
184
  {
185
    if (xMLNSPrefixMap == null)
186
    {
187
      xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
188
    }
189
    return xMLNSPrefixMap.map();
190
  }
191
192
  /**
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @generated
196
   */
197
  public Map<String, String> getXSISchemaLocation()
198
  {
199
    if (xSISchemaLocation == null)
200
    {
201
      xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
202
    }
203
    return xSISchemaLocation.map();
204
  }
205
206
  /**
207
   * <!-- begin-user-doc -->
208
   * <!-- end-user-doc -->
209
   * @generated
210
   */
211
  public String getEmail()
212
  {
213
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, true);
214
  }
215
216
  /**
217
   * <!-- begin-user-doc -->
218
   * <!-- end-user-doc -->
219
   * @generated
220
   */
221
  public void setEmail(String newEmail)
222
  {
223
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, newEmail);
224
  }
225
226
  /**
227
   * <!-- begin-user-doc -->
228
   * <!-- end-user-doc -->
229
   * @generated
230
   */
231
  public String getFamily()
232
  {
233
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, true);
234
  }
235
236
  /**
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   */
241
  public void setFamily(String newFamily)
242
  {
243
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, newFamily);
244
  }
245
246
  /**
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @generated
250
   */
251
  public String getGiven()
252
  {
253
    return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, true);
254
  }
255
256
  /**
257
   * <!-- begin-user-doc -->
258
   * <!-- end-user-doc -->
259
   * @generated
260
   */
261
  public void setGiven(String newGiven)
262
  {
263
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, newGiven);
264
  }
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public LinkType getLink()
272
  {
273
    return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, true);
274
  }
275
276
  /**
277
   * <!-- begin-user-doc -->
278
   * <!-- end-user-doc -->
279
   * @generated
280
   */
281
  public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs)
282
  {
283
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink, msgs);
284
  }
285
286
  /**
287
   * <!-- begin-user-doc -->
288
   * <!-- end-user-doc -->
289
   * @generated
290
   */
291
  public void setLink(LinkType newLink)
292
  {
293
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink);
294
  }
295
296
  /**
297
   * <!-- begin-user-doc -->
298
   * <!-- end-user-doc -->
299
   * @generated
300
   */
301
  public NameType getName()
302
  {
303
    return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, true);
304
  }
305
306
  /**
307
   * <!-- begin-user-doc -->
308
   * <!-- end-user-doc -->
309
   * @generated
310
   */
311
  public NotificationChain basicSetName(NameType newName, NotificationChain msgs)
312
  {
313
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName, msgs);
314
  }
315
316
  /**
317
   * <!-- begin-user-doc -->
318
   * <!-- end-user-doc -->
319
   * @generated
320
   */
321
  public void setName(NameType newName)
322
  {
323
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName);
324
  }
325
326
  /**
327
   * <!-- begin-user-doc -->
328
   * <!-- end-user-doc -->
329
   * @generated
330
   */
331
  public PersonType getPerson()
332
  {
333
    return (PersonType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, true);
334
  }
335
336
  /**
337
   * <!-- begin-user-doc -->
338
   * <!-- end-user-doc -->
339
   * @generated
340
   */
341
  public NotificationChain basicSetPerson(PersonType newPerson, NotificationChain msgs)
342
  {
343
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson, msgs);
344
  }
345
346
  /**
347
   * <!-- begin-user-doc -->
348
   * <!-- end-user-doc -->
349
   * @generated
350
   */
351
  public void setPerson(PersonType newPerson)
352
  {
353
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson);
354
  }
355
356
  /**
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   */
361
  public PersonnelType getPersonnel()
362
  {
363
    return (PersonnelType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, true);
364
  }
365
366
  /**
367
   * <!-- begin-user-doc -->
368
   * <!-- end-user-doc -->
369
   * @generated
370
   */
371
  public NotificationChain basicSetPersonnel(PersonnelType newPersonnel, NotificationChain msgs)
372
  {
373
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel, msgs);
374
  }
375
376
  /**
377
   * <!-- begin-user-doc -->
378
   * <!-- end-user-doc -->
379
   * @generated
380
   */
381
  public void setPersonnel(PersonnelType newPersonnel)
382
  {
383
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel);
384
  }
385
386
  /**
387
   * <!-- begin-user-doc -->
388
   * <!-- end-user-doc -->
389
   * @generated
390
   */
391
  public UrlType getUrl()
392
  {
393
    return (UrlType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, true);
394
  }
395
396
  /**
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @generated
400
   */
401
  public NotificationChain basicSetUrl(UrlType newUrl, NotificationChain msgs)
402
  {
403
    return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl, msgs);
404
  }
405
406
  /**
407
   * <!-- begin-user-doc -->
408
   * <!-- end-user-doc -->
409
   * @generated
410
   */
411
  public void setUrl(UrlType newUrl)
412
  {
413
    ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl);
414
  }
415
416
  /**
417
   * <!-- begin-user-doc -->
418
   * <!-- end-user-doc -->
419
   * @generated
420
   */
421
  @Override
422
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
423
  {
424
    switch (featureID)
425
    {
426
      case PersonalPackageImpl.DOCUMENT_ROOT__MIXED:
427
        return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs);
428
      case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
429
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs);
430
      case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
431
        return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs);
432
      case PersonalPackageImpl.DOCUMENT_ROOT__LINK:
433
        return basicSetLink(null, msgs);
434
      case PersonalPackageImpl.DOCUMENT_ROOT__NAME:
435
        return basicSetName(null, msgs);
436
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSON:
437
        return basicSetPerson(null, msgs);
438
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL:
439
        return basicSetPersonnel(null, msgs);
440
      case PersonalPackageImpl.DOCUMENT_ROOT__URL:
441
        return basicSetUrl(null, msgs);
442
    }
443
    return super.eInverseRemove(otherEnd, featureID, msgs);
444
  }
445
446
  /**
447
   * <!-- begin-user-doc -->
448
   * <!-- end-user-doc -->
449
   * @generated
450
   */
451
  @Override
452
  public Object eGet(int featureID, boolean resolve, boolean coreType)
453
  {
454
    switch (featureID)
455
    {
456
      case PersonalPackageImpl.DOCUMENT_ROOT__MIXED:
457
        if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap();
458
        return getMixed();
459
      case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
460
        if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap();
461
        else return getXMLNSPrefixMap();
462
      case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
463
        if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap();
464
        else return getXSISchemaLocation();
465
      case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL:
466
        return getEmail();
467
      case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY:
468
        return getFamily();
469
      case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN:
470
        return getGiven();
471
      case PersonalPackageImpl.DOCUMENT_ROOT__LINK:
472
        return getLink();
473
      case PersonalPackageImpl.DOCUMENT_ROOT__NAME:
474
        return getName();
475
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSON:
476
        return getPerson();
477
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL:
478
        return getPersonnel();
479
      case PersonalPackageImpl.DOCUMENT_ROOT__URL:
480
        return getUrl();
481
    }
482
    return super.eGet(featureID, resolve, coreType);
483
  }
484
485
  /**
486
   * <!-- begin-user-doc -->
487
   * <!-- end-user-doc -->
488
   * @generated
489
   */
490
  @Override
491
  public void eSet(int featureID, Object newValue)
492
  {
493
    switch (featureID)
494
    {
495
      case PersonalPackageImpl.DOCUMENT_ROOT__MIXED:
496
        ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue);
497
        return;
498
      case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
499
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue);
500
        return;
501
      case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
502
        ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue);
503
        return;
504
      case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL:
505
        setEmail((String)newValue);
506
        return;
507
      case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY:
508
        setFamily((String)newValue);
509
        return;
510
      case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN:
511
        setGiven((String)newValue);
512
        return;
513
      case PersonalPackageImpl.DOCUMENT_ROOT__LINK:
514
        setLink((LinkType)newValue);
515
        return;
516
      case PersonalPackageImpl.DOCUMENT_ROOT__NAME:
517
        setName((NameType)newValue);
518
        return;
519
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSON:
520
        setPerson((PersonType)newValue);
521
        return;
522
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL:
523
        setPersonnel((PersonnelType)newValue);
524
        return;
525
      case PersonalPackageImpl.DOCUMENT_ROOT__URL:
526
        setUrl((UrlType)newValue);
527
        return;
528
    }
529
    super.eSet(featureID, newValue);
530
  }
531
532
  /**
533
   * <!-- begin-user-doc -->
534
   * <!-- end-user-doc -->
535
   * @generated
536
   */
537
  @Override
538
  public void eUnset(int featureID)
539
  {
540
    switch (featureID)
541
    {
542
      case PersonalPackageImpl.DOCUMENT_ROOT__MIXED:
543
        ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear();
544
        return;
545
      case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
546
        getXMLNSPrefixMap().clear();
547
        return;
548
      case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
549
        getXSISchemaLocation().clear();
550
        return;
551
      case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL:
552
        setEmail(EMAIL_EDEFAULT);
553
        return;
554
      case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY:
555
        setFamily(FAMILY_EDEFAULT);
556
        return;
557
      case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN:
558
        setGiven(GIVEN_EDEFAULT);
559
        return;
560
      case PersonalPackageImpl.DOCUMENT_ROOT__LINK:
561
        setLink((LinkType)null);
562
        return;
563
      case PersonalPackageImpl.DOCUMENT_ROOT__NAME:
564
        setName((NameType)null);
565
        return;
566
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSON:
567
        setPerson((PersonType)null);
568
        return;
569
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL:
570
        setPersonnel((PersonnelType)null);
571
        return;
572
      case PersonalPackageImpl.DOCUMENT_ROOT__URL:
573
        setUrl((UrlType)null);
574
        return;
575
    }
576
    super.eUnset(featureID);
577
  }
578
579
  /**
580
   * <!-- begin-user-doc -->
581
   * <!-- end-user-doc -->
582
   * @generated
583
   */
584
  @Override
585
  public boolean eIsSet(int featureID)
586
  {
587
    switch (featureID)
588
    {
589
      case PersonalPackageImpl.DOCUMENT_ROOT__MIXED:
590
        return mixed != null && !mixed.featureMap().isEmpty();
591
      case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
592
        return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
593
      case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
594
        return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
595
      case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL:
596
        return EMAIL_EDEFAULT == null ? getEmail() != null : !EMAIL_EDEFAULT.equals(getEmail());
597
      case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY:
598
        return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily());
599
      case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN:
600
        return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven());
601
      case PersonalPackageImpl.DOCUMENT_ROOT__LINK:
602
        return getLink() != null;
603
      case PersonalPackageImpl.DOCUMENT_ROOT__NAME:
604
        return getName() != null;
605
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSON:
606
        return getPerson() != null;
607
      case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL:
608
        return getPersonnel() != null;
609
      case PersonalPackageImpl.DOCUMENT_ROOT__URL:
610
        return getUrl() != null;
611
    }
612
    return super.eIsSet(featureID);
613
  }
614
615
  /**
616
   * <!-- begin-user-doc -->
617
   * <!-- end-user-doc -->
618
   * @generated
619
   */
620
  @Override
621
  public String toString()
622
  {
623
    if (eIsProxy()) return super.toString();
624
625
    StringBuffer result = new StringBuffer(super.toString());
626
    result.append(" (mixed: ");
627
    result.append(mixed);
628
    result.append(')');
629
    return result.toString();
630
  }
631
632
} //DocumentRootImpl
(-)src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java (-254 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameTypeImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.NameType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Name Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getFamily <em>Family</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getGiven <em>Given</em>}</li>
38
 * </ul>
39
 * </p>
40
 *
41
 * @generated
42
 */
43
public class NameTypeImpl extends EDataObjectImpl implements NameType
44
{
45
  /**
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @generated
49
   */
50
  private static final long serialVersionUID = 1L;
51
52
  /**
53
   * The default value of the '{@link #getFamily() <em>Family</em>}' attribute.
54
   * <!-- begin-user-doc -->
55
   * <!-- end-user-doc -->
56
   * @see #getFamily()
57
   * @generated
58
   * @ordered
59
   */
60
  protected static final String FAMILY_EDEFAULT = null;
61
62
  /**
63
   * The cached value of the '{@link #getFamily() <em>Family</em>}' attribute.
64
   * <!-- begin-user-doc -->
65
   * <!-- end-user-doc -->
66
   * @see #getFamily()
67
   * @generated
68
   * @ordered
69
   */
70
  protected String family = FAMILY_EDEFAULT;
71
72
  /**
73
   * The default value of the '{@link #getGiven() <em>Given</em>}' attribute.
74
   * <!-- begin-user-doc -->
75
   * <!-- end-user-doc -->
76
   * @see #getGiven()
77
   * @generated
78
   * @ordered
79
   */
80
  protected static final String GIVEN_EDEFAULT = null;
81
82
  /**
83
   * The cached value of the '{@link #getGiven() <em>Given</em>}' attribute.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @see #getGiven()
87
   * @generated
88
   * @ordered
89
   */
90
  protected String given = GIVEN_EDEFAULT;
91
92
  /**
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @generated
96
   */
97
  protected NameTypeImpl()
98
  {
99
    super();
100
  }
101
102
  /**
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @generated
106
   */
107
  @Override
108
  protected EClass eStaticClass()
109
  {
110
    return PersonalPackageImpl.Literals.NAME_TYPE;
111
  }
112
113
  /**
114
   * <!-- begin-user-doc -->
115
   * <!-- end-user-doc -->
116
   * @generated
117
   */
118
  public String getFamily()
119
  {
120
    return family;
121
  }
122
123
  /**
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @generated
127
   */
128
  public void setFamily(String newFamily)
129
  {
130
    String oldFamily = family;
131
    family = newFamily;
132
    if (eNotificationRequired())
133
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__FAMILY, oldFamily, family));
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  public String getGiven()
142
  {
143
    return given;
144
  }
145
146
  /**
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   */
151
  public void setGiven(String newGiven)
152
  {
153
    String oldGiven = given;
154
    given = newGiven;
155
    if (eNotificationRequired())
156
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__GIVEN, oldGiven, given));
157
  }
158
159
  /**
160
   * <!-- begin-user-doc -->
161
   * <!-- end-user-doc -->
162
   * @generated
163
   */
164
  @Override
165
  public Object eGet(int featureID, boolean resolve, boolean coreType)
166
  {
167
    switch (featureID)
168
    {
169
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
170
        return getFamily();
171
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
172
        return getGiven();
173
    }
174
    return super.eGet(featureID, resolve, coreType);
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  @Override
183
  public void eSet(int featureID, Object newValue)
184
  {
185
    switch (featureID)
186
    {
187
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
188
        setFamily((String)newValue);
189
        return;
190
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
191
        setGiven((String)newValue);
192
        return;
193
    }
194
    super.eSet(featureID, newValue);
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @generated
201
   */
202
  @Override
203
  public void eUnset(int featureID)
204
  {
205
    switch (featureID)
206
    {
207
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
208
        setFamily(FAMILY_EDEFAULT);
209
        return;
210
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
211
        setGiven(GIVEN_EDEFAULT);
212
        return;
213
    }
214
    super.eUnset(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public boolean eIsSet(int featureID)
224
  {
225
    switch (featureID)
226
    {
227
      case PersonalPackageImpl.NAME_TYPE__FAMILY:
228
        return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT.equals(family);
229
      case PersonalPackageImpl.NAME_TYPE__GIVEN:
230
        return GIVEN_EDEFAULT == null ? given != null : !GIVEN_EDEFAULT.equals(given);
231
    }
232
    return super.eIsSet(featureID);
233
  }
234
235
  /**
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @generated
239
   */
240
  @Override
241
  public String toString()
242
  {
243
    if (eIsProxy()) return super.toString();
244
245
    StringBuffer result = new StringBuffer(super.toString());
246
    result.append(" (family: ");
247
    result.append(family);
248
    result.append(", given: ");
249
    result.append(given);
250
    result.append(')');
251
    return result.toString();
252
  }
253
254
} //NameTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java (-1741 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalPackageImpl.java,v 1.4 2007/06/15 21:22:18 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EDataType;
22
import org.eclipse.emf.ecore.EEnum;
23
import org.eclipse.emf.ecore.EFactory;
24
import org.eclipse.emf.ecore.EPackage;
25
import org.eclipse.emf.ecore.EReference;
26
27
import org.eclipse.emf.ecore.impl.EPackageImpl;
28
29
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
30
31
import org.eclipse.emf.test.models.personal.ContrType;
32
import org.eclipse.emf.test.models.personal.DocumentRoot;
33
import org.eclipse.emf.test.models.personal.LinkType;
34
import org.eclipse.emf.test.models.personal.NameType;
35
import org.eclipse.emf.test.models.personal.PersonType;
36
import org.eclipse.emf.test.models.personal.PersonalFactory;
37
import org.eclipse.emf.test.models.personal.PersonnelType;
38
import org.eclipse.emf.test.models.personal.UrlType;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * The <b>Package</b> for the model.
43
 * It contains accessors for the meta objects to represent
44
 * <ul>
45
 *   <li>each class,</li>
46
 *   <li>each feature of each class,</li>
47
 *   <li>each enum,</li>
48
 *   <li>and each data type</li>
49
 * </ul>
50
 * <!-- end-user-doc -->
51
 * @see org.eclipse.emf.test.models.personal.PersonalFactory
52
 * @model kind="package"
53
 * @generated
54
 */
55
public class PersonalPackageImpl extends EPackageImpl
56
{
57
  /**
58
   * The package name.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNAME = "personal";
64
65
  /**
66
   * The package namespace URI.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personal";
72
73
  /**
74
   * The package namespace name.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final String eNS_PREFIX = "personal";
80
81
  /**
82
   * The singleton instance of the package.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  public static final PersonalPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl.init();
88
89
  /**
90
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl
94
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot()
95
   * @generated
96
   */
97
  public static final int DOCUMENT_ROOT = 0;
98
99
  /**
100
   * The feature id for the '<em><b>Mixed</b></em>' attribute list.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @generated
104
   * @ordered
105
   */
106
  public static final int DOCUMENT_ROOT__MIXED = 0;
107
108
  /**
109
   * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
110
   * <!-- begin-user-doc -->
111
   * <!-- end-user-doc -->
112
   * @generated
113
   * @ordered
114
   */
115
  public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
116
117
  /**
118
   * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
119
   * <!-- begin-user-doc -->
120
   * <!-- end-user-doc -->
121
   * @generated
122
   * @ordered
123
   */
124
  public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
125
126
  /**
127
   * The feature id for the '<em><b>Email</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   * @ordered
132
   */
133
  public static final int DOCUMENT_ROOT__EMAIL = 3;
134
135
  /**
136
   * The feature id for the '<em><b>Family</b></em>' attribute.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   * @ordered
141
   */
142
  public static final int DOCUMENT_ROOT__FAMILY = 4;
143
144
  /**
145
   * The feature id for the '<em><b>Given</b></em>' attribute.
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @generated
149
   * @ordered
150
   */
151
  public static final int DOCUMENT_ROOT__GIVEN = 5;
152
153
  /**
154
   * The feature id for the '<em><b>Link</b></em>' containment reference.
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   * @ordered
159
   */
160
  public static final int DOCUMENT_ROOT__LINK = 6;
161
162
  /**
163
   * The feature id for the '<em><b>Name</b></em>' containment reference.
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   * @ordered
168
   */
169
  public static final int DOCUMENT_ROOT__NAME = 7;
170
171
  /**
172
   * The feature id for the '<em><b>Person</b></em>' containment reference.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   * @ordered
177
   */
178
  public static final int DOCUMENT_ROOT__PERSON = 8;
179
180
  /**
181
   * The feature id for the '<em><b>Personnel</b></em>' containment reference.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   * @ordered
186
   */
187
  public static final int DOCUMENT_ROOT__PERSONNEL = 9;
188
189
  /**
190
   * The feature id for the '<em><b>Url</b></em>' containment reference.
191
   * <!-- begin-user-doc -->
192
   * <!-- end-user-doc -->
193
   * @generated
194
   * @ordered
195
   */
196
  public static final int DOCUMENT_ROOT__URL = 10;
197
198
  /**
199
   * The number of structural features of the '<em>Document Root</em>' class.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @generated
203
   * @ordered
204
   */
205
  public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11;
206
207
  /**
208
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class.
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl
212
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType()
213
   * @generated
214
   */
215
  public static final int LINK_TYPE = 1;
216
217
  /**
218
   * The feature id for the '<em><b>Manager</b></em>' attribute.
219
   * <!-- begin-user-doc -->
220
   * <!-- end-user-doc -->
221
   * @generated
222
   * @ordered
223
   */
224
  public static final int LINK_TYPE__MANAGER = 0;
225
226
  /**
227
   * The feature id for the '<em><b>Subordinates</b></em>' attribute.
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   * @ordered
232
   */
233
  public static final int LINK_TYPE__SUBORDINATES = 1;
234
235
  /**
236
   * The number of structural features of the '<em>Link Type</em>' class.
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @generated
240
   * @ordered
241
   */
242
  public static final int LINK_TYPE_FEATURE_COUNT = 2;
243
244
  /**
245
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class.
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl
249
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType()
250
   * @generated
251
   */
252
  public static final int NAME_TYPE = 2;
253
254
  /**
255
   * The feature id for the '<em><b>Family</b></em>' attribute.
256
   * <!-- begin-user-doc -->
257
   * <!-- end-user-doc -->
258
   * @generated
259
   * @ordered
260
   */
261
  public static final int NAME_TYPE__FAMILY = 0;
262
263
  /**
264
   * The feature id for the '<em><b>Given</b></em>' attribute.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @generated
268
   * @ordered
269
   */
270
  public static final int NAME_TYPE__GIVEN = 1;
271
272
  /**
273
   * The number of structural features of the '<em>Name Type</em>' class.
274
   * <!-- begin-user-doc -->
275
   * <!-- end-user-doc -->
276
   * @generated
277
   * @ordered
278
   */
279
  public static final int NAME_TYPE_FEATURE_COUNT = 2;
280
281
  /**
282
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
283
   * <!-- begin-user-doc -->
284
   * <!-- end-user-doc -->
285
   * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl
286
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType()
287
   * @generated
288
   */
289
  public static final int PERSONNEL_TYPE = 3;
290
291
  /**
292
   * The feature id for the '<em><b>Person</b></em>' containment reference list.
293
   * <!-- begin-user-doc -->
294
   * <!-- end-user-doc -->
295
   * @generated
296
   * @ordered
297
   */
298
  public static final int PERSONNEL_TYPE__PERSON = 0;
299
300
  /**
301
   * The number of structural features of the '<em>Personnel Type</em>' class.
302
   * <!-- begin-user-doc -->
303
   * <!-- end-user-doc -->
304
   * @generated
305
   * @ordered
306
   */
307
  public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1;
308
309
  /**
310
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class.
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl
314
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType()
315
   * @generated
316
   */
317
  public static final int PERSON_TYPE = 4;
318
319
  /**
320
   * The feature id for the '<em><b>Name</b></em>' containment reference.
321
   * <!-- begin-user-doc -->
322
   * <!-- end-user-doc -->
323
   * @generated
324
   * @ordered
325
   */
326
  public static final int PERSON_TYPE__NAME = 0;
327
328
  /**
329
   * The feature id for the '<em><b>Email</b></em>' attribute list.
330
   * <!-- begin-user-doc -->
331
   * <!-- end-user-doc -->
332
   * @generated
333
   * @ordered
334
   */
335
  public static final int PERSON_TYPE__EMAIL = 1;
336
337
  /**
338
   * The feature id for the '<em><b>Url</b></em>' containment reference list.
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   * @ordered
343
   */
344
  public static final int PERSON_TYPE__URL = 2;
345
346
  /**
347
   * The feature id for the '<em><b>Link</b></em>' containment reference.
348
   * <!-- begin-user-doc -->
349
   * <!-- end-user-doc -->
350
   * @generated
351
   * @ordered
352
   */
353
  public static final int PERSON_TYPE__LINK = 3;
354
355
  /**
356
   * The feature id for the '<em><b>Contr</b></em>' attribute.
357
   * <!-- begin-user-doc -->
358
   * <!-- end-user-doc -->
359
   * @generated
360
   * @ordered
361
   */
362
  public static final int PERSON_TYPE__CONTR = 4;
363
364
  /**
365
   * The feature id for the '<em><b>Id</b></em>' attribute.
366
   * <!-- begin-user-doc -->
367
   * <!-- end-user-doc -->
368
   * @generated
369
   * @ordered
370
   */
371
  public static final int PERSON_TYPE__ID = 5;
372
373
  /**
374
   * The feature id for the '<em><b>Salary</b></em>' attribute.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @generated
378
   * @ordered
379
   */
380
  public static final int PERSON_TYPE__SALARY = 6;
381
382
  /**
383
   * The number of structural features of the '<em>Person Type</em>' class.
384
   * <!-- begin-user-doc -->
385
   * <!-- end-user-doc -->
386
   * @generated
387
   * @ordered
388
   */
389
  public static final int PERSON_TYPE_FEATURE_COUNT = 7;
390
391
  /**
392
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class.
393
   * <!-- begin-user-doc -->
394
   * <!-- end-user-doc -->
395
   * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl
396
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType()
397
   * @generated
398
   */
399
  public static final int URL_TYPE = 5;
400
401
  /**
402
   * The feature id for the '<em><b>Href</b></em>' attribute.
403
   * <!-- begin-user-doc -->
404
   * <!-- end-user-doc -->
405
   * @generated
406
   * @ordered
407
   */
408
  public static final int URL_TYPE__HREF = 0;
409
410
  /**
411
   * The number of structural features of the '<em>Url Type</em>' class.
412
   * <!-- begin-user-doc -->
413
   * <!-- end-user-doc -->
414
   * @generated
415
   * @ordered
416
   */
417
  public static final int URL_TYPE_FEATURE_COUNT = 1;
418
419
  /**
420
   * The meta object id for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum.
421
   * <!-- begin-user-doc -->
422
   * <!-- end-user-doc -->
423
   * @see org.eclipse.emf.test.models.personal.ContrType
424
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType()
425
   * @generated
426
   */
427
  public static final int CONTR_TYPE = 6;
428
429
  /**
430
   * The meta object id for the '<em>Contr Type Object</em>' data type.
431
   * <!-- begin-user-doc -->
432
   * <!-- end-user-doc -->
433
   * @see org.eclipse.emf.test.models.personal.ContrType
434
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject()
435
   * @generated
436
   */
437
  public static final int CONTR_TYPE_OBJECT = 7;
438
439
  /**
440
   * <!-- begin-user-doc -->
441
   * <!-- end-user-doc -->
442
   * @generated
443
   */
444
  private EClass documentRootEClass = null;
445
446
  /**
447
   * <!-- begin-user-doc -->
448
   * <!-- end-user-doc -->
449
   * @generated
450
   */
451
  private EClass linkTypeEClass = null;
452
453
  /**
454
   * <!-- begin-user-doc -->
455
   * <!-- end-user-doc -->
456
   * @generated
457
   */
458
  private EClass nameTypeEClass = null;
459
460
  /**
461
   * <!-- begin-user-doc -->
462
   * <!-- end-user-doc -->
463
   * @generated
464
   */
465
  private EClass personnelTypeEClass = null;
466
467
  /**
468
   * <!-- begin-user-doc -->
469
   * <!-- end-user-doc -->
470
   * @generated
471
   */
472
  private EClass personTypeEClass = null;
473
474
  /**
475
   * <!-- begin-user-doc -->
476
   * <!-- end-user-doc -->
477
   * @generated
478
   */
479
  private EClass urlTypeEClass = null;
480
481
  /**
482
   * <!-- begin-user-doc -->
483
   * <!-- end-user-doc -->
484
   * @generated
485
   */
486
  private EEnum contrTypeEEnum = null;
487
488
  /**
489
   * <!-- begin-user-doc -->
490
   * <!-- end-user-doc -->
491
   * @generated
492
   */
493
  private EDataType contrTypeObjectEDataType = null;
494
495
  /**
496
   * Creates an instance of the model <b>Package</b>, registered with
497
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
498
   * package URI value.
499
   * <p>Note: the correct way to create the package is via the static
500
   * factory method {@link #init init()}, which also performs
501
   * initialization of the package, or returns the registered package,
502
   * if one already exists.
503
   * <!-- begin-user-doc -->
504
   * <!-- end-user-doc -->
505
   * @see org.eclipse.emf.ecore.EPackage.Registry
506
   * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#eNS_URI
507
   * @see #init()
508
   * @generated
509
   */
510
  private PersonalPackageImpl()
511
  {
512
    super(eNS_URI, ((EFactory)PersonalFactory.INSTANCE));
513
  }
514
515
  /**
516
   * <!-- begin-user-doc -->
517
   * <!-- end-user-doc -->
518
   * @generated
519
   */
520
  private static boolean isInited = false;
521
522
  /**
523
   * Creates, registers, and initializes the <b>Package</b> for this
524
   * model, and for any others upon which it depends.  Simple
525
   * dependencies are satisfied by calling this method on all
526
   * dependent packages before doing anything else.  This method drives
527
   * initialization for interdependent packages directly, in parallel
528
   * with this package, itself.
529
   * <p>Of this package and its interdependencies, all packages which
530
   * have not yet been registered by their URI values are first created
531
   * and registered.  The packages are then initialized in two steps:
532
   * meta-model objects for all of the packages are created before any
533
   * are initialized, since one package's meta-model objects may refer to
534
   * those of another.
535
   * <p>Invocation of this method will not affect any packages that have
536
   * already been initialized.
537
   * <!-- begin-user-doc -->
538
   * <!-- end-user-doc -->
539
   * @see #eNS_URI
540
   * @see #createPackageContents()
541
   * @see #initializePackageContents()
542
   * @generated
543
   */
544
  public static PersonalPackageImpl init()
545
  {
546
    if (isInited) return (PersonalPackageImpl)EPackage.Registry.INSTANCE.getEPackage(PersonalPackageImpl.eNS_URI);
547
548
    // Obtain or create and register package
549
    PersonalPackageImpl thePersonalPackageImpl = (PersonalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PersonalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PersonalPackageImpl());
550
551
    isInited = true;
552
553
    // Initialize simple dependencies
554
    XMLTypePackage.eINSTANCE.eClass();
555
556
    // Create package meta-data objects
557
    thePersonalPackageImpl.createPackageContents();
558
559
    // Initialize created meta-data
560
    thePersonalPackageImpl.initializePackageContents();
561
562
    // Mark meta-data to indicate it can't be changed
563
    thePersonalPackageImpl.freeze();
564
565
    return thePersonalPackageImpl;
566
  }
567
568
569
  /**
570
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.DocumentRoot <em>Document Root</em>}'.
571
   * <!-- begin-user-doc -->
572
   * <!-- end-user-doc -->
573
   * @return the meta object for class '<em>Document Root</em>'.
574
   * @see org.eclipse.emf.test.models.personal.DocumentRoot
575
   * @generated
576
   */
577
  public EClass getDocumentRoot()
578
  {
579
    return documentRootEClass;
580
  }
581
582
  /**
583
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getMixed <em>Mixed</em>}'.
584
   * <!-- begin-user-doc -->
585
   * <!-- end-user-doc -->
586
   * @return the meta object for the attribute list '<em>Mixed</em>'.
587
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getMixed()
588
   * @see #getDocumentRoot()
589
   * @generated
590
   */
591
  public EAttribute getDocumentRoot_Mixed()
592
  {
593
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
594
  }
595
596
  /**
597
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
598
   * <!-- begin-user-doc -->
599
   * <!-- end-user-doc -->
600
   * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
601
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap()
602
   * @see #getDocumentRoot()
603
   * @generated
604
   */
605
  public EReference getDocumentRoot_XMLNSPrefixMap()
606
  {
607
    return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
608
  }
609
610
  /**
611
   * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
612
   * <!-- begin-user-doc -->
613
   * <!-- end-user-doc -->
614
   * @return the meta object for the map '<em>XSI Schema Location</em>'.
615
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation()
616
   * @see #getDocumentRoot()
617
   * @generated
618
   */
619
  public EReference getDocumentRoot_XSISchemaLocation()
620
  {
621
    return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
622
  }
623
624
  /**
625
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}'.
626
   * <!-- begin-user-doc -->
627
   * <!-- end-user-doc -->
628
   * @return the meta object for the attribute '<em>Email</em>'.
629
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getEmail()
630
   * @see #getDocumentRoot()
631
   * @generated
632
   */
633
  public EAttribute getDocumentRoot_Email()
634
  {
635
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3);
636
  }
637
638
  /**
639
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}'.
640
   * <!-- begin-user-doc -->
641
   * <!-- end-user-doc -->
642
   * @return the meta object for the attribute '<em>Family</em>'.
643
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getFamily()
644
   * @see #getDocumentRoot()
645
   * @generated
646
   */
647
  public EAttribute getDocumentRoot_Family()
648
  {
649
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4);
650
  }
651
652
  /**
653
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}'.
654
   * <!-- begin-user-doc -->
655
   * <!-- end-user-doc -->
656
   * @return the meta object for the attribute '<em>Given</em>'.
657
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getGiven()
658
   * @see #getDocumentRoot()
659
   * @generated
660
   */
661
  public EAttribute getDocumentRoot_Given()
662
  {
663
    return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5);
664
  }
665
666
  /**
667
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}'.
668
   * <!-- begin-user-doc -->
669
   * <!-- end-user-doc -->
670
   * @return the meta object for the containment reference '<em>Link</em>'.
671
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getLink()
672
   * @see #getDocumentRoot()
673
   * @generated
674
   */
675
  public EReference getDocumentRoot_Link()
676
  {
677
    return (EReference)documentRootEClass.getEStructuralFeatures().get(6);
678
  }
679
680
  /**
681
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}'.
682
   * <!-- begin-user-doc -->
683
   * <!-- end-user-doc -->
684
   * @return the meta object for the containment reference '<em>Name</em>'.
685
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getName()
686
   * @see #getDocumentRoot()
687
   * @generated
688
   */
689
  public EReference getDocumentRoot_Name()
690
  {
691
    return (EReference)documentRootEClass.getEStructuralFeatures().get(7);
692
  }
693
694
  /**
695
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}'.
696
   * <!-- begin-user-doc -->
697
   * <!-- end-user-doc -->
698
   * @return the meta object for the containment reference '<em>Person</em>'.
699
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPerson()
700
   * @see #getDocumentRoot()
701
   * @generated
702
   */
703
  public EReference getDocumentRoot_Person()
704
  {
705
    return (EReference)documentRootEClass.getEStructuralFeatures().get(8);
706
  }
707
708
  /**
709
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}'.
710
   * <!-- begin-user-doc -->
711
   * <!-- end-user-doc -->
712
   * @return the meta object for the containment reference '<em>Personnel</em>'.
713
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel()
714
   * @see #getDocumentRoot()
715
   * @generated
716
   */
717
  public EReference getDocumentRoot_Personnel()
718
  {
719
    return (EReference)documentRootEClass.getEStructuralFeatures().get(9);
720
  }
721
722
  /**
723
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}'.
724
   * <!-- begin-user-doc -->
725
   * <!-- end-user-doc -->
726
   * @return the meta object for the containment reference '<em>Url</em>'.
727
   * @see org.eclipse.emf.test.models.personal.DocumentRoot#getUrl()
728
   * @see #getDocumentRoot()
729
   * @generated
730
   */
731
  public EReference getDocumentRoot_Url()
732
  {
733
    return (EReference)documentRootEClass.getEStructuralFeatures().get(10);
734
  }
735
736
  /**
737
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.LinkType <em>Link Type</em>}'.
738
   * <!-- begin-user-doc -->
739
   * <!-- end-user-doc -->
740
   * @return the meta object for class '<em>Link Type</em>'.
741
   * @see org.eclipse.emf.test.models.personal.LinkType
742
   * @generated
743
   */
744
  public EClass getLinkType()
745
  {
746
    return linkTypeEClass;
747
  }
748
749
  /**
750
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}'.
751
   * <!-- begin-user-doc -->
752
   * <!-- end-user-doc -->
753
   * @return the meta object for the attribute '<em>Manager</em>'.
754
   * @see org.eclipse.emf.test.models.personal.LinkType#getManager()
755
   * @see #getLinkType()
756
   * @generated
757
   */
758
  public EAttribute getLinkType_Manager()
759
  {
760
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0);
761
  }
762
763
  /**
764
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}'.
765
   * <!-- begin-user-doc -->
766
   * <!-- end-user-doc -->
767
   * @return the meta object for the attribute '<em>Subordinates</em>'.
768
   * @see org.eclipse.emf.test.models.personal.LinkType#getSubordinates()
769
   * @see #getLinkType()
770
   * @generated
771
   */
772
  public EAttribute getLinkType_Subordinates()
773
  {
774
    return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1);
775
  }
776
777
  /**
778
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.NameType <em>Name Type</em>}'.
779
   * <!-- begin-user-doc -->
780
   * <!-- end-user-doc -->
781
   * @return the meta object for class '<em>Name Type</em>'.
782
   * @see org.eclipse.emf.test.models.personal.NameType
783
   * @generated
784
   */
785
  public EClass getNameType()
786
  {
787
    return nameTypeEClass;
788
  }
789
790
  /**
791
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}'.
792
   * <!-- begin-user-doc -->
793
   * <!-- end-user-doc -->
794
   * @return the meta object for the attribute '<em>Family</em>'.
795
   * @see org.eclipse.emf.test.models.personal.NameType#getFamily()
796
   * @see #getNameType()
797
   * @generated
798
   */
799
  public EAttribute getNameType_Family()
800
  {
801
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0);
802
  }
803
804
  /**
805
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}'.
806
   * <!-- begin-user-doc -->
807
   * <!-- end-user-doc -->
808
   * @return the meta object for the attribute '<em>Given</em>'.
809
   * @see org.eclipse.emf.test.models.personal.NameType#getGiven()
810
   * @see #getNameType()
811
   * @generated
812
   */
813
  public EAttribute getNameType_Given()
814
  {
815
    return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1);
816
  }
817
818
  /**
819
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonnelType <em>Personnel Type</em>}'.
820
   * <!-- begin-user-doc -->
821
   * <!-- end-user-doc -->
822
   * @return the meta object for class '<em>Personnel Type</em>'.
823
   * @see org.eclipse.emf.test.models.personal.PersonnelType
824
   * @generated
825
   */
826
  public EClass getPersonnelType()
827
  {
828
    return personnelTypeEClass;
829
  }
830
831
  /**
832
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonnelType#getPerson <em>Person</em>}'.
833
   * <!-- begin-user-doc -->
834
   * <!-- end-user-doc -->
835
   * @return the meta object for the containment reference list '<em>Person</em>'.
836
   * @see org.eclipse.emf.test.models.personal.PersonnelType#getPerson()
837
   * @see #getPersonnelType()
838
   * @generated
839
   */
840
  public EReference getPersonnelType_Person()
841
  {
842
    return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0);
843
  }
844
845
  /**
846
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonType <em>Person Type</em>}'.
847
   * <!-- begin-user-doc -->
848
   * <!-- end-user-doc -->
849
   * @return the meta object for class '<em>Person Type</em>'.
850
   * @see org.eclipse.emf.test.models.personal.PersonType
851
   * @generated
852
   */
853
  public EClass getPersonType()
854
  {
855
    return personTypeEClass;
856
  }
857
858
  /**
859
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}'.
860
   * <!-- begin-user-doc -->
861
   * <!-- end-user-doc -->
862
   * @return the meta object for the containment reference '<em>Name</em>'.
863
   * @see org.eclipse.emf.test.models.personal.PersonType#getName()
864
   * @see #getPersonType()
865
   * @generated
866
   */
867
  public EReference getPersonType_Name()
868
  {
869
    return (EReference)personTypeEClass.getEStructuralFeatures().get(0);
870
  }
871
872
  /**
873
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.PersonType#getEmail <em>Email</em>}'.
874
   * <!-- begin-user-doc -->
875
   * <!-- end-user-doc -->
876
   * @return the meta object for the attribute list '<em>Email</em>'.
877
   * @see org.eclipse.emf.test.models.personal.PersonType#getEmail()
878
   * @see #getPersonType()
879
   * @generated
880
   */
881
  public EAttribute getPersonType_Email()
882
  {
883
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(1);
884
  }
885
886
  /**
887
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonType#getUrl <em>Url</em>}'.
888
   * <!-- begin-user-doc -->
889
   * <!-- end-user-doc -->
890
   * @return the meta object for the containment reference list '<em>Url</em>'.
891
   * @see org.eclipse.emf.test.models.personal.PersonType#getUrl()
892
   * @see #getPersonType()
893
   * @generated
894
   */
895
  public EReference getPersonType_Url()
896
  {
897
    return (EReference)personTypeEClass.getEStructuralFeatures().get(2);
898
  }
899
900
  /**
901
   * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}'.
902
   * <!-- begin-user-doc -->
903
   * <!-- end-user-doc -->
904
   * @return the meta object for the containment reference '<em>Link</em>'.
905
   * @see org.eclipse.emf.test.models.personal.PersonType#getLink()
906
   * @see #getPersonType()
907
   * @generated
908
   */
909
  public EReference getPersonType_Link()
910
  {
911
    return (EReference)personTypeEClass.getEStructuralFeatures().get(3);
912
  }
913
914
  /**
915
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}'.
916
   * <!-- begin-user-doc -->
917
   * <!-- end-user-doc -->
918
   * @return the meta object for the attribute '<em>Contr</em>'.
919
   * @see org.eclipse.emf.test.models.personal.PersonType#getContr()
920
   * @see #getPersonType()
921
   * @generated
922
   */
923
  public EAttribute getPersonType_Contr()
924
  {
925
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(4);
926
  }
927
928
  /**
929
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}'.
930
   * <!-- begin-user-doc -->
931
   * <!-- end-user-doc -->
932
   * @return the meta object for the attribute '<em>Id</em>'.
933
   * @see org.eclipse.emf.test.models.personal.PersonType#getId()
934
   * @see #getPersonType()
935
   * @generated
936
   */
937
  public EAttribute getPersonType_Id()
938
  {
939
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5);
940
  }
941
942
  /**
943
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}'.
944
   * <!-- begin-user-doc -->
945
   * <!-- end-user-doc -->
946
   * @return the meta object for the attribute '<em>Salary</em>'.
947
   * @see org.eclipse.emf.test.models.personal.PersonType#getSalary()
948
   * @see #getPersonType()
949
   * @generated
950
   */
951
  public EAttribute getPersonType_Salary()
952
  {
953
    return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6);
954
  }
955
956
  /**
957
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.UrlType <em>Url Type</em>}'.
958
   * <!-- begin-user-doc -->
959
   * <!-- end-user-doc -->
960
   * @return the meta object for class '<em>Url Type</em>'.
961
   * @see org.eclipse.emf.test.models.personal.UrlType
962
   * @generated
963
   */
964
  public EClass getUrlType()
965
  {
966
    return urlTypeEClass;
967
  }
968
969
  /**
970
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}'.
971
   * <!-- begin-user-doc -->
972
   * <!-- end-user-doc -->
973
   * @return the meta object for the attribute '<em>Href</em>'.
974
   * @see org.eclipse.emf.test.models.personal.UrlType#getHref()
975
   * @see #getUrlType()
976
   * @generated
977
   */
978
  public EAttribute getUrlType_Href()
979
  {
980
    return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0);
981
  }
982
983
  /**
984
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}'.
985
   * <!-- begin-user-doc -->
986
   * <!-- end-user-doc -->
987
   * @return the meta object for enum '<em>Contr Type</em>'.
988
   * @see org.eclipse.emf.test.models.personal.ContrType
989
   * @generated
990
   */
991
  public EEnum getContrType()
992
  {
993
    return contrTypeEEnum;
994
  }
995
996
  /**
997
   * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type Object</em>}'.
998
   * <!-- begin-user-doc -->
999
   * <!-- end-user-doc -->
1000
   * @return the meta object for data type '<em>Contr Type Object</em>'.
1001
   * @see org.eclipse.emf.test.models.personal.ContrType
1002
   * @model instanceClass="org.eclipse.emf.test.models.personal.ContrType"
1003
   *        extendedMetaData="name='contr_._type:Object' baseType='contr_._type'"
1004
   * @generated
1005
   */
1006
  public EDataType getContrTypeObject()
1007
  {
1008
    return contrTypeObjectEDataType;
1009
  }
1010
1011
  /**
1012
   * Returns the factory that creates the instances of the model.
1013
   * <!-- begin-user-doc -->
1014
   * <!-- end-user-doc -->
1015
   * @return the factory that creates the instances of the model.
1016
   * @generated
1017
   */
1018
  public PersonalFactory getPersonalFactory()
1019
  {
1020
    return (PersonalFactory)getEFactoryInstance();
1021
  }
1022
1023
  /**
1024
   * <!-- begin-user-doc -->
1025
   * <!-- end-user-doc -->
1026
   * @generated
1027
   */
1028
  private boolean isCreated = false;
1029
1030
  /**
1031
   * Creates the meta-model objects for the package.  This method is
1032
   * guarded to have no affect on any invocation but its first.
1033
   * <!-- begin-user-doc -->
1034
   * <!-- end-user-doc -->
1035
   * @generated
1036
   */
1037
  public void createPackageContents()
1038
  {
1039
    if (isCreated) return;
1040
    isCreated = true;
1041
1042
    // Create classes and their features
1043
    documentRootEClass = createEClass(DOCUMENT_ROOT);
1044
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
1045
    createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
1046
    createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
1047
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL);
1048
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY);
1049
    createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN);
1050
    createEReference(documentRootEClass, DOCUMENT_ROOT__LINK);
1051
    createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
1052
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON);
1053
    createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL);
1054
    createEReference(documentRootEClass, DOCUMENT_ROOT__URL);
1055
1056
    linkTypeEClass = createEClass(LINK_TYPE);
1057
    createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER);
1058
    createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES);
1059
1060
    nameTypeEClass = createEClass(NAME_TYPE);
1061
    createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY);
1062
    createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN);
1063
1064
    personnelTypeEClass = createEClass(PERSONNEL_TYPE);
1065
    createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON);
1066
1067
    personTypeEClass = createEClass(PERSON_TYPE);
1068
    createEReference(personTypeEClass, PERSON_TYPE__NAME);
1069
    createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL);
1070
    createEReference(personTypeEClass, PERSON_TYPE__URL);
1071
    createEReference(personTypeEClass, PERSON_TYPE__LINK);
1072
    createEAttribute(personTypeEClass, PERSON_TYPE__CONTR);
1073
    createEAttribute(personTypeEClass, PERSON_TYPE__ID);
1074
    createEAttribute(personTypeEClass, PERSON_TYPE__SALARY);
1075
1076
    urlTypeEClass = createEClass(URL_TYPE);
1077
    createEAttribute(urlTypeEClass, URL_TYPE__HREF);
1078
1079
    // Create enums
1080
    contrTypeEEnum = createEEnum(CONTR_TYPE);
1081
1082
    // Create data types
1083
    contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT);
1084
  }
1085
1086
  /**
1087
   * <!-- begin-user-doc -->
1088
   * <!-- end-user-doc -->
1089
   * @generated
1090
   */
1091
  private boolean isInitialized = false;
1092
1093
  /**
1094
   * Complete the initialization of the package and its meta-model.  This
1095
   * method is guarded to have no affect on any invocation but its first.
1096
   * <!-- begin-user-doc -->
1097
   * <!-- end-user-doc -->
1098
   * @generated
1099
   */
1100
  public void initializePackageContents()
1101
  {
1102
    if (isInitialized) return;
1103
    isInitialized = true;
1104
1105
    // Initialize package
1106
    setName(eNAME);
1107
    setNsPrefix(eNS_PREFIX);
1108
    setNsURI(eNS_URI);
1109
1110
    // Obtain other dependent packages
1111
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1112
1113
    // Create type parameters
1114
1115
    // Set bounds for type parameters
1116
1117
    // Add supertypes to classes
1118
1119
    // Initialize classes and features; add operations and parameters
1120
    initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1121
    initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1122
    initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1123
    initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1124
    initEAttribute(getDocumentRoot_Email(), theXMLTypePackage.getString(), "email", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1125
    initEAttribute(getDocumentRoot_Family(), theXMLTypePackage.getString(), "family", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1126
    initEAttribute(getDocumentRoot_Given(), theXMLTypePackage.getString(), "given", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1127
    initEReference(getDocumentRoot_Link(), this.getLinkType(), null, "link", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1128
    initEReference(getDocumentRoot_Name(), this.getNameType(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1129
    initEReference(getDocumentRoot_Person(), this.getPersonType(), null, "person", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1130
    initEReference(getDocumentRoot_Personnel(), this.getPersonnelType(), null, "personnel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1131
    initEReference(getDocumentRoot_Url(), this.getUrlType(), null, "url", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
1132
1133
    initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1134
    initEAttribute(getLinkType_Manager(), theXMLTypePackage.getIDREF(), "manager", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1135
    initEAttribute(getLinkType_Subordinates(), theXMLTypePackage.getIDREFS(), "subordinates", null, 0, 1, LinkType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1136
1137
    initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1138
    initEAttribute(getNameType_Family(), theXMLTypePackage.getString(), "family", null, 1, 1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1139
    initEAttribute(getNameType_Given(), theXMLTypePackage.getString(), "given", null, 1, 1, NameType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1140
1141
    initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1142
    initEReference(getPersonnelType_Person(), this.getPersonType(), null, "person", null, 1, -1, PersonnelType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1143
1144
    initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1145
    initEReference(getPersonType_Name(), this.getNameType(), null, "name", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1146
    initEAttribute(getPersonType_Email(), theXMLTypePackage.getString(), "email", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1147
    initEReference(getPersonType_Url(), this.getUrlType(), null, "url", null, 0, -1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1148
    initEReference(getPersonType_Link(), this.getLinkType(), null, "link", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1149
    initEAttribute(getPersonType_Contr(), this.getContrType(), "contr", "false", 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1150
    initEAttribute(getPersonType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1151
    initEAttribute(getPersonType_Salary(), theXMLTypePackage.getInteger(), "salary", null, 0, 1, PersonType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1152
1153
    initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1154
    initEAttribute(getUrlType_Href(), theXMLTypePackage.getString(), "href", "http://", 0, 1, UrlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1155
1156
    // Initialize enums and add enum literals
1157
    initEEnum(contrTypeEEnum, ContrType.class, "ContrType");
1158
    addEEnumLiteral(contrTypeEEnum, ContrType.TRUE);
1159
    addEEnumLiteral(contrTypeEEnum, ContrType.FALSE);
1160
1161
    // Initialize data types
1162
    initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
1163
1164
    // Create resource
1165
    createResource(eNS_URI);
1166
1167
    // Create annotations
1168
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1169
    createExtendedMetaDataAnnotations();
1170
  }
1171
1172
  /**
1173
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1174
   * <!-- begin-user-doc -->
1175
   * <!-- end-user-doc -->
1176
   * @generated
1177
   */
1178
  protected void createExtendedMetaDataAnnotations()
1179
  {
1180
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
1181
    addAnnotation
1182
      (contrTypeEEnum, 
1183
       source, 
1184
       new String[] 
1185
       {
1186
       "name", "contr_._type"
1187
       });		
1188
    addAnnotation
1189
      (contrTypeObjectEDataType, 
1190
       source, 
1191
       new String[] 
1192
       {
1193
       "name", "contr_._type:Object",
1194
       "baseType", "contr_._type"
1195
       });		
1196
    addAnnotation
1197
      (documentRootEClass, 
1198
       source, 
1199
       new String[] 
1200
       {
1201
       "name", "",
1202
       "kind", "mixed"
1203
       });		
1204
    addAnnotation
1205
      (getDocumentRoot_Mixed(), 
1206
       source, 
1207
       new String[] 
1208
       {
1209
       "kind", "elementWildcard",
1210
       "name", ":mixed"
1211
       });		
1212
    addAnnotation
1213
      (getDocumentRoot_XMLNSPrefixMap(), 
1214
       source, 
1215
       new String[] 
1216
       {
1217
       "kind", "attribute",
1218
       "name", "xmlns:prefix"
1219
       });		
1220
    addAnnotation
1221
      (getDocumentRoot_XSISchemaLocation(), 
1222
       source, 
1223
       new String[] 
1224
       {
1225
       "kind", "attribute",
1226
       "name", "xsi:schemaLocation"
1227
       });		
1228
    addAnnotation
1229
      (getDocumentRoot_Email(), 
1230
       source, 
1231
       new String[] 
1232
       {
1233
       "kind", "element",
1234
       "name", "email",
1235
       "namespace", "##targetNamespace"
1236
       });		
1237
    addAnnotation
1238
      (getDocumentRoot_Family(), 
1239
       source, 
1240
       new String[] 
1241
       {
1242
       "kind", "element",
1243
       "name", "family",
1244
       "namespace", "##targetNamespace"
1245
       });		
1246
    addAnnotation
1247
      (getDocumentRoot_Given(), 
1248
       source, 
1249
       new String[] 
1250
       {
1251
       "kind", "element",
1252
       "name", "given",
1253
       "namespace", "##targetNamespace"
1254
       });		
1255
    addAnnotation
1256
      (getDocumentRoot_Link(), 
1257
       source, 
1258
       new String[] 
1259
       {
1260
       "kind", "element",
1261
       "name", "link",
1262
       "namespace", "##targetNamespace"
1263
       });		
1264
    addAnnotation
1265
      (getDocumentRoot_Name(), 
1266
       source, 
1267
       new String[] 
1268
       {
1269
       "kind", "element",
1270
       "name", "name",
1271
       "namespace", "##targetNamespace"
1272
       });		
1273
    addAnnotation
1274
      (getDocumentRoot_Person(), 
1275
       source, 
1276
       new String[] 
1277
       {
1278
       "kind", "element",
1279
       "name", "person",
1280
       "namespace", "##targetNamespace"
1281
       });		
1282
    addAnnotation
1283
      (getDocumentRoot_Personnel(), 
1284
       source, 
1285
       new String[] 
1286
       {
1287
       "kind", "element",
1288
       "name", "personnel",
1289
       "namespace", "##targetNamespace"
1290
       });		
1291
    addAnnotation
1292
      (getDocumentRoot_Url(), 
1293
       source, 
1294
       new String[] 
1295
       {
1296
       "kind", "element",
1297
       "name", "url",
1298
       "namespace", "##targetNamespace"
1299
       });		
1300
    addAnnotation
1301
      (linkTypeEClass, 
1302
       source, 
1303
       new String[] 
1304
       {
1305
       "name", "linkType",
1306
       "kind", "empty"
1307
       });		
1308
    addAnnotation
1309
      (getLinkType_Manager(), 
1310
       source, 
1311
       new String[] 
1312
       {
1313
       "kind", "attribute",
1314
       "name", "manager"
1315
       });		
1316
    addAnnotation
1317
      (getLinkType_Subordinates(), 
1318
       source, 
1319
       new String[] 
1320
       {
1321
       "kind", "attribute",
1322
       "name", "subordinates"
1323
       });		
1324
    addAnnotation
1325
      (nameTypeEClass, 
1326
       source, 
1327
       new String[] 
1328
       {
1329
       "name", "nameType",
1330
       "kind", "elementOnly"
1331
       });		
1332
    addAnnotation
1333
      (getNameType_Family(), 
1334
       source, 
1335
       new String[] 
1336
       {
1337
       "kind", "element",
1338
       "name", "family",
1339
       "namespace", "##targetNamespace"
1340
       });		
1341
    addAnnotation
1342
      (getNameType_Given(), 
1343
       source, 
1344
       new String[] 
1345
       {
1346
       "kind", "element",
1347
       "name", "given",
1348
       "namespace", "##targetNamespace"
1349
       });		
1350
    addAnnotation
1351
      (personnelTypeEClass, 
1352
       source, 
1353
       new String[] 
1354
       {
1355
       "name", "personnel_._type",
1356
       "kind", "elementOnly"
1357
       });		
1358
    addAnnotation
1359
      (getPersonnelType_Person(), 
1360
       source, 
1361
       new String[] 
1362
       {
1363
       "kind", "element",
1364
       "name", "person",
1365
       "namespace", "##targetNamespace"
1366
       });		
1367
    addAnnotation
1368
      (personTypeEClass, 
1369
       source, 
1370
       new String[] 
1371
       {
1372
       "name", "personType",
1373
       "kind", "elementOnly"
1374
       });		
1375
    addAnnotation
1376
      (getPersonType_Name(), 
1377
       source, 
1378
       new String[] 
1379
       {
1380
       "kind", "element",
1381
       "name", "name",
1382
       "namespace", "##targetNamespace"
1383
       });		
1384
    addAnnotation
1385
      (getPersonType_Email(), 
1386
       source, 
1387
       new String[] 
1388
       {
1389
       "kind", "element",
1390
       "name", "email",
1391
       "namespace", "##targetNamespace"
1392
       });		
1393
    addAnnotation
1394
      (getPersonType_Url(), 
1395
       source, 
1396
       new String[] 
1397
       {
1398
       "kind", "element",
1399
       "name", "url",
1400
       "namespace", "##targetNamespace"
1401
       });		
1402
    addAnnotation
1403
      (getPersonType_Link(), 
1404
       source, 
1405
       new String[] 
1406
       {
1407
       "kind", "element",
1408
       "name", "link",
1409
       "namespace", "##targetNamespace"
1410
       });		
1411
    addAnnotation
1412
      (getPersonType_Contr(), 
1413
       source, 
1414
       new String[] 
1415
       {
1416
       "kind", "attribute",
1417
       "name", "contr"
1418
       });		
1419
    addAnnotation
1420
      (getPersonType_Id(), 
1421
       source, 
1422
       new String[] 
1423
       {
1424
       "kind", "attribute",
1425
       "name", "id"
1426
       });		
1427
    addAnnotation
1428
      (getPersonType_Salary(), 
1429
       source, 
1430
       new String[] 
1431
       {
1432
       "kind", "attribute",
1433
       "name", "salary"
1434
       });		
1435
    addAnnotation
1436
      (urlTypeEClass, 
1437
       source, 
1438
       new String[] 
1439
       {
1440
       "name", "url_._type",
1441
       "kind", "empty"
1442
       });		
1443
    addAnnotation
1444
      (getUrlType_Href(), 
1445
       source, 
1446
       new String[] 
1447
       {
1448
       "kind", "attribute",
1449
       "name", "href"
1450
       });
1451
  }
1452
1453
  /**
1454
   * <!-- begin-user-doc -->
1455
   * Defines literals for the meta objects that represent
1456
   * <ul>
1457
   *   <li>each class,</li>
1458
   *   <li>each feature of each class,</li>
1459
   *   <li>each enum,</li>
1460
   *   <li>and each data type</li>
1461
   * </ul>
1462
   * <!-- end-user-doc -->
1463
   * @generated
1464
   */
1465
  public interface Literals
1466
  {
1467
    /**
1468
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class.
1469
     * <!-- begin-user-doc -->
1470
     * <!-- end-user-doc -->
1471
     * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl
1472
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot()
1473
     * @generated
1474
     */
1475
    public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
1476
1477
    /**
1478
     * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature.
1479
     * <!-- begin-user-doc -->
1480
     * <!-- end-user-doc -->
1481
     * @generated
1482
     */
1483
    public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
1484
1485
    /**
1486
     * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature.
1487
     * <!-- begin-user-doc -->
1488
     * <!-- end-user-doc -->
1489
     * @generated
1490
     */
1491
    public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
1492
1493
    /**
1494
     * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature.
1495
     * <!-- begin-user-doc -->
1496
     * <!-- end-user-doc -->
1497
     * @generated
1498
     */
1499
    public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation();
1500
1501
    /**
1502
     * The meta object literal for the '<em><b>Email</b></em>' attribute feature.
1503
     * <!-- begin-user-doc -->
1504
     * <!-- end-user-doc -->
1505
     * @generated
1506
     */
1507
    public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email();
1508
1509
    /**
1510
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1511
     * <!-- begin-user-doc -->
1512
     * <!-- end-user-doc -->
1513
     * @generated
1514
     */
1515
    public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family();
1516
1517
    /**
1518
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1519
     * <!-- begin-user-doc -->
1520
     * <!-- end-user-doc -->
1521
     * @generated
1522
     */
1523
    public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given();
1524
1525
    /**
1526
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1527
     * <!-- begin-user-doc -->
1528
     * <!-- end-user-doc -->
1529
     * @generated
1530
     */
1531
    public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link();
1532
1533
    /**
1534
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1535
     * <!-- begin-user-doc -->
1536
     * <!-- end-user-doc -->
1537
     * @generated
1538
     */
1539
    public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name();
1540
1541
    /**
1542
     * The meta object literal for the '<em><b>Person</b></em>' containment reference feature.
1543
     * <!-- begin-user-doc -->
1544
     * <!-- end-user-doc -->
1545
     * @generated
1546
     */
1547
    public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person();
1548
1549
    /**
1550
     * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature.
1551
     * <!-- begin-user-doc -->
1552
     * <!-- end-user-doc -->
1553
     * @generated
1554
     */
1555
    public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel();
1556
1557
    /**
1558
     * The meta object literal for the '<em><b>Url</b></em>' containment reference feature.
1559
     * <!-- begin-user-doc -->
1560
     * <!-- end-user-doc -->
1561
     * @generated
1562
     */
1563
    public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url();
1564
1565
    /**
1566
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class.
1567
     * <!-- begin-user-doc -->
1568
     * <!-- end-user-doc -->
1569
     * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl
1570
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType()
1571
     * @generated
1572
     */
1573
    public static final EClass LINK_TYPE = eINSTANCE.getLinkType();
1574
1575
    /**
1576
     * The meta object literal for the '<em><b>Manager</b></em>' attribute feature.
1577
     * <!-- begin-user-doc -->
1578
     * <!-- end-user-doc -->
1579
     * @generated
1580
     */
1581
    public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager();
1582
1583
    /**
1584
     * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature.
1585
     * <!-- begin-user-doc -->
1586
     * <!-- end-user-doc -->
1587
     * @generated
1588
     */
1589
    public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates();
1590
1591
    /**
1592
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class.
1593
     * <!-- begin-user-doc -->
1594
     * <!-- end-user-doc -->
1595
     * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl
1596
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType()
1597
     * @generated
1598
     */
1599
    public static final EClass NAME_TYPE = eINSTANCE.getNameType();
1600
1601
    /**
1602
     * The meta object literal for the '<em><b>Family</b></em>' attribute feature.
1603
     * <!-- begin-user-doc -->
1604
     * <!-- end-user-doc -->
1605
     * @generated
1606
     */
1607
    public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family();
1608
1609
    /**
1610
     * The meta object literal for the '<em><b>Given</b></em>' attribute feature.
1611
     * <!-- begin-user-doc -->
1612
     * <!-- end-user-doc -->
1613
     * @generated
1614
     */
1615
    public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given();
1616
1617
    /**
1618
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class.
1619
     * <!-- begin-user-doc -->
1620
     * <!-- end-user-doc -->
1621
     * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl
1622
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType()
1623
     * @generated
1624
     */
1625
    public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType();
1626
1627
    /**
1628
     * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature.
1629
     * <!-- begin-user-doc -->
1630
     * <!-- end-user-doc -->
1631
     * @generated
1632
     */
1633
    public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person();
1634
1635
    /**
1636
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class.
1637
     * <!-- begin-user-doc -->
1638
     * <!-- end-user-doc -->
1639
     * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl
1640
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType()
1641
     * @generated
1642
     */
1643
    public static final EClass PERSON_TYPE = eINSTANCE.getPersonType();
1644
1645
    /**
1646
     * The meta object literal for the '<em><b>Name</b></em>' containment reference feature.
1647
     * <!-- begin-user-doc -->
1648
     * <!-- end-user-doc -->
1649
     * @generated
1650
     */
1651
    public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name();
1652
1653
    /**
1654
     * The meta object literal for the '<em><b>Email</b></em>' attribute list feature.
1655
     * <!-- begin-user-doc -->
1656
     * <!-- end-user-doc -->
1657
     * @generated
1658
     */
1659
    public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email();
1660
1661
    /**
1662
     * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature.
1663
     * <!-- begin-user-doc -->
1664
     * <!-- end-user-doc -->
1665
     * @generated
1666
     */
1667
    public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url();
1668
1669
    /**
1670
     * The meta object literal for the '<em><b>Link</b></em>' containment reference feature.
1671
     * <!-- begin-user-doc -->
1672
     * <!-- end-user-doc -->
1673
     * @generated
1674
     */
1675
    public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link();
1676
1677
    /**
1678
     * The meta object literal for the '<em><b>Contr</b></em>' attribute feature.
1679
     * <!-- begin-user-doc -->
1680
     * <!-- end-user-doc -->
1681
     * @generated
1682
     */
1683
    public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr();
1684
1685
    /**
1686
     * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
1687
     * <!-- begin-user-doc -->
1688
     * <!-- end-user-doc -->
1689
     * @generated
1690
     */
1691
    public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id();
1692
1693
    /**
1694
     * The meta object literal for the '<em><b>Salary</b></em>' attribute feature.
1695
     * <!-- begin-user-doc -->
1696
     * <!-- end-user-doc -->
1697
     * @generated
1698
     */
1699
    public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary();
1700
1701
    /**
1702
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class.
1703
     * <!-- begin-user-doc -->
1704
     * <!-- end-user-doc -->
1705
     * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl
1706
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType()
1707
     * @generated
1708
     */
1709
    public static final EClass URL_TYPE = eINSTANCE.getUrlType();
1710
1711
    /**
1712
     * The meta object literal for the '<em><b>Href</b></em>' attribute feature.
1713
     * <!-- begin-user-doc -->
1714
     * <!-- end-user-doc -->
1715
     * @generated
1716
     */
1717
    public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href();
1718
1719
    /**
1720
     * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum.
1721
     * <!-- begin-user-doc -->
1722
     * <!-- end-user-doc -->
1723
     * @see org.eclipse.emf.test.models.personal.ContrType
1724
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType()
1725
     * @generated
1726
     */
1727
    public static final EEnum CONTR_TYPE = eINSTANCE.getContrType();
1728
1729
    /**
1730
     * The meta object literal for the '<em>Contr Type Object</em>' data type.
1731
     * <!-- begin-user-doc -->
1732
     * <!-- end-user-doc -->
1733
     * @see org.eclipse.emf.test.models.personal.ContrType
1734
     * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject()
1735
     * @generated
1736
     */
1737
    public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject();
1738
1739
  }
1740
1741
} //PersonalPackageImpl
(-)src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java (-234 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
21
import org.eclipse.emf.ecore.EClass;
22
23
import org.eclipse.emf.ecore.impl.ENotificationImpl;
24
25
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
26
27
import org.eclipse.emf.test.models.personal.UrlType;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Url Type</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl#getHref <em>Href</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class UrlTypeImpl extends EDataObjectImpl implements UrlType
43
{
44
  /**
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  private static final long serialVersionUID = 1L;
50
51
  /**
52
   * The default value of the '{@link #getHref() <em>Href</em>}' attribute.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @see #getHref()
56
   * @generated
57
   * @ordered
58
   */
59
  protected static final String HREF_EDEFAULT = "http://";
60
61
  /**
62
   * The cached value of the '{@link #getHref() <em>Href</em>}' attribute.
63
   * <!-- begin-user-doc -->
64
   * <!-- end-user-doc -->
65
   * @see #getHref()
66
   * @generated
67
   * @ordered
68
   */
69
  protected String href = HREF_EDEFAULT;
70
71
  /**
72
   * This is true if the Href attribute has been set.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   * @ordered
77
   */
78
  protected boolean hrefESet;
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  protected UrlTypeImpl()
86
  {
87
    super();
88
  }
89
90
  /**
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  @Override
96
  protected EClass eStaticClass()
97
  {
98
    return PersonalPackageImpl.Literals.URL_TYPE;
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  public String getHref()
107
  {
108
    return href;
109
  }
110
111
  /**
112
   * <!-- begin-user-doc -->
113
   * <!-- end-user-doc -->
114
   * @generated
115
   */
116
  public void setHref(String newHref)
117
  {
118
    String oldHref = href;
119
    href = newHref;
120
    boolean oldHrefESet = hrefESet;
121
    hrefESet = true;
122
    if (eNotificationRequired())
123
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet));
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public void unsetHref()
132
  {
133
    String oldHref = href;
134
    boolean oldHrefESet = hrefESet;
135
    href = HREF_EDEFAULT;
136
    hrefESet = false;
137
    if (eNotificationRequired())
138
      eNotify(new ENotificationImpl(this, Notification.UNSET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet));
139
  }
140
141
  /**
142
   * <!-- begin-user-doc -->
143
   * <!-- end-user-doc -->
144
   * @generated
145
   */
146
  public boolean isSetHref()
147
  {
148
    return hrefESet;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @Override
157
  public Object eGet(int featureID, boolean resolve, boolean coreType)
158
  {
159
    switch (featureID)
160
    {
161
      case PersonalPackageImpl.URL_TYPE__HREF:
162
        return getHref();
163
    }
164
    return super.eGet(featureID, resolve, coreType);
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  @Override
173
  public void eSet(int featureID, Object newValue)
174
  {
175
    switch (featureID)
176
    {
177
      case PersonalPackageImpl.URL_TYPE__HREF:
178
        setHref((String)newValue);
179
        return;
180
    }
181
    super.eSet(featureID, newValue);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public void eUnset(int featureID)
191
  {
192
    switch (featureID)
193
    {
194
      case PersonalPackageImpl.URL_TYPE__HREF:
195
        unsetHref();
196
        return;
197
    }
198
    super.eUnset(featureID);
199
  }
200
201
  /**
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @generated
205
   */
206
  @Override
207
  public boolean eIsSet(int featureID)
208
  {
209
    switch (featureID)
210
    {
211
      case PersonalPackageImpl.URL_TYPE__HREF:
212
        return isSetHref();
213
    }
214
    return super.eIsSet(featureID);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  @Override
223
  public String toString()
224
  {
225
    if (eIsProxy()) return super.toString();
226
227
    StringBuffer result = new StringBuffer(super.toString());
228
    result.append(" (href: ");
229
    if (hrefESet) result.append(href); else result.append("<unset>");
230
    result.append(')');
231
    return result.toString();
232
  }
233
234
} //UrlTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalFactoryImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.personal.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class PersonalFactoryImpl extends EFactoryImpl implements PersonalFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final PersonalFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static PersonalFactoryImpl init()
53
  {
54
    try
55
    {
56
      PersonalFactoryImpl thePersonalFactory = (PersonalFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personal"); 
57
      if (thePersonalFactory != null)
58
      {
59
        return thePersonalFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new PersonalFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public PersonalFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case PersonalPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
91
      case PersonalPackageImpl.LINK_TYPE: return (EObject)createLinkType();
92
      case PersonalPackageImpl.NAME_TYPE: return (EObject)createNameType();
93
      case PersonalPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType();
94
      case PersonalPackageImpl.PERSON_TYPE: return (EObject)createPersonType();
95
      case PersonalPackageImpl.URL_TYPE: return (EObject)createUrlType();
96
      default:
97
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
98
    }
99
  }
100
101
  /**
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   */
106
  @Override
107
  public Object createFromString(EDataType eDataType, String initialValue)
108
  {
109
    switch (eDataType.getClassifierID())
110
    {
111
      case PersonalPackageImpl.CONTR_TYPE:
112
        return createContrTypeFromString(eDataType, initialValue);
113
      case PersonalPackageImpl.CONTR_TYPE_OBJECT:
114
        return createContrTypeObjectFromString(eDataType, initialValue);
115
      default:
116
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
117
    }
118
  }
119
120
  /**
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @generated
124
   */
125
  @Override
126
  public String convertToString(EDataType eDataType, Object instanceValue)
127
  {
128
    switch (eDataType.getClassifierID())
129
    {
130
      case PersonalPackageImpl.CONTR_TYPE:
131
        return convertContrTypeToString(eDataType, instanceValue);
132
      case PersonalPackageImpl.CONTR_TYPE_OBJECT:
133
        return convertContrTypeObjectToString(eDataType, instanceValue);
134
      default:
135
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
136
    }
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  public DocumentRoot createDocumentRoot()
145
  {
146
    DocumentRootImpl documentRoot = new DocumentRootImpl();
147
    return documentRoot;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public LinkType createLinkType()
156
  {
157
    LinkTypeImpl linkType = new LinkTypeImpl();
158
    return linkType;
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  public NameType createNameType()
167
  {
168
    NameTypeImpl nameType = new NameTypeImpl();
169
    return nameType;
170
  }
171
172
  /**
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @generated
176
   */
177
  public PersonnelType createPersonnelType()
178
  {
179
    PersonnelTypeImpl personnelType = new PersonnelTypeImpl();
180
    return personnelType;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public PersonType createPersonType()
189
  {
190
    PersonTypeImpl personType = new PersonTypeImpl();
191
    return personType;
192
  }
193
194
  /**
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @generated
198
   */
199
  public UrlType createUrlType()
200
  {
201
    UrlTypeImpl urlType = new UrlTypeImpl();
202
    return urlType;
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public ContrType createContrTypeFromString(EDataType eDataType, String initialValue)
211
  {
212
    ContrType result = ContrType.get(initialValue);
213
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
214
    return result;
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertContrTypeToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return instanceValue == null ? null : instanceValue.toString();
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue)
233
  {
234
    return createContrTypeFromString(PersonalPackageImpl.Literals.CONTR_TYPE, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return convertContrTypeToString(PersonalPackageImpl.Literals.CONTR_TYPE, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public PersonalPackageImpl getPersonalPackageImpl()
253
  {
254
    return (PersonalPackageImpl)getEPackage();
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @deprecated
261
   * @generated
262
   */
263
  @Deprecated
264
  public static PersonalPackageImpl getPackage()
265
  {
266
    return PersonalPackageImpl.eINSTANCE;
267
  }
268
269
} //PersonalFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/impl/PersonTypeImpl.java (-596 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import java.math.BigInteger;
20
21
import java.util.Collection;
22
import java.util.List;
23
24
import org.eclipse.emf.common.notify.Notification;
25
import org.eclipse.emf.common.notify.NotificationChain;
26
27
import org.eclipse.emf.common.util.EList;
28
29
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.ENotificationImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.util.EDataTypeEList;
37
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
38
import org.eclipse.emf.ecore.util.InternalEList;
39
40
import org.eclipse.emf.test.models.personal.ContrType;
41
import org.eclipse.emf.test.models.personal.LinkType;
42
import org.eclipse.emf.test.models.personal.NameType;
43
import org.eclipse.emf.test.models.personal.PersonType;
44
import org.eclipse.emf.test.models.personal.UrlType;
45
46
/**
47
 * <!-- begin-user-doc -->
48
 * An implementation of the model object '<em><b>Person Type</b></em>'.
49
 * <!-- end-user-doc -->
50
 * <p>
51
 * The following features are implemented:
52
 * <ul>
53
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getName <em>Name</em>}</li>
54
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getEmail <em>Email</em>}</li>
55
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getUrl <em>Url</em>}</li>
56
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getLink <em>Link</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getContr <em>Contr</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getId <em>Id</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getSalary <em>Salary</em>}</li>
60
 * </ul>
61
 * </p>
62
 *
63
 * @generated
64
 */
65
public class PersonTypeImpl extends EDataObjectImpl implements PersonType
66
{
67
  /**
68
   * <!-- begin-user-doc -->
69
   * <!-- end-user-doc -->
70
   * @generated
71
   */
72
  private static final long serialVersionUID = 1L;
73
74
  /**
75
   * The cached value of the '{@link #getName() <em>Name</em>}' containment reference.
76
   * <!-- begin-user-doc -->
77
   * <!-- end-user-doc -->
78
   * @see #getName()
79
   * @generated
80
   * @ordered
81
   */
82
  protected NameType name;
83
84
  /**
85
   * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute list.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @see #getEmail()
89
   * @generated
90
   * @ordered
91
   */
92
  protected EList<String> email;
93
94
  /**
95
   * The cached value of the '{@link #getUrl() <em>Url</em>}' containment reference list.
96
   * <!-- begin-user-doc -->
97
   * <!-- end-user-doc -->
98
   * @see #getUrl()
99
   * @generated
100
   * @ordered
101
   */
102
  protected EList<UrlType> url;
103
104
  /**
105
   * The cached value of the '{@link #getLink() <em>Link</em>}' containment reference.
106
   * <!-- begin-user-doc -->
107
   * <!-- end-user-doc -->
108
   * @see #getLink()
109
   * @generated
110
   * @ordered
111
   */
112
  protected LinkType link;
113
114
  /**
115
   * The default value of the '{@link #getContr() <em>Contr</em>}' attribute.
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @see #getContr()
119
   * @generated
120
   * @ordered
121
   */
122
  protected static final ContrType CONTR_EDEFAULT = ContrType.FALSE;
123
124
  /**
125
   * The cached value of the '{@link #getContr() <em>Contr</em>}' attribute.
126
   * <!-- begin-user-doc -->
127
   * <!-- end-user-doc -->
128
   * @see #getContr()
129
   * @generated
130
   * @ordered
131
   */
132
  protected ContrType contr = CONTR_EDEFAULT;
133
134
  /**
135
   * This is true if the Contr attribute has been set.
136
   * <!-- begin-user-doc -->
137
   * <!-- end-user-doc -->
138
   * @generated
139
   * @ordered
140
   */
141
  protected boolean contrESet;
142
143
  /**
144
   * The default value of the '{@link #getId() <em>Id</em>}' attribute.
145
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
147
   * @see #getId()
148
   * @generated
149
   * @ordered
150
   */
151
  protected static final String ID_EDEFAULT = null;
152
153
  /**
154
   * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @see #getId()
158
   * @generated
159
   * @ordered
160
   */
161
  protected String id = ID_EDEFAULT;
162
163
  /**
164
   * The default value of the '{@link #getSalary() <em>Salary</em>}' attribute.
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @see #getSalary()
168
   * @generated
169
   * @ordered
170
   */
171
  protected static final BigInteger SALARY_EDEFAULT = null;
172
173
  /**
174
   * The cached value of the '{@link #getSalary() <em>Salary</em>}' attribute.
175
   * <!-- begin-user-doc -->
176
   * <!-- end-user-doc -->
177
   * @see #getSalary()
178
   * @generated
179
   * @ordered
180
   */
181
  protected BigInteger salary = SALARY_EDEFAULT;
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  protected PersonTypeImpl()
189
  {
190
    super();
191
  }
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  @Override
199
  protected EClass eStaticClass()
200
  {
201
    return PersonalPackageImpl.Literals.PERSON_TYPE;
202
  }
203
204
  /**
205
   * <!-- begin-user-doc -->
206
   * <!-- end-user-doc -->
207
   * @generated
208
   */
209
  public NameType getName()
210
  {
211
    return name;
212
  }
213
214
  /**
215
   * <!-- begin-user-doc -->
216
   * <!-- end-user-doc -->
217
   * @generated
218
   */
219
  public NotificationChain basicSetName(NameType newName, NotificationChain msgs)
220
  {
221
    NameType oldName = name;
222
    name = newName;
223
    if (eNotificationRequired())
224
    {
225
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__NAME, oldName, newName);
226
      if (msgs == null) msgs = notification; else msgs.add(notification);
227
    }
228
    return msgs;
229
  }
230
231
  /**
232
   * <!-- begin-user-doc -->
233
   * <!-- end-user-doc -->
234
   * @generated
235
   */
236
  public void setName(NameType newName)
237
  {
238
    if (newName != name)
239
    {
240
      NotificationChain msgs = null;
241
      if (name != null)
242
        msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__NAME, null, msgs);
243
      if (newName != null)
244
        msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__NAME, null, msgs);
245
      msgs = basicSetName(newName, msgs);
246
      if (msgs != null) msgs.dispatch();
247
    }
248
    else if (eNotificationRequired())
249
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__NAME, newName, newName));
250
  }
251
252
  /**
253
   * <!-- begin-user-doc -->
254
   * <!-- end-user-doc -->
255
   * @generated
256
   */
257
  public List<String> getEmail()
258
  {
259
    if (email == null)
260
    {
261
      email = new EDataTypeEList<String>(String.class, this, PersonalPackageImpl.PERSON_TYPE__EMAIL);
262
    }
263
    return email;
264
  }
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public List<UrlType> getUrl()
272
  {
273
    if (url == null)
274
    {
275
      url = new EObjectContainmentEList<UrlType>(UrlType.class, this, PersonalPackageImpl.PERSON_TYPE__URL);
276
    }
277
    return url;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public LinkType getLink()
286
  {
287
    return link;
288
  }
289
290
  /**
291
   * <!-- begin-user-doc -->
292
   * <!-- end-user-doc -->
293
   * @generated
294
   */
295
  public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs)
296
  {
297
    LinkType oldLink = link;
298
    link = newLink;
299
    if (eNotificationRequired())
300
    {
301
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__LINK, oldLink, newLink);
302
      if (msgs == null) msgs = notification; else msgs.add(notification);
303
    }
304
    return msgs;
305
  }
306
307
  /**
308
   * <!-- begin-user-doc -->
309
   * <!-- end-user-doc -->
310
   * @generated
311
   */
312
  public void setLink(LinkType newLink)
313
  {
314
    if (newLink != link)
315
    {
316
      NotificationChain msgs = null;
317
      if (link != null)
318
        msgs = ((InternalEObject)link).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__LINK, null, msgs);
319
      if (newLink != null)
320
        msgs = ((InternalEObject)newLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__LINK, null, msgs);
321
      msgs = basicSetLink(newLink, msgs);
322
      if (msgs != null) msgs.dispatch();
323
    }
324
    else if (eNotificationRequired())
325
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__LINK, newLink, newLink));
326
  }
327
328
  /**
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @generated
332
   */
333
  public ContrType getContr()
334
  {
335
    return contr;
336
  }
337
338
  /**
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   */
343
  public void setContr(ContrType newContr)
344
  {
345
    ContrType oldContr = contr;
346
    contr = newContr == null ? CONTR_EDEFAULT : newContr;
347
    boolean oldContrESet = contrESet;
348
    contrESet = true;
349
    if (eNotificationRequired())
350
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__CONTR, oldContr, contr, !oldContrESet));
351
  }
352
353
  /**
354
   * <!-- begin-user-doc -->
355
   * <!-- end-user-doc -->
356
   * @generated
357
   */
358
  public void unsetContr()
359
  {
360
    ContrType oldContr = contr;
361
    boolean oldContrESet = contrESet;
362
    contr = CONTR_EDEFAULT;
363
    contrESet = false;
364
    if (eNotificationRequired())
365
      eNotify(new ENotificationImpl(this, Notification.UNSET, PersonalPackageImpl.PERSON_TYPE__CONTR, oldContr, CONTR_EDEFAULT, oldContrESet));
366
  }
367
368
  /**
369
   * <!-- begin-user-doc -->
370
   * <!-- end-user-doc -->
371
   * @generated
372
   */
373
  public boolean isSetContr()
374
  {
375
    return contrESet;
376
  }
377
378
  /**
379
   * <!-- begin-user-doc -->
380
   * <!-- end-user-doc -->
381
   * @generated
382
   */
383
  public String getId()
384
  {
385
    return id;
386
  }
387
388
  /**
389
   * <!-- begin-user-doc -->
390
   * <!-- end-user-doc -->
391
   * @generated
392
   */
393
  public void setId(String newId)
394
  {
395
    String oldId = id;
396
    id = newId;
397
    if (eNotificationRequired())
398
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__ID, oldId, id));
399
  }
400
401
  /**
402
   * <!-- begin-user-doc -->
403
   * <!-- end-user-doc -->
404
   * @generated
405
   */
406
  public BigInteger getSalary()
407
  {
408
    return salary;
409
  }
410
411
  /**
412
   * <!-- begin-user-doc -->
413
   * <!-- end-user-doc -->
414
   * @generated
415
   */
416
  public void setSalary(BigInteger newSalary)
417
  {
418
    BigInteger oldSalary = salary;
419
    salary = newSalary;
420
    if (eNotificationRequired())
421
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__SALARY, oldSalary, salary));
422
  }
423
424
  /**
425
   * <!-- begin-user-doc -->
426
   * <!-- end-user-doc -->
427
   * @generated
428
   */
429
  @Override
430
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
431
  {
432
    switch (featureID)
433
    {
434
      case PersonalPackageImpl.PERSON_TYPE__NAME:
435
        return basicSetName(null, msgs);
436
      case PersonalPackageImpl.PERSON_TYPE__URL:
437
        return ((InternalEList<?>)getUrl()).basicRemove(otherEnd, msgs);
438
      case PersonalPackageImpl.PERSON_TYPE__LINK:
439
        return basicSetLink(null, msgs);
440
    }
441
    return super.eInverseRemove(otherEnd, featureID, msgs);
442
  }
443
444
  /**
445
   * <!-- begin-user-doc -->
446
   * <!-- end-user-doc -->
447
   * @generated
448
   */
449
  @Override
450
  public Object eGet(int featureID, boolean resolve, boolean coreType)
451
  {
452
    switch (featureID)
453
    {
454
      case PersonalPackageImpl.PERSON_TYPE__NAME:
455
        return getName();
456
      case PersonalPackageImpl.PERSON_TYPE__EMAIL:
457
        return getEmail();
458
      case PersonalPackageImpl.PERSON_TYPE__URL:
459
        return getUrl();
460
      case PersonalPackageImpl.PERSON_TYPE__LINK:
461
        return getLink();
462
      case PersonalPackageImpl.PERSON_TYPE__CONTR:
463
        return getContr();
464
      case PersonalPackageImpl.PERSON_TYPE__ID:
465
        return getId();
466
      case PersonalPackageImpl.PERSON_TYPE__SALARY:
467
        return getSalary();
468
    }
469
    return super.eGet(featureID, resolve, coreType);
470
  }
471
472
  /**
473
   * <!-- begin-user-doc -->
474
   * <!-- end-user-doc -->
475
   * @generated
476
   */
477
  @SuppressWarnings("unchecked")
478
  @Override
479
  public void eSet(int featureID, Object newValue)
480
  {
481
    switch (featureID)
482
    {
483
      case PersonalPackageImpl.PERSON_TYPE__NAME:
484
        setName((NameType)newValue);
485
        return;
486
      case PersonalPackageImpl.PERSON_TYPE__EMAIL:
487
        getEmail().clear();
488
        getEmail().addAll((Collection<? extends String>)newValue);
489
        return;
490
      case PersonalPackageImpl.PERSON_TYPE__URL:
491
        getUrl().clear();
492
        getUrl().addAll((Collection<? extends UrlType>)newValue);
493
        return;
494
      case PersonalPackageImpl.PERSON_TYPE__LINK:
495
        setLink((LinkType)newValue);
496
        return;
497
      case PersonalPackageImpl.PERSON_TYPE__CONTR:
498
        setContr((ContrType)newValue);
499
        return;
500
      case PersonalPackageImpl.PERSON_TYPE__ID:
501
        setId((String)newValue);
502
        return;
503
      case PersonalPackageImpl.PERSON_TYPE__SALARY:
504
        setSalary((BigInteger)newValue);
505
        return;
506
    }
507
    super.eSet(featureID, newValue);
508
  }
509
510
  /**
511
   * <!-- begin-user-doc -->
512
   * <!-- end-user-doc -->
513
   * @generated
514
   */
515
  @Override
516
  public void eUnset(int featureID)
517
  {
518
    switch (featureID)
519
    {
520
      case PersonalPackageImpl.PERSON_TYPE__NAME:
521
        setName((NameType)null);
522
        return;
523
      case PersonalPackageImpl.PERSON_TYPE__EMAIL:
524
        getEmail().clear();
525
        return;
526
      case PersonalPackageImpl.PERSON_TYPE__URL:
527
        getUrl().clear();
528
        return;
529
      case PersonalPackageImpl.PERSON_TYPE__LINK:
530
        setLink((LinkType)null);
531
        return;
532
      case PersonalPackageImpl.PERSON_TYPE__CONTR:
533
        unsetContr();
534
        return;
535
      case PersonalPackageImpl.PERSON_TYPE__ID:
536
        setId(ID_EDEFAULT);
537
        return;
538
      case PersonalPackageImpl.PERSON_TYPE__SALARY:
539
        setSalary(SALARY_EDEFAULT);
540
        return;
541
    }
542
    super.eUnset(featureID);
543
  }
544
545
  /**
546
   * <!-- begin-user-doc -->
547
   * <!-- end-user-doc -->
548
   * @generated
549
   */
550
  @Override
551
  public boolean eIsSet(int featureID)
552
  {
553
    switch (featureID)
554
    {
555
      case PersonalPackageImpl.PERSON_TYPE__NAME:
556
        return name != null;
557
      case PersonalPackageImpl.PERSON_TYPE__EMAIL:
558
        return email != null && !email.isEmpty();
559
      case PersonalPackageImpl.PERSON_TYPE__URL:
560
        return url != null && !url.isEmpty();
561
      case PersonalPackageImpl.PERSON_TYPE__LINK:
562
        return link != null;
563
      case PersonalPackageImpl.PERSON_TYPE__CONTR:
564
        return isSetContr();
565
      case PersonalPackageImpl.PERSON_TYPE__ID:
566
        return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
567
      case PersonalPackageImpl.PERSON_TYPE__SALARY:
568
        return SALARY_EDEFAULT == null ? salary != null : !SALARY_EDEFAULT.equals(salary);
569
    }
570
    return super.eIsSet(featureID);
571
  }
572
573
  /**
574
   * <!-- begin-user-doc -->
575
   * <!-- end-user-doc -->
576
   * @generated
577
   */
578
  @Override
579
  public String toString()
580
  {
581
    if (eIsProxy()) return super.toString();
582
583
    StringBuffer result = new StringBuffer(super.toString());
584
    result.append(" (email: ");
585
    result.append(email);
586
    result.append(", contr: ");
587
    if (contrESet) result.append(contr); else result.append("<unset>");
588
    result.append(", id: ");
589
    result.append(id);
590
    result.append(", salary: ");
591
    result.append(salary);
592
    result.append(')');
593
    return result.toString();
594
  }
595
596
} //PersonTypeImpl
(-)src/org/eclipse/emf/test/models/personal/impl/LinkTypeImpl.java (-257 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LinkTypeImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.impl;
18
19
import java.util.List;
20
21
import org.eclipse.emf.common.notify.Notification;
22
23
import org.eclipse.emf.ecore.EClass;
24
25
import org.eclipse.emf.ecore.impl.ENotificationImpl;
26
27
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
28
29
import org.eclipse.emf.test.models.personal.LinkType;
30
31
/**
32
 * <!-- begin-user-doc -->
33
 * An implementation of the model object '<em><b>Link Type</b></em>'.
34
 * <!-- end-user-doc -->
35
 * <p>
36
 * The following features are implemented:
37
 * <ul>
38
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl#getManager <em>Manager</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl#getSubordinates <em>Subordinates</em>}</li>
40
 * </ul>
41
 * </p>
42
 *
43
 * @generated
44
 */
45
public class LinkTypeImpl extends EDataObjectImpl implements LinkType
46
{
47
  /**
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  private static final long serialVersionUID = 1L;
53
54
  /**
55
   * The default value of the '{@link #getManager() <em>Manager</em>}' attribute.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @see #getManager()
59
   * @generated
60
   * @ordered
61
   */
62
  protected static final String MANAGER_EDEFAULT = null;
63
64
  /**
65
   * The cached value of the '{@link #getManager() <em>Manager</em>}' attribute.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @see #getManager()
69
   * @generated
70
   * @ordered
71
   */
72
  protected String manager = MANAGER_EDEFAULT;
73
74
  /**
75
   * The default value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute.
76
   * <!-- begin-user-doc -->
77
   * <!-- end-user-doc -->
78
   * @see #getSubordinates()
79
   * @generated
80
   * @ordered
81
   */
82
  protected static final List<String> SUBORDINATES_EDEFAULT = null;
83
84
  /**
85
   * The cached value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @see #getSubordinates()
89
   * @generated
90
   * @ordered
91
   */
92
  protected List<String> subordinates = SUBORDINATES_EDEFAULT;
93
94
  /**
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @generated
98
   */
99
  protected LinkTypeImpl()
100
  {
101
    super();
102
  }
103
104
  /**
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @generated
108
   */
109
  @Override
110
  protected EClass eStaticClass()
111
  {
112
    return PersonalPackageImpl.Literals.LINK_TYPE;
113
  }
114
115
  /**
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @generated
119
   */
120
  public String getManager()
121
  {
122
    return manager;
123
  }
124
125
  /**
126
   * <!-- begin-user-doc -->
127
   * <!-- end-user-doc -->
128
   * @generated
129
   */
130
  public void setManager(String newManager)
131
  {
132
    String oldManager = manager;
133
    manager = newManager;
134
    if (eNotificationRequired())
135
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.LINK_TYPE__MANAGER, oldManager, manager));
136
  }
137
138
  /**
139
   * <!-- begin-user-doc -->
140
   * <!-- end-user-doc -->
141
   * @generated
142
   */
143
  public List<String> getSubordinates()
144
  {
145
    return subordinates;
146
  }
147
148
  /**
149
   * <!-- begin-user-doc -->
150
   * <!-- end-user-doc -->
151
   * @generated
152
   */
153
  public void setSubordinates(List<String> newSubordinates)
154
  {
155
    List<String> oldSubordinates = subordinates;
156
    subordinates = newSubordinates;
157
    if (eNotificationRequired())
158
      eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.LINK_TYPE__SUBORDINATES, oldSubordinates, subordinates));
159
  }
160
161
  /**
162
   * <!-- begin-user-doc -->
163
   * <!-- end-user-doc -->
164
   * @generated
165
   */
166
  @Override
167
  public Object eGet(int featureID, boolean resolve, boolean coreType)
168
  {
169
    switch (featureID)
170
    {
171
      case PersonalPackageImpl.LINK_TYPE__MANAGER:
172
        return getManager();
173
      case PersonalPackageImpl.LINK_TYPE__SUBORDINATES:
174
        return getSubordinates();
175
    }
176
    return super.eGet(featureID, resolve, coreType);
177
  }
178
179
  /**
180
   * <!-- begin-user-doc -->
181
   * <!-- end-user-doc -->
182
   * @generated
183
   */
184
  @SuppressWarnings("unchecked")
185
  @Override
186
  public void eSet(int featureID, Object newValue)
187
  {
188
    switch (featureID)
189
    {
190
      case PersonalPackageImpl.LINK_TYPE__MANAGER:
191
        setManager((String)newValue);
192
        return;
193
      case PersonalPackageImpl.LINK_TYPE__SUBORDINATES:
194
        setSubordinates((List<String>)newValue);
195
        return;
196
    }
197
    super.eSet(featureID, newValue);
198
  }
199
200
  /**
201
   * <!-- begin-user-doc -->
202
   * <!-- end-user-doc -->
203
   * @generated
204
   */
205
  @Override
206
  public void eUnset(int featureID)
207
  {
208
    switch (featureID)
209
    {
210
      case PersonalPackageImpl.LINK_TYPE__MANAGER:
211
        setManager(MANAGER_EDEFAULT);
212
        return;
213
      case PersonalPackageImpl.LINK_TYPE__SUBORDINATES:
214
        setSubordinates(SUBORDINATES_EDEFAULT);
215
        return;
216
    }
217
    super.eUnset(featureID);
218
  }
219
220
  /**
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @generated
224
   */
225
  @Override
226
  public boolean eIsSet(int featureID)
227
  {
228
    switch (featureID)
229
    {
230
      case PersonalPackageImpl.LINK_TYPE__MANAGER:
231
        return MANAGER_EDEFAULT == null ? manager != null : !MANAGER_EDEFAULT.equals(manager);
232
      case PersonalPackageImpl.LINK_TYPE__SUBORDINATES:
233
        return SUBORDINATES_EDEFAULT == null ? subordinates != null : !SUBORDINATES_EDEFAULT.equals(subordinates);
234
    }
235
    return super.eIsSet(featureID);
236
  }
237
238
  /**
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @generated
242
   */
243
  @Override
244
  public String toString()
245
  {
246
    if (eIsProxy()) return super.toString();
247
248
    StringBuffer result = new StringBuffer(super.toString());
249
    result.append(" (manager: ");
250
    result.append(manager);
251
    result.append(", subordinates: ");
252
    result.append(subordinates);
253
    result.append(')');
254
    return result.toString();
255
  }
256
257
} //LinkTypeImpl
(-)src/org/eclipse/emf/test/models/sdo/simple/util/SimpleXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleXMLProcessor.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class SimpleXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public SimpleXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    SimplePackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the SimpleResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new SimpleResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new SimpleResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //SimpleXMLProcessor
(-)src/org/eclipse/emf/test/models/sdo/simple/util/SimpleAdapterFactory.java (-148 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.sdo.simple.*;
27
28
import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl
36
 * @generated
37
 */
38
public class SimpleAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static SimplePackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public SimpleAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = SimplePackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected SimpleSwitch<Adapter> modelSwitch =
91
    new SimpleSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseQuote(Quote object)
95
      {
96
        return createQuoteAdapter();
97
      }
98
      @Override
99
      public Adapter defaultCase(EObject object)
100
      {
101
        return createEObjectAdapter();
102
      }
103
    };
104
105
  /**
106
   * Creates an adapter for the <code>target</code>.
107
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
109
   * @param target the object to adapt.
110
   * @return the adapter for the <code>target</code>.
111
   * @generated
112
   */
113
  @Override
114
  public Adapter createAdapter(Notifier target)
115
  {
116
    return modelSwitch.doSwitch((EObject)target);
117
  }
118
119
120
  /**
121
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.simple.Quote <em>Quote</em>}'.
122
   * <!-- begin-user-doc -->
123
   * This default implementation returns null so that we can easily ignore cases;
124
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
125
   * <!-- end-user-doc -->
126
   * @return the new adapter.
127
   * @see org.eclipse.emf.test.models.sdo.simple.Quote
128
   * @generated
129
   */
130
  public Adapter createQuoteAdapter()
131
  {
132
    return null;
133
  }
134
135
  /**
136
   * Creates a new adapter for the default case.
137
   * <!-- begin-user-doc -->
138
   * This default implementation returns null.
139
   * <!-- end-user-doc -->
140
   * @return the new adapter.
141
   * @generated
142
   */
143
  public Adapter createEObjectAdapter()
144
  {
145
    return null;
146
  }
147
148
} //SimpleAdapterFactory
(-)src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleResourceImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.sdo.simple.util.SimpleResourceFactoryImpl
28
 * @generated
29
 */
30
public class SimpleResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public SimpleResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //SimpleResourceImpl
(-)src/org/eclipse/emf/test/models/sdo/simple/util/SimpleSwitch.java (-154 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleSwitch.java,v 1.4 2007/06/12 21:15:18 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.sdo.simple.*;
25
26
import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl
39
 * @generated
40
 */
41
public class SimpleSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static SimplePackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public SimpleSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = SimplePackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case SimplePackageImpl.QUOTE:
112
      {
113
        Quote quote = (Quote)theEObject;
114
        T result = caseQuote(quote);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      default: return defaultCase(theEObject);
119
    }
120
  }
121
122
  /**
123
   * Returns the result of interpreting the object as an instance of '<em>Quote</em>'.
124
   * <!-- begin-user-doc -->
125
   * This implementation returns null;
126
   * returning a non-null result will terminate the switch.
127
   * <!-- end-user-doc -->
128
   * @param object the target of the switch.
129
   * @return the result of interpreting the object as an instance of '<em>Quote</em>'.
130
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
131
   * @generated
132
   */
133
  public T caseQuote(Quote object)
134
  {
135
    return null;
136
  }
137
138
  /**
139
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
140
   * <!-- begin-user-doc -->
141
   * This implementation returns null;
142
   * returning a non-null result will terminate the switch, but this is the last case anyway.
143
   * <!-- end-user-doc -->
144
   * @param object the target of the switch.
145
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
146
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
147
   * @generated
148
   */
149
  public T defaultCase(EObject object)
150
  {
151
    return null;
152
  }
153
154
} //SimpleSwitch
(-)src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.sdo.simple.util.SimpleResourceImpl
32
 * @generated
33
 */
34
public class SimpleResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public SimpleResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new SimpleResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //SimpleResourceFactoryImpl
(-)src/org/eclipse/emf/test/models/types/impl/TypesPackageImpl.java (-1988 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesPackageImpl.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.types.impl;
18
19
import java.util.Date;
20
21
import org.eclipse.emf.ecore.EAttribute;
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EDataType;
24
import org.eclipse.emf.ecore.EFactory;
25
import org.eclipse.emf.ecore.EPackage;
26
27
import org.eclipse.emf.ecore.impl.EPackageImpl;
28
29
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
30
31
import org.eclipse.emf.test.models.types.AThing;
32
import org.eclipse.emf.test.models.types.TypesFactory;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * The <b>Package</b> for the model.
37
 * It contains accessors for the meta objects to represent
38
 * <ul>
39
 *   <li>each class,</li>
40
 *   <li>each feature of each class,</li>
41
 *   <li>each enum,</li>
42
 *   <li>and each data type</li>
43
 * </ul>
44
 * <!-- end-user-doc -->
45
 * @see org.eclipse.emf.test.models.types.TypesFactory
46
 * @model kind="package"
47
 * @generated
48
 */
49
public class TypesPackageImpl extends EPackageImpl
50
{
51
  /**
52
   * The package name.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public static final String eNAME = "types";
58
59
  /**
60
   * The package namespace URI.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @generated
64
   */
65
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/types";
66
67
  /**
68
   * The package namespace name.
69
   * <!-- begin-user-doc -->
70
   * <!-- end-user-doc -->
71
   * @generated
72
   */
73
  public static final String eNS_PREFIX = "types";
74
75
  /**
76
   * The singleton instance of the package.
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
80
   */
81
  public static final TypesPackageImpl eINSTANCE = org.eclipse.emf.test.models.types.impl.TypesPackageImpl.init();
82
83
  /**
84
   * The meta object id for the '{@link org.eclipse.emf.test.models.types.impl.AThingImpl <em>AThing</em>}' class.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see org.eclipse.emf.test.models.types.impl.AThingImpl
88
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getAThing()
89
   * @generated
90
   */
91
  public static final int ATHING = 0;
92
93
  /**
94
   * The feature id for the '<em><b>ABoolean</b></em>' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @generated
98
   * @ordered
99
   */
100
  public static final int ATHING__ABOOLEAN = 0;
101
102
  /**
103
   * The feature id for the '<em><b>AByte</b></em>' attribute.
104
   * <!-- begin-user-doc -->
105
   * <!-- end-user-doc -->
106
   * @generated
107
   * @ordered
108
   */
109
  public static final int ATHING__ABYTE = 1;
110
111
  /**
112
   * The feature id for the '<em><b>ADecimal</b></em>' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   * @ordered
117
   */
118
  public static final int ATHING__ADECIMAL = 2;
119
120
  /**
121
   * The feature id for the '<em><b>AFloat</b></em>' attribute.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @generated
125
   * @ordered
126
   */
127
  public static final int ATHING__AFLOAT = 3;
128
129
  /**
130
   * The feature id for the '<em><b>ADouble</b></em>' attribute.
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   * @ordered
135
   */
136
  public static final int ATHING__ADOUBLE = 4;
137
138
  /**
139
   * The feature id for the '<em><b>AInt</b></em>' attribute.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   * @ordered
144
   */
145
  public static final int ATHING__AINT = 5;
146
147
  /**
148
   * The feature id for the '<em><b>AInteger</b></em>' attribute.
149
   * <!-- begin-user-doc -->
150
   * <!-- end-user-doc -->
151
   * @generated
152
   * @ordered
153
   */
154
  public static final int ATHING__AINTEGER = 6;
155
156
  /**
157
   * The feature id for the '<em><b>ALong</b></em>' attribute.
158
   * <!-- begin-user-doc -->
159
   * <!-- end-user-doc -->
160
   * @generated
161
   * @ordered
162
   */
163
  public static final int ATHING__ALONG = 7;
164
165
  /**
166
   * The feature id for the '<em><b>AShort</b></em>' attribute.
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   * @ordered
171
   */
172
  public static final int ATHING__ASHORT = 8;
173
174
  /**
175
   * The feature id for the '<em><b>AString</b></em>' attribute.
176
   * <!-- begin-user-doc -->
177
   * <!-- end-user-doc -->
178
   * @generated
179
   * @ordered
180
   */
181
  public static final int ATHING__ASTRING = 9;
182
183
  /**
184
   * The feature id for the '<em><b>AChar</b></em>' attribute.
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   * @ordered
189
   */
190
  public static final int ATHING__ACHAR = 10;
191
192
  /**
193
   * The feature id for the '<em><b>ADate</b></em>' attribute.
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   * @ordered
198
   */
199
  public static final int ATHING__ADATE = 11;
200
201
  /**
202
   * The feature id for the '<em><b>ABytes</b></em>' attribute.
203
   * <!-- begin-user-doc -->
204
   * <!-- end-user-doc -->
205
   * @generated
206
   * @ordered
207
   */
208
  public static final int ATHING__ABYTES = 12;
209
210
  /**
211
   * The feature id for the '<em><b>ANumber</b></em>' attribute.
212
   * <!-- begin-user-doc -->
213
   * <!-- end-user-doc -->
214
   * @generated
215
   * @ordered
216
   */
217
  public static final int ATHING__ANUMBER = 13;
218
219
  /**
220
   * The feature id for the '<em><b>AObject</b></em>' attribute.
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @generated
224
   * @ordered
225
   */
226
  public static final int ATHING__AOBJECT = 14;
227
228
  /**
229
   * The feature id for the '<em><b>AThread</b></em>' attribute.
230
   * <!-- begin-user-doc -->
231
   * <!-- end-user-doc -->
232
   * @generated
233
   * @ordered
234
   */
235
  public static final int ATHING__ATHREAD = 15;
236
237
  /**
238
   * The feature id for the '<em><b>Many Boolean</b></em>' attribute list.
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @generated
242
   * @ordered
243
   */
244
  public static final int ATHING__MANY_BOOLEAN = 16;
245
246
  /**
247
   * The feature id for the '<em><b>Many Byte</b></em>' attribute list.
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   * @ordered
252
   */
253
  public static final int ATHING__MANY_BYTE = 17;
254
255
  /**
256
   * The feature id for the '<em><b>Many Decimal</b></em>' attribute list.
257
   * <!-- begin-user-doc -->
258
   * <!-- end-user-doc -->
259
   * @generated
260
   * @ordered
261
   */
262
  public static final int ATHING__MANY_DECIMAL = 18;
263
264
  /**
265
   * The feature id for the '<em><b>Many Float</b></em>' attribute list.
266
   * <!-- begin-user-doc -->
267
   * <!-- end-user-doc -->
268
   * @generated
269
   * @ordered
270
   */
271
  public static final int ATHING__MANY_FLOAT = 19;
272
273
  /**
274
   * The feature id for the '<em><b>Many Double</b></em>' attribute list.
275
   * <!-- begin-user-doc -->
276
   * <!-- end-user-doc -->
277
   * @generated
278
   * @ordered
279
   */
280
  public static final int ATHING__MANY_DOUBLE = 20;
281
282
  /**
283
   * The feature id for the '<em><b>Many Int</b></em>' attribute list.
284
   * <!-- begin-user-doc -->
285
   * <!-- end-user-doc -->
286
   * @generated
287
   * @ordered
288
   */
289
  public static final int ATHING__MANY_INT = 21;
290
291
  /**
292
   * The feature id for the '<em><b>Many Integer</b></em>' attribute list.
293
   * <!-- begin-user-doc -->
294
   * <!-- end-user-doc -->
295
   * @generated
296
   * @ordered
297
   */
298
  public static final int ATHING__MANY_INTEGER = 22;
299
300
  /**
301
   * The feature id for the '<em><b>Many Long</b></em>' attribute list.
302
   * <!-- begin-user-doc -->
303
   * <!-- end-user-doc -->
304
   * @generated
305
   * @ordered
306
   */
307
  public static final int ATHING__MANY_LONG = 23;
308
309
  /**
310
   * The feature id for the '<em><b>Many Short</b></em>' attribute list.
311
   * <!-- begin-user-doc -->
312
   * <!-- end-user-doc -->
313
   * @generated
314
   * @ordered
315
   */
316
  public static final int ATHING__MANY_SHORT = 24;
317
318
  /**
319
   * The feature id for the '<em><b>Many String</b></em>' attribute list.
320
   * <!-- begin-user-doc -->
321
   * <!-- end-user-doc -->
322
   * @generated
323
   * @ordered
324
   */
325
  public static final int ATHING__MANY_STRING = 25;
326
327
  /**
328
   * The feature id for the '<em><b>Many Char</b></em>' attribute list.
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @generated
332
   * @ordered
333
   */
334
  public static final int ATHING__MANY_CHAR = 26;
335
336
  /**
337
   * The feature id for the '<em><b>Many Date</b></em>' attribute list.
338
   * <!-- begin-user-doc -->
339
   * <!-- end-user-doc -->
340
   * @generated
341
   * @ordered
342
   */
343
  public static final int ATHING__MANY_DATE = 27;
344
345
  /**
346
   * The feature id for the '<em><b>Many Bytes</b></em>' attribute list.
347
   * <!-- begin-user-doc -->
348
   * <!-- end-user-doc -->
349
   * @generated
350
   * @ordered
351
   */
352
  public static final int ATHING__MANY_BYTES = 28;
353
354
  /**
355
   * The feature id for the '<em><b>Many Number</b></em>' attribute list.
356
   * <!-- begin-user-doc -->
357
   * <!-- end-user-doc -->
358
   * @generated
359
   * @ordered
360
   */
361
  public static final int ATHING__MANY_NUMBER = 29;
362
363
  /**
364
   * The feature id for the '<em><b>Many Object</b></em>' attribute list.
365
   * <!-- begin-user-doc -->
366
   * <!-- end-user-doc -->
367
   * @generated
368
   * @ordered
369
   */
370
  public static final int ATHING__MANY_OBJECT = 30;
371
372
  /**
373
   * The feature id for the '<em><b>Many Thread</b></em>' attribute list.
374
   * <!-- begin-user-doc -->
375
   * <!-- end-user-doc -->
376
   * @generated
377
   * @ordered
378
   */
379
  public static final int ATHING__MANY_THREAD = 31;
380
381
  /**
382
   * The number of structural features of the '<em>AThing</em>' class.
383
   * <!-- begin-user-doc -->
384
   * <!-- end-user-doc -->
385
   * @generated
386
   * @ordered
387
   */
388
  public static final int ATHING_FEATURE_COUNT = 32;
389
390
  /**
391
   * The meta object id for the '<em>My Bytes</em>' data type.
392
   * <!-- begin-user-doc -->
393
   * <!-- end-user-doc -->
394
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyBytes()
395
   * @generated
396
   */
397
  public static final int MY_BYTES = 1;
398
399
  /**
400
   * The meta object id for the '<em>My Char</em>' data type.
401
   * <!-- begin-user-doc -->
402
   * <!-- end-user-doc -->
403
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyChar()
404
   * @generated
405
   */
406
  public static final int MY_CHAR = 2;
407
408
  /**
409
   * The meta object id for the '<em>My Char Object</em>' data type.
410
   * <!-- begin-user-doc -->
411
   * <!-- end-user-doc -->
412
   * @see java.lang.Character
413
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyCharObject()
414
   * @generated
415
   */
416
  public static final int MY_CHAR_OBJECT = 3;
417
418
  /**
419
   * The meta object id for the '<em>My Date</em>' data type.
420
   * <!-- begin-user-doc -->
421
   * <!-- end-user-doc -->
422
   * @see java.util.Date
423
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyDate()
424
   * @generated
425
   */
426
  public static final int MY_DATE = 4;
427
428
  /**
429
   * The meta object id for the '<em>My Number</em>' data type.
430
   * <!-- begin-user-doc -->
431
   * <!-- end-user-doc -->
432
   * @see java.lang.Number
433
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyNumber()
434
   * @generated
435
   */
436
  public static final int MY_NUMBER = 5;
437
438
  /**
439
   * The meta object id for the '<em>My Object</em>' data type.
440
   * <!-- begin-user-doc -->
441
   * <!-- end-user-doc -->
442
   * @see java.lang.Object
443
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyObject()
444
   * @generated
445
   */
446
  public static final int MY_OBJECT = 6;
447
448
  /**
449
   * The meta object id for the '<em>My Thread</em>' data type.
450
   * <!-- begin-user-doc -->
451
   * <!-- end-user-doc -->
452
   * @see java.lang.Thread
453
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyThread()
454
   * @generated
455
   */
456
  public static final int MY_THREAD = 7;
457
458
  /**
459
   * <!-- begin-user-doc -->
460
   * <!-- end-user-doc -->
461
   * @generated
462
   */
463
  private EClass aThingEClass = null;
464
465
  /**
466
   * <!-- begin-user-doc -->
467
   * <!-- end-user-doc -->
468
   * @generated
469
   */
470
  private EDataType myBytesEDataType = null;
471
472
  /**
473
   * <!-- begin-user-doc -->
474
   * <!-- end-user-doc -->
475
   * @generated
476
   */
477
  private EDataType myCharEDataType = null;
478
479
  /**
480
   * <!-- begin-user-doc -->
481
   * <!-- end-user-doc -->
482
   * @generated
483
   */
484
  private EDataType myCharObjectEDataType = null;
485
486
  /**
487
   * <!-- begin-user-doc -->
488
   * <!-- end-user-doc -->
489
   * @generated
490
   */
491
  private EDataType myDateEDataType = null;
492
493
  /**
494
   * <!-- begin-user-doc -->
495
   * <!-- end-user-doc -->
496
   * @generated
497
   */
498
  private EDataType myNumberEDataType = null;
499
500
  /**
501
   * <!-- begin-user-doc -->
502
   * <!-- end-user-doc -->
503
   * @generated
504
   */
505
  private EDataType myObjectEDataType = null;
506
507
  /**
508
   * <!-- begin-user-doc -->
509
   * <!-- end-user-doc -->
510
   * @generated
511
   */
512
  private EDataType myThreadEDataType = null;
513
514
  /**
515
   * Creates an instance of the model <b>Package</b>, registered with
516
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
517
   * package URI value.
518
   * <p>Note: the correct way to create the package is via the static
519
   * factory method {@link #init init()}, which also performs
520
   * initialization of the package, or returns the registered package,
521
   * if one already exists.
522
   * <!-- begin-user-doc -->
523
   * <!-- end-user-doc -->
524
   * @see org.eclipse.emf.ecore.EPackage.Registry
525
   * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#eNS_URI
526
   * @see #init()
527
   * @generated
528
   */
529
  private TypesPackageImpl()
530
  {
531
    super(eNS_URI, ((EFactory)TypesFactory.INSTANCE));
532
  }
533
534
  /**
535
   * <!-- begin-user-doc -->
536
   * <!-- end-user-doc -->
537
   * @generated
538
   */
539
  private static boolean isInited = false;
540
541
  /**
542
   * Creates, registers, and initializes the <b>Package</b> for this
543
   * model, and for any others upon which it depends.  Simple
544
   * dependencies are satisfied by calling this method on all
545
   * dependent packages before doing anything else.  This method drives
546
   * initialization for interdependent packages directly, in parallel
547
   * with this package, itself.
548
   * <p>Of this package and its interdependencies, all packages which
549
   * have not yet been registered by their URI values are first created
550
   * and registered.  The packages are then initialized in two steps:
551
   * meta-model objects for all of the packages are created before any
552
   * are initialized, since one package's meta-model objects may refer to
553
   * those of another.
554
   * <p>Invocation of this method will not affect any packages that have
555
   * already been initialized.
556
   * <!-- begin-user-doc -->
557
   * <!-- end-user-doc -->
558
   * @see #eNS_URI
559
   * @see #createPackageContents()
560
   * @see #initializePackageContents()
561
   * @generated
562
   */
563
  public static TypesPackageImpl init()
564
  {
565
    if (isInited) return (TypesPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TypesPackageImpl.eNS_URI);
566
567
    // Obtain or create and register package
568
    TypesPackageImpl theTypesPackageImpl = (TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TypesPackageImpl());
569
570
    isInited = true;
571
572
    // Initialize simple dependencies
573
    XMLTypePackage.eINSTANCE.eClass();
574
575
    // Create package meta-data objects
576
    theTypesPackageImpl.createPackageContents();
577
578
    // Initialize created meta-data
579
    theTypesPackageImpl.initializePackageContents();
580
581
    // Mark meta-data to indicate it can't be changed
582
    theTypesPackageImpl.freeze();
583
584
    return theTypesPackageImpl;
585
  }
586
587
588
  /**
589
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.types.AThing <em>AThing</em>}'.
590
   * <!-- begin-user-doc -->
591
   * <!-- end-user-doc -->
592
   * @return the meta object for class '<em>AThing</em>'.
593
   * @see org.eclipse.emf.test.models.types.AThing
594
   * @generated
595
   */
596
  public EClass getAThing()
597
  {
598
    return aThingEClass;
599
  }
600
601
  /**
602
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}'.
603
   * <!-- begin-user-doc -->
604
   * <!-- end-user-doc -->
605
   * @return the meta object for the attribute '<em>ABoolean</em>'.
606
   * @see org.eclipse.emf.test.models.types.AThing#isABoolean()
607
   * @see #getAThing()
608
   * @generated
609
   */
610
  public EAttribute getAThing_ABoolean()
611
  {
612
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(0);
613
  }
614
615
  /**
616
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}'.
617
   * <!-- begin-user-doc -->
618
   * <!-- end-user-doc -->
619
   * @return the meta object for the attribute '<em>AByte</em>'.
620
   * @see org.eclipse.emf.test.models.types.AThing#getAByte()
621
   * @see #getAThing()
622
   * @generated
623
   */
624
  public EAttribute getAThing_AByte()
625
  {
626
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(1);
627
  }
628
629
  /**
630
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}'.
631
   * <!-- begin-user-doc -->
632
   * <!-- end-user-doc -->
633
   * @return the meta object for the attribute '<em>ADecimal</em>'.
634
   * @see org.eclipse.emf.test.models.types.AThing#getADecimal()
635
   * @see #getAThing()
636
   * @generated
637
   */
638
  public EAttribute getAThing_ADecimal()
639
  {
640
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(2);
641
  }
642
643
  /**
644
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}'.
645
   * <!-- begin-user-doc -->
646
   * <!-- end-user-doc -->
647
   * @return the meta object for the attribute '<em>AFloat</em>'.
648
   * @see org.eclipse.emf.test.models.types.AThing#getAFloat()
649
   * @see #getAThing()
650
   * @generated
651
   */
652
  public EAttribute getAThing_AFloat()
653
  {
654
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(3);
655
  }
656
657
  /**
658
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}'.
659
   * <!-- begin-user-doc -->
660
   * <!-- end-user-doc -->
661
   * @return the meta object for the attribute '<em>ADouble</em>'.
662
   * @see org.eclipse.emf.test.models.types.AThing#getADouble()
663
   * @see #getAThing()
664
   * @generated
665
   */
666
  public EAttribute getAThing_ADouble()
667
  {
668
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(4);
669
  }
670
671
  /**
672
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}'.
673
   * <!-- begin-user-doc -->
674
   * <!-- end-user-doc -->
675
   * @return the meta object for the attribute '<em>AInt</em>'.
676
   * @see org.eclipse.emf.test.models.types.AThing#getAInt()
677
   * @see #getAThing()
678
   * @generated
679
   */
680
  public EAttribute getAThing_AInt()
681
  {
682
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(5);
683
  }
684
685
  /**
686
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}'.
687
   * <!-- begin-user-doc -->
688
   * <!-- end-user-doc -->
689
   * @return the meta object for the attribute '<em>AInteger</em>'.
690
   * @see org.eclipse.emf.test.models.types.AThing#getAInteger()
691
   * @see #getAThing()
692
   * @generated
693
   */
694
  public EAttribute getAThing_AInteger()
695
  {
696
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(6);
697
  }
698
699
  /**
700
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}'.
701
   * <!-- begin-user-doc -->
702
   * <!-- end-user-doc -->
703
   * @return the meta object for the attribute '<em>ALong</em>'.
704
   * @see org.eclipse.emf.test.models.types.AThing#getALong()
705
   * @see #getAThing()
706
   * @generated
707
   */
708
  public EAttribute getAThing_ALong()
709
  {
710
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(7);
711
  }
712
713
  /**
714
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}'.
715
   * <!-- begin-user-doc -->
716
   * <!-- end-user-doc -->
717
   * @return the meta object for the attribute '<em>AShort</em>'.
718
   * @see org.eclipse.emf.test.models.types.AThing#getAShort()
719
   * @see #getAThing()
720
   * @generated
721
   */
722
  public EAttribute getAThing_AShort()
723
  {
724
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(8);
725
  }
726
727
  /**
728
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}'.
729
   * <!-- begin-user-doc -->
730
   * <!-- end-user-doc -->
731
   * @return the meta object for the attribute '<em>AString</em>'.
732
   * @see org.eclipse.emf.test.models.types.AThing#getAString()
733
   * @see #getAThing()
734
   * @generated
735
   */
736
  public EAttribute getAThing_AString()
737
  {
738
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(9);
739
  }
740
741
  /**
742
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}'.
743
   * <!-- begin-user-doc -->
744
   * <!-- end-user-doc -->
745
   * @return the meta object for the attribute '<em>AChar</em>'.
746
   * @see org.eclipse.emf.test.models.types.AThing#getAChar()
747
   * @see #getAThing()
748
   * @generated
749
   */
750
  public EAttribute getAThing_AChar()
751
  {
752
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(10);
753
  }
754
755
  /**
756
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}'.
757
   * <!-- begin-user-doc -->
758
   * <!-- end-user-doc -->
759
   * @return the meta object for the attribute '<em>ADate</em>'.
760
   * @see org.eclipse.emf.test.models.types.AThing#getADate()
761
   * @see #getAThing()
762
   * @generated
763
   */
764
  public EAttribute getAThing_ADate()
765
  {
766
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(11);
767
  }
768
769
  /**
770
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}'.
771
   * <!-- begin-user-doc -->
772
   * <!-- end-user-doc -->
773
   * @return the meta object for the attribute '<em>ABytes</em>'.
774
   * @see org.eclipse.emf.test.models.types.AThing#getABytes()
775
   * @see #getAThing()
776
   * @generated
777
   */
778
  public EAttribute getAThing_ABytes()
779
  {
780
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(12);
781
  }
782
783
  /**
784
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}'.
785
   * <!-- begin-user-doc -->
786
   * <!-- end-user-doc -->
787
   * @return the meta object for the attribute '<em>ANumber</em>'.
788
   * @see org.eclipse.emf.test.models.types.AThing#getANumber()
789
   * @see #getAThing()
790
   * @generated
791
   */
792
  public EAttribute getAThing_ANumber()
793
  {
794
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(13);
795
  }
796
797
  /**
798
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}'.
799
   * <!-- begin-user-doc -->
800
   * <!-- end-user-doc -->
801
   * @return the meta object for the attribute '<em>AObject</em>'.
802
   * @see org.eclipse.emf.test.models.types.AThing#getAObject()
803
   * @see #getAThing()
804
   * @generated
805
   */
806
  public EAttribute getAThing_AObject()
807
  {
808
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(14);
809
  }
810
811
  /**
812
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}'.
813
   * <!-- begin-user-doc -->
814
   * <!-- end-user-doc -->
815
   * @return the meta object for the attribute '<em>AThread</em>'.
816
   * @see org.eclipse.emf.test.models.types.AThing#getAThread()
817
   * @see #getAThing()
818
   * @generated
819
   */
820
  public EAttribute getAThing_AThread()
821
  {
822
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(15);
823
  }
824
825
  /**
826
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyBoolean <em>Many Boolean</em>}'.
827
   * <!-- begin-user-doc -->
828
   * <!-- end-user-doc -->
829
   * @return the meta object for the attribute list '<em>Many Boolean</em>'.
830
   * @see org.eclipse.emf.test.models.types.AThing#getManyBoolean()
831
   * @see #getAThing()
832
   * @generated
833
   */
834
  public EAttribute getAThing_ManyBoolean()
835
  {
836
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(16);
837
  }
838
839
  /**
840
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyByte <em>Many Byte</em>}'.
841
   * <!-- begin-user-doc -->
842
   * <!-- end-user-doc -->
843
   * @return the meta object for the attribute list '<em>Many Byte</em>'.
844
   * @see org.eclipse.emf.test.models.types.AThing#getManyByte()
845
   * @see #getAThing()
846
   * @generated
847
   */
848
  public EAttribute getAThing_ManyByte()
849
  {
850
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(17);
851
  }
852
853
  /**
854
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDecimal <em>Many Decimal</em>}'.
855
   * <!-- begin-user-doc -->
856
   * <!-- end-user-doc -->
857
   * @return the meta object for the attribute list '<em>Many Decimal</em>'.
858
   * @see org.eclipse.emf.test.models.types.AThing#getManyDecimal()
859
   * @see #getAThing()
860
   * @generated
861
   */
862
  public EAttribute getAThing_ManyDecimal()
863
  {
864
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(18);
865
  }
866
867
  /**
868
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyFloat <em>Many Float</em>}'.
869
   * <!-- begin-user-doc -->
870
   * <!-- end-user-doc -->
871
   * @return the meta object for the attribute list '<em>Many Float</em>'.
872
   * @see org.eclipse.emf.test.models.types.AThing#getManyFloat()
873
   * @see #getAThing()
874
   * @generated
875
   */
876
  public EAttribute getAThing_ManyFloat()
877
  {
878
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(19);
879
  }
880
881
  /**
882
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDouble <em>Many Double</em>}'.
883
   * <!-- begin-user-doc -->
884
   * <!-- end-user-doc -->
885
   * @return the meta object for the attribute list '<em>Many Double</em>'.
886
   * @see org.eclipse.emf.test.models.types.AThing#getManyDouble()
887
   * @see #getAThing()
888
   * @generated
889
   */
890
  public EAttribute getAThing_ManyDouble()
891
  {
892
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(20);
893
  }
894
895
  /**
896
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyInt <em>Many Int</em>}'.
897
   * <!-- begin-user-doc -->
898
   * <!-- end-user-doc -->
899
   * @return the meta object for the attribute list '<em>Many Int</em>'.
900
   * @see org.eclipse.emf.test.models.types.AThing#getManyInt()
901
   * @see #getAThing()
902
   * @generated
903
   */
904
  public EAttribute getAThing_ManyInt()
905
  {
906
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(21);
907
  }
908
909
  /**
910
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyInteger <em>Many Integer</em>}'.
911
   * <!-- begin-user-doc -->
912
   * <!-- end-user-doc -->
913
   * @return the meta object for the attribute list '<em>Many Integer</em>'.
914
   * @see org.eclipse.emf.test.models.types.AThing#getManyInteger()
915
   * @see #getAThing()
916
   * @generated
917
   */
918
  public EAttribute getAThing_ManyInteger()
919
  {
920
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(22);
921
  }
922
923
  /**
924
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyLong <em>Many Long</em>}'.
925
   * <!-- begin-user-doc -->
926
   * <!-- end-user-doc -->
927
   * @return the meta object for the attribute list '<em>Many Long</em>'.
928
   * @see org.eclipse.emf.test.models.types.AThing#getManyLong()
929
   * @see #getAThing()
930
   * @generated
931
   */
932
  public EAttribute getAThing_ManyLong()
933
  {
934
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(23);
935
  }
936
937
  /**
938
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyShort <em>Many Short</em>}'.
939
   * <!-- begin-user-doc -->
940
   * <!-- end-user-doc -->
941
   * @return the meta object for the attribute list '<em>Many Short</em>'.
942
   * @see org.eclipse.emf.test.models.types.AThing#getManyShort()
943
   * @see #getAThing()
944
   * @generated
945
   */
946
  public EAttribute getAThing_ManyShort()
947
  {
948
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(24);
949
  }
950
951
  /**
952
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyString <em>Many String</em>}'.
953
   * <!-- begin-user-doc -->
954
   * <!-- end-user-doc -->
955
   * @return the meta object for the attribute list '<em>Many String</em>'.
956
   * @see org.eclipse.emf.test.models.types.AThing#getManyString()
957
   * @see #getAThing()
958
   * @generated
959
   */
960
  public EAttribute getAThing_ManyString()
961
  {
962
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(25);
963
  }
964
965
  /**
966
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyChar <em>Many Char</em>}'.
967
   * <!-- begin-user-doc -->
968
   * <!-- end-user-doc -->
969
   * @return the meta object for the attribute list '<em>Many Char</em>'.
970
   * @see org.eclipse.emf.test.models.types.AThing#getManyChar()
971
   * @see #getAThing()
972
   * @generated
973
   */
974
  public EAttribute getAThing_ManyChar()
975
  {
976
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(26);
977
  }
978
979
  /**
980
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDate <em>Many Date</em>}'.
981
   * <!-- begin-user-doc -->
982
   * <!-- end-user-doc -->
983
   * @return the meta object for the attribute list '<em>Many Date</em>'.
984
   * @see org.eclipse.emf.test.models.types.AThing#getManyDate()
985
   * @see #getAThing()
986
   * @generated
987
   */
988
  public EAttribute getAThing_ManyDate()
989
  {
990
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(27);
991
  }
992
993
  /**
994
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyBytes <em>Many Bytes</em>}'.
995
   * <!-- begin-user-doc -->
996
   * <!-- end-user-doc -->
997
   * @return the meta object for the attribute list '<em>Many Bytes</em>'.
998
   * @see org.eclipse.emf.test.models.types.AThing#getManyBytes()
999
   * @see #getAThing()
1000
   * @generated
1001
   */
1002
  public EAttribute getAThing_ManyBytes()
1003
  {
1004
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(28);
1005
  }
1006
1007
  /**
1008
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyNumber <em>Many Number</em>}'.
1009
   * <!-- begin-user-doc -->
1010
   * <!-- end-user-doc -->
1011
   * @return the meta object for the attribute list '<em>Many Number</em>'.
1012
   * @see org.eclipse.emf.test.models.types.AThing#getManyNumber()
1013
   * @see #getAThing()
1014
   * @generated
1015
   */
1016
  public EAttribute getAThing_ManyNumber()
1017
  {
1018
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(29);
1019
  }
1020
1021
  /**
1022
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyObject <em>Many Object</em>}'.
1023
   * <!-- begin-user-doc -->
1024
   * <!-- end-user-doc -->
1025
   * @return the meta object for the attribute list '<em>Many Object</em>'.
1026
   * @see org.eclipse.emf.test.models.types.AThing#getManyObject()
1027
   * @see #getAThing()
1028
   * @generated
1029
   */
1030
  public EAttribute getAThing_ManyObject()
1031
  {
1032
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(30);
1033
  }
1034
1035
  /**
1036
   * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyThread <em>Many Thread</em>}'.
1037
   * <!-- begin-user-doc -->
1038
   * <!-- end-user-doc -->
1039
   * @return the meta object for the attribute list '<em>Many Thread</em>'.
1040
   * @see org.eclipse.emf.test.models.types.AThing#getManyThread()
1041
   * @see #getAThing()
1042
   * @generated
1043
   */
1044
  public EAttribute getAThing_ManyThread()
1045
  {
1046
    return (EAttribute)aThingEClass.getEStructuralFeatures().get(31);
1047
  }
1048
1049
  /**
1050
   * Returns the meta object for data type '<em>My Bytes</em>'.
1051
   * <!-- begin-user-doc -->
1052
   * <!-- end-user-doc -->
1053
   * @return the meta object for data type '<em>My Bytes</em>'.
1054
   * @model instanceClass="byte[]"
1055
   *        extendedMetaData="name='myBytes'"
1056
   * @generated
1057
   */
1058
  public EDataType getMyBytes()
1059
  {
1060
    return myBytesEDataType;
1061
  }
1062
1063
  /**
1064
   * Returns the meta object for data type '<em>My Char</em>'.
1065
   * <!-- begin-user-doc -->
1066
   * <!-- end-user-doc -->
1067
   * @return the meta object for data type '<em>My Char</em>'.
1068
   * @model instanceClass="char"
1069
   *        extendedMetaData="name='myChar'"
1070
   * @generated
1071
   */
1072
  public EDataType getMyChar()
1073
  {
1074
    return myCharEDataType;
1075
  }
1076
1077
  /**
1078
   * Returns the meta object for data type '{@link java.lang.Character <em>My Char Object</em>}'.
1079
   * <!-- begin-user-doc -->
1080
   * <!-- end-user-doc -->
1081
   * @return the meta object for data type '<em>My Char Object</em>'.
1082
   * @see java.lang.Character
1083
   * @model instanceClass="java.lang.Character"
1084
   *        extendedMetaData="name='myChar:Object' baseType='myChar'"
1085
   * @generated
1086
   */
1087
  public EDataType getMyCharObject()
1088
  {
1089
    return myCharObjectEDataType;
1090
  }
1091
1092
  /**
1093
   * Returns the meta object for data type '{@link java.util.Date <em>My Date</em>}'.
1094
   * <!-- begin-user-doc -->
1095
   * <!-- end-user-doc -->
1096
   * @return the meta object for data type '<em>My Date</em>'.
1097
   * @see java.util.Date
1098
   * @model instanceClass="java.util.Date"
1099
   *        extendedMetaData="name='myDate'"
1100
   * @generated
1101
   */
1102
  public EDataType getMyDate()
1103
  {
1104
    return myDateEDataType;
1105
  }
1106
1107
  /**
1108
   * Returns the meta object for data type '{@link java.lang.Number <em>My Number</em>}'.
1109
   * <!-- begin-user-doc -->
1110
   * <!-- end-user-doc -->
1111
   * @return the meta object for data type '<em>My Number</em>'.
1112
   * @see java.lang.Number
1113
   * @model instanceClass="java.lang.Number"
1114
   *        extendedMetaData="name='myNumber'"
1115
   * @generated
1116
   */
1117
  public EDataType getMyNumber()
1118
  {
1119
    return myNumberEDataType;
1120
  }
1121
1122
  /**
1123
   * Returns the meta object for data type '{@link java.lang.Object <em>My Object</em>}'.
1124
   * <!-- begin-user-doc -->
1125
   * <!-- end-user-doc -->
1126
   * @return the meta object for data type '<em>My Object</em>'.
1127
   * @see java.lang.Object
1128
   * @model instanceClass="java.lang.Object"
1129
   *        extendedMetaData="name='myObject'"
1130
   * @generated
1131
   */
1132
  public EDataType getMyObject()
1133
  {
1134
    return myObjectEDataType;
1135
  }
1136
1137
  /**
1138
   * Returns the meta object for data type '{@link java.lang.Thread <em>My Thread</em>}'.
1139
   * <!-- begin-user-doc -->
1140
   * <!-- end-user-doc -->
1141
   * @return the meta object for data type '<em>My Thread</em>'.
1142
   * @see java.lang.Thread
1143
   * @model instanceClass="java.lang.Thread"
1144
   *        extendedMetaData="name='myThread'"
1145
   * @generated
1146
   */
1147
  public EDataType getMyThread()
1148
  {
1149
    return myThreadEDataType;
1150
  }
1151
1152
  /**
1153
   * Returns the factory that creates the instances of the model.
1154
   * <!-- begin-user-doc -->
1155
   * <!-- end-user-doc -->
1156
   * @return the factory that creates the instances of the model.
1157
   * @generated
1158
   */
1159
  public TypesFactory getTypesFactory()
1160
  {
1161
    return (TypesFactory)getEFactoryInstance();
1162
  }
1163
1164
  /**
1165
   * <!-- begin-user-doc -->
1166
   * <!-- end-user-doc -->
1167
   * @generated
1168
   */
1169
  private boolean isCreated = false;
1170
1171
  /**
1172
   * Creates the meta-model objects for the package.  This method is
1173
   * guarded to have no affect on any invocation but its first.
1174
   * <!-- begin-user-doc -->
1175
   * <!-- end-user-doc -->
1176
   * @generated
1177
   */
1178
  public void createPackageContents()
1179
  {
1180
    if (isCreated) return;
1181
    isCreated = true;
1182
1183
    // Create classes and their features
1184
    aThingEClass = createEClass(ATHING);
1185
    createEAttribute(aThingEClass, ATHING__ABOOLEAN);
1186
    createEAttribute(aThingEClass, ATHING__ABYTE);
1187
    createEAttribute(aThingEClass, ATHING__ADECIMAL);
1188
    createEAttribute(aThingEClass, ATHING__AFLOAT);
1189
    createEAttribute(aThingEClass, ATHING__ADOUBLE);
1190
    createEAttribute(aThingEClass, ATHING__AINT);
1191
    createEAttribute(aThingEClass, ATHING__AINTEGER);
1192
    createEAttribute(aThingEClass, ATHING__ALONG);
1193
    createEAttribute(aThingEClass, ATHING__ASHORT);
1194
    createEAttribute(aThingEClass, ATHING__ASTRING);
1195
    createEAttribute(aThingEClass, ATHING__ACHAR);
1196
    createEAttribute(aThingEClass, ATHING__ADATE);
1197
    createEAttribute(aThingEClass, ATHING__ABYTES);
1198
    createEAttribute(aThingEClass, ATHING__ANUMBER);
1199
    createEAttribute(aThingEClass, ATHING__AOBJECT);
1200
    createEAttribute(aThingEClass, ATHING__ATHREAD);
1201
    createEAttribute(aThingEClass, ATHING__MANY_BOOLEAN);
1202
    createEAttribute(aThingEClass, ATHING__MANY_BYTE);
1203
    createEAttribute(aThingEClass, ATHING__MANY_DECIMAL);
1204
    createEAttribute(aThingEClass, ATHING__MANY_FLOAT);
1205
    createEAttribute(aThingEClass, ATHING__MANY_DOUBLE);
1206
    createEAttribute(aThingEClass, ATHING__MANY_INT);
1207
    createEAttribute(aThingEClass, ATHING__MANY_INTEGER);
1208
    createEAttribute(aThingEClass, ATHING__MANY_LONG);
1209
    createEAttribute(aThingEClass, ATHING__MANY_SHORT);
1210
    createEAttribute(aThingEClass, ATHING__MANY_STRING);
1211
    createEAttribute(aThingEClass, ATHING__MANY_CHAR);
1212
    createEAttribute(aThingEClass, ATHING__MANY_DATE);
1213
    createEAttribute(aThingEClass, ATHING__MANY_BYTES);
1214
    createEAttribute(aThingEClass, ATHING__MANY_NUMBER);
1215
    createEAttribute(aThingEClass, ATHING__MANY_OBJECT);
1216
    createEAttribute(aThingEClass, ATHING__MANY_THREAD);
1217
1218
    // Create data types
1219
    myBytesEDataType = createEDataType(MY_BYTES);
1220
    myCharEDataType = createEDataType(MY_CHAR);
1221
    myCharObjectEDataType = createEDataType(MY_CHAR_OBJECT);
1222
    myDateEDataType = createEDataType(MY_DATE);
1223
    myNumberEDataType = createEDataType(MY_NUMBER);
1224
    myObjectEDataType = createEDataType(MY_OBJECT);
1225
    myThreadEDataType = createEDataType(MY_THREAD);
1226
  }
1227
1228
  /**
1229
   * <!-- begin-user-doc -->
1230
   * <!-- end-user-doc -->
1231
   * @generated
1232
   */
1233
  private boolean isInitialized = false;
1234
1235
  /**
1236
   * Complete the initialization of the package and its meta-model.  This
1237
   * method is guarded to have no affect on any invocation but its first.
1238
   * <!-- begin-user-doc -->
1239
   * <!-- end-user-doc -->
1240
   * @generated
1241
   */
1242
  public void initializePackageContents()
1243
  {
1244
    if (isInitialized) return;
1245
    isInitialized = true;
1246
1247
    // Initialize package
1248
    setName(eNAME);
1249
    setNsPrefix(eNS_PREFIX);
1250
    setNsURI(eNS_URI);
1251
1252
    // Obtain other dependent packages
1253
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
1254
1255
    // Create type parameters
1256
1257
    // Set bounds for type parameters
1258
1259
    // Add supertypes to classes
1260
1261
    // Initialize classes and features; add operations and parameters
1262
    initEClass(aThingEClass, AThing.class, "AThing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1263
    initEAttribute(getAThing_ABoolean(), theXMLTypePackage.getBoolean(), "aBoolean", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1264
    initEAttribute(getAThing_AByte(), theXMLTypePackage.getByte(), "aByte", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1265
    initEAttribute(getAThing_ADecimal(), theXMLTypePackage.getDecimal(), "aDecimal", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1266
    initEAttribute(getAThing_AFloat(), theXMLTypePackage.getFloat(), "aFloat", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1267
    initEAttribute(getAThing_ADouble(), theXMLTypePackage.getDouble(), "aDouble", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1268
    initEAttribute(getAThing_AInt(), theXMLTypePackage.getInt(), "aInt", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1269
    initEAttribute(getAThing_AInteger(), theXMLTypePackage.getInteger(), "aInteger", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1270
    initEAttribute(getAThing_ALong(), theXMLTypePackage.getLong(), "aLong", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1271
    initEAttribute(getAThing_AShort(), theXMLTypePackage.getShort(), "aShort", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1272
    initEAttribute(getAThing_AString(), theXMLTypePackage.getString(), "aString", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1273
    initEAttribute(getAThing_AChar(), this.getMyChar(), "aChar", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1274
    initEAttribute(getAThing_ADate(), this.getMyDate(), "aDate", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1275
    initEAttribute(getAThing_ABytes(), this.getMyBytes(), "aBytes", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1276
    initEAttribute(getAThing_ANumber(), this.getMyNumber(), "aNumber", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1277
    initEAttribute(getAThing_AObject(), this.getMyObject(), "aObject", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1278
    initEAttribute(getAThing_AThread(), this.getMyThread(), "aThread", null, 1, 1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1279
    initEAttribute(getAThing_ManyBoolean(), theXMLTypePackage.getBoolean(), "manyBoolean", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1280
    initEAttribute(getAThing_ManyByte(), theXMLTypePackage.getByte(), "manyByte", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1281
    initEAttribute(getAThing_ManyDecimal(), theXMLTypePackage.getDecimal(), "manyDecimal", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1282
    initEAttribute(getAThing_ManyFloat(), theXMLTypePackage.getFloat(), "manyFloat", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1283
    initEAttribute(getAThing_ManyDouble(), theXMLTypePackage.getDouble(), "manyDouble", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1284
    initEAttribute(getAThing_ManyInt(), theXMLTypePackage.getInt(), "manyInt", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1285
    initEAttribute(getAThing_ManyInteger(), theXMLTypePackage.getInteger(), "manyInteger", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1286
    initEAttribute(getAThing_ManyLong(), theXMLTypePackage.getLong(), "manyLong", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1287
    initEAttribute(getAThing_ManyShort(), theXMLTypePackage.getShort(), "manyShort", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1288
    initEAttribute(getAThing_ManyString(), theXMLTypePackage.getString(), "manyString", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1289
    initEAttribute(getAThing_ManyChar(), this.getMyChar(), "manyChar", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1290
    initEAttribute(getAThing_ManyDate(), this.getMyDate(), "manyDate", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1291
    initEAttribute(getAThing_ManyBytes(), this.getMyBytes(), "manyBytes", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1292
    initEAttribute(getAThing_ManyNumber(), this.getMyNumber(), "manyNumber", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1293
    initEAttribute(getAThing_ManyObject(), this.getMyObject(), "manyObject", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1294
    initEAttribute(getAThing_ManyThread(), this.getMyThread(), "manyThread", null, 1, -1, AThing.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1295
1296
    // Initialize data types
1297
    initEDataType(myBytesEDataType, byte[].class, "MyBytes", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1298
    initEDataType(myCharEDataType, char.class, "MyChar", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1299
    initEDataType(myCharObjectEDataType, Character.class, "MyCharObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1300
    initEDataType(myDateEDataType, Date.class, "MyDate", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1301
    initEDataType(myNumberEDataType, Number.class, "MyNumber", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1302
    initEDataType(myObjectEDataType, Object.class, "MyObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1303
    initEDataType(myThreadEDataType, Thread.class, "MyThread", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
1304
1305
    // Create resource
1306
    createResource(eNS_URI);
1307
1308
    // Create annotations
1309
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
1310
    createExtendedMetaDataAnnotations();
1311
  }
1312
1313
  /**
1314
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
1315
   * <!-- begin-user-doc -->
1316
   * <!-- end-user-doc -->
1317
   * @generated
1318
   */
1319
  protected void createExtendedMetaDataAnnotations()
1320
  {
1321
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
1322
    addAnnotation
1323
      (aThingEClass, 
1324
       source, 
1325
       new String[] 
1326
       {
1327
       "name", "AThing",
1328
       "kind", "elementOnly"
1329
       });		
1330
    addAnnotation
1331
      (getAThing_ABoolean(), 
1332
       source, 
1333
       new String[] 
1334
       {
1335
       "kind", "element",
1336
       "name", "aBoolean"
1337
       });		
1338
    addAnnotation
1339
      (getAThing_AByte(), 
1340
       source, 
1341
       new String[] 
1342
       {
1343
       "kind", "element",
1344
       "name", "aByte"
1345
       });		
1346
    addAnnotation
1347
      (getAThing_ADecimal(), 
1348
       source, 
1349
       new String[] 
1350
       {
1351
       "kind", "element",
1352
       "name", "aDecimal"
1353
       });		
1354
    addAnnotation
1355
      (getAThing_AFloat(), 
1356
       source, 
1357
       new String[] 
1358
       {
1359
       "kind", "element",
1360
       "name", "aFloat"
1361
       });		
1362
    addAnnotation
1363
      (getAThing_ADouble(), 
1364
       source, 
1365
       new String[] 
1366
       {
1367
       "kind", "element",
1368
       "name", "aDouble"
1369
       });		
1370
    addAnnotation
1371
      (getAThing_AInt(), 
1372
       source, 
1373
       new String[] 
1374
       {
1375
       "kind", "element",
1376
       "name", "aInt"
1377
       });		
1378
    addAnnotation
1379
      (getAThing_AInteger(), 
1380
       source, 
1381
       new String[] 
1382
       {
1383
       "kind", "element",
1384
       "name", "aInteger"
1385
       });		
1386
    addAnnotation
1387
      (getAThing_ALong(), 
1388
       source, 
1389
       new String[] 
1390
       {
1391
       "kind", "element",
1392
       "name", "aLong"
1393
       });		
1394
    addAnnotation
1395
      (getAThing_AShort(), 
1396
       source, 
1397
       new String[] 
1398
       {
1399
       "kind", "element",
1400
       "name", "aShort"
1401
       });		
1402
    addAnnotation
1403
      (getAThing_AString(), 
1404
       source, 
1405
       new String[] 
1406
       {
1407
       "kind", "element",
1408
       "name", "aString"
1409
       });		
1410
    addAnnotation
1411
      (getAThing_AChar(), 
1412
       source, 
1413
       new String[] 
1414
       {
1415
       "kind", "element",
1416
       "name", "aChar"
1417
       });		
1418
    addAnnotation
1419
      (getAThing_ADate(), 
1420
       source, 
1421
       new String[] 
1422
       {
1423
       "kind", "element",
1424
       "name", "aDate"
1425
       });		
1426
    addAnnotation
1427
      (getAThing_ABytes(), 
1428
       source, 
1429
       new String[] 
1430
       {
1431
       "kind", "element",
1432
       "name", "aBytes"
1433
       });		
1434
    addAnnotation
1435
      (getAThing_ANumber(), 
1436
       source, 
1437
       new String[] 
1438
       {
1439
       "kind", "element",
1440
       "name", "aNumber"
1441
       });		
1442
    addAnnotation
1443
      (getAThing_AObject(), 
1444
       source, 
1445
       new String[] 
1446
       {
1447
       "kind", "element",
1448
       "name", "aObject"
1449
       });		
1450
    addAnnotation
1451
      (getAThing_AThread(), 
1452
       source, 
1453
       new String[] 
1454
       {
1455
       "kind", "element",
1456
       "name", "aThread"
1457
       });		
1458
    addAnnotation
1459
      (getAThing_ManyBoolean(), 
1460
       source, 
1461
       new String[] 
1462
       {
1463
       "kind", "element",
1464
       "name", "manyBoolean"
1465
       });		
1466
    addAnnotation
1467
      (getAThing_ManyByte(), 
1468
       source, 
1469
       new String[] 
1470
       {
1471
       "kind", "element",
1472
       "name", "manyByte"
1473
       });		
1474
    addAnnotation
1475
      (getAThing_ManyDecimal(), 
1476
       source, 
1477
       new String[] 
1478
       {
1479
       "kind", "element",
1480
       "name", "manyDecimal"
1481
       });		
1482
    addAnnotation
1483
      (getAThing_ManyFloat(), 
1484
       source, 
1485
       new String[] 
1486
       {
1487
       "kind", "element",
1488
       "name", "manyFloat"
1489
       });		
1490
    addAnnotation
1491
      (getAThing_ManyDouble(), 
1492
       source, 
1493
       new String[] 
1494
       {
1495
       "kind", "element",
1496
       "name", "manyDouble"
1497
       });		
1498
    addAnnotation
1499
      (getAThing_ManyInt(), 
1500
       source, 
1501
       new String[] 
1502
       {
1503
       "kind", "element",
1504
       "name", "manyInt"
1505
       });		
1506
    addAnnotation
1507
      (getAThing_ManyInteger(), 
1508
       source, 
1509
       new String[] 
1510
       {
1511
       "kind", "element",
1512
       "name", "manyInteger"
1513
       });		
1514
    addAnnotation
1515
      (getAThing_ManyLong(), 
1516
       source, 
1517
       new String[] 
1518
       {
1519
       "kind", "element",
1520
       "name", "manyLong"
1521
       });		
1522
    addAnnotation
1523
      (getAThing_ManyShort(), 
1524
       source, 
1525
       new String[] 
1526
       {
1527
       "kind", "element",
1528
       "name", "manyShort"
1529
       });		
1530
    addAnnotation
1531
      (getAThing_ManyString(), 
1532
       source, 
1533
       new String[] 
1534
       {
1535
       "kind", "element",
1536
       "name", "manyString"
1537
       });		
1538
    addAnnotation
1539
      (getAThing_ManyChar(), 
1540
       source, 
1541
       new String[] 
1542
       {
1543
       "kind", "element",
1544
       "name", "manyChar"
1545
       });		
1546
    addAnnotation
1547
      (getAThing_ManyDate(), 
1548
       source, 
1549
       new String[] 
1550
       {
1551
       "kind", "element",
1552
       "name", "manyDate"
1553
       });		
1554
    addAnnotation
1555
      (getAThing_ManyBytes(), 
1556
       source, 
1557
       new String[] 
1558
       {
1559
       "kind", "element",
1560
       "name", "manyBytes"
1561
       });		
1562
    addAnnotation
1563
      (getAThing_ManyNumber(), 
1564
       source, 
1565
       new String[] 
1566
       {
1567
       "kind", "element",
1568
       "name", "manyNumber"
1569
       });		
1570
    addAnnotation
1571
      (getAThing_ManyObject(), 
1572
       source, 
1573
       new String[] 
1574
       {
1575
       "kind", "element",
1576
       "name", "manyObject"
1577
       });		
1578
    addAnnotation
1579
      (getAThing_ManyThread(), 
1580
       source, 
1581
       new String[] 
1582
       {
1583
       "kind", "element",
1584
       "name", "manyThread"
1585
       });		
1586
    addAnnotation
1587
      (myBytesEDataType, 
1588
       source, 
1589
       new String[] 
1590
       {
1591
       "name", "myBytes"
1592
       });		
1593
    addAnnotation
1594
      (myCharEDataType, 
1595
       source, 
1596
       new String[] 
1597
       {
1598
       "name", "myChar"
1599
       });		
1600
    addAnnotation
1601
      (myCharObjectEDataType, 
1602
       source, 
1603
       new String[] 
1604
       {
1605
       "name", "myChar:Object",
1606
       "baseType", "myChar"
1607
       });		
1608
    addAnnotation
1609
      (myDateEDataType, 
1610
       source, 
1611
       new String[] 
1612
       {
1613
       "name", "myDate"
1614
       });		
1615
    addAnnotation
1616
      (myNumberEDataType, 
1617
       source, 
1618
       new String[] 
1619
       {
1620
       "name", "myNumber"
1621
       });		
1622
    addAnnotation
1623
      (myObjectEDataType, 
1624
       source, 
1625
       new String[] 
1626
       {
1627
       "name", "myObject"
1628
       });		
1629
    addAnnotation
1630
      (myThreadEDataType, 
1631
       source, 
1632
       new String[] 
1633
       {
1634
       "name", "myThread"
1635
       });
1636
  }
1637
1638
  /**
1639
   * <!-- begin-user-doc -->
1640
   * Defines literals for the meta objects that represent
1641
   * <ul>
1642
   *   <li>each class,</li>
1643
   *   <li>each feature of each class,</li>
1644
   *   <li>each enum,</li>
1645
   *   <li>and each data type</li>
1646
   * </ul>
1647
   * <!-- end-user-doc -->
1648
   * @generated
1649
   */
1650
  public interface Literals
1651
  {
1652
    /**
1653
     * The meta object literal for the '{@link org.eclipse.emf.test.models.types.impl.AThingImpl <em>AThing</em>}' class.
1654
     * <!-- begin-user-doc -->
1655
     * <!-- end-user-doc -->
1656
     * @see org.eclipse.emf.test.models.types.impl.AThingImpl
1657
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getAThing()
1658
     * @generated
1659
     */
1660
    public static final EClass ATHING = eINSTANCE.getAThing();
1661
1662
    /**
1663
     * The meta object literal for the '<em><b>ABoolean</b></em>' attribute feature.
1664
     * <!-- begin-user-doc -->
1665
     * <!-- end-user-doc -->
1666
     * @generated
1667
     */
1668
    public static final EAttribute ATHING__ABOOLEAN = eINSTANCE.getAThing_ABoolean();
1669
1670
    /**
1671
     * The meta object literal for the '<em><b>AByte</b></em>' attribute feature.
1672
     * <!-- begin-user-doc -->
1673
     * <!-- end-user-doc -->
1674
     * @generated
1675
     */
1676
    public static final EAttribute ATHING__ABYTE = eINSTANCE.getAThing_AByte();
1677
1678
    /**
1679
     * The meta object literal for the '<em><b>ADecimal</b></em>' attribute feature.
1680
     * <!-- begin-user-doc -->
1681
     * <!-- end-user-doc -->
1682
     * @generated
1683
     */
1684
    public static final EAttribute ATHING__ADECIMAL = eINSTANCE.getAThing_ADecimal();
1685
1686
    /**
1687
     * The meta object literal for the '<em><b>AFloat</b></em>' attribute feature.
1688
     * <!-- begin-user-doc -->
1689
     * <!-- end-user-doc -->
1690
     * @generated
1691
     */
1692
    public static final EAttribute ATHING__AFLOAT = eINSTANCE.getAThing_AFloat();
1693
1694
    /**
1695
     * The meta object literal for the '<em><b>ADouble</b></em>' attribute feature.
1696
     * <!-- begin-user-doc -->
1697
     * <!-- end-user-doc -->
1698
     * @generated
1699
     */
1700
    public static final EAttribute ATHING__ADOUBLE = eINSTANCE.getAThing_ADouble();
1701
1702
    /**
1703
     * The meta object literal for the '<em><b>AInt</b></em>' attribute feature.
1704
     * <!-- begin-user-doc -->
1705
     * <!-- end-user-doc -->
1706
     * @generated
1707
     */
1708
    public static final EAttribute ATHING__AINT = eINSTANCE.getAThing_AInt();
1709
1710
    /**
1711
     * The meta object literal for the '<em><b>AInteger</b></em>' attribute feature.
1712
     * <!-- begin-user-doc -->
1713
     * <!-- end-user-doc -->
1714
     * @generated
1715
     */
1716
    public static final EAttribute ATHING__AINTEGER = eINSTANCE.getAThing_AInteger();
1717
1718
    /**
1719
     * The meta object literal for the '<em><b>ALong</b></em>' attribute feature.
1720
     * <!-- begin-user-doc -->
1721
     * <!-- end-user-doc -->
1722
     * @generated
1723
     */
1724
    public static final EAttribute ATHING__ALONG = eINSTANCE.getAThing_ALong();
1725
1726
    /**
1727
     * The meta object literal for the '<em><b>AShort</b></em>' attribute feature.
1728
     * <!-- begin-user-doc -->
1729
     * <!-- end-user-doc -->
1730
     * @generated
1731
     */
1732
    public static final EAttribute ATHING__ASHORT = eINSTANCE.getAThing_AShort();
1733
1734
    /**
1735
     * The meta object literal for the '<em><b>AString</b></em>' attribute feature.
1736
     * <!-- begin-user-doc -->
1737
     * <!-- end-user-doc -->
1738
     * @generated
1739
     */
1740
    public static final EAttribute ATHING__ASTRING = eINSTANCE.getAThing_AString();
1741
1742
    /**
1743
     * The meta object literal for the '<em><b>AChar</b></em>' attribute feature.
1744
     * <!-- begin-user-doc -->
1745
     * <!-- end-user-doc -->
1746
     * @generated
1747
     */
1748
    public static final EAttribute ATHING__ACHAR = eINSTANCE.getAThing_AChar();
1749
1750
    /**
1751
     * The meta object literal for the '<em><b>ADate</b></em>' attribute feature.
1752
     * <!-- begin-user-doc -->
1753
     * <!-- end-user-doc -->
1754
     * @generated
1755
     */
1756
    public static final EAttribute ATHING__ADATE = eINSTANCE.getAThing_ADate();
1757
1758
    /**
1759
     * The meta object literal for the '<em><b>ABytes</b></em>' attribute feature.
1760
     * <!-- begin-user-doc -->
1761
     * <!-- end-user-doc -->
1762
     * @generated
1763
     */
1764
    public static final EAttribute ATHING__ABYTES = eINSTANCE.getAThing_ABytes();
1765
1766
    /**
1767
     * The meta object literal for the '<em><b>ANumber</b></em>' attribute feature.
1768
     * <!-- begin-user-doc -->
1769
     * <!-- end-user-doc -->
1770
     * @generated
1771
     */
1772
    public static final EAttribute ATHING__ANUMBER = eINSTANCE.getAThing_ANumber();
1773
1774
    /**
1775
     * The meta object literal for the '<em><b>AObject</b></em>' attribute feature.
1776
     * <!-- begin-user-doc -->
1777
     * <!-- end-user-doc -->
1778
     * @generated
1779
     */
1780
    public static final EAttribute ATHING__AOBJECT = eINSTANCE.getAThing_AObject();
1781
1782
    /**
1783
     * The meta object literal for the '<em><b>AThread</b></em>' attribute feature.
1784
     * <!-- begin-user-doc -->
1785
     * <!-- end-user-doc -->
1786
     * @generated
1787
     */
1788
    public static final EAttribute ATHING__ATHREAD = eINSTANCE.getAThing_AThread();
1789
1790
    /**
1791
     * The meta object literal for the '<em><b>Many Boolean</b></em>' attribute list feature.
1792
     * <!-- begin-user-doc -->
1793
     * <!-- end-user-doc -->
1794
     * @generated
1795
     */
1796
    public static final EAttribute ATHING__MANY_BOOLEAN = eINSTANCE.getAThing_ManyBoolean();
1797
1798
    /**
1799
     * The meta object literal for the '<em><b>Many Byte</b></em>' attribute list feature.
1800
     * <!-- begin-user-doc -->
1801
     * <!-- end-user-doc -->
1802
     * @generated
1803
     */
1804
    public static final EAttribute ATHING__MANY_BYTE = eINSTANCE.getAThing_ManyByte();
1805
1806
    /**
1807
     * The meta object literal for the '<em><b>Many Decimal</b></em>' attribute list feature.
1808
     * <!-- begin-user-doc -->
1809
     * <!-- end-user-doc -->
1810
     * @generated
1811
     */
1812
    public static final EAttribute ATHING__MANY_DECIMAL = eINSTANCE.getAThing_ManyDecimal();
1813
1814
    /**
1815
     * The meta object literal for the '<em><b>Many Float</b></em>' attribute list feature.
1816
     * <!-- begin-user-doc -->
1817
     * <!-- end-user-doc -->
1818
     * @generated
1819
     */
1820
    public static final EAttribute ATHING__MANY_FLOAT = eINSTANCE.getAThing_ManyFloat();
1821
1822
    /**
1823
     * The meta object literal for the '<em><b>Many Double</b></em>' attribute list feature.
1824
     * <!-- begin-user-doc -->
1825
     * <!-- end-user-doc -->
1826
     * @generated
1827
     */
1828
    public static final EAttribute ATHING__MANY_DOUBLE = eINSTANCE.getAThing_ManyDouble();
1829
1830
    /**
1831
     * The meta object literal for the '<em><b>Many Int</b></em>' attribute list feature.
1832
     * <!-- begin-user-doc -->
1833
     * <!-- end-user-doc -->
1834
     * @generated
1835
     */
1836
    public static final EAttribute ATHING__MANY_INT = eINSTANCE.getAThing_ManyInt();
1837
1838
    /**
1839
     * The meta object literal for the '<em><b>Many Integer</b></em>' attribute list feature.
1840
     * <!-- begin-user-doc -->
1841
     * <!-- end-user-doc -->
1842
     * @generated
1843
     */
1844
    public static final EAttribute ATHING__MANY_INTEGER = eINSTANCE.getAThing_ManyInteger();
1845
1846
    /**
1847
     * The meta object literal for the '<em><b>Many Long</b></em>' attribute list feature.
1848
     * <!-- begin-user-doc -->
1849
     * <!-- end-user-doc -->
1850
     * @generated
1851
     */
1852
    public static final EAttribute ATHING__MANY_LONG = eINSTANCE.getAThing_ManyLong();
1853
1854
    /**
1855
     * The meta object literal for the '<em><b>Many Short</b></em>' attribute list feature.
1856
     * <!-- begin-user-doc -->
1857
     * <!-- end-user-doc -->
1858
     * @generated
1859
     */
1860
    public static final EAttribute ATHING__MANY_SHORT = eINSTANCE.getAThing_ManyShort();
1861
1862
    /**
1863
     * The meta object literal for the '<em><b>Many String</b></em>' attribute list feature.
1864
     * <!-- begin-user-doc -->
1865
     * <!-- end-user-doc -->
1866
     * @generated
1867
     */
1868
    public static final EAttribute ATHING__MANY_STRING = eINSTANCE.getAThing_ManyString();
1869
1870
    /**
1871
     * The meta object literal for the '<em><b>Many Char</b></em>' attribute list feature.
1872
     * <!-- begin-user-doc -->
1873
     * <!-- end-user-doc -->
1874
     * @generated
1875
     */
1876
    public static final EAttribute ATHING__MANY_CHAR = eINSTANCE.getAThing_ManyChar();
1877
1878
    /**
1879
     * The meta object literal for the '<em><b>Many Date</b></em>' attribute list feature.
1880
     * <!-- begin-user-doc -->
1881
     * <!-- end-user-doc -->
1882
     * @generated
1883
     */
1884
    public static final EAttribute ATHING__MANY_DATE = eINSTANCE.getAThing_ManyDate();
1885
1886
    /**
1887
     * The meta object literal for the '<em><b>Many Bytes</b></em>' attribute list feature.
1888
     * <!-- begin-user-doc -->
1889
     * <!-- end-user-doc -->
1890
     * @generated
1891
     */
1892
    public static final EAttribute ATHING__MANY_BYTES = eINSTANCE.getAThing_ManyBytes();
1893
1894
    /**
1895
     * The meta object literal for the '<em><b>Many Number</b></em>' attribute list feature.
1896
     * <!-- begin-user-doc -->
1897
     * <!-- end-user-doc -->
1898
     * @generated
1899
     */
1900
    public static final EAttribute ATHING__MANY_NUMBER = eINSTANCE.getAThing_ManyNumber();
1901
1902
    /**
1903
     * The meta object literal for the '<em><b>Many Object</b></em>' attribute list feature.
1904
     * <!-- begin-user-doc -->
1905
     * <!-- end-user-doc -->
1906
     * @generated
1907
     */
1908
    public static final EAttribute ATHING__MANY_OBJECT = eINSTANCE.getAThing_ManyObject();
1909
1910
    /**
1911
     * The meta object literal for the '<em><b>Many Thread</b></em>' attribute list feature.
1912
     * <!-- begin-user-doc -->
1913
     * <!-- end-user-doc -->
1914
     * @generated
1915
     */
1916
    public static final EAttribute ATHING__MANY_THREAD = eINSTANCE.getAThing_ManyThread();
1917
1918
    /**
1919
     * The meta object literal for the '<em>My Bytes</em>' data type.
1920
     * <!-- begin-user-doc -->
1921
     * <!-- end-user-doc -->
1922
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyBytes()
1923
     * @generated
1924
     */
1925
    public static final EDataType MY_BYTES = eINSTANCE.getMyBytes();
1926
1927
    /**
1928
     * The meta object literal for the '<em>My Char</em>' data type.
1929
     * <!-- begin-user-doc -->
1930
     * <!-- end-user-doc -->
1931
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyChar()
1932
     * @generated
1933
     */
1934
    public static final EDataType MY_CHAR = eINSTANCE.getMyChar();
1935
1936
    /**
1937
     * The meta object literal for the '<em>My Char Object</em>' data type.
1938
     * <!-- begin-user-doc -->
1939
     * <!-- end-user-doc -->
1940
     * @see java.lang.Character
1941
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyCharObject()
1942
     * @generated
1943
     */
1944
    public static final EDataType MY_CHAR_OBJECT = eINSTANCE.getMyCharObject();
1945
1946
    /**
1947
     * The meta object literal for the '<em>My Date</em>' data type.
1948
     * <!-- begin-user-doc -->
1949
     * <!-- end-user-doc -->
1950
     * @see java.util.Date
1951
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyDate()
1952
     * @generated
1953
     */
1954
    public static final EDataType MY_DATE = eINSTANCE.getMyDate();
1955
1956
    /**
1957
     * The meta object literal for the '<em>My Number</em>' data type.
1958
     * <!-- begin-user-doc -->
1959
     * <!-- end-user-doc -->
1960
     * @see java.lang.Number
1961
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyNumber()
1962
     * @generated
1963
     */
1964
    public static final EDataType MY_NUMBER = eINSTANCE.getMyNumber();
1965
1966
    /**
1967
     * The meta object literal for the '<em>My Object</em>' data type.
1968
     * <!-- begin-user-doc -->
1969
     * <!-- end-user-doc -->
1970
     * @see java.lang.Object
1971
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyObject()
1972
     * @generated
1973
     */
1974
    public static final EDataType MY_OBJECT = eINSTANCE.getMyObject();
1975
1976
    /**
1977
     * The meta object literal for the '<em>My Thread</em>' data type.
1978
     * <!-- begin-user-doc -->
1979
     * <!-- end-user-doc -->
1980
     * @see java.lang.Thread
1981
     * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyThread()
1982
     * @generated
1983
     */
1984
    public static final EDataType MY_THREAD = eINSTANCE.getMyThread();
1985
1986
  }
1987
1988
} //TypesPackageImpl
(-)src/org/eclipse/emf/test/models/types/impl/AThingImpl.java (-1946 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: AThingImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.types.impl;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
22
import java.util.Collection;
23
import java.util.Date;
24
import java.util.List;
25
26
import org.eclipse.emf.common.notify.Notification;
27
28
import org.eclipse.emf.common.util.EList;
29
30
import org.eclipse.emf.ecore.EClass;
31
32
import org.eclipse.emf.ecore.impl.ENotificationImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.util.EDataTypeEList;
37
38
import org.eclipse.emf.test.models.types.AThing;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * An implementation of the model object '<em><b>AThing</b></em>'.
43
 * <!-- end-user-doc -->
44
 * <p>
45
 * The following features are implemented:
46
 * <ul>
47
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#isABoolean <em>ABoolean</em>}</li>
48
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAByte <em>AByte</em>}</li>
49
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADecimal <em>ADecimal</em>}</li>
50
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAFloat <em>AFloat</em>}</li>
51
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADouble <em>ADouble</em>}</li>
52
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAInt <em>AInt</em>}</li>
53
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAInteger <em>AInteger</em>}</li>
54
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getALong <em>ALong</em>}</li>
55
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAShort <em>AShort</em>}</li>
56
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAString <em>AString</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAChar <em>AChar</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADate <em>ADate</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getABytes <em>ABytes</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getANumber <em>ANumber</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAObject <em>AObject</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAThread <em>AThread</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyBoolean <em>Many Boolean</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyByte <em>Many Byte</em>}</li>
65
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDecimal <em>Many Decimal</em>}</li>
66
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyFloat <em>Many Float</em>}</li>
67
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDouble <em>Many Double</em>}</li>
68
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyInt <em>Many Int</em>}</li>
69
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyInteger <em>Many Integer</em>}</li>
70
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyLong <em>Many Long</em>}</li>
71
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyShort <em>Many Short</em>}</li>
72
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyString <em>Many String</em>}</li>
73
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyChar <em>Many Char</em>}</li>
74
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDate <em>Many Date</em>}</li>
75
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyBytes <em>Many Bytes</em>}</li>
76
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyNumber <em>Many Number</em>}</li>
77
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyObject <em>Many Object</em>}</li>
78
 *   <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyThread <em>Many Thread</em>}</li>
79
 * </ul>
80
 * </p>
81
 *
82
 * @generated
83
 */
84
public class AThingImpl extends EDataObjectImpl implements AThing
85
{
86
  /**
87
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
89
   * @generated
90
   */
91
  private static final long serialVersionUID = 1L;
92
93
  /**
94
   * The default value of the '{@link #isABoolean() <em>ABoolean</em>}' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @see #isABoolean()
98
   * @generated
99
   * @ordered
100
   */
101
  protected static final boolean ABOOLEAN_EDEFAULT = false;
102
103
  /**
104
   * The cached value of the '{@link #isABoolean() <em>ABoolean</em>}' attribute.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #isABoolean()
108
   * @generated
109
   * @ordered
110
   */
111
  protected boolean aBoolean = ABOOLEAN_EDEFAULT;
112
113
  /**
114
   * This is true if the ABoolean attribute has been set.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @generated
118
   * @ordered
119
   */
120
  protected boolean aBooleanESet;
121
122
  /**
123
   * The default value of the '{@link #getAByte() <em>AByte</em>}' attribute.
124
   * <!-- begin-user-doc -->
125
   * <!-- end-user-doc -->
126
   * @see #getAByte()
127
   * @generated
128
   * @ordered
129
   */
130
  protected static final byte ABYTE_EDEFAULT = 0x00;
131
132
  /**
133
   * The cached value of the '{@link #getAByte() <em>AByte</em>}' attribute.
134
   * <!-- begin-user-doc -->
135
   * <!-- end-user-doc -->
136
   * @see #getAByte()
137
   * @generated
138
   * @ordered
139
   */
140
  protected byte aByte = ABYTE_EDEFAULT;
141
142
  /**
143
   * This is true if the AByte attribute has been set.
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @generated
147
   * @ordered
148
   */
149
  protected boolean aByteESet;
150
151
  /**
152
   * The default value of the '{@link #getADecimal() <em>ADecimal</em>}' attribute.
153
   * <!-- begin-user-doc -->
154
   * <!-- end-user-doc -->
155
   * @see #getADecimal()
156
   * @generated
157
   * @ordered
158
   */
159
  protected static final BigDecimal ADECIMAL_EDEFAULT = null;
160
161
  /**
162
   * The cached value of the '{@link #getADecimal() <em>ADecimal</em>}' attribute.
163
   * <!-- begin-user-doc -->
164
   * <!-- end-user-doc -->
165
   * @see #getADecimal()
166
   * @generated
167
   * @ordered
168
   */
169
  protected BigDecimal aDecimal = ADECIMAL_EDEFAULT;
170
171
  /**
172
   * The default value of the '{@link #getAFloat() <em>AFloat</em>}' attribute.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @see #getAFloat()
176
   * @generated
177
   * @ordered
178
   */
179
  protected static final float AFLOAT_EDEFAULT = 0.0F;
180
181
  /**
182
   * The cached value of the '{@link #getAFloat() <em>AFloat</em>}' attribute.
183
   * <!-- begin-user-doc -->
184
   * <!-- end-user-doc -->
185
   * @see #getAFloat()
186
   * @generated
187
   * @ordered
188
   */
189
  protected float aFloat = AFLOAT_EDEFAULT;
190
191
  /**
192
   * This is true if the AFloat attribute has been set.
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @generated
196
   * @ordered
197
   */
198
  protected boolean aFloatESet;
199
200
  /**
201
   * The default value of the '{@link #getADouble() <em>ADouble</em>}' attribute.
202
   * <!-- begin-user-doc -->
203
   * <!-- end-user-doc -->
204
   * @see #getADouble()
205
   * @generated
206
   * @ordered
207
   */
208
  protected static final double ADOUBLE_EDEFAULT = 0.0;
209
210
  /**
211
   * The cached value of the '{@link #getADouble() <em>ADouble</em>}' attribute.
212
   * <!-- begin-user-doc -->
213
   * <!-- end-user-doc -->
214
   * @see #getADouble()
215
   * @generated
216
   * @ordered
217
   */
218
  protected double aDouble = ADOUBLE_EDEFAULT;
219
220
  /**
221
   * This is true if the ADouble attribute has been set.
222
   * <!-- begin-user-doc -->
223
   * <!-- end-user-doc -->
224
   * @generated
225
   * @ordered
226
   */
227
  protected boolean aDoubleESet;
228
229
  /**
230
   * The default value of the '{@link #getAInt() <em>AInt</em>}' attribute.
231
   * <!-- begin-user-doc -->
232
   * <!-- end-user-doc -->
233
   * @see #getAInt()
234
   * @generated
235
   * @ordered
236
   */
237
  protected static final int AINT_EDEFAULT = 0;
238
239
  /**
240
   * The cached value of the '{@link #getAInt() <em>AInt</em>}' attribute.
241
   * <!-- begin-user-doc -->
242
   * <!-- end-user-doc -->
243
   * @see #getAInt()
244
   * @generated
245
   * @ordered
246
   */
247
  protected int aInt = AINT_EDEFAULT;
248
249
  /**
250
   * This is true if the AInt attribute has been set.
251
   * <!-- begin-user-doc -->
252
   * <!-- end-user-doc -->
253
   * @generated
254
   * @ordered
255
   */
256
  protected boolean aIntESet;
257
258
  /**
259
   * The default value of the '{@link #getAInteger() <em>AInteger</em>}' attribute.
260
   * <!-- begin-user-doc -->
261
   * <!-- end-user-doc -->
262
   * @see #getAInteger()
263
   * @generated
264
   * @ordered
265
   */
266
  protected static final BigInteger AINTEGER_EDEFAULT = null;
267
268
  /**
269
   * The cached value of the '{@link #getAInteger() <em>AInteger</em>}' attribute.
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @see #getAInteger()
273
   * @generated
274
   * @ordered
275
   */
276
  protected BigInteger aInteger = AINTEGER_EDEFAULT;
277
278
  /**
279
   * The default value of the '{@link #getALong() <em>ALong</em>}' attribute.
280
   * <!-- begin-user-doc -->
281
   * <!-- end-user-doc -->
282
   * @see #getALong()
283
   * @generated
284
   * @ordered
285
   */
286
  protected static final long ALONG_EDEFAULT = 0L;
287
288
  /**
289
   * The cached value of the '{@link #getALong() <em>ALong</em>}' attribute.
290
   * <!-- begin-user-doc -->
291
   * <!-- end-user-doc -->
292
   * @see #getALong()
293
   * @generated
294
   * @ordered
295
   */
296
  protected long aLong = ALONG_EDEFAULT;
297
298
  /**
299
   * This is true if the ALong attribute has been set.
300
   * <!-- begin-user-doc -->
301
   * <!-- end-user-doc -->
302
   * @generated
303
   * @ordered
304
   */
305
  protected boolean aLongESet;
306
307
  /**
308
   * The default value of the '{@link #getAShort() <em>AShort</em>}' attribute.
309
   * <!-- begin-user-doc -->
310
   * <!-- end-user-doc -->
311
   * @see #getAShort()
312
   * @generated
313
   * @ordered
314
   */
315
  protected static final short ASHORT_EDEFAULT = 0;
316
317
  /**
318
   * The cached value of the '{@link #getAShort() <em>AShort</em>}' attribute.
319
   * <!-- begin-user-doc -->
320
   * <!-- end-user-doc -->
321
   * @see #getAShort()
322
   * @generated
323
   * @ordered
324
   */
325
  protected short aShort = ASHORT_EDEFAULT;
326
327
  /**
328
   * This is true if the AShort attribute has been set.
329
   * <!-- begin-user-doc -->
330
   * <!-- end-user-doc -->
331
   * @generated
332
   * @ordered
333
   */
334
  protected boolean aShortESet;
335
336
  /**
337
   * The default value of the '{@link #getAString() <em>AString</em>}' attribute.
338
   * <!-- begin-user-doc -->
339
   * <!-- end-user-doc -->
340
   * @see #getAString()
341
   * @generated
342
   * @ordered
343
   */
344
  protected static final String ASTRING_EDEFAULT = null;
345
346
  /**
347
   * The cached value of the '{@link #getAString() <em>AString</em>}' attribute.
348
   * <!-- begin-user-doc -->
349
   * <!-- end-user-doc -->
350
   * @see #getAString()
351
   * @generated
352
   * @ordered
353
   */
354
  protected String aString = ASTRING_EDEFAULT;
355
356
  /**
357
   * The default value of the '{@link #getAChar() <em>AChar</em>}' attribute.
358
   * <!-- begin-user-doc -->
359
   * <!-- end-user-doc -->
360
   * @see #getAChar()
361
   * @generated
362
   * @ordered
363
   */
364
  protected static final char ACHAR_EDEFAULT = '\u0000';
365
366
  /**
367
   * The cached value of the '{@link #getAChar() <em>AChar</em>}' attribute.
368
   * <!-- begin-user-doc -->
369
   * <!-- end-user-doc -->
370
   * @see #getAChar()
371
   * @generated
372
   * @ordered
373
   */
374
  protected char aChar = ACHAR_EDEFAULT;
375
376
  /**
377
   * This is true if the AChar attribute has been set.
378
   * <!-- begin-user-doc -->
379
   * <!-- end-user-doc -->
380
   * @generated
381
   * @ordered
382
   */
383
  protected boolean aCharESet;
384
385
  /**
386
   * The default value of the '{@link #getADate() <em>ADate</em>}' attribute.
387
   * <!-- begin-user-doc -->
388
   * <!-- end-user-doc -->
389
   * @see #getADate()
390
   * @generated
391
   * @ordered
392
   */
393
  protected static final Date ADATE_EDEFAULT = null;
394
395
  /**
396
   * The cached value of the '{@link #getADate() <em>ADate</em>}' attribute.
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @see #getADate()
400
   * @generated
401
   * @ordered
402
   */
403
  protected Date aDate = ADATE_EDEFAULT;
404
405
  /**
406
   * The default value of the '{@link #getABytes() <em>ABytes</em>}' attribute.
407
   * <!-- begin-user-doc -->
408
   * <!-- end-user-doc -->
409
   * @see #getABytes()
410
   * @generated
411
   * @ordered
412
   */
413
  protected static final byte[] ABYTES_EDEFAULT = null;
414
415
  /**
416
   * The cached value of the '{@link #getABytes() <em>ABytes</em>}' attribute.
417
   * <!-- begin-user-doc -->
418
   * <!-- end-user-doc -->
419
   * @see #getABytes()
420
   * @generated
421
   * @ordered
422
   */
423
  protected byte[] aBytes = ABYTES_EDEFAULT;
424
425
  /**
426
   * The default value of the '{@link #getANumber() <em>ANumber</em>}' attribute.
427
   * <!-- begin-user-doc -->
428
   * <!-- end-user-doc -->
429
   * @see #getANumber()
430
   * @generated
431
   * @ordered
432
   */
433
  protected static final Number ANUMBER_EDEFAULT = null;
434
435
  /**
436
   * The cached value of the '{@link #getANumber() <em>ANumber</em>}' attribute.
437
   * <!-- begin-user-doc -->
438
   * <!-- end-user-doc -->
439
   * @see #getANumber()
440
   * @generated
441
   * @ordered
442
   */
443
  protected Number aNumber = ANUMBER_EDEFAULT;
444
445
  /**
446
   * The default value of the '{@link #getAObject() <em>AObject</em>}' attribute.
447
   * <!-- begin-user-doc -->
448
   * <!-- end-user-doc -->
449
   * @see #getAObject()
450
   * @generated
451
   * @ordered
452
   */
453
  protected static final Object AOBJECT_EDEFAULT = null;
454
455
  /**
456
   * The cached value of the '{@link #getAObject() <em>AObject</em>}' attribute.
457
   * <!-- begin-user-doc -->
458
   * <!-- end-user-doc -->
459
   * @see #getAObject()
460
   * @generated
461
   * @ordered
462
   */
463
  protected Object aObject = AOBJECT_EDEFAULT;
464
465
  /**
466
   * The default value of the '{@link #getAThread() <em>AThread</em>}' attribute.
467
   * <!-- begin-user-doc -->
468
   * <!-- end-user-doc -->
469
   * @see #getAThread()
470
   * @generated
471
   * @ordered
472
   */
473
  protected static final Thread ATHREAD_EDEFAULT = null;
474
475
  /**
476
   * The cached value of the '{@link #getAThread() <em>AThread</em>}' attribute.
477
   * <!-- begin-user-doc -->
478
   * <!-- end-user-doc -->
479
   * @see #getAThread()
480
   * @generated
481
   * @ordered
482
   */
483
  protected Thread aThread = ATHREAD_EDEFAULT;
484
485
  /**
486
   * The cached value of the '{@link #getManyBoolean() <em>Many Boolean</em>}' attribute list.
487
   * <!-- begin-user-doc -->
488
   * <!-- end-user-doc -->
489
   * @see #getManyBoolean()
490
   * @generated
491
   * @ordered
492
   */
493
  protected EList<Boolean> manyBoolean;
494
495
  /**
496
   * The cached value of the '{@link #getManyByte() <em>Many Byte</em>}' attribute list.
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @see #getManyByte()
500
   * @generated
501
   * @ordered
502
   */
503
  protected EList<Byte> manyByte;
504
505
  /**
506
   * The cached value of the '{@link #getManyDecimal() <em>Many Decimal</em>}' attribute list.
507
   * <!-- begin-user-doc -->
508
   * <!-- end-user-doc -->
509
   * @see #getManyDecimal()
510
   * @generated
511
   * @ordered
512
   */
513
  protected EList<BigDecimal> manyDecimal;
514
515
  /**
516
   * The cached value of the '{@link #getManyFloat() <em>Many Float</em>}' attribute list.
517
   * <!-- begin-user-doc -->
518
   * <!-- end-user-doc -->
519
   * @see #getManyFloat()
520
   * @generated
521
   * @ordered
522
   */
523
  protected EList<Float> manyFloat;
524
525
  /**
526
   * The cached value of the '{@link #getManyDouble() <em>Many Double</em>}' attribute list.
527
   * <!-- begin-user-doc -->
528
   * <!-- end-user-doc -->
529
   * @see #getManyDouble()
530
   * @generated
531
   * @ordered
532
   */
533
  protected EList<Double> manyDouble;
534
535
  /**
536
   * The cached value of the '{@link #getManyInt() <em>Many Int</em>}' attribute list.
537
   * <!-- begin-user-doc -->
538
   * <!-- end-user-doc -->
539
   * @see #getManyInt()
540
   * @generated
541
   * @ordered
542
   */
543
  protected EList<Integer> manyInt;
544
545
  /**
546
   * The cached value of the '{@link #getManyInteger() <em>Many Integer</em>}' attribute list.
547
   * <!-- begin-user-doc -->
548
   * <!-- end-user-doc -->
549
   * @see #getManyInteger()
550
   * @generated
551
   * @ordered
552
   */
553
  protected EList<BigInteger> manyInteger;
554
555
  /**
556
   * The cached value of the '{@link #getManyLong() <em>Many Long</em>}' attribute list.
557
   * <!-- begin-user-doc -->
558
   * <!-- end-user-doc -->
559
   * @see #getManyLong()
560
   * @generated
561
   * @ordered
562
   */
563
  protected EList<Long> manyLong;
564
565
  /**
566
   * The cached value of the '{@link #getManyShort() <em>Many Short</em>}' attribute list.
567
   * <!-- begin-user-doc -->
568
   * <!-- end-user-doc -->
569
   * @see #getManyShort()
570
   * @generated
571
   * @ordered
572
   */
573
  protected EList<Short> manyShort;
574
575
  /**
576
   * The cached value of the '{@link #getManyString() <em>Many String</em>}' attribute list.
577
   * <!-- begin-user-doc -->
578
   * <!-- end-user-doc -->
579
   * @see #getManyString()
580
   * @generated
581
   * @ordered
582
   */
583
  protected EList<String> manyString;
584
585
  /**
586
   * The cached value of the '{@link #getManyChar() <em>Many Char</em>}' attribute list.
587
   * <!-- begin-user-doc -->
588
   * <!-- end-user-doc -->
589
   * @see #getManyChar()
590
   * @generated
591
   * @ordered
592
   */
593
  protected EList<Character> manyChar;
594
595
  /**
596
   * The cached value of the '{@link #getManyDate() <em>Many Date</em>}' attribute list.
597
   * <!-- begin-user-doc -->
598
   * <!-- end-user-doc -->
599
   * @see #getManyDate()
600
   * @generated
601
   * @ordered
602
   */
603
  protected EList<Date> manyDate;
604
605
  /**
606
   * The cached value of the '{@link #getManyBytes() <em>Many Bytes</em>}' attribute list.
607
   * <!-- begin-user-doc -->
608
   * <!-- end-user-doc -->
609
   * @see #getManyBytes()
610
   * @generated
611
   * @ordered
612
   */
613
  protected EList<byte[]> manyBytes;
614
615
  /**
616
   * The cached value of the '{@link #getManyNumber() <em>Many Number</em>}' attribute list.
617
   * <!-- begin-user-doc -->
618
   * <!-- end-user-doc -->
619
   * @see #getManyNumber()
620
   * @generated
621
   * @ordered
622
   */
623
  protected EList<Number> manyNumber;
624
625
  /**
626
   * The cached value of the '{@link #getManyObject() <em>Many Object</em>}' attribute list.
627
   * <!-- begin-user-doc -->
628
   * <!-- end-user-doc -->
629
   * @see #getManyObject()
630
   * @generated
631
   * @ordered
632
   */
633
  protected EList<Object> manyObject;
634
635
  /**
636
   * The cached value of the '{@link #getManyThread() <em>Many Thread</em>}' attribute list.
637
   * <!-- begin-user-doc -->
638
   * <!-- end-user-doc -->
639
   * @see #getManyThread()
640
   * @generated
641
   * @ordered
642
   */
643
  protected EList<Thread> manyThread;
644
645
  /**
646
   * <!-- begin-user-doc -->
647
   * <!-- end-user-doc -->
648
   * @generated
649
   */
650
  protected AThingImpl()
651
  {
652
    super();
653
  }
654
655
  /**
656
   * <!-- begin-user-doc -->
657
   * <!-- end-user-doc -->
658
   * @generated
659
   */
660
  @Override
661
  protected EClass eStaticClass()
662
  {
663
    return TypesPackageImpl.Literals.ATHING;
664
  }
665
666
  /**
667
   * <!-- begin-user-doc -->
668
   * <!-- end-user-doc -->
669
   * @generated
670
   */
671
  public boolean isABoolean()
672
  {
673
    return aBoolean;
674
  }
675
676
  /**
677
   * <!-- begin-user-doc -->
678
   * <!-- end-user-doc -->
679
   * @generated
680
   */
681
  public void setABoolean(boolean newABoolean)
682
  {
683
    boolean oldABoolean = aBoolean;
684
    aBoolean = newABoolean;
685
    boolean oldABooleanESet = aBooleanESet;
686
    aBooleanESet = true;
687
    if (eNotificationRequired())
688
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABOOLEAN, oldABoolean, aBoolean, !oldABooleanESet));
689
  }
690
691
  /**
692
   * <!-- begin-user-doc -->
693
   * <!-- end-user-doc -->
694
   * @generated
695
   */
696
  public void unsetABoolean()
697
  {
698
    boolean oldABoolean = aBoolean;
699
    boolean oldABooleanESet = aBooleanESet;
700
    aBoolean = ABOOLEAN_EDEFAULT;
701
    aBooleanESet = false;
702
    if (eNotificationRequired())
703
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ABOOLEAN, oldABoolean, ABOOLEAN_EDEFAULT, oldABooleanESet));
704
  }
705
706
  /**
707
   * <!-- begin-user-doc -->
708
   * <!-- end-user-doc -->
709
   * @generated
710
   */
711
  public boolean isSetABoolean()
712
  {
713
    return aBooleanESet;
714
  }
715
716
  /**
717
   * <!-- begin-user-doc -->
718
   * <!-- end-user-doc -->
719
   * @generated
720
   */
721
  public byte getAByte()
722
  {
723
    return aByte;
724
  }
725
726
  /**
727
   * <!-- begin-user-doc -->
728
   * <!-- end-user-doc -->
729
   * @generated
730
   */
731
  public void setAByte(byte newAByte)
732
  {
733
    byte oldAByte = aByte;
734
    aByte = newAByte;
735
    boolean oldAByteESet = aByteESet;
736
    aByteESet = true;
737
    if (eNotificationRequired())
738
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABYTE, oldAByte, aByte, !oldAByteESet));
739
  }
740
741
  /**
742
   * <!-- begin-user-doc -->
743
   * <!-- end-user-doc -->
744
   * @generated
745
   */
746
  public void unsetAByte()
747
  {
748
    byte oldAByte = aByte;
749
    boolean oldAByteESet = aByteESet;
750
    aByte = ABYTE_EDEFAULT;
751
    aByteESet = false;
752
    if (eNotificationRequired())
753
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ABYTE, oldAByte, ABYTE_EDEFAULT, oldAByteESet));
754
  }
755
756
  /**
757
   * <!-- begin-user-doc -->
758
   * <!-- end-user-doc -->
759
   * @generated
760
   */
761
  public boolean isSetAByte()
762
  {
763
    return aByteESet;
764
  }
765
766
  /**
767
   * <!-- begin-user-doc -->
768
   * <!-- end-user-doc -->
769
   * @generated
770
   */
771
  public BigDecimal getADecimal()
772
  {
773
    return aDecimal;
774
  }
775
776
  /**
777
   * <!-- begin-user-doc -->
778
   * <!-- end-user-doc -->
779
   * @generated
780
   */
781
  public void setADecimal(BigDecimal newADecimal)
782
  {
783
    BigDecimal oldADecimal = aDecimal;
784
    aDecimal = newADecimal;
785
    if (eNotificationRequired())
786
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADECIMAL, oldADecimal, aDecimal));
787
  }
788
789
  /**
790
   * <!-- begin-user-doc -->
791
   * <!-- end-user-doc -->
792
   * @generated
793
   */
794
  public float getAFloat()
795
  {
796
    return aFloat;
797
  }
798
799
  /**
800
   * <!-- begin-user-doc -->
801
   * <!-- end-user-doc -->
802
   * @generated
803
   */
804
  public void setAFloat(float newAFloat)
805
  {
806
    float oldAFloat = aFloat;
807
    aFloat = newAFloat;
808
    boolean oldAFloatESet = aFloatESet;
809
    aFloatESet = true;
810
    if (eNotificationRequired())
811
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AFLOAT, oldAFloat, aFloat, !oldAFloatESet));
812
  }
813
814
  /**
815
   * <!-- begin-user-doc -->
816
   * <!-- end-user-doc -->
817
   * @generated
818
   */
819
  public void unsetAFloat()
820
  {
821
    float oldAFloat = aFloat;
822
    boolean oldAFloatESet = aFloatESet;
823
    aFloat = AFLOAT_EDEFAULT;
824
    aFloatESet = false;
825
    if (eNotificationRequired())
826
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__AFLOAT, oldAFloat, AFLOAT_EDEFAULT, oldAFloatESet));
827
  }
828
829
  /**
830
   * <!-- begin-user-doc -->
831
   * <!-- end-user-doc -->
832
   * @generated
833
   */
834
  public boolean isSetAFloat()
835
  {
836
    return aFloatESet;
837
  }
838
839
  /**
840
   * <!-- begin-user-doc -->
841
   * <!-- end-user-doc -->
842
   * @generated
843
   */
844
  public double getADouble()
845
  {
846
    return aDouble;
847
  }
848
849
  /**
850
   * <!-- begin-user-doc -->
851
   * <!-- end-user-doc -->
852
   * @generated
853
   */
854
  public void setADouble(double newADouble)
855
  {
856
    double oldADouble = aDouble;
857
    aDouble = newADouble;
858
    boolean oldADoubleESet = aDoubleESet;
859
    aDoubleESet = true;
860
    if (eNotificationRequired())
861
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADOUBLE, oldADouble, aDouble, !oldADoubleESet));
862
  }
863
864
  /**
865
   * <!-- begin-user-doc -->
866
   * <!-- end-user-doc -->
867
   * @generated
868
   */
869
  public void unsetADouble()
870
  {
871
    double oldADouble = aDouble;
872
    boolean oldADoubleESet = aDoubleESet;
873
    aDouble = ADOUBLE_EDEFAULT;
874
    aDoubleESet = false;
875
    if (eNotificationRequired())
876
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ADOUBLE, oldADouble, ADOUBLE_EDEFAULT, oldADoubleESet));
877
  }
878
879
  /**
880
   * <!-- begin-user-doc -->
881
   * <!-- end-user-doc -->
882
   * @generated
883
   */
884
  public boolean isSetADouble()
885
  {
886
    return aDoubleESet;
887
  }
888
889
  /**
890
   * <!-- begin-user-doc -->
891
   * <!-- end-user-doc -->
892
   * @generated
893
   */
894
  public int getAInt()
895
  {
896
    return aInt;
897
  }
898
899
  /**
900
   * <!-- begin-user-doc -->
901
   * <!-- end-user-doc -->
902
   * @generated
903
   */
904
  public void setAInt(int newAInt)
905
  {
906
    int oldAInt = aInt;
907
    aInt = newAInt;
908
    boolean oldAIntESet = aIntESet;
909
    aIntESet = true;
910
    if (eNotificationRequired())
911
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AINT, oldAInt, aInt, !oldAIntESet));
912
  }
913
914
  /**
915
   * <!-- begin-user-doc -->
916
   * <!-- end-user-doc -->
917
   * @generated
918
   */
919
  public void unsetAInt()
920
  {
921
    int oldAInt = aInt;
922
    boolean oldAIntESet = aIntESet;
923
    aInt = AINT_EDEFAULT;
924
    aIntESet = false;
925
    if (eNotificationRequired())
926
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__AINT, oldAInt, AINT_EDEFAULT, oldAIntESet));
927
  }
928
929
  /**
930
   * <!-- begin-user-doc -->
931
   * <!-- end-user-doc -->
932
   * @generated
933
   */
934
  public boolean isSetAInt()
935
  {
936
    return aIntESet;
937
  }
938
939
  /**
940
   * <!-- begin-user-doc -->
941
   * <!-- end-user-doc -->
942
   * @generated
943
   */
944
  public BigInteger getAInteger()
945
  {
946
    return aInteger;
947
  }
948
949
  /**
950
   * <!-- begin-user-doc -->
951
   * <!-- end-user-doc -->
952
   * @generated
953
   */
954
  public void setAInteger(BigInteger newAInteger)
955
  {
956
    BigInteger oldAInteger = aInteger;
957
    aInteger = newAInteger;
958
    if (eNotificationRequired())
959
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AINTEGER, oldAInteger, aInteger));
960
  }
961
962
  /**
963
   * <!-- begin-user-doc -->
964
   * <!-- end-user-doc -->
965
   * @generated
966
   */
967
  public long getALong()
968
  {
969
    return aLong;
970
  }
971
972
  /**
973
   * <!-- begin-user-doc -->
974
   * <!-- end-user-doc -->
975
   * @generated
976
   */
977
  public void setALong(long newALong)
978
  {
979
    long oldALong = aLong;
980
    aLong = newALong;
981
    boolean oldALongESet = aLongESet;
982
    aLongESet = true;
983
    if (eNotificationRequired())
984
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ALONG, oldALong, aLong, !oldALongESet));
985
  }
986
987
  /**
988
   * <!-- begin-user-doc -->
989
   * <!-- end-user-doc -->
990
   * @generated
991
   */
992
  public void unsetALong()
993
  {
994
    long oldALong = aLong;
995
    boolean oldALongESet = aLongESet;
996
    aLong = ALONG_EDEFAULT;
997
    aLongESet = false;
998
    if (eNotificationRequired())
999
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ALONG, oldALong, ALONG_EDEFAULT, oldALongESet));
1000
  }
1001
1002
  /**
1003
   * <!-- begin-user-doc -->
1004
   * <!-- end-user-doc -->
1005
   * @generated
1006
   */
1007
  public boolean isSetALong()
1008
  {
1009
    return aLongESet;
1010
  }
1011
1012
  /**
1013
   * <!-- begin-user-doc -->
1014
   * <!-- end-user-doc -->
1015
   * @generated
1016
   */
1017
  public short getAShort()
1018
  {
1019
    return aShort;
1020
  }
1021
1022
  /**
1023
   * <!-- begin-user-doc -->
1024
   * <!-- end-user-doc -->
1025
   * @generated
1026
   */
1027
  public void setAShort(short newAShort)
1028
  {
1029
    short oldAShort = aShort;
1030
    aShort = newAShort;
1031
    boolean oldAShortESet = aShortESet;
1032
    aShortESet = true;
1033
    if (eNotificationRequired())
1034
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ASHORT, oldAShort, aShort, !oldAShortESet));
1035
  }
1036
1037
  /**
1038
   * <!-- begin-user-doc -->
1039
   * <!-- end-user-doc -->
1040
   * @generated
1041
   */
1042
  public void unsetAShort()
1043
  {
1044
    short oldAShort = aShort;
1045
    boolean oldAShortESet = aShortESet;
1046
    aShort = ASHORT_EDEFAULT;
1047
    aShortESet = false;
1048
    if (eNotificationRequired())
1049
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ASHORT, oldAShort, ASHORT_EDEFAULT, oldAShortESet));
1050
  }
1051
1052
  /**
1053
   * <!-- begin-user-doc -->
1054
   * <!-- end-user-doc -->
1055
   * @generated
1056
   */
1057
  public boolean isSetAShort()
1058
  {
1059
    return aShortESet;
1060
  }
1061
1062
  /**
1063
   * <!-- begin-user-doc -->
1064
   * <!-- end-user-doc -->
1065
   * @generated
1066
   */
1067
  public String getAString()
1068
  {
1069
    return aString;
1070
  }
1071
1072
  /**
1073
   * <!-- begin-user-doc -->
1074
   * <!-- end-user-doc -->
1075
   * @generated
1076
   */
1077
  public void setAString(String newAString)
1078
  {
1079
    String oldAString = aString;
1080
    aString = newAString;
1081
    if (eNotificationRequired())
1082
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ASTRING, oldAString, aString));
1083
  }
1084
1085
  /**
1086
   * <!-- begin-user-doc -->
1087
   * <!-- end-user-doc -->
1088
   * @generated
1089
   */
1090
  public char getAChar()
1091
  {
1092
    return aChar;
1093
  }
1094
1095
  /**
1096
   * <!-- begin-user-doc -->
1097
   * <!-- end-user-doc -->
1098
   * @generated
1099
   */
1100
  public void setAChar(char newAChar)
1101
  {
1102
    char oldAChar = aChar;
1103
    aChar = newAChar;
1104
    boolean oldACharESet = aCharESet;
1105
    aCharESet = true;
1106
    if (eNotificationRequired())
1107
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ACHAR, oldAChar, aChar, !oldACharESet));
1108
  }
1109
1110
  /**
1111
   * <!-- begin-user-doc -->
1112
   * <!-- end-user-doc -->
1113
   * @generated
1114
   */
1115
  public void unsetAChar()
1116
  {
1117
    char oldAChar = aChar;
1118
    boolean oldACharESet = aCharESet;
1119
    aChar = ACHAR_EDEFAULT;
1120
    aCharESet = false;
1121
    if (eNotificationRequired())
1122
      eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ACHAR, oldAChar, ACHAR_EDEFAULT, oldACharESet));
1123
  }
1124
1125
  /**
1126
   * <!-- begin-user-doc -->
1127
   * <!-- end-user-doc -->
1128
   * @generated
1129
   */
1130
  public boolean isSetAChar()
1131
  {
1132
    return aCharESet;
1133
  }
1134
1135
  /**
1136
   * <!-- begin-user-doc -->
1137
   * <!-- end-user-doc -->
1138
   * @generated
1139
   */
1140
  public Date getADate()
1141
  {
1142
    return aDate;
1143
  }
1144
1145
  /**
1146
   * <!-- begin-user-doc -->
1147
   * <!-- end-user-doc -->
1148
   * @generated
1149
   */
1150
  public void setADate(Date newADate)
1151
  {
1152
    Date oldADate = aDate;
1153
    aDate = newADate;
1154
    if (eNotificationRequired())
1155
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADATE, oldADate, aDate));
1156
  }
1157
1158
  /**
1159
   * <!-- begin-user-doc -->
1160
   * <!-- end-user-doc -->
1161
   * @generated
1162
   */
1163
  public byte[] getABytes()
1164
  {
1165
    return aBytes;
1166
  }
1167
1168
  /**
1169
   * <!-- begin-user-doc -->
1170
   * <!-- end-user-doc -->
1171
   * @generated
1172
   */
1173
  public void setABytes(byte[] newABytes)
1174
  {
1175
    byte[] oldABytes = aBytes;
1176
    aBytes = newABytes;
1177
    if (eNotificationRequired())
1178
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABYTES, oldABytes, aBytes));
1179
  }
1180
1181
  /**
1182
   * <!-- begin-user-doc -->
1183
   * <!-- end-user-doc -->
1184
   * @generated
1185
   */
1186
  public Number getANumber()
1187
  {
1188
    return aNumber;
1189
  }
1190
1191
  /**
1192
   * <!-- begin-user-doc -->
1193
   * <!-- end-user-doc -->
1194
   * @generated
1195
   */
1196
  public void setANumber(Number newANumber)
1197
  {
1198
    Number oldANumber = aNumber;
1199
    aNumber = newANumber;
1200
    if (eNotificationRequired())
1201
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ANUMBER, oldANumber, aNumber));
1202
  }
1203
1204
  /**
1205
   * <!-- begin-user-doc -->
1206
   * <!-- end-user-doc -->
1207
   * @generated
1208
   */
1209
  public Object getAObject()
1210
  {
1211
    return aObject;
1212
  }
1213
1214
  /**
1215
   * <!-- begin-user-doc -->
1216
   * <!-- end-user-doc -->
1217
   * @generated
1218
   */
1219
  public void setAObject(Object newAObject)
1220
  {
1221
    Object oldAObject = aObject;
1222
    aObject = newAObject;
1223
    if (eNotificationRequired())
1224
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AOBJECT, oldAObject, aObject));
1225
  }
1226
1227
  /**
1228
   * <!-- begin-user-doc -->
1229
   * <!-- end-user-doc -->
1230
   * @generated
1231
   */
1232
  public Thread getAThread()
1233
  {
1234
    return aThread;
1235
  }
1236
1237
  /**
1238
   * <!-- begin-user-doc -->
1239
   * <!-- end-user-doc -->
1240
   * @generated
1241
   */
1242
  public void setAThread(Thread newAThread)
1243
  {
1244
    Thread oldAThread = aThread;
1245
    aThread = newAThread;
1246
    if (eNotificationRequired())
1247
      eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ATHREAD, oldAThread, aThread));
1248
  }
1249
1250
  /**
1251
   * <!-- begin-user-doc -->
1252
   * <!-- end-user-doc -->
1253
   * @generated
1254
   */
1255
  public List<Boolean> getManyBoolean()
1256
  {
1257
    if (manyBoolean == null)
1258
    {
1259
      manyBoolean = new EDataTypeEList<Boolean>(Boolean.class, this, TypesPackageImpl.ATHING__MANY_BOOLEAN);
1260
    }
1261
    return manyBoolean;
1262
  }
1263
1264
  /**
1265
   * <!-- begin-user-doc -->
1266
   * <!-- end-user-doc -->
1267
   * @generated
1268
   */
1269
  public List<Byte> getManyByte()
1270
  {
1271
    if (manyByte == null)
1272
    {
1273
      manyByte = new EDataTypeEList<Byte>(Byte.class, this, TypesPackageImpl.ATHING__MANY_BYTE);
1274
    }
1275
    return manyByte;
1276
  }
1277
1278
  /**
1279
   * <!-- begin-user-doc -->
1280
   * <!-- end-user-doc -->
1281
   * @generated
1282
   */
1283
  public List<BigDecimal> getManyDecimal()
1284
  {
1285
    if (manyDecimal == null)
1286
    {
1287
      manyDecimal = new EDataTypeEList<BigDecimal>(BigDecimal.class, this, TypesPackageImpl.ATHING__MANY_DECIMAL);
1288
    }
1289
    return manyDecimal;
1290
  }
1291
1292
  /**
1293
   * <!-- begin-user-doc -->
1294
   * <!-- end-user-doc -->
1295
   * @generated
1296
   */
1297
  public List<Float> getManyFloat()
1298
  {
1299
    if (manyFloat == null)
1300
    {
1301
      manyFloat = new EDataTypeEList<Float>(Float.class, this, TypesPackageImpl.ATHING__MANY_FLOAT);
1302
    }
1303
    return manyFloat;
1304
  }
1305
1306
  /**
1307
   * <!-- begin-user-doc -->
1308
   * <!-- end-user-doc -->
1309
   * @generated
1310
   */
1311
  public List<Double> getManyDouble()
1312
  {
1313
    if (manyDouble == null)
1314
    {
1315
      manyDouble = new EDataTypeEList<Double>(Double.class, this, TypesPackageImpl.ATHING__MANY_DOUBLE);
1316
    }
1317
    return manyDouble;
1318
  }
1319
1320
  /**
1321
   * <!-- begin-user-doc -->
1322
   * <!-- end-user-doc -->
1323
   * @generated
1324
   */
1325
  public List<Integer> getManyInt()
1326
  {
1327
    if (manyInt == null)
1328
    {
1329
      manyInt = new EDataTypeEList<Integer>(Integer.class, this, TypesPackageImpl.ATHING__MANY_INT);
1330
    }
1331
    return manyInt;
1332
  }
1333
1334
  /**
1335
   * <!-- begin-user-doc -->
1336
   * <!-- end-user-doc -->
1337
   * @generated
1338
   */
1339
  public List<BigInteger> getManyInteger()
1340
  {
1341
    if (manyInteger == null)
1342
    {
1343
      manyInteger = new EDataTypeEList<BigInteger>(BigInteger.class, this, TypesPackageImpl.ATHING__MANY_INTEGER);
1344
    }
1345
    return manyInteger;
1346
  }
1347
1348
  /**
1349
   * <!-- begin-user-doc -->
1350
   * <!-- end-user-doc -->
1351
   * @generated
1352
   */
1353
  public List<Long> getManyLong()
1354
  {
1355
    if (manyLong == null)
1356
    {
1357
      manyLong = new EDataTypeEList<Long>(Long.class, this, TypesPackageImpl.ATHING__MANY_LONG);
1358
    }
1359
    return manyLong;
1360
  }
1361
1362
  /**
1363
   * <!-- begin-user-doc -->
1364
   * <!-- end-user-doc -->
1365
   * @generated
1366
   */
1367
  public List<Short> getManyShort()
1368
  {
1369
    if (manyShort == null)
1370
    {
1371
      manyShort = new EDataTypeEList<Short>(Short.class, this, TypesPackageImpl.ATHING__MANY_SHORT);
1372
    }
1373
    return manyShort;
1374
  }
1375
1376
  /**
1377
   * <!-- begin-user-doc -->
1378
   * <!-- end-user-doc -->
1379
   * @generated
1380
   */
1381
  public List<String> getManyString()
1382
  {
1383
    if (manyString == null)
1384
    {
1385
      manyString = new EDataTypeEList<String>(String.class, this, TypesPackageImpl.ATHING__MANY_STRING);
1386
    }
1387
    return manyString;
1388
  }
1389
1390
  /**
1391
   * <!-- begin-user-doc -->
1392
   * <!-- end-user-doc -->
1393
   * @generated
1394
   */
1395
  public List<Character> getManyChar()
1396
  {
1397
    if (manyChar == null)
1398
    {
1399
      manyChar = new EDataTypeEList<Character>(Character.class, this, TypesPackageImpl.ATHING__MANY_CHAR);
1400
    }
1401
    return manyChar;
1402
  }
1403
1404
  /**
1405
   * <!-- begin-user-doc -->
1406
   * <!-- end-user-doc -->
1407
   * @generated
1408
   */
1409
  public List<Date> getManyDate()
1410
  {
1411
    if (manyDate == null)
1412
    {
1413
      manyDate = new EDataTypeEList<Date>(Date.class, this, TypesPackageImpl.ATHING__MANY_DATE);
1414
    }
1415
    return manyDate;
1416
  }
1417
1418
  /**
1419
   * <!-- begin-user-doc -->
1420
   * <!-- end-user-doc -->
1421
   * @generated
1422
   */
1423
  public List<byte[]> getManyBytes()
1424
  {
1425
    if (manyBytes == null)
1426
    {
1427
      manyBytes = new EDataTypeEList<byte[]>(byte[].class, this, TypesPackageImpl.ATHING__MANY_BYTES);
1428
    }
1429
    return manyBytes;
1430
  }
1431
1432
  /**
1433
   * <!-- begin-user-doc -->
1434
   * <!-- end-user-doc -->
1435
   * @generated
1436
   */
1437
  public List<Number> getManyNumber()
1438
  {
1439
    if (manyNumber == null)
1440
    {
1441
      manyNumber = new EDataTypeEList<Number>(Number.class, this, TypesPackageImpl.ATHING__MANY_NUMBER);
1442
    }
1443
    return manyNumber;
1444
  }
1445
1446
  /**
1447
   * <!-- begin-user-doc -->
1448
   * <!-- end-user-doc -->
1449
   * @generated
1450
   */
1451
  public List<Object> getManyObject()
1452
  {
1453
    if (manyObject == null)
1454
    {
1455
      manyObject = new EDataTypeEList<Object>(Object.class, this, TypesPackageImpl.ATHING__MANY_OBJECT);
1456
    }
1457
    return manyObject;
1458
  }
1459
1460
  /**
1461
   * <!-- begin-user-doc -->
1462
   * <!-- end-user-doc -->
1463
   * @generated
1464
   */
1465
  public List<Thread> getManyThread()
1466
  {
1467
    if (manyThread == null)
1468
    {
1469
      manyThread = new EDataTypeEList<Thread>(Thread.class, this, TypesPackageImpl.ATHING__MANY_THREAD);
1470
    }
1471
    return manyThread;
1472
  }
1473
1474
  /**
1475
   * <!-- begin-user-doc -->
1476
   * <!-- end-user-doc -->
1477
   * @generated
1478
   */
1479
  @Override
1480
  public Object eGet(int featureID, boolean resolve, boolean coreType)
1481
  {
1482
    switch (featureID)
1483
    {
1484
      case TypesPackageImpl.ATHING__ABOOLEAN:
1485
        return isABoolean() ? Boolean.TRUE : Boolean.FALSE;
1486
      case TypesPackageImpl.ATHING__ABYTE:
1487
        return new Byte(getAByte());
1488
      case TypesPackageImpl.ATHING__ADECIMAL:
1489
        return getADecimal();
1490
      case TypesPackageImpl.ATHING__AFLOAT:
1491
        return new Float(getAFloat());
1492
      case TypesPackageImpl.ATHING__ADOUBLE:
1493
        return new Double(getADouble());
1494
      case TypesPackageImpl.ATHING__AINT:
1495
        return new Integer(getAInt());
1496
      case TypesPackageImpl.ATHING__AINTEGER:
1497
        return getAInteger();
1498
      case TypesPackageImpl.ATHING__ALONG:
1499
        return new Long(getALong());
1500
      case TypesPackageImpl.ATHING__ASHORT:
1501
        return new Short(getAShort());
1502
      case TypesPackageImpl.ATHING__ASTRING:
1503
        return getAString();
1504
      case TypesPackageImpl.ATHING__ACHAR:
1505
        return new Character(getAChar());
1506
      case TypesPackageImpl.ATHING__ADATE:
1507
        return getADate();
1508
      case TypesPackageImpl.ATHING__ABYTES:
1509
        return getABytes();
1510
      case TypesPackageImpl.ATHING__ANUMBER:
1511
        return getANumber();
1512
      case TypesPackageImpl.ATHING__AOBJECT:
1513
        return getAObject();
1514
      case TypesPackageImpl.ATHING__ATHREAD:
1515
        return getAThread();
1516
      case TypesPackageImpl.ATHING__MANY_BOOLEAN:
1517
        return getManyBoolean();
1518
      case TypesPackageImpl.ATHING__MANY_BYTE:
1519
        return getManyByte();
1520
      case TypesPackageImpl.ATHING__MANY_DECIMAL:
1521
        return getManyDecimal();
1522
      case TypesPackageImpl.ATHING__MANY_FLOAT:
1523
        return getManyFloat();
1524
      case TypesPackageImpl.ATHING__MANY_DOUBLE:
1525
        return getManyDouble();
1526
      case TypesPackageImpl.ATHING__MANY_INT:
1527
        return getManyInt();
1528
      case TypesPackageImpl.ATHING__MANY_INTEGER:
1529
        return getManyInteger();
1530
      case TypesPackageImpl.ATHING__MANY_LONG:
1531
        return getManyLong();
1532
      case TypesPackageImpl.ATHING__MANY_SHORT:
1533
        return getManyShort();
1534
      case TypesPackageImpl.ATHING__MANY_STRING:
1535
        return getManyString();
1536
      case TypesPackageImpl.ATHING__MANY_CHAR:
1537
        return getManyChar();
1538
      case TypesPackageImpl.ATHING__MANY_DATE:
1539
        return getManyDate();
1540
      case TypesPackageImpl.ATHING__MANY_BYTES:
1541
        return getManyBytes();
1542
      case TypesPackageImpl.ATHING__MANY_NUMBER:
1543
        return getManyNumber();
1544
      case TypesPackageImpl.ATHING__MANY_OBJECT:
1545
        return getManyObject();
1546
      case TypesPackageImpl.ATHING__MANY_THREAD:
1547
        return getManyThread();
1548
    }
1549
    return super.eGet(featureID, resolve, coreType);
1550
  }
1551
1552
  /**
1553
   * <!-- begin-user-doc -->
1554
   * <!-- end-user-doc -->
1555
   * @generated
1556
   */
1557
  @SuppressWarnings("unchecked")
1558
  @Override
1559
  public void eSet(int featureID, Object newValue)
1560
  {
1561
    switch (featureID)
1562
    {
1563
      case TypesPackageImpl.ATHING__ABOOLEAN:
1564
        setABoolean(((Boolean)newValue).booleanValue());
1565
        return;
1566
      case TypesPackageImpl.ATHING__ABYTE:
1567
        setAByte(((Byte)newValue).byteValue());
1568
        return;
1569
      case TypesPackageImpl.ATHING__ADECIMAL:
1570
        setADecimal((BigDecimal)newValue);
1571
        return;
1572
      case TypesPackageImpl.ATHING__AFLOAT:
1573
        setAFloat(((Float)newValue).floatValue());
1574
        return;
1575
      case TypesPackageImpl.ATHING__ADOUBLE:
1576
        setADouble(((Double)newValue).doubleValue());
1577
        return;
1578
      case TypesPackageImpl.ATHING__AINT:
1579
        setAInt(((Integer)newValue).intValue());
1580
        return;
1581
      case TypesPackageImpl.ATHING__AINTEGER:
1582
        setAInteger((BigInteger)newValue);
1583
        return;
1584
      case TypesPackageImpl.ATHING__ALONG:
1585
        setALong(((Long)newValue).longValue());
1586
        return;
1587
      case TypesPackageImpl.ATHING__ASHORT:
1588
        setAShort(((Short)newValue).shortValue());
1589
        return;
1590
      case TypesPackageImpl.ATHING__ASTRING:
1591
        setAString((String)newValue);
1592
        return;
1593
      case TypesPackageImpl.ATHING__ACHAR:
1594
        setAChar(((Character)newValue).charValue());
1595
        return;
1596
      case TypesPackageImpl.ATHING__ADATE:
1597
        setADate((Date)newValue);
1598
        return;
1599
      case TypesPackageImpl.ATHING__ABYTES:
1600
        setABytes((byte[])newValue);
1601
        return;
1602
      case TypesPackageImpl.ATHING__ANUMBER:
1603
        setANumber((Number)newValue);
1604
        return;
1605
      case TypesPackageImpl.ATHING__AOBJECT:
1606
        setAObject(newValue);
1607
        return;
1608
      case TypesPackageImpl.ATHING__ATHREAD:
1609
        setAThread((Thread)newValue);
1610
        return;
1611
      case TypesPackageImpl.ATHING__MANY_BOOLEAN:
1612
        getManyBoolean().clear();
1613
        getManyBoolean().addAll((Collection<? extends Boolean>)newValue);
1614
        return;
1615
      case TypesPackageImpl.ATHING__MANY_BYTE:
1616
        getManyByte().clear();
1617
        getManyByte().addAll((Collection<? extends Byte>)newValue);
1618
        return;
1619
      case TypesPackageImpl.ATHING__MANY_DECIMAL:
1620
        getManyDecimal().clear();
1621
        getManyDecimal().addAll((Collection<? extends BigDecimal>)newValue);
1622
        return;
1623
      case TypesPackageImpl.ATHING__MANY_FLOAT:
1624
        getManyFloat().clear();
1625
        getManyFloat().addAll((Collection<? extends Float>)newValue);
1626
        return;
1627
      case TypesPackageImpl.ATHING__MANY_DOUBLE:
1628
        getManyDouble().clear();
1629
        getManyDouble().addAll((Collection<? extends Double>)newValue);
1630
        return;
1631
      case TypesPackageImpl.ATHING__MANY_INT:
1632
        getManyInt().clear();
1633
        getManyInt().addAll((Collection<? extends Integer>)newValue);
1634
        return;
1635
      case TypesPackageImpl.ATHING__MANY_INTEGER:
1636
        getManyInteger().clear();
1637
        getManyInteger().addAll((Collection<? extends BigInteger>)newValue);
1638
        return;
1639
      case TypesPackageImpl.ATHING__MANY_LONG:
1640
        getManyLong().clear();
1641
        getManyLong().addAll((Collection<? extends Long>)newValue);
1642
        return;
1643
      case TypesPackageImpl.ATHING__MANY_SHORT:
1644
        getManyShort().clear();
1645
        getManyShort().addAll((Collection<? extends Short>)newValue);
1646
        return;
1647
      case TypesPackageImpl.ATHING__MANY_STRING:
1648
        getManyString().clear();
1649
        getManyString().addAll((Collection<? extends String>)newValue);
1650
        return;
1651
      case TypesPackageImpl.ATHING__MANY_CHAR:
1652
        getManyChar().clear();
1653
        getManyChar().addAll((Collection<? extends Character>)newValue);
1654
        return;
1655
      case TypesPackageImpl.ATHING__MANY_DATE:
1656
        getManyDate().clear();
1657
        getManyDate().addAll((Collection<? extends Date>)newValue);
1658
        return;
1659
      case TypesPackageImpl.ATHING__MANY_BYTES:
1660
        getManyBytes().clear();
1661
        getManyBytes().addAll((Collection<? extends byte[]>)newValue);
1662
        return;
1663
      case TypesPackageImpl.ATHING__MANY_NUMBER:
1664
        getManyNumber().clear();
1665
        getManyNumber().addAll((Collection<? extends Number>)newValue);
1666
        return;
1667
      case TypesPackageImpl.ATHING__MANY_OBJECT:
1668
        getManyObject().clear();
1669
        getManyObject().addAll((Collection<? extends Object>)newValue);
1670
        return;
1671
      case TypesPackageImpl.ATHING__MANY_THREAD:
1672
        getManyThread().clear();
1673
        getManyThread().addAll((Collection<? extends Thread>)newValue);
1674
        return;
1675
    }
1676
    super.eSet(featureID, newValue);
1677
  }
1678
1679
  /**
1680
   * <!-- begin-user-doc -->
1681
   * <!-- end-user-doc -->
1682
   * @generated
1683
   */
1684
  @Override
1685
  public void eUnset(int featureID)
1686
  {
1687
    switch (featureID)
1688
    {
1689
      case TypesPackageImpl.ATHING__ABOOLEAN:
1690
        unsetABoolean();
1691
        return;
1692
      case TypesPackageImpl.ATHING__ABYTE:
1693
        unsetAByte();
1694
        return;
1695
      case TypesPackageImpl.ATHING__ADECIMAL:
1696
        setADecimal(ADECIMAL_EDEFAULT);
1697
        return;
1698
      case TypesPackageImpl.ATHING__AFLOAT:
1699
        unsetAFloat();
1700
        return;
1701
      case TypesPackageImpl.ATHING__ADOUBLE:
1702
        unsetADouble();
1703
        return;
1704
      case TypesPackageImpl.ATHING__AINT:
1705
        unsetAInt();
1706
        return;
1707
      case TypesPackageImpl.ATHING__AINTEGER:
1708
        setAInteger(AINTEGER_EDEFAULT);
1709
        return;
1710
      case TypesPackageImpl.ATHING__ALONG:
1711
        unsetALong();
1712
        return;
1713
      case TypesPackageImpl.ATHING__ASHORT:
1714
        unsetAShort();
1715
        return;
1716
      case TypesPackageImpl.ATHING__ASTRING:
1717
        setAString(ASTRING_EDEFAULT);
1718
        return;
1719
      case TypesPackageImpl.ATHING__ACHAR:
1720
        unsetAChar();
1721
        return;
1722
      case TypesPackageImpl.ATHING__ADATE:
1723
        setADate(ADATE_EDEFAULT);
1724
        return;
1725
      case TypesPackageImpl.ATHING__ABYTES:
1726
        setABytes(ABYTES_EDEFAULT);
1727
        return;
1728
      case TypesPackageImpl.ATHING__ANUMBER:
1729
        setANumber(ANUMBER_EDEFAULT);
1730
        return;
1731
      case TypesPackageImpl.ATHING__AOBJECT:
1732
        setAObject(AOBJECT_EDEFAULT);
1733
        return;
1734
      case TypesPackageImpl.ATHING__ATHREAD:
1735
        setAThread(ATHREAD_EDEFAULT);
1736
        return;
1737
      case TypesPackageImpl.ATHING__MANY_BOOLEAN:
1738
        getManyBoolean().clear();
1739
        return;
1740
      case TypesPackageImpl.ATHING__MANY_BYTE:
1741
        getManyByte().clear();
1742
        return;
1743
      case TypesPackageImpl.ATHING__MANY_DECIMAL:
1744
        getManyDecimal().clear();
1745
        return;
1746
      case TypesPackageImpl.ATHING__MANY_FLOAT:
1747
        getManyFloat().clear();
1748
        return;
1749
      case TypesPackageImpl.ATHING__MANY_DOUBLE:
1750
        getManyDouble().clear();
1751
        return;
1752
      case TypesPackageImpl.ATHING__MANY_INT:
1753
        getManyInt().clear();
1754
        return;
1755
      case TypesPackageImpl.ATHING__MANY_INTEGER:
1756
        getManyInteger().clear();
1757
        return;
1758
      case TypesPackageImpl.ATHING__MANY_LONG:
1759
        getManyLong().clear();
1760
        return;
1761
      case TypesPackageImpl.ATHING__MANY_SHORT:
1762
        getManyShort().clear();
1763
        return;
1764
      case TypesPackageImpl.ATHING__MANY_STRING:
1765
        getManyString().clear();
1766
        return;
1767
      case TypesPackageImpl.ATHING__MANY_CHAR:
1768
        getManyChar().clear();
1769
        return;
1770
      case TypesPackageImpl.ATHING__MANY_DATE:
1771
        getManyDate().clear();
1772
        return;
1773
      case TypesPackageImpl.ATHING__MANY_BYTES:
1774
        getManyBytes().clear();
1775
        return;
1776
      case TypesPackageImpl.ATHING__MANY_NUMBER:
1777
        getManyNumber().clear();
1778
        return;
1779
      case TypesPackageImpl.ATHING__MANY_OBJECT:
1780
        getManyObject().clear();
1781
        return;
1782
      case TypesPackageImpl.ATHING__MANY_THREAD:
1783
        getManyThread().clear();
1784
        return;
1785
    }
1786
    super.eUnset(featureID);
1787
  }
1788
1789
  /**
1790
   * <!-- begin-user-doc -->
1791
   * <!-- end-user-doc -->
1792
   * @generated
1793
   */
1794
  @Override
1795
  public boolean eIsSet(int featureID)
1796
  {
1797
    switch (featureID)
1798
    {
1799
      case TypesPackageImpl.ATHING__ABOOLEAN:
1800
        return isSetABoolean();
1801
      case TypesPackageImpl.ATHING__ABYTE:
1802
        return isSetAByte();
1803
      case TypesPackageImpl.ATHING__ADECIMAL:
1804
        return ADECIMAL_EDEFAULT == null ? aDecimal != null : !ADECIMAL_EDEFAULT.equals(aDecimal);
1805
      case TypesPackageImpl.ATHING__AFLOAT:
1806
        return isSetAFloat();
1807
      case TypesPackageImpl.ATHING__ADOUBLE:
1808
        return isSetADouble();
1809
      case TypesPackageImpl.ATHING__AINT:
1810
        return isSetAInt();
1811
      case TypesPackageImpl.ATHING__AINTEGER:
1812
        return AINTEGER_EDEFAULT == null ? aInteger != null : !AINTEGER_EDEFAULT.equals(aInteger);
1813
      case TypesPackageImpl.ATHING__ALONG:
1814
        return isSetALong();
1815
      case TypesPackageImpl.ATHING__ASHORT:
1816
        return isSetAShort();
1817
      case TypesPackageImpl.ATHING__ASTRING:
1818
        return ASTRING_EDEFAULT == null ? aString != null : !ASTRING_EDEFAULT.equals(aString);
1819
      case TypesPackageImpl.ATHING__ACHAR:
1820
        return isSetAChar();
1821
      case TypesPackageImpl.ATHING__ADATE:
1822
        return ADATE_EDEFAULT == null ? aDate != null : !ADATE_EDEFAULT.equals(aDate);
1823
      case TypesPackageImpl.ATHING__ABYTES:
1824
        return ABYTES_EDEFAULT == null ? aBytes != null : !ABYTES_EDEFAULT.equals(aBytes);
1825
      case TypesPackageImpl.ATHING__ANUMBER:
1826
        return ANUMBER_EDEFAULT == null ? aNumber != null : !ANUMBER_EDEFAULT.equals(aNumber);
1827
      case TypesPackageImpl.ATHING__AOBJECT:
1828
        return AOBJECT_EDEFAULT == null ? aObject != null : !AOBJECT_EDEFAULT.equals(aObject);
1829
      case TypesPackageImpl.ATHING__ATHREAD:
1830
        return ATHREAD_EDEFAULT == null ? aThread != null : !ATHREAD_EDEFAULT.equals(aThread);
1831
      case TypesPackageImpl.ATHING__MANY_BOOLEAN:
1832
        return manyBoolean != null && !manyBoolean.isEmpty();
1833
      case TypesPackageImpl.ATHING__MANY_BYTE:
1834
        return manyByte != null && !manyByte.isEmpty();
1835
      case TypesPackageImpl.ATHING__MANY_DECIMAL:
1836
        return manyDecimal != null && !manyDecimal.isEmpty();
1837
      case TypesPackageImpl.ATHING__MANY_FLOAT:
1838
        return manyFloat != null && !manyFloat.isEmpty();
1839
      case TypesPackageImpl.ATHING__MANY_DOUBLE:
1840
        return manyDouble != null && !manyDouble.isEmpty();
1841
      case TypesPackageImpl.ATHING__MANY_INT:
1842
        return manyInt != null && !manyInt.isEmpty();
1843
      case TypesPackageImpl.ATHING__MANY_INTEGER:
1844
        return manyInteger != null && !manyInteger.isEmpty();
1845
      case TypesPackageImpl.ATHING__MANY_LONG:
1846
        return manyLong != null && !manyLong.isEmpty();
1847
      case TypesPackageImpl.ATHING__MANY_SHORT:
1848
        return manyShort != null && !manyShort.isEmpty();
1849
      case TypesPackageImpl.ATHING__MANY_STRING:
1850
        return manyString != null && !manyString.isEmpty();
1851
      case TypesPackageImpl.ATHING__MANY_CHAR:
1852
        return manyChar != null && !manyChar.isEmpty();
1853
      case TypesPackageImpl.ATHING__MANY_DATE:
1854
        return manyDate != null && !manyDate.isEmpty();
1855
      case TypesPackageImpl.ATHING__MANY_BYTES:
1856
        return manyBytes != null && !manyBytes.isEmpty();
1857
      case TypesPackageImpl.ATHING__MANY_NUMBER:
1858
        return manyNumber != null && !manyNumber.isEmpty();
1859
      case TypesPackageImpl.ATHING__MANY_OBJECT:
1860
        return manyObject != null && !manyObject.isEmpty();
1861
      case TypesPackageImpl.ATHING__MANY_THREAD:
1862
        return manyThread != null && !manyThread.isEmpty();
1863
    }
1864
    return super.eIsSet(featureID);
1865
  }
1866
1867
  /**
1868
   * <!-- begin-user-doc -->
1869
   * <!-- end-user-doc -->
1870
   * @generated
1871
   */
1872
  @Override
1873
  public String toString()
1874
  {
1875
    if (eIsProxy()) return super.toString();
1876
1877
    StringBuffer result = new StringBuffer(super.toString());
1878
    result.append(" (aBoolean: ");
1879
    if (aBooleanESet) result.append(aBoolean); else result.append("<unset>");
1880
    result.append(", aByte: ");
1881
    if (aByteESet) result.append(aByte); else result.append("<unset>");
1882
    result.append(", aDecimal: ");
1883
    result.append(aDecimal);
1884
    result.append(", aFloat: ");
1885
    if (aFloatESet) result.append(aFloat); else result.append("<unset>");
1886
    result.append(", aDouble: ");
1887
    if (aDoubleESet) result.append(aDouble); else result.append("<unset>");
1888
    result.append(", aInt: ");
1889
    if (aIntESet) result.append(aInt); else result.append("<unset>");
1890
    result.append(", aInteger: ");
1891
    result.append(aInteger);
1892
    result.append(", aLong: ");
1893
    if (aLongESet) result.append(aLong); else result.append("<unset>");
1894
    result.append(", aShort: ");
1895
    if (aShortESet) result.append(aShort); else result.append("<unset>");
1896
    result.append(", aString: ");
1897
    result.append(aString);
1898
    result.append(", aChar: ");
1899
    if (aCharESet) result.append(aChar); else result.append("<unset>");
1900
    result.append(", aDate: ");
1901
    result.append(aDate);
1902
    result.append(", aBytes: ");
1903
    result.append(aBytes);
1904
    result.append(", aNumber: ");
1905
    result.append(aNumber);
1906
    result.append(", aObject: ");
1907
    result.append(aObject);
1908
    result.append(", aThread: ");
1909
    result.append(aThread);
1910
    result.append(", manyBoolean: ");
1911
    result.append(manyBoolean);
1912
    result.append(", manyByte: ");
1913
    result.append(manyByte);
1914
    result.append(", manyDecimal: ");
1915
    result.append(manyDecimal);
1916
    result.append(", manyFloat: ");
1917
    result.append(manyFloat);
1918
    result.append(", manyDouble: ");
1919
    result.append(manyDouble);
1920
    result.append(", manyInt: ");
1921
    result.append(manyInt);
1922
    result.append(", manyInteger: ");
1923
    result.append(manyInteger);
1924
    result.append(", manyLong: ");
1925
    result.append(manyLong);
1926
    result.append(", manyShort: ");
1927
    result.append(manyShort);
1928
    result.append(", manyString: ");
1929
    result.append(manyString);
1930
    result.append(", manyChar: ");
1931
    result.append(manyChar);
1932
    result.append(", manyDate: ");
1933
    result.append(manyDate);
1934
    result.append(", manyBytes: ");
1935
    result.append(manyBytes);
1936
    result.append(", manyNumber: ");
1937
    result.append(manyNumber);
1938
    result.append(", manyObject: ");
1939
    result.append(manyObject);
1940
    result.append(", manyThread: ");
1941
    result.append(manyThread);
1942
    result.append(')');
1943
    return result.toString();
1944
  }
1945
1946
} //AThingImpl
(-)src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java (-329 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesFactoryImpl.java,v 1.4 2007/03/21 18:18:53 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types.impl;
18
19
import java.util.Date;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EDataType;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.EPackage;
25
26
import org.eclipse.emf.ecore.impl.EFactoryImpl;
27
28
import org.eclipse.emf.ecore.plugin.EcorePlugin;
29
30
import org.eclipse.emf.test.models.types.*;
31
32
/**
33
 * <!-- begin-user-doc -->
34
 * An implementation of the model <b>Factory</b>.
35
 * <!-- end-user-doc -->
36
 * @generated
37
 */
38
public class TypesFactoryImpl extends EFactoryImpl implements TypesFactory
39
{
40
  /**
41
   * The singleton instance of the factory.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  public static final TypesFactoryImpl eINSTANCE = init();
47
48
  /**
49
   * Creates the default factory implementation.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public static TypesFactoryImpl init()
55
  {
56
    try
57
    {
58
      TypesFactoryImpl theTypesFactory = (TypesFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/types"); 
59
      if (theTypesFactory != null)
60
      {
61
        return theTypesFactory;
62
      }
63
    }
64
    catch (Exception exception)
65
    {
66
      EcorePlugin.INSTANCE.log(exception);
67
    }
68
    return new TypesFactoryImpl();
69
  }
70
71
  /**
72
   * Creates an instance of the factory.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @generated
76
   */
77
  public TypesFactoryImpl()
78
  {
79
    super();
80
  }
81
82
  /**
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  @Override
88
  public EObject create(EClass eClass)
89
  {
90
    switch (eClass.getClassifierID())
91
    {
92
      case TypesPackageImpl.ATHING: return (EObject)createAThing();
93
      default:
94
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
95
    }
96
  }
97
98
  /**
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  @Override
104
  public Object createFromString(EDataType eDataType, String initialValue)
105
  {
106
    switch (eDataType.getClassifierID())
107
    {
108
      case TypesPackageImpl.MY_BYTES:
109
        return createMyBytesFromString(eDataType, initialValue);
110
      case TypesPackageImpl.MY_CHAR:
111
        return createMyCharFromString(eDataType, initialValue);
112
      case TypesPackageImpl.MY_CHAR_OBJECT:
113
        return createMyCharObjectFromString(eDataType, initialValue);
114
      case TypesPackageImpl.MY_DATE:
115
        return createMyDateFromString(eDataType, initialValue);
116
      case TypesPackageImpl.MY_NUMBER:
117
        return createMyNumberFromString(eDataType, initialValue);
118
      case TypesPackageImpl.MY_OBJECT:
119
        return createMyObjectFromString(eDataType, initialValue);
120
      case TypesPackageImpl.MY_THREAD:
121
        return createMyThreadFromString(eDataType, initialValue);
122
      default:
123
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
124
    }
125
  }
126
127
  /**
128
   * <!-- begin-user-doc -->
129
   * <!-- end-user-doc -->
130
   * @generated
131
   */
132
  @Override
133
  public String convertToString(EDataType eDataType, Object instanceValue)
134
  {
135
    switch (eDataType.getClassifierID())
136
    {
137
      case TypesPackageImpl.MY_BYTES:
138
        return convertMyBytesToString(eDataType, instanceValue);
139
      case TypesPackageImpl.MY_CHAR:
140
        return convertMyCharToString(eDataType, instanceValue);
141
      case TypesPackageImpl.MY_CHAR_OBJECT:
142
        return convertMyCharObjectToString(eDataType, instanceValue);
143
      case TypesPackageImpl.MY_DATE:
144
        return convertMyDateToString(eDataType, instanceValue);
145
      case TypesPackageImpl.MY_NUMBER:
146
        return convertMyNumberToString(eDataType, instanceValue);
147
      case TypesPackageImpl.MY_OBJECT:
148
        return convertMyObjectToString(eDataType, instanceValue);
149
      case TypesPackageImpl.MY_THREAD:
150
        return convertMyThreadToString(eDataType, instanceValue);
151
      default:
152
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
153
    }
154
  }
155
156
  /**
157
   * <!-- begin-user-doc -->
158
   * <!-- end-user-doc -->
159
   * @generated
160
   */
161
  public AThing createAThing()
162
  {
163
    AThingImpl aThing = new AThingImpl();
164
    return aThing;
165
  }
166
167
  /**
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   */
172
  public byte[] createMyBytesFromString(EDataType eDataType, String initialValue)
173
  {
174
    return (byte[])super.createFromString(initialValue);
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public String convertMyBytesToString(EDataType eDataType, Object instanceValue)
183
  {
184
    return super.convertToString(instanceValue);
185
  }
186
187
  /**
188
   * <!-- begin-user-doc -->
189
   * <!-- end-user-doc -->
190
   * @generated
191
   */
192
  public Character createMyCharFromString(EDataType eDataType, String initialValue)
193
  {
194
    return (Character)super.createFromString(eDataType, initialValue);
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @generated
201
   */
202
  public String convertMyCharToString(EDataType eDataType, Object instanceValue)
203
  {
204
    return super.convertToString(eDataType, instanceValue);
205
  }
206
207
  /**
208
   * <!-- begin-user-doc -->
209
   * <!-- end-user-doc -->
210
   * @generated
211
   */
212
  public Character createMyCharObjectFromString(EDataType eDataType, String initialValue)
213
  {
214
    return createMyCharFromString(TypesPackageImpl.Literals.MY_CHAR, initialValue);
215
  }
216
217
  /**
218
   * <!-- begin-user-doc -->
219
   * <!-- end-user-doc -->
220
   * @generated
221
   */
222
  public String convertMyCharObjectToString(EDataType eDataType, Object instanceValue)
223
  {
224
    return convertMyCharToString(TypesPackageImpl.Literals.MY_CHAR, instanceValue);
225
  }
226
227
  /**
228
   * <!-- begin-user-doc -->
229
   * <!-- end-user-doc -->
230
   * @generated
231
   */
232
  public Date createMyDateFromString(EDataType eDataType, String initialValue)
233
  {
234
    return (Date)super.createFromString(eDataType, initialValue);
235
  }
236
237
  /**
238
   * <!-- begin-user-doc -->
239
   * <!-- end-user-doc -->
240
   * @generated
241
   */
242
  public String convertMyDateToString(EDataType eDataType, Object instanceValue)
243
  {
244
    return super.convertToString(eDataType, instanceValue);
245
  }
246
247
  /**
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @generated
251
   */
252
  public Number createMyNumberFromString(EDataType eDataType, String initialValue)
253
  {
254
    return (Number)super.createFromString(eDataType, initialValue);
255
  }
256
257
  /**
258
   * <!-- begin-user-doc -->
259
   * <!-- end-user-doc -->
260
   * @generated
261
   */
262
  public String convertMyNumberToString(EDataType eDataType, Object instanceValue)
263
  {
264
    return super.convertToString(eDataType, instanceValue);
265
  }
266
267
  /**
268
   * <!-- begin-user-doc -->
269
   * <!-- end-user-doc -->
270
   * @generated
271
   */
272
  public Object createMyObjectFromString(EDataType eDataType, String initialValue)
273
  {
274
    return super.createFromString(eDataType, initialValue);
275
  }
276
277
  /**
278
   * <!-- begin-user-doc -->
279
   * <!-- end-user-doc -->
280
   * @generated
281
   */
282
  public String convertMyObjectToString(EDataType eDataType, Object instanceValue)
283
  {
284
    return super.convertToString(eDataType, instanceValue);
285
  }
286
287
  /**
288
   * <!-- begin-user-doc -->
289
   * <!-- end-user-doc -->
290
   * @generated
291
   */
292
  public Thread createMyThreadFromString(EDataType eDataType, String initialValue)
293
  {
294
    return (Thread)super.createFromString(eDataType, initialValue);
295
  }
296
297
  /**
298
   * <!-- begin-user-doc -->
299
   * <!-- end-user-doc -->
300
   * @generated
301
   */
302
  public String convertMyThreadToString(EDataType eDataType, Object instanceValue)
303
  {
304
    return super.convertToString(eDataType, instanceValue);
305
  }
306
307
  /**
308
   * <!-- begin-user-doc -->
309
   * <!-- end-user-doc -->
310
   * @generated
311
   */
312
  public TypesPackageImpl getTypesPackageImpl()
313
  {
314
    return (TypesPackageImpl)getEPackage();
315
  }
316
317
  /**
318
   * <!-- begin-user-doc -->
319
   * <!-- end-user-doc -->
320
   * @deprecated
321
   * @generated
322
   */
323
  @Deprecated
324
  public static TypesPackageImpl getPackage()
325
  {
326
    return TypesPackageImpl.eINSTANCE;
327
  }
328
329
} //TypesFactoryImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedResourceImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.personal.mixed.util.MixedResourceFactoryImpl
28
 * @generated
29
 */
30
public class MixedResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public MixedResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //MixedResourceImpl
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.personal.mixed.*;
25
26
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl
39
 * @generated
40
 */
41
public class MixedSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static MixedPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public MixedSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = MixedPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case MixedPackageImpl.DOCUMENT_ROOT:
112
      {
113
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
114
        T result = caseDocumentRoot(documentRoot);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case MixedPackageImpl.LINK_TYPE:
119
      {
120
        LinkType linkType = (LinkType)theEObject;
121
        T result = caseLinkType(linkType);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case MixedPackageImpl.NAME_TYPE:
126
      {
127
        NameType nameType = (NameType)theEObject;
128
        T result = caseNameType(nameType);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case MixedPackageImpl.PERSONNEL_TYPE:
133
      {
134
        PersonnelType personnelType = (PersonnelType)theEObject;
135
        T result = casePersonnelType(personnelType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case MixedPackageImpl.PERSON_TYPE:
140
      {
141
        PersonType personType = (PersonType)theEObject;
142
        T result = casePersonType(personType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case MixedPackageImpl.URL_TYPE:
147
      {
148
        UrlType urlType = (UrlType)theEObject;
149
        T result = caseUrlType(urlType);
150
        if (result == null) result = defaultCase(theEObject);
151
        return result;
152
      }
153
      default: return defaultCase(theEObject);
154
    }
155
  }
156
157
  /**
158
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
159
   * <!-- begin-user-doc -->
160
   * This implementation returns null;
161
   * returning a non-null result will terminate the switch.
162
   * <!-- end-user-doc -->
163
   * @param object the target of the switch.
164
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
165
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166
   * @generated
167
   */
168
  public T caseDocumentRoot(DocumentRoot object)
169
  {
170
    return null;
171
  }
172
173
  /**
174
   * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'.
175
   * <!-- begin-user-doc -->
176
   * This implementation returns null;
177
   * returning a non-null result will terminate the switch.
178
   * <!-- end-user-doc -->
179
   * @param object the target of the switch.
180
   * @return the result of interpreting the object as an instance of '<em>Link Type</em>'.
181
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
182
   * @generated
183
   */
184
  public T caseLinkType(LinkType object)
185
  {
186
    return null;
187
  }
188
189
  /**
190
   * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'.
191
   * <!-- begin-user-doc -->
192
   * This implementation returns null;
193
   * returning a non-null result will terminate the switch.
194
   * <!-- end-user-doc -->
195
   * @param object the target of the switch.
196
   * @return the result of interpreting the object as an instance of '<em>Name Type</em>'.
197
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
198
   * @generated
199
   */
200
  public T caseNameType(NameType object)
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
207
   * <!-- begin-user-doc -->
208
   * This implementation returns null;
209
   * returning a non-null result will terminate the switch.
210
   * <!-- end-user-doc -->
211
   * @param object the target of the switch.
212
   * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
213
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
214
   * @generated
215
   */
216
  public T casePersonnelType(PersonnelType object)
217
  {
218
    return null;
219
  }
220
221
  /**
222
   * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'.
223
   * <!-- begin-user-doc -->
224
   * This implementation returns null;
225
   * returning a non-null result will terminate the switch.
226
   * <!-- end-user-doc -->
227
   * @param object the target of the switch.
228
   * @return the result of interpreting the object as an instance of '<em>Person Type</em>'.
229
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
230
   * @generated
231
   */
232
  public T casePersonType(PersonType object)
233
  {
234
    return null;
235
  }
236
237
  /**
238
   * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'.
239
   * <!-- begin-user-doc -->
240
   * This implementation returns null;
241
   * returning a non-null result will terminate the switch.
242
   * <!-- end-user-doc -->
243
   * @param object the target of the switch.
244
   * @return the result of interpreting the object as an instance of '<em>Url Type</em>'.
245
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
246
   * @generated
247
   */
248
  public T caseUrlType(UrlType object)
249
  {
250
    return null;
251
  }
252
253
  /**
254
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
255
   * <!-- begin-user-doc -->
256
   * This implementation returns null;
257
   * returning a non-null result will terminate the switch, but this is the last case anyway.
258
   * <!-- end-user-doc -->
259
   * @param object the target of the switch.
260
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
261
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
262
   * @generated
263
   */
264
  public T defaultCase(EObject object)
265
  {
266
    return null;
267
  }
268
269
} //MixedSwitch
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java (-248 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.personal.mixed.*;
27
28
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl
36
 * @generated
37
 */
38
public class MixedAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static MixedPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public MixedAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = MixedPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected MixedSwitch<Adapter> modelSwitch =
91
    new MixedSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseDocumentRoot(DocumentRoot object)
95
      {
96
        return createDocumentRootAdapter();
97
      }
98
      @Override
99
      public Adapter caseLinkType(LinkType object)
100
      {
101
        return createLinkTypeAdapter();
102
      }
103
      @Override
104
      public Adapter caseNameType(NameType object)
105
      {
106
        return createNameTypeAdapter();
107
      }
108
      @Override
109
      public Adapter casePersonnelType(PersonnelType object)
110
      {
111
        return createPersonnelTypeAdapter();
112
      }
113
      @Override
114
      public Adapter casePersonType(PersonType object)
115
      {
116
        return createPersonTypeAdapter();
117
      }
118
      @Override
119
      public Adapter caseUrlType(UrlType object)
120
      {
121
        return createUrlTypeAdapter();
122
      }
123
      @Override
124
      public Adapter defaultCase(EObject object)
125
      {
126
        return createEObjectAdapter();
127
      }
128
    };
129
130
  /**
131
   * Creates an adapter for the <code>target</code>.
132
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
134
   * @param target the object to adapt.
135
   * @return the adapter for the <code>target</code>.
136
   * @generated
137
   */
138
  @Override
139
  public Adapter createAdapter(Notifier target)
140
  {
141
    return modelSwitch.doSwitch((EObject)target);
142
  }
143
144
145
  /**
146
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'.
147
   * <!-- begin-user-doc -->
148
   * This default implementation returns null so that we can easily ignore cases;
149
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
   * <!-- end-user-doc -->
151
   * @return the new adapter.
152
   * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot
153
   * @generated
154
   */
155
  public Adapter createDocumentRootAdapter()
156
  {
157
    return null;
158
  }
159
160
  /**
161
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'.
162
   * <!-- begin-user-doc -->
163
   * This default implementation returns null so that we can easily ignore cases;
164
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
165
   * <!-- end-user-doc -->
166
   * @return the new adapter.
167
   * @see org.eclipse.emf.test.models.personal.mixed.LinkType
168
   * @generated
169
   */
170
  public Adapter createLinkTypeAdapter()
171
  {
172
    return null;
173
  }
174
175
  /**
176
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'.
177
   * <!-- begin-user-doc -->
178
   * This default implementation returns null so that we can easily ignore cases;
179
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
180
   * <!-- end-user-doc -->
181
   * @return the new adapter.
182
   * @see org.eclipse.emf.test.models.personal.mixed.NameType
183
   * @generated
184
   */
185
  public Adapter createNameTypeAdapter()
186
  {
187
    return null;
188
  }
189
190
  /**
191
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'.
192
   * <!-- begin-user-doc -->
193
   * This default implementation returns null so that we can easily ignore cases;
194
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
195
   * <!-- end-user-doc -->
196
   * @return the new adapter.
197
   * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType
198
   * @generated
199
   */
200
  public Adapter createPersonnelTypeAdapter()
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'.
207
   * <!-- begin-user-doc -->
208
   * This default implementation returns null so that we can easily ignore cases;
209
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
210
   * <!-- end-user-doc -->
211
   * @return the new adapter.
212
   * @see org.eclipse.emf.test.models.personal.mixed.PersonType
213
   * @generated
214
   */
215
  public Adapter createPersonTypeAdapter()
216
  {
217
    return null;
218
  }
219
220
  /**
221
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'.
222
   * <!-- begin-user-doc -->
223
   * This default implementation returns null so that we can easily ignore cases;
224
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
225
   * <!-- end-user-doc -->
226
   * @return the new adapter.
227
   * @see org.eclipse.emf.test.models.personal.mixed.UrlType
228
   * @generated
229
   */
230
  public Adapter createUrlTypeAdapter()
231
  {
232
    return null;
233
  }
234
235
  /**
236
   * Creates a new adapter for the default case.
237
   * <!-- begin-user-doc -->
238
   * This default implementation returns null.
239
   * <!-- end-user-doc -->
240
   * @return the new adapter.
241
   * @generated
242
   */
243
  public Adapter createEObjectAdapter()
244
  {
245
    return null;
246
  }
247
248
} //MixedAdapterFactory
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedXMLProcessor.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class MixedXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public MixedXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    MixedPackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the MixedResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new MixedResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new MixedResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //MixedXMLProcessor
(-)src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.personal.mixed.util.MixedResourceImpl
32
 * @generated
33
 */
34
public class MixedResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public MixedResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new MixedResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //MixedResourceFactoryImpl
(-)models/sdo.Simple/simple.ecore (-71 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="simple"
5
    nsURI="http:///org.eclipse.emf.test.models/simple" nsPrefix="simple">
6
  <eClassifiers xsi:type="ecore:EClass" name="Quote">
7
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
8
      <details key="name" value="Quote"/>
9
      <details key="kind" value="elementOnly"/>
10
    </eAnnotations>
11
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="symbol" lowerBound="1"
12
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
13
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
14
        <details key="kind" value="element"/>
15
        <details key="name" value="symbol"/>
16
      </eAnnotations>
17
    </eStructuralFeatures>
18
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="companyName" lowerBound="1"
19
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
20
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
21
        <details key="kind" value="element"/>
22
        <details key="name" value="companyName"/>
23
      </eAnnotations>
24
    </eStructuralFeatures>
25
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
26
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
27
        <details key="kind" value="element"/>
28
        <details key="name" value="price"/>
29
      </eAnnotations>
30
    </eStructuralFeatures>
31
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="open1" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
32
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
33
        <details key="kind" value="element"/>
34
        <details key="name" value="open1"/>
35
      </eAnnotations>
36
    </eStructuralFeatures>
37
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="high" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
38
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
39
        <details key="kind" value="element"/>
40
        <details key="name" value="high"/>
41
      </eAnnotations>
42
    </eStructuralFeatures>
43
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="low" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
44
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
45
        <details key="kind" value="element"/>
46
        <details key="name" value="low"/>
47
      </eAnnotations>
48
    </eStructuralFeatures>
49
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="volume" lowerBound="1"
50
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true">
51
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
52
        <details key="kind" value="element"/>
53
        <details key="name" value="volume"/>
54
      </eAnnotations>
55
    </eStructuralFeatures>
56
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="change1" lowerBound="1"
57
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true">
58
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
59
        <details key="kind" value="element"/>
60
        <details key="name" value="change1"/>
61
      </eAnnotations>
62
    </eStructuralFeatures>
63
    <eStructuralFeatures xsi:type="ecore:EReference" name="quotes" upperBound="-1"
64
        eType="#//Quote" containment="true" resolveProxies="false">
65
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
66
        <details key="kind" value="element"/>
67
        <details key="name" value="quotes"/>
68
      </eAnnotations>
69
    </eStructuralFeatures>
70
  </eClassifiers>
71
</ecore:EPackage>
(-)models/sdo.Simple/simple.genmodel (-29 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="Simple" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
11
  <foreignModel>simple.xsd</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="Simple" basePackage="org.eclipse.emf.test.models.sdo" resource="XML"
16
      disposableProviderFactory="true" ecorePackage="simple.ecore#/">
17
    <genClasses ecoreClass="simple.ecore#//Quote">
18
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/symbol"/>
19
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/companyName"/>
20
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/price"/>
21
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/open1"/>
22
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/high"/>
23
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/low"/>
24
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/volume"/>
25
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/change1"/>
26
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference simple.ecore#//Quote/quotes"/>
27
    </genClasses>
28
  </genPackages>
29
</genmodel:GenModel>
(-)models/sdo.Simple/simple.xsd (-20 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema 
3
  targetNamespace="http:///org.eclipse.emf.test.models/simple"
4
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
5
  xmlns:simple="http:///org.eclipse.emf.test.models/simple"> 
6
7
   <xsd:complexType name="Quote">
8
       <xsd:sequence>
9
          <xsd:element name="symbol" type="xsd:string"/>
10
          <xsd:element name="companyName" type="xsd:string"/>
11
          <xsd:element name="price" type="xsd:decimal"/>
12
          <xsd:element name="open1" type="xsd:decimal"/>
13
          <xsd:element name="high" type="xsd:decimal"/>
14
          <xsd:element name="low" type="xsd:decimal"/>
15
          <xsd:element name="volume" type="xsd:double"/>
16
          <xsd:element name="change1" type="xsd:double"/>
17
          <xsd:element name="quotes" type="simple:Quote" minOccurs="0" maxOccurs="unbounded"/>
18
       </xsd:sequence>
19
   </xsd:complexType>
20
</xsd:schema>
(-)models/Library/sdoLibrary.genmodel (-38 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="SDOLibrary" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.emf.importer.rose" complianceLevel="5.0">
11
  <foreignModel>library.mdl</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="SDOLibrary" basePackage="org.eclipse.emf.test.models.sdo" disposableProviderFactory="true"
16
      ecorePackage="sdoLibrary.ecore#/">
17
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="sdoLibrary.ecore#//BookCategory">
18
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Mystery"/>
19
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/ScienceFiction"/>
20
      <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Biography"/>
21
    </genEnums>
22
    <genClasses ecoreClass="sdoLibrary.ecore#//Book">
23
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/title"/>
24
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/pages"/>
25
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/category"/>
26
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Book/author"/>
27
    </genClasses>
28
    <genClasses ecoreClass="sdoLibrary.ecore#//Library">
29
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Library/name"/>
30
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/writers"/>
31
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/books"/>
32
    </genClasses>
33
    <genClasses ecoreClass="sdoLibrary.ecore#//Writer">
34
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Writer/name"/>
35
      <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Writer/books"/>
36
    </genClasses>
37
  </genPackages>
38
</genmodel:GenModel>
(-)models/Library/sdoLibrary.ecore (-31 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
5
    nsURI="http:///org.eclipse.emf.test.models/SDOLibrary" nsPrefix="org.eclipse.emf.test.models.sdolibrary">
6
  <eClassifiers xsi:type="ecore:EClass" name="Book">
7
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
8
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
9
        defaultValueLiteral="100"/>
10
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/>
11
    <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
12
        eType="#//Writer" eOpposite="#//Writer/books"/>
13
  </eClassifiers>
14
  <eClassifiers xsi:type="ecore:EClass" name="Library">
15
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
16
    <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
17
        eType="#//Writer" containment="true"/>
18
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
19
        eType="#//Book" containment="true"/>
20
  </eClassifiers>
21
  <eClassifiers xsi:type="ecore:EClass" name="Writer">
22
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
23
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
24
        eType="#//Book" eOpposite="#//Book/author"/>
25
  </eClassifiers>
26
  <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
27
    <eLiterals name="Mystery"/>
28
    <eLiterals name="ScienceFiction" value="1"/>
29
    <eLiterals name="Biography" value="2"/>
30
  </eClassifiers>
31
</ecore:EPackage>
(-)src/org/eclipse/emf/test/models/sdo/library/util/SDOLibrarySwitch.java (-200 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibrarySwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.sdo.library.*;
25
26
import org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl
39
 * @generated
40
 */
41
public class SDOLibrarySwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static SDOLibraryPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public SDOLibrarySwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = SDOLibraryPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case SDOLibraryPackageImpl.BOOK:
112
      {
113
        Book book = (Book)theEObject;
114
        T result = caseBook(book);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case SDOLibraryPackageImpl.LIBRARY:
119
      {
120
        Library library = (Library)theEObject;
121
        T result = caseLibrary(library);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case SDOLibraryPackageImpl.WRITER:
126
      {
127
        Writer writer = (Writer)theEObject;
128
        T result = caseWriter(writer);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      default: return defaultCase(theEObject);
133
    }
134
  }
135
136
  /**
137
   * Returns the result of interpreting the object as an instance of '<em>Book</em>'.
138
   * <!-- begin-user-doc -->
139
   * This implementation returns null;
140
   * returning a non-null result will terminate the switch.
141
   * <!-- end-user-doc -->
142
   * @param object the target of the switch.
143
   * @return the result of interpreting the object as an instance of '<em>Book</em>'.
144
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
145
   * @generated
146
   */
147
  public T caseBook(Book object)
148
  {
149
    return null;
150
  }
151
152
  /**
153
   * Returns the result of interpreting the object as an instance of '<em>Library</em>'.
154
   * <!-- begin-user-doc -->
155
   * This implementation returns null;
156
   * returning a non-null result will terminate the switch.
157
   * <!-- end-user-doc -->
158
   * @param object the target of the switch.
159
   * @return the result of interpreting the object as an instance of '<em>Library</em>'.
160
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
161
   * @generated
162
   */
163
  public T caseLibrary(Library object)
164
  {
165
    return null;
166
  }
167
168
  /**
169
   * Returns the result of interpreting the object as an instance of '<em>Writer</em>'.
170
   * <!-- begin-user-doc -->
171
   * This implementation returns null;
172
   * returning a non-null result will terminate the switch.
173
   * <!-- end-user-doc -->
174
   * @param object the target of the switch.
175
   * @return the result of interpreting the object as an instance of '<em>Writer</em>'.
176
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
177
   * @generated
178
   */
179
  public T caseWriter(Writer object)
180
  {
181
    return null;
182
  }
183
184
  /**
185
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
186
   * <!-- begin-user-doc -->
187
   * This implementation returns null;
188
   * returning a non-null result will terminate the switch, but this is the last case anyway.
189
   * <!-- end-user-doc -->
190
   * @param object the target of the switch.
191
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
192
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
193
   * @generated
194
   */
195
  public T defaultCase(EObject object)
196
  {
197
    return null;
198
  }
199
200
} //SDOLibrarySwitch
(-)src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java (-188 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.sdo.library.*;
27
28
import org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl
36
 * @generated
37
 */
38
public class SDOLibraryAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static SDOLibraryPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public SDOLibraryAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = SDOLibraryPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected SDOLibrarySwitch<Adapter> modelSwitch =
91
    new SDOLibrarySwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseBook(Book object)
95
      {
96
        return createBookAdapter();
97
      }
98
      @Override
99
      public Adapter caseLibrary(Library object)
100
      {
101
        return createLibraryAdapter();
102
      }
103
      @Override
104
      public Adapter caseWriter(Writer object)
105
      {
106
        return createWriterAdapter();
107
      }
108
      @Override
109
      public Adapter defaultCase(EObject object)
110
      {
111
        return createEObjectAdapter();
112
      }
113
    };
114
115
  /**
116
   * Creates an adapter for the <code>target</code>.
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @param target the object to adapt.
120
   * @return the adapter for the <code>target</code>.
121
   * @generated
122
   */
123
  @Override
124
  public Adapter createAdapter(Notifier target)
125
  {
126
    return modelSwitch.doSwitch((EObject)target);
127
  }
128
129
130
  /**
131
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'.
132
   * <!-- begin-user-doc -->
133
   * This default implementation returns null so that we can easily ignore cases;
134
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
135
   * <!-- end-user-doc -->
136
   * @return the new adapter.
137
   * @see org.eclipse.emf.test.models.sdo.library.Book
138
   * @generated
139
   */
140
  public Adapter createBookAdapter()
141
  {
142
    return null;
143
  }
144
145
  /**
146
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'.
147
   * <!-- begin-user-doc -->
148
   * This default implementation returns null so that we can easily ignore cases;
149
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
   * <!-- end-user-doc -->
151
   * @return the new adapter.
152
   * @see org.eclipse.emf.test.models.sdo.library.Library
153
   * @generated
154
   */
155
  public Adapter createLibraryAdapter()
156
  {
157
    return null;
158
  }
159
160
  /**
161
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'.
162
   * <!-- begin-user-doc -->
163
   * This default implementation returns null so that we can easily ignore cases;
164
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
165
   * <!-- end-user-doc -->
166
   * @return the new adapter.
167
   * @see org.eclipse.emf.test.models.sdo.library.Writer
168
   * @generated
169
   */
170
  public Adapter createWriterAdapter()
171
  {
172
    return null;
173
  }
174
175
  /**
176
   * Creates a new adapter for the default case.
177
   * <!-- begin-user-doc -->
178
   * This default implementation returns null.
179
   * <!-- end-user-doc -->
180
   * @return the new adapter.
181
   * @generated
182
   */
183
  public Adapter createEObjectAdapter()
184
  {
185
    return null;
186
  }
187
188
} //SDOLibraryAdapterFactory
(-)src/org/eclipse/emf/test/models/personal/mixed/NameType.java (-107 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Name Type</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}</li>
32
 * </ul>
33
 * </p>
34
 *
35
 * @model extendedMetaData="name='nameType' kind='mixed'"
36
 * @generated
37
 */
38
public interface NameType
39
{
40
  /**
41
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
42
   * <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
45
   * there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * @return the value of the '<em>Mixed</em>' attribute list.
49
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
50
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
51
   * @generated
52
   */
53
  Sequence getMixed();
54
55
  /**
56
   * Returns the value of the '<em><b>Family</b></em>' attribute.
57
   * <!-- begin-user-doc -->
58
   * <p>
59
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
60
   * there really should be more of a description here...
61
   * </p>
62
   * <!-- end-user-doc -->
63
   * @return the value of the '<em>Family</em>' attribute.
64
   * @see #setFamily(String)
65
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true"
66
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
67
   * @generated
68
   */
69
  String getFamily();
70
71
  /**
72
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}' attribute.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @param value the new value of the '<em>Family</em>' attribute.
76
   * @see #getFamily()
77
   * @generated
78
   */
79
  void setFamily(String value);
80
81
  /**
82
   * Returns the value of the '<em><b>Given</b></em>' attribute.
83
   * <!-- begin-user-doc -->
84
   * <p>
85
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
86
   * there really should be more of a description here...
87
   * </p>
88
   * <!-- end-user-doc -->
89
   * @return the value of the '<em>Given</em>' attribute.
90
   * @see #setGiven(String)
91
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true"
92
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
93
   * @generated
94
   */
95
  String getGiven();
96
97
  /**
98
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}' attribute.
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @param value the new value of the '<em>Given</em>' attribute.
102
   * @see #getGiven()
103
   * @generated
104
   */
105
  void setGiven(String value);
106
107
} // NameType
(-)src/org/eclipse/emf/test/models/personal/mixed/UrlType.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Url Type</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @model extendedMetaData="name='url_._type' kind='empty'"
33
 * @generated
34
 */
35
public interface UrlType
36
{
37
  /**
38
   * Returns the value of the '<em><b>Href</b></em>' attribute.
39
   * The default value is <code>"http://"</code>.
40
   * <!-- begin-user-doc -->
41
   * <p>
42
   * If the meaning of the '<em>Href</em>' attribute isn't clear,
43
   * there really should be more of a description here...
44
   * </p>
45
   * <!-- end-user-doc -->
46
   * @return the value of the '<em>Href</em>' attribute.
47
   * @see #isSetHref()
48
   * @see #unsetHref()
49
   * @see #setHref(String)
50
   * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
51
   *        extendedMetaData="kind='attribute' name='href'"
52
   * @generated
53
   */
54
  String getHref();
55
56
  /**
57
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute.
58
   * <!-- begin-user-doc -->
59
   * <!-- end-user-doc -->
60
   * @param value the new value of the '<em>Href</em>' attribute.
61
   * @see #isSetHref()
62
   * @see #unsetHref()
63
   * @see #getHref()
64
   * @generated
65
   */
66
  void setHref(String value);
67
68
  /**
69
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute.
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @see #isSetHref()
73
   * @see #getHref()
74
   * @see #setHref(String)
75
   * @generated
76
   */
77
  void unsetHref();
78
79
  /**
80
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute is set.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @return whether the value of the '<em>Href</em>' attribute is set.
84
   * @see #unsetHref()
85
   * @see #getHref()
86
   * @see #setHref(String)
87
   * @generated
88
   */
89
  boolean isSetHref();
90
91
} // UrlType
(-)src/org/eclipse/emf/test/models/personal/mixed/PersonType.java (-273 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonType.java,v 1.5 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
import java.math.BigInteger;
22
23
import java.util.List;
24
25
/**
26
 * <!-- begin-user-doc -->
27
 * A representation of the model object '<em><b>Person Type</b></em>'.
28
 * <!-- end-user-doc -->
29
 *
30
 * <p>
31
 * The following features are supported:
32
 * <ul>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}</li>
40
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}</li>
42
 * </ul>
43
 * </p>
44
 *
45
 * @model extendedMetaData="name='personType' kind='mixed'"
46
 * @generated
47
 */
48
public interface PersonType
49
{
50
  /**
51
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
52
   * <!-- begin-user-doc -->
53
   * <p>
54
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
55
   * there really should be more of a description here...
56
   * </p>
57
   * <!-- end-user-doc -->
58
   * @return the value of the '<em>Mixed</em>' attribute list.
59
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
60
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
61
   * @generated
62
   */
63
  Sequence getMixed();
64
65
  /**
66
   * Returns the value of the '<em><b>Name</b></em>' containment reference.
67
   * <!-- begin-user-doc -->
68
   * <p>
69
   * If the meaning of the '<em>Name</em>' containment reference isn't clear,
70
   * there really should be more of a description here...
71
   * </p>
72
   * <!-- end-user-doc -->
73
   * @return the value of the '<em>Name</em>' containment reference.
74
   * @see #setName(NameType)
75
   * @model containment="true" required="true" transient="true" volatile="true" derived="true"
76
   *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
77
   * @generated
78
   */
79
  NameType getName();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}' containment reference.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Name</em>' containment reference.
86
   * @see #getName()
87
   * @generated
88
   */
89
  void setName(NameType value);
90
91
  /**
92
   * Returns the value of the '<em><b>Email</b></em>' attribute list.
93
   * The list contents are of type {@link java.lang.String}.
94
   * <!-- begin-user-doc -->
95
   * <p>
96
   * If the meaning of the '<em>Email</em>' attribute list isn't clear,
97
   * there really should be more of a description here...
98
   * </p>
99
   * <!-- end-user-doc -->
100
   * @return the value of the '<em>Email</em>' attribute list.
101
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" transient="true" volatile="true" derived="true"
102
   *        extendedMetaData="kind='element' name='email' namespace='##targetNamespace'"
103
   * @generated
104
   */
105
  List<String> getEmail();
106
107
  /**
108
   * Returns the value of the '<em><b>Url</b></em>' containment reference list.
109
   * The list contents are of type {@link org.eclipse.emf.test.models.personal.mixed.UrlType}.
110
   * <!-- begin-user-doc -->
111
   * <p>
112
   * If the meaning of the '<em>Url</em>' containment reference list isn't clear,
113
   * there really should be more of a description here...
114
   * </p>
115
   * <!-- end-user-doc -->
116
   * @return the value of the '<em>Url</em>' containment reference list.
117
   * @model containment="true" transient="true" volatile="true" derived="true"
118
   *        extendedMetaData="kind='element' name='url' namespace='##targetNamespace'"
119
   * @generated
120
   */
121
  List<UrlType> getUrl();
122
123
  /**
124
   * Returns the value of the '<em><b>Link</b></em>' containment reference.
125
   * <!-- begin-user-doc -->
126
   * <p>
127
   * If the meaning of the '<em>Link</em>' containment reference isn't clear,
128
   * there really should be more of a description here...
129
   * </p>
130
   * <!-- end-user-doc -->
131
   * @return the value of the '<em>Link</em>' containment reference.
132
   * @see #setLink(LinkType)
133
   * @model containment="true" required="true" transient="true" volatile="true" derived="true"
134
   *        extendedMetaData="kind='element' name='link' namespace='##targetNamespace'"
135
   * @generated
136
   */
137
  LinkType getLink();
138
139
  /**
140
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}' containment reference.
141
   * <!-- begin-user-doc -->
142
   * <!-- end-user-doc -->
143
   * @param value the new value of the '<em>Link</em>' containment reference.
144
   * @see #getLink()
145
   * @generated
146
   */
147
  void setLink(LinkType value);
148
149
  /**
150
   * Returns the value of the '<em><b>Any</b></em>' attribute list.
151
   * <!-- begin-user-doc -->
152
   * <p>
153
   * If the meaning of the '<em>Any</em>' attribute list isn't clear,
154
   * there really should be more of a description here...
155
   * </p>
156
   * <!-- end-user-doc -->
157
   * @return the value of the '<em>Any</em>' attribute list.
158
   * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="false" transient="true" volatile="true" derived="true"
159
   *        extendedMetaData="kind='elementWildcard' wildcards='##any' name=':5' processing='lax'"
160
   * @generated
161
   */
162
  Sequence getAny();
163
164
  /**
165
   * Returns the value of the '<em><b>Contr</b></em>' attribute.
166
   * The default value is <code>"false"</code>.
167
   * The literals are from the enumeration {@link org.eclipse.emf.test.models.personal.mixed.ContrType}.
168
   * <!-- begin-user-doc -->
169
   * <p>
170
   * If the meaning of the '<em>Contr</em>' attribute isn't clear,
171
   * there really should be more of a description here...
172
   * </p>
173
   * <!-- end-user-doc -->
174
   * @return the value of the '<em>Contr</em>' attribute.
175
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
176
   * @see #isSetContr()
177
   * @see #unsetContr()
178
   * @see #setContr(ContrType)
179
   * @model default="false" unsettable="true"
180
   *        extendedMetaData="kind='attribute' name='contr'"
181
   * @generated
182
   */
183
  ContrType getContr();
184
185
  /**
186
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute.
187
   * <!-- begin-user-doc -->
188
   * <!-- end-user-doc -->
189
   * @param value the new value of the '<em>Contr</em>' attribute.
190
   * @see org.eclipse.emf.test.models.personal.mixed.ContrType
191
   * @see #isSetContr()
192
   * @see #unsetContr()
193
   * @see #getContr()
194
   * @generated
195
   */
196
  void setContr(ContrType value);
197
198
  /**
199
   * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute.
200
   * <!-- begin-user-doc -->
201
   * <!-- end-user-doc -->
202
   * @see #isSetContr()
203
   * @see #getContr()
204
   * @see #setContr(ContrType)
205
   * @generated
206
   */
207
  void unsetContr();
208
209
  /**
210
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute is set.
211
   * <!-- begin-user-doc -->
212
   * <!-- end-user-doc -->
213
   * @return whether the value of the '<em>Contr</em>' attribute is set.
214
   * @see #unsetContr()
215
   * @see #getContr()
216
   * @see #setContr(ContrType)
217
   * @generated
218
   */
219
  boolean isSetContr();
220
221
  /**
222
   * Returns the value of the '<em><b>Id</b></em>' attribute.
223
   * <!-- begin-user-doc -->
224
   * <p>
225
   * If the meaning of the '<em>Id</em>' attribute isn't clear,
226
   * there really should be more of a description here...
227
   * </p>
228
   * <!-- end-user-doc -->
229
   * @return the value of the '<em>Id</em>' attribute.
230
   * @see #setId(String)
231
   * @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true"
232
   *        extendedMetaData="kind='attribute' name='id'"
233
   * @generated
234
   */
235
  String getId();
236
237
  /**
238
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}' attribute.
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @param value the new value of the '<em>Id</em>' attribute.
242
   * @see #getId()
243
   * @generated
244
   */
245
  void setId(String value);
246
247
  /**
248
   * Returns the value of the '<em><b>Salary</b></em>' attribute.
249
   * <!-- begin-user-doc -->
250
   * <p>
251
   * If the meaning of the '<em>Salary</em>' attribute isn't clear,
252
   * there really should be more of a description here...
253
   * </p>
254
   * <!-- end-user-doc -->
255
   * @return the value of the '<em>Salary</em>' attribute.
256
   * @see #setSalary(BigInteger)
257
   * @model dataType="org.eclipse.emf.ecore.xml.type.Integer"
258
   *        extendedMetaData="kind='attribute' name='salary'"
259
   * @generated
260
   */
261
  BigInteger getSalary();
262
263
  /**
264
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}' attribute.
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @param value the new value of the '<em>Salary</em>' attribute.
268
   * @see #getSalary()
269
   * @generated
270
   */
271
  void setSalary(BigInteger value);
272
273
} // PersonType
(-)src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java (-91 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: MixedFactory.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface MixedFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  MixedFactory INSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Document Root</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Document Root</em>'.
42
   * @generated
43
   */
44
  DocumentRoot createDocumentRoot();
45
46
  /**
47
   * Returns a new object of class '<em>Link Type</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Link Type</em>'.
51
   * @generated
52
   */
53
  LinkType createLinkType();
54
55
  /**
56
   * Returns a new object of class '<em>Name Type</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Name Type</em>'.
60
   * @generated
61
   */
62
  NameType createNameType();
63
64
  /**
65
   * Returns a new object of class '<em>Personnel Type</em>'.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @return a new object of class '<em>Personnel Type</em>'.
69
   * @generated
70
   */
71
  PersonnelType createPersonnelType();
72
73
  /**
74
   * Returns a new object of class '<em>Person Type</em>'.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @return a new object of class '<em>Person Type</em>'.
78
   * @generated
79
   */
80
  PersonType createPersonType();
81
82
  /**
83
   * Returns a new object of class '<em>Url Type</em>'.
84
   * <!-- begin-user-doc -->
85
   * <!-- end-user-doc -->
86
   * @return a new object of class '<em>Url Type</em>'.
87
   * @generated
88
   */
89
  UrlType createUrlType();
90
91
} //MixedFactory
(-)src/org/eclipse/emf/test/models/personal/mixed/LinkType.java (-109 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LinkType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Link Type</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}</li>
34
 * </ul>
35
 * </p>
36
 *
37
 * @model extendedMetaData="name='linkType' kind='mixed'"
38
 * @generated
39
 */
40
public interface LinkType
41
{
42
  /**
43
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
44
   * <!-- begin-user-doc -->
45
   * <p>
46
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
47
   * there really should be more of a description here...
48
   * </p>
49
   * <!-- end-user-doc -->
50
   * @return the value of the '<em>Mixed</em>' attribute list.
51
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
52
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
53
   * @generated
54
   */
55
  Sequence getMixed();
56
57
  /**
58
   * Returns the value of the '<em><b>Manager</b></em>' attribute.
59
   * <!-- begin-user-doc -->
60
   * <p>
61
   * If the meaning of the '<em>Manager</em>' attribute isn't clear,
62
   * there really should be more of a description here...
63
   * </p>
64
   * <!-- end-user-doc -->
65
   * @return the value of the '<em>Manager</em>' attribute.
66
   * @see #setManager(String)
67
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREF"
68
   *        extendedMetaData="kind='attribute' name='manager'"
69
   * @generated
70
   */
71
  String getManager();
72
73
  /**
74
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @param value the new value of the '<em>Manager</em>' attribute.
78
   * @see #getManager()
79
   * @generated
80
   */
81
  void setManager(String value);
82
83
  /**
84
   * Returns the value of the '<em><b>Subordinates</b></em>' attribute.
85
   * <!-- begin-user-doc -->
86
   * <p>
87
   * If the meaning of the '<em>Subordinates</em>' attribute isn't clear,
88
   * there really should be more of a description here...
89
   * </p>
90
   * <!-- end-user-doc -->
91
   * @return the value of the '<em>Subordinates</em>' attribute.
92
   * @see #setSubordinates(List)
93
   * @model dataType="org.eclipse.emf.ecore.xml.type.IDREFS" many="false"
94
   *        extendedMetaData="kind='attribute' name='subordinates'"
95
   * @generated
96
   */
97
  List<String> getSubordinates();
98
99
  /**
100
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @param value the new value of the '<em>Subordinates</em>' attribute.
104
   * @see #getSubordinates()
105
   * @generated
106
   */
107
  void setSubordinates(List<String> value);
108
109
} // LinkType
(-)src/org/eclipse/emf/test/models/personal/mixed/PersonnelType.java (-54 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonnelType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Personnel Type</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson <em>Person</em>}</li>
30
 * </ul>
31
 * </p>
32
 *
33
 * @model extendedMetaData="name='personnel_._type' kind='elementOnly'"
34
 * @generated
35
 */
36
public interface PersonnelType
37
{
38
  /**
39
   * Returns the value of the '<em><b>Person</b></em>' containment reference list.
40
   * The list contents are of type {@link org.eclipse.emf.test.models.personal.mixed.PersonType}.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Person</em>' containment reference list isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Person</em>' containment reference list.
48
   * @model containment="true" required="true"
49
   *        extendedMetaData="kind='element' name='person' namespace='##targetNamespace'"
50
   * @generated
51
   */
52
  List<PersonType> getPerson();
53
54
} // PersonnelType
(-)src/org/eclipse/emf/test/models/personal/mixed/ContrType.java (-246 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: ContrType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import java.util.Arrays;
20
import java.util.Collections;
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the literals of the enumeration '<em><b>Contr Type</b></em>',
26
 * and utility methods for working with them.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType()
29
 * @model extendedMetaData="name='contr_._type'"
30
 * @generated
31
 */
32
public enum ContrType implements InternalContrType
33
{
34
  /**
35
   * The '<em><b>True</b></em>' literal object.
36
   * <!-- begin-user-doc -->
37
   * <!-- end-user-doc -->
38
   * @see #TRUE_VALUE
39
   * @generated
40
   * @ordered
41
   */
42
  TRUE(0, "true", "true"),
43
44
  /**
45
   * The '<em><b>False</b></em>' literal object.
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @see #FALSE_VALUE
49
   * @generated
50
   * @ordered
51
   */
52
  FALSE(1, "false", "false");
53
54
  /**
55
   * The '<em><b>True</b></em>' literal value.
56
   * <!-- begin-user-doc -->
57
   * <p>
58
   * If the meaning of '<em><b>True</b></em>' literal object isn't clear,
59
   * there really should be more of a description here...
60
   * </p>
61
   * <!-- end-user-doc -->
62
   * @see #TRUE
63
   * @model name="true"
64
   * @generated
65
   * @ordered
66
   */
67
  public static final int TRUE_VALUE = 0;
68
69
  /**
70
   * The '<em><b>False</b></em>' literal value.
71
   * <!-- begin-user-doc -->
72
   * <p>
73
   * If the meaning of '<em><b>False</b></em>' literal object isn't clear,
74
   * there really should be more of a description here...
75
   * </p>
76
   * <!-- end-user-doc -->
77
   * @see #FALSE
78
   * @model name="false"
79
   * @generated
80
   * @ordered
81
   */
82
  public static final int FALSE_VALUE = 1;
83
84
  /**
85
   * An array of all the '<em><b>Contr Type</b></em>' enumerators.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  private static final ContrType[] VALUES_ARRAY =
91
    new ContrType[]
92
    {
93
      TRUE,
94
      FALSE,
95
    };
96
97
  /**
98
   * A public read-only list of all the '<em><b>Contr Type</b></em>' enumerators.
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  public static final List<ContrType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
104
105
  /**
106
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified literal value.
107
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
109
   * @generated
110
   */
111
  public static ContrType get(String literal)
112
  {
113
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
114
    {
115
      ContrType result = VALUES_ARRAY[i];
116
      if (result.toString().equals(literal))
117
      {
118
        return result;
119
      }
120
    }
121
    return null;
122
  }
123
124
  /**
125
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified name.
126
   * <!-- begin-user-doc -->
127
   * <!-- end-user-doc -->
128
   * @generated
129
   */
130
  public static ContrType getByName(String name)
131
  {
132
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
133
    {
134
      ContrType result = VALUES_ARRAY[i];
135
      if (result.getName().equals(name))
136
      {
137
        return result;
138
      }
139
    }
140
    return null;
141
  }
142
143
  /**
144
   * Returns the '<em><b>Contr Type</b></em>' literal with the specified integer value.
145
   * <!-- begin-user-doc -->
146
   * <!-- end-user-doc -->
147
   * @generated
148
   */
149
  public static ContrType get(int value)
150
  {
151
    switch (value)
152
    {
153
      case TRUE_VALUE: return TRUE;
154
      case FALSE_VALUE: return FALSE;
155
    }
156
    return null;
157
  }
158
159
  /**
160
   * <!-- begin-user-doc -->
161
   * <!-- end-user-doc -->
162
   * @generated
163
   */
164
  private final int value;
165
166
  /**
167
   * <!-- begin-user-doc -->
168
   * <!-- end-user-doc -->
169
   * @generated
170
   */
171
  private final String name;
172
173
  /**
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   */
178
  private final String literal;
179
180
  /**
181
   * Only this class can construct instances.
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   */
186
  private ContrType(int value, String name, String literal)
187
  {
188
    this.value = value;
189
    this.name = name;
190
    this.literal = literal;
191
  }
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  public int getValue()
199
  {
200
    return value;
201
  }
202
203
  /**
204
   * <!-- begin-user-doc -->
205
   * <!-- end-user-doc -->
206
   * @generated
207
   */
208
  public String getName()
209
  {
210
    return name;
211
  }
212
213
  /**
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   */
218
  public String getLiteral()
219
  {
220
    return literal;
221
  }
222
223
  /**
224
   * Returns the literal value of the enumerator, which is its string representation.
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  @Override
230
  public String toString()
231
  {
232
    return literal;
233
  }
234
  
235
} //ContrType
236
237
/**
238
 * A private implementation interface used to hide the inheritance from Enumerator.
239
 * <!-- begin-user-doc -->
240
 * <!-- end-user-doc -->
241
 * @generated
242
 */
243
interface InternalContrType extends org.eclipse.emf.common.util.Enumerator
244
{
245
  // Empty
246
}
(-)src/org/eclipse/emf/test/models/personal/mixed/DocumentRoot.java (-307 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.mixed;
18
19
import commonj.sdo.Sequence;
20
21
import java.util.Map;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Document Root</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed <em>Mixed</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}</li>
40
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}</li>
42
 * </ul>
43
 * </p>
44
 *
45
 * @model extendedMetaData="name='' kind='mixed'"
46
 * @generated
47
 */
48
public interface DocumentRoot
49
{
50
  /**
51
   * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
52
   * <!-- begin-user-doc -->
53
   * <p>
54
   * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
55
   * there really should be more of a description here...
56
   * </p>
57
   * <!-- end-user-doc -->
58
   * @return the value of the '<em>Mixed</em>' attribute list.
59
   * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
60
   *        extendedMetaData="kind='elementWildcard' name=':mixed'"
61
   * @generated
62
   */
63
  Sequence getMixed();
64
65
  /**
66
   * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
67
   * The key is of type {@link java.lang.String},
68
   * and the value is of type {@link java.lang.String},
69
   * <!-- begin-user-doc -->
70
   * <p>
71
   * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
72
   * there really should be more of a description here...
73
   * </p>
74
   * <!-- end-user-doc -->
75
   * @return the value of the '<em>XMLNS Prefix Map</em>' map.
76
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
77
   *        extendedMetaData="kind='attribute' name='xmlns:prefix'"
78
   * @generated
79
   */
80
  Map<String, String> getXMLNSPrefixMap();
81
82
  /**
83
   * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
84
   * The key is of type {@link java.lang.String},
85
   * and the value is of type {@link java.lang.String},
86
   * <!-- begin-user-doc -->
87
   * <p>
88
   * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
89
   * there really should be more of a description here...
90
   * </p>
91
   * <!-- end-user-doc -->
92
   * @return the value of the '<em>XSI Schema Location</em>' map.
93
   * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
94
   *        extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
95
   * @generated
96
   */
97
  Map<String, String> getXSISchemaLocation();
98
99
  /**
100
   * Returns the value of the '<em><b>Email</b></em>' attribute.
101
   * <!-- begin-user-doc -->
102
   * <p>
103
   * If the meaning of the '<em>Email</em>' attribute isn't clear,
104
   * there really should be more of a description here...
105
   * </p>
106
   * <!-- end-user-doc -->
107
   * @return the value of the '<em>Email</em>' attribute.
108
   * @see #setEmail(String)
109
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
110
   *        extendedMetaData="kind='element' name='email' namespace='##targetNamespace'"
111
   * @generated
112
   */
113
  String getEmail();
114
115
  /**
116
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}' attribute.
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @param value the new value of the '<em>Email</em>' attribute.
120
   * @see #getEmail()
121
   * @generated
122
   */
123
  void setEmail(String value);
124
125
  /**
126
   * Returns the value of the '<em><b>Family</b></em>' attribute.
127
   * <!-- begin-user-doc -->
128
   * <p>
129
   * If the meaning of the '<em>Family</em>' attribute isn't clear,
130
   * there really should be more of a description here...
131
   * </p>
132
   * <!-- end-user-doc -->
133
   * @return the value of the '<em>Family</em>' attribute.
134
   * @see #setFamily(String)
135
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
136
   *        extendedMetaData="kind='element' name='family' namespace='##targetNamespace'"
137
   * @generated
138
   */
139
  String getFamily();
140
141
  /**
142
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}' attribute.
143
   * <!-- begin-user-doc -->
144
   * <!-- end-user-doc -->
145
   * @param value the new value of the '<em>Family</em>' attribute.
146
   * @see #getFamily()
147
   * @generated
148
   */
149
  void setFamily(String value);
150
151
  /**
152
   * Returns the value of the '<em><b>Given</b></em>' attribute.
153
   * <!-- begin-user-doc -->
154
   * <p>
155
   * If the meaning of the '<em>Given</em>' attribute isn't clear,
156
   * there really should be more of a description here...
157
   * </p>
158
   * <!-- end-user-doc -->
159
   * @return the value of the '<em>Given</em>' attribute.
160
   * @see #setGiven(String)
161
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true"
162
   *        extendedMetaData="kind='element' name='given' namespace='##targetNamespace'"
163
   * @generated
164
   */
165
  String getGiven();
166
167
  /**
168
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}' attribute.
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @param value the new value of the '<em>Given</em>' attribute.
172
   * @see #getGiven()
173
   * @generated
174
   */
175
  void setGiven(String value);
176
177
  /**
178
   * Returns the value of the '<em><b>Link</b></em>' containment reference.
179
   * <!-- begin-user-doc -->
180
   * <p>
181
   * If the meaning of the '<em>Link</em>' containment reference isn't clear,
182
   * there really should be more of a description here...
183
   * </p>
184
   * <!-- end-user-doc -->
185
   * @return the value of the '<em>Link</em>' containment reference.
186
   * @see #setLink(LinkType)
187
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
188
   *        extendedMetaData="kind='element' name='link' namespace='##targetNamespace'"
189
   * @generated
190
   */
191
  LinkType getLink();
192
193
  /**
194
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}' containment reference.
195
   * <!-- begin-user-doc -->
196
   * <!-- end-user-doc -->
197
   * @param value the new value of the '<em>Link</em>' containment reference.
198
   * @see #getLink()
199
   * @generated
200
   */
201
  void setLink(LinkType value);
202
203
  /**
204
   * Returns the value of the '<em><b>Name</b></em>' containment reference.
205
   * <!-- begin-user-doc -->
206
   * <p>
207
   * If the meaning of the '<em>Name</em>' containment reference isn't clear,
208
   * there really should be more of a description here...
209
   * </p>
210
   * <!-- end-user-doc -->
211
   * @return the value of the '<em>Name</em>' containment reference.
212
   * @see #setName(NameType)
213
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
214
   *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
215
   * @generated
216
   */
217
  NameType getName();
218
219
  /**
220
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}' containment reference.
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @param value the new value of the '<em>Name</em>' containment reference.
224
   * @see #getName()
225
   * @generated
226
   */
227
  void setName(NameType value);
228
229
  /**
230
   * Returns the value of the '<em><b>Person</b></em>' containment reference.
231
   * <!-- begin-user-doc -->
232
   * <p>
233
   * If the meaning of the '<em>Person</em>' containment reference isn't clear,
234
   * there really should be more of a description here...
235
   * </p>
236
   * <!-- end-user-doc -->
237
   * @return the value of the '<em>Person</em>' containment reference.
238
   * @see #setPerson(PersonType)
239
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
240
   *        extendedMetaData="kind='element' name='person' namespace='##targetNamespace'"
241
   * @generated
242
   */
243
  PersonType getPerson();
244
245
  /**
246
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}' containment reference.
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @param value the new value of the '<em>Person</em>' containment reference.
250
   * @see #getPerson()
251
   * @generated
252
   */
253
  void setPerson(PersonType value);
254
255
  /**
256
   * Returns the value of the '<em><b>Personnel</b></em>' containment reference.
257
   * <!-- begin-user-doc -->
258
   * <p>
259
   * If the meaning of the '<em>Personnel</em>' containment reference isn't clear,
260
   * there really should be more of a description here...
261
   * </p>
262
   * <!-- end-user-doc -->
263
   * @return the value of the '<em>Personnel</em>' containment reference.
264
   * @see #setPersonnel(PersonnelType)
265
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
266
   *        extendedMetaData="kind='element' name='personnel' namespace='##targetNamespace'"
267
   * @generated
268
   */
269
  PersonnelType getPersonnel();
270
271
  /**
272
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}' containment reference.
273
   * <!-- begin-user-doc -->
274
   * <!-- end-user-doc -->
275
   * @param value the new value of the '<em>Personnel</em>' containment reference.
276
   * @see #getPersonnel()
277
   * @generated
278
   */
279
  void setPersonnel(PersonnelType value);
280
281
  /**
282
   * Returns the value of the '<em><b>Url</b></em>' containment reference.
283
   * <!-- begin-user-doc -->
284
   * <p>
285
   * If the meaning of the '<em>Url</em>' containment reference isn't clear,
286
   * there really should be more of a description here...
287
   * </p>
288
   * <!-- end-user-doc -->
289
   * @return the value of the '<em>Url</em>' containment reference.
290
   * @see #setUrl(UrlType)
291
   * @model containment="true" upper="-2" transient="true" volatile="true" derived="true"
292
   *        extendedMetaData="kind='element' name='url' namespace='##targetNamespace'"
293
   * @generated
294
   */
295
  UrlType getUrl();
296
297
  /**
298
   * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}' containment reference.
299
   * <!-- begin-user-doc -->
300
   * <!-- end-user-doc -->
301
   * @param value the new value of the '<em>Url</em>' containment reference.
302
   * @see #getUrl()
303
   * @generated
304
   */
305
  void setUrl(UrlType value);
306
307
} // DocumentRoot
(-)src/org/eclipse/emf/test/models/sdo/library/Writer.java (-81 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Writer.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Writer</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}</li>
31
 * </ul>
32
 * </p>
33
 *
34
 * @model
35
 * @generated
36
 */
37
public interface Writer
38
{
39
  /**
40
   * Returns the value of the '<em><b>Name</b></em>' attribute.
41
   * <!-- begin-user-doc -->
42
   * <p>
43
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
44
   * there really should be more of a description here...
45
   * </p>
46
   * <!-- end-user-doc -->
47
   * @return the value of the '<em>Name</em>' attribute.
48
   * @see #setName(String)
49
   * @model
50
   * @generated
51
   */
52
  String getName();
53
54
  /**
55
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}' attribute.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @param value the new value of the '<em>Name</em>' attribute.
59
   * @see #getName()
60
   * @generated
61
   */
62
  void setName(String value);
63
64
  /**
65
   * Returns the value of the '<em><b>Books</b></em>' reference list.
66
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}.
67
   * It is bidirectional and its opposite is '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Books</em>' reference list isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Books</em>' reference list.
75
   * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor
76
   * @model opposite="author"
77
   * @generated
78
   */
79
  List<Book> getBooks();
80
81
} // Writer
(-)src/org/eclipse/emf/test/models/sdo/library/Library.java (-95 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Library.java,v 1.3 2007/06/12 15:08:10 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
import java.util.List;
20
21
/**
22
 * <!-- begin-user-doc -->
23
 * A representation of the model object '<em><b>Library</b></em>'.
24
 * <!-- end-user-doc -->
25
 *
26
 * <p>
27
 * The following features are supported:
28
 * <ul>
29
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}</li>
32
 * </ul>
33
 * </p>
34
 *
35
 * @model
36
 * @generated
37
 */
38
public interface Library
39
{
40
  /**
41
   * Returns the value of the '<em><b>Name</b></em>' attribute.
42
   * <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Name</em>' attribute isn't clear,
45
   * there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * @return the value of the '<em>Name</em>' attribute.
49
   * @see #setName(String)
50
   * @model
51
   * @generated
52
   */
53
  String getName();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Name</em>' attribute.
60
   * @see #getName()
61
   * @generated
62
   */
63
  void setName(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Writers</b></em>' containment reference list.
67
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Writer}.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Writers</em>' containment reference list isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Writers</em>' containment reference list.
75
   * @model containment="true"
76
   * @generated
77
   */
78
  List<Writer> getWriters();
79
80
  /**
81
   * Returns the value of the '<em><b>Books</b></em>' containment reference list.
82
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}.
83
   * <!-- begin-user-doc -->
84
   * <p>
85
   * If the meaning of the '<em>Books</em>' containment reference list isn't clear,
86
   * there really should be more of a description here...
87
   * </p>
88
   * <!-- end-user-doc -->
89
   * @return the value of the '<em>Books</em>' containment reference list.
90
   * @model containment="true"
91
   * @generated
92
   */
93
  List<Book> getBooks();
94
95
} // Library
(-)src/org/eclipse/emf/test/models/sdo/library/BookCategory.java (-273 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: BookCategory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
import java.util.Arrays;
20
import java.util.Collections;
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the literals of the enumeration '<em><b>Book Category</b></em>',
26
 * and utility methods for working with them.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory()
29
 * @model
30
 * @generated
31
 */
32
public enum BookCategory implements InternalBookCategory
33
{
34
  /**
35
   * The '<em><b>Mystery</b></em>' literal object.
36
   * <!-- begin-user-doc -->
37
   * <!-- end-user-doc -->
38
   * @see #MYSTERY_VALUE
39
   * @generated
40
   * @ordered
41
   */
42
  MYSTERY(0, "Mystery", "Mystery"),
43
44
  /**
45
   * The '<em><b>Science Fiction</b></em>' literal object.
46
   * <!-- begin-user-doc -->
47
   * <!-- end-user-doc -->
48
   * @see #SCIENCE_FICTION_VALUE
49
   * @generated
50
   * @ordered
51
   */
52
  SCIENCE_FICTION(1, "ScienceFiction", "ScienceFiction"),
53
54
  /**
55
   * The '<em><b>Biography</b></em>' literal object.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @see #BIOGRAPHY_VALUE
59
   * @generated
60
   * @ordered
61
   */
62
  BIOGRAPHY(2, "Biography", "Biography");
63
64
  /**
65
   * The '<em><b>Mystery</b></em>' literal value.
66
   * <!-- begin-user-doc -->
67
   * <p>
68
   * If the meaning of '<em><b>Mystery</b></em>' literal object isn't clear,
69
   * there really should be more of a description here...
70
   * </p>
71
   * <!-- end-user-doc -->
72
   * @see #MYSTERY
73
   * @model name="Mystery"
74
   * @generated
75
   * @ordered
76
   */
77
  public static final int MYSTERY_VALUE = 0;
78
79
  /**
80
   * The '<em><b>Science Fiction</b></em>' literal value.
81
   * <!-- begin-user-doc -->
82
   * <p>
83
   * If the meaning of '<em><b>Science Fiction</b></em>' literal object isn't clear,
84
   * there really should be more of a description here...
85
   * </p>
86
   * <!-- end-user-doc -->
87
   * @see #SCIENCE_FICTION
88
   * @model name="ScienceFiction"
89
   * @generated
90
   * @ordered
91
   */
92
  public static final int SCIENCE_FICTION_VALUE = 1;
93
94
  /**
95
   * The '<em><b>Biography</b></em>' literal value.
96
   * <!-- begin-user-doc -->
97
   * <p>
98
   * If the meaning of '<em><b>Biography</b></em>' literal object isn't clear,
99
   * there really should be more of a description here...
100
   * </p>
101
   * <!-- end-user-doc -->
102
   * @see #BIOGRAPHY
103
   * @model name="Biography"
104
   * @generated
105
   * @ordered
106
   */
107
  public static final int BIOGRAPHY_VALUE = 2;
108
109
  /**
110
   * An array of all the '<em><b>Book Category</b></em>' enumerators.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @generated
114
   */
115
  private static final BookCategory[] VALUES_ARRAY =
116
    new BookCategory[]
117
    {
118
      MYSTERY,
119
      SCIENCE_FICTION,
120
      BIOGRAPHY,
121
    };
122
123
  /**
124
   * A public read-only list of all the '<em><b>Book Category</b></em>' enumerators.
125
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
127
   * @generated
128
   */
129
  public static final List<BookCategory> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
130
131
  /**
132
   * Returns the '<em><b>Book Category</b></em>' literal with the specified literal value.
133
   * <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * @generated
136
   */
137
  public static BookCategory get(String literal)
138
  {
139
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
140
    {
141
      BookCategory result = VALUES_ARRAY[i];
142
      if (result.toString().equals(literal))
143
      {
144
        return result;
145
      }
146
    }
147
    return null;
148
  }
149
150
  /**
151
   * Returns the '<em><b>Book Category</b></em>' literal with the specified name.
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  public static BookCategory getByName(String name)
157
  {
158
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
159
    {
160
      BookCategory result = VALUES_ARRAY[i];
161
      if (result.getName().equals(name))
162
      {
163
        return result;
164
      }
165
    }
166
    return null;
167
  }
168
169
  /**
170
   * Returns the '<em><b>Book Category</b></em>' literal with the specified integer value.
171
   * <!-- begin-user-doc -->
172
   * <!-- end-user-doc -->
173
   * @generated
174
   */
175
  public static BookCategory get(int value)
176
  {
177
    switch (value)
178
    {
179
      case MYSTERY_VALUE: return MYSTERY;
180
      case SCIENCE_FICTION_VALUE: return SCIENCE_FICTION;
181
      case BIOGRAPHY_VALUE: return BIOGRAPHY;
182
    }
183
    return null;
184
  }
185
186
  /**
187
   * <!-- begin-user-doc -->
188
   * <!-- end-user-doc -->
189
   * @generated
190
   */
191
  private final int value;
192
193
  /**
194
   * <!-- begin-user-doc -->
195
   * <!-- end-user-doc -->
196
   * @generated
197
   */
198
  private final String name;
199
200
  /**
201
   * <!-- begin-user-doc -->
202
   * <!-- end-user-doc -->
203
   * @generated
204
   */
205
  private final String literal;
206
207
  /**
208
   * Only this class can construct instances.
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @generated
212
   */
213
  private BookCategory(int value, String name, String literal)
214
  {
215
    this.value = value;
216
    this.name = name;
217
    this.literal = literal;
218
  }
219
220
  /**
221
   * <!-- begin-user-doc -->
222
   * <!-- end-user-doc -->
223
   * @generated
224
   */
225
  public int getValue()
226
  {
227
    return value;
228
  }
229
230
  /**
231
   * <!-- begin-user-doc -->
232
   * <!-- end-user-doc -->
233
   * @generated
234
   */
235
  public String getName()
236
  {
237
    return name;
238
  }
239
240
  /**
241
   * <!-- begin-user-doc -->
242
   * <!-- end-user-doc -->
243
   * @generated
244
   */
245
  public String getLiteral()
246
  {
247
    return literal;
248
  }
249
250
  /**
251
   * Returns the literal value of the enumerator, which is its string representation.
252
   * <!-- begin-user-doc -->
253
   * <!-- end-user-doc -->
254
   * @generated
255
   */
256
  @Override
257
  public String toString()
258
  {
259
    return literal;
260
  }
261
  
262
} //BookCategory
263
264
/**
265
 * A private implementation interface used to hide the inheritance from Enumerator.
266
 * <!-- begin-user-doc -->
267
 * <!-- end-user-doc -->
268
 * @generated
269
 */
270
interface InternalBookCategory extends org.eclipse.emf.common.util.Enumerator
271
{
272
  // Empty 
273
}
(-)src/org/eclipse/emf/test/models/sdo/library/Book.java (-146 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Book.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * A representation of the model object '<em><b>Book</b></em>'.
23
 * <!-- end-user-doc -->
24
 *
25
 * <p>
26
 * The following features are supported:
27
 * <ul>
28
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}</li>
29
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}</li>
30
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}</li>
31
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}</li>
32
 * </ul>
33
 * </p>
34
 *
35
 * @model
36
 * @generated
37
 */
38
public interface Book
39
{
40
  /**
41
   * Returns the value of the '<em><b>Title</b></em>' attribute.
42
   * <!-- begin-user-doc -->
43
   * <p>
44
   * If the meaning of the '<em>Title</em>' attribute isn't clear,
45
   * there really should be more of a description here...
46
   * </p>
47
   * <!-- end-user-doc -->
48
   * @return the value of the '<em>Title</em>' attribute.
49
   * @see #setTitle(String)
50
   * @model
51
   * @generated
52
   */
53
  String getTitle();
54
55
  /**
56
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}' attribute.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @param value the new value of the '<em>Title</em>' attribute.
60
   * @see #getTitle()
61
   * @generated
62
   */
63
  void setTitle(String value);
64
65
  /**
66
   * Returns the value of the '<em><b>Pages</b></em>' attribute.
67
   * The default value is <code>"100"</code>.
68
   * <!-- begin-user-doc -->
69
   * <p>
70
   * If the meaning of the '<em>Pages</em>' attribute isn't clear,
71
   * there really should be more of a description here...
72
   * </p>
73
   * <!-- end-user-doc -->
74
   * @return the value of the '<em>Pages</em>' attribute.
75
   * @see #setPages(int)
76
   * @model default="100"
77
   * @generated
78
   */
79
  int getPages();
80
81
  /**
82
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @param value the new value of the '<em>Pages</em>' attribute.
86
   * @see #getPages()
87
   * @generated
88
   */
89
  void setPages(int value);
90
91
  /**
92
   * Returns the value of the '<em><b>Category</b></em>' attribute.
93
   * The literals are from the enumeration {@link org.eclipse.emf.test.models.sdo.library.BookCategory}.
94
   * <!-- begin-user-doc -->
95
   * <p>
96
   * If the meaning of the '<em>Category</em>' attribute isn't clear,
97
   * there really should be more of a description here...
98
   * </p>
99
   * <!-- end-user-doc -->
100
   * @return the value of the '<em>Category</em>' attribute.
101
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
102
   * @see #setCategory(BookCategory)
103
   * @model
104
   * @generated
105
   */
106
  BookCategory getCategory();
107
108
  /**
109
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}' attribute.
110
   * <!-- begin-user-doc -->
111
   * <!-- end-user-doc -->
112
   * @param value the new value of the '<em>Category</em>' attribute.
113
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
114
   * @see #getCategory()
115
   * @generated
116
   */
117
  void setCategory(BookCategory value);
118
119
  /**
120
   * Returns the value of the '<em><b>Author</b></em>' reference.
121
   * It is bidirectional and its opposite is '{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}'.
122
   * <!-- begin-user-doc -->
123
   * <p>
124
   * If the meaning of the '<em>Author</em>' reference isn't clear,
125
   * there really should be more of a description here...
126
   * </p>
127
   * <!-- end-user-doc -->
128
   * @return the value of the '<em>Author</em>' reference.
129
   * @see #setAuthor(Writer)
130
   * @see org.eclipse.emf.test.models.sdo.library.Writer#getBooks
131
   * @model opposite="books" required="true"
132
   * @generated
133
   */
134
  Writer getAuthor();
135
136
  /**
137
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}' reference.
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @param value the new value of the '<em>Author</em>' reference.
141
   * @see #getAuthor()
142
   * @generated
143
   */
144
  void setAuthor(Writer value);
145
146
} // Book
(-)src/org/eclipse/emf/test/models/sdo/library/SDOLibraryFactory.java (-64 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryFactory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface SDOLibraryFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  SDOLibraryFactory INSTANCE = org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Book</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Book</em>'.
42
   * @generated
43
   */
44
  Book createBook();
45
46
  /**
47
   * Returns a new object of class '<em>Library</em>'.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @return a new object of class '<em>Library</em>'.
51
   * @generated
52
   */
53
  Library createLibrary();
54
55
  /**
56
   * Returns a new object of class '<em>Writer</em>'.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @return a new object of class '<em>Writer</em>'.
60
   * @generated
61
   */
62
  Writer createWriter();
63
64
} //SDOLibraryFactory
(-)src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java (-743 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryPackageImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EEnum;
22
import org.eclipse.emf.ecore.EFactory;
23
import org.eclipse.emf.ecore.EPackage;
24
import org.eclipse.emf.ecore.EReference;
25
26
import org.eclipse.emf.ecore.impl.EPackageImpl;
27
28
import org.eclipse.emf.test.models.sdo.library.Book;
29
import org.eclipse.emf.test.models.sdo.library.BookCategory;
30
import org.eclipse.emf.test.models.sdo.library.Library;
31
import org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory;
32
import org.eclipse.emf.test.models.sdo.library.Writer;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * The <b>Package</b> for the model.
37
 * It contains accessors for the meta objects to represent
38
 * <ul>
39
 *   <li>each class,</li>
40
 *   <li>each feature of each class,</li>
41
 *   <li>each enum,</li>
42
 *   <li>and each data type</li>
43
 * </ul>
44
 * <!-- end-user-doc -->
45
 * @see org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory
46
 * @model kind="package"
47
 * @generated
48
 */
49
public class SDOLibraryPackageImpl extends EPackageImpl
50
{
51
  /**
52
   * The package name.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public static final String eNAME = "library";
58
59
  /**
60
   * The package namespace URI.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @generated
64
   */
65
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/SDOLibrary";
66
67
  /**
68
   * The package namespace name.
69
   * <!-- begin-user-doc -->
70
   * <!-- end-user-doc -->
71
   * @generated
72
   */
73
  public static final String eNS_PREFIX = "org.eclipse.emf.test.models.sdolibrary";
74
75
  /**
76
   * The singleton instance of the package.
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
80
   */
81
  public static final SDOLibraryPackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl.init();
82
83
  /**
84
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl
88
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook()
89
   * @generated
90
   */
91
  public static final int BOOK = 0;
92
93
  /**
94
   * The feature id for the '<em><b>Title</b></em>' attribute.
95
   * <!-- begin-user-doc -->
96
   * <!-- end-user-doc -->
97
   * @generated
98
   * @ordered
99
   */
100
  public static final int BOOK__TITLE = 0;
101
102
  /**
103
   * The feature id for the '<em><b>Pages</b></em>' attribute.
104
   * <!-- begin-user-doc -->
105
   * <!-- end-user-doc -->
106
   * @generated
107
   * @ordered
108
   */
109
  public static final int BOOK__PAGES = 1;
110
111
  /**
112
   * The feature id for the '<em><b>Category</b></em>' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @generated
116
   * @ordered
117
   */
118
  public static final int BOOK__CATEGORY = 2;
119
120
  /**
121
   * The feature id for the '<em><b>Author</b></em>' reference.
122
   * <!-- begin-user-doc -->
123
   * <!-- end-user-doc -->
124
   * @generated
125
   * @ordered
126
   */
127
  public static final int BOOK__AUTHOR = 3;
128
129
  /**
130
   * The number of structural features of the '<em>Book</em>' class.
131
   * <!-- begin-user-doc -->
132
   * <!-- end-user-doc -->
133
   * @generated
134
   * @ordered
135
   */
136
  public static final int BOOK_FEATURE_COUNT = 4;
137
138
  /**
139
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class.
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl
143
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary()
144
   * @generated
145
   */
146
  public static final int LIBRARY = 1;
147
148
  /**
149
   * The feature id for the '<em><b>Name</b></em>' attribute.
150
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
152
   * @generated
153
   * @ordered
154
   */
155
  public static final int LIBRARY__NAME = 0;
156
157
  /**
158
   * The feature id for the '<em><b>Writers</b></em>' containment reference list.
159
   * <!-- begin-user-doc -->
160
   * <!-- end-user-doc -->
161
   * @generated
162
   * @ordered
163
   */
164
  public static final int LIBRARY__WRITERS = 1;
165
166
  /**
167
   * The feature id for the '<em><b>Books</b></em>' containment reference list.
168
   * <!-- begin-user-doc -->
169
   * <!-- end-user-doc -->
170
   * @generated
171
   * @ordered
172
   */
173
  public static final int LIBRARY__BOOKS = 2;
174
175
  /**
176
   * The number of structural features of the '<em>Library</em>' class.
177
   * <!-- begin-user-doc -->
178
   * <!-- end-user-doc -->
179
   * @generated
180
   * @ordered
181
   */
182
  public static final int LIBRARY_FEATURE_COUNT = 3;
183
184
  /**
185
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class.
186
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
188
   * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl
189
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter()
190
   * @generated
191
   */
192
  public static final int WRITER = 2;
193
194
  /**
195
   * The feature id for the '<em><b>Name</b></em>' attribute.
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @generated
199
   * @ordered
200
   */
201
  public static final int WRITER__NAME = 0;
202
203
  /**
204
   * The feature id for the '<em><b>Books</b></em>' reference list.
205
   * <!-- begin-user-doc -->
206
   * <!-- end-user-doc -->
207
   * @generated
208
   * @ordered
209
   */
210
  public static final int WRITER__BOOKS = 1;
211
212
  /**
213
   * The number of structural features of the '<em>Writer</em>' class.
214
   * <!-- begin-user-doc -->
215
   * <!-- end-user-doc -->
216
   * @generated
217
   * @ordered
218
   */
219
  public static final int WRITER_FEATURE_COUNT = 2;
220
221
  /**
222
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum.
223
   * <!-- begin-user-doc -->
224
   * <!-- end-user-doc -->
225
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
226
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory()
227
   * @generated
228
   */
229
  public static final int BOOK_CATEGORY = 3;
230
231
  /**
232
   * <!-- begin-user-doc -->
233
   * <!-- end-user-doc -->
234
   * @generated
235
   */
236
  private EClass bookEClass = null;
237
238
  /**
239
   * <!-- begin-user-doc -->
240
   * <!-- end-user-doc -->
241
   * @generated
242
   */
243
  private EClass libraryEClass = null;
244
245
  /**
246
   * <!-- begin-user-doc -->
247
   * <!-- end-user-doc -->
248
   * @generated
249
   */
250
  private EClass writerEClass = null;
251
252
  /**
253
   * <!-- begin-user-doc -->
254
   * <!-- end-user-doc -->
255
   * @generated
256
   */
257
  private EEnum bookCategoryEEnum = null;
258
259
  /**
260
   * Creates an instance of the model <b>Package</b>, registered with
261
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
262
   * package URI value.
263
   * <p>Note: the correct way to create the package is via the static
264
   * factory method {@link #init init()}, which also performs
265
   * initialization of the package, or returns the registered package,
266
   * if one already exists.
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @see org.eclipse.emf.ecore.EPackage.Registry
270
   * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#eNS_URI
271
   * @see #init()
272
   * @generated
273
   */
274
  private SDOLibraryPackageImpl()
275
  {
276
    super(eNS_URI, ((EFactory)SDOLibraryFactory.INSTANCE));
277
  }
278
279
  /**
280
   * <!-- begin-user-doc -->
281
   * <!-- end-user-doc -->
282
   * @generated
283
   */
284
  private static boolean isInited = false;
285
286
  /**
287
   * Creates, registers, and initializes the <b>Package</b> for this
288
   * model, and for any others upon which it depends.  Simple
289
   * dependencies are satisfied by calling this method on all
290
   * dependent packages before doing anything else.  This method drives
291
   * initialization for interdependent packages directly, in parallel
292
   * with this package, itself.
293
   * <p>Of this package and its interdependencies, all packages which
294
   * have not yet been registered by their URI values are first created
295
   * and registered.  The packages are then initialized in two steps:
296
   * meta-model objects for all of the packages are created before any
297
   * are initialized, since one package's meta-model objects may refer to
298
   * those of another.
299
   * <p>Invocation of this method will not affect any packages that have
300
   * already been initialized.
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @see #eNS_URI
304
   * @see #createPackageContents()
305
   * @see #initializePackageContents()
306
   * @generated
307
   */
308
  public static SDOLibraryPackageImpl init()
309
  {
310
    if (isInited) return (SDOLibraryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SDOLibraryPackageImpl.eNS_URI);
311
312
    // Obtain or create and register package
313
    SDOLibraryPackageImpl theSDOLibraryPackageImpl = (SDOLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SDOLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SDOLibraryPackageImpl());
314
315
    isInited = true;
316
317
    // Create package meta-data objects
318
    theSDOLibraryPackageImpl.createPackageContents();
319
320
    // Initialize created meta-data
321
    theSDOLibraryPackageImpl.initializePackageContents();
322
323
    // Mark meta-data to indicate it can't be changed
324
    theSDOLibraryPackageImpl.freeze();
325
326
    return theSDOLibraryPackageImpl;
327
  }
328
329
330
  /**
331
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'.
332
   * <!-- begin-user-doc -->
333
   * <!-- end-user-doc -->
334
   * @return the meta object for class '<em>Book</em>'.
335
   * @see org.eclipse.emf.test.models.sdo.library.Book
336
   * @generated
337
   */
338
  public EClass getBook()
339
  {
340
    return bookEClass;
341
  }
342
343
  /**
344
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}'.
345
   * <!-- begin-user-doc -->
346
   * <!-- end-user-doc -->
347
   * @return the meta object for the attribute '<em>Title</em>'.
348
   * @see org.eclipse.emf.test.models.sdo.library.Book#getTitle()
349
   * @see #getBook()
350
   * @generated
351
   */
352
  public EAttribute getBook_Title()
353
  {
354
    return (EAttribute)bookEClass.getEStructuralFeatures().get(0);
355
  }
356
357
  /**
358
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}'.
359
   * <!-- begin-user-doc -->
360
   * <!-- end-user-doc -->
361
   * @return the meta object for the attribute '<em>Pages</em>'.
362
   * @see org.eclipse.emf.test.models.sdo.library.Book#getPages()
363
   * @see #getBook()
364
   * @generated
365
   */
366
  public EAttribute getBook_Pages()
367
  {
368
    return (EAttribute)bookEClass.getEStructuralFeatures().get(1);
369
  }
370
371
  /**
372
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}'.
373
   * <!-- begin-user-doc -->
374
   * <!-- end-user-doc -->
375
   * @return the meta object for the attribute '<em>Category</em>'.
376
   * @see org.eclipse.emf.test.models.sdo.library.Book#getCategory()
377
   * @see #getBook()
378
   * @generated
379
   */
380
  public EAttribute getBook_Category()
381
  {
382
    return (EAttribute)bookEClass.getEStructuralFeatures().get(2);
383
  }
384
385
  /**
386
   * Returns the meta object for the reference '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'.
387
   * <!-- begin-user-doc -->
388
   * <!-- end-user-doc -->
389
   * @return the meta object for the reference '<em>Author</em>'.
390
   * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor()
391
   * @see #getBook()
392
   * @generated
393
   */
394
  public EReference getBook_Author()
395
  {
396
    return (EReference)bookEClass.getEStructuralFeatures().get(3);
397
  }
398
399
  /**
400
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'.
401
   * <!-- begin-user-doc -->
402
   * <!-- end-user-doc -->
403
   * @return the meta object for class '<em>Library</em>'.
404
   * @see org.eclipse.emf.test.models.sdo.library.Library
405
   * @generated
406
   */
407
  public EClass getLibrary()
408
  {
409
    return libraryEClass;
410
  }
411
412
  /**
413
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}'.
414
   * <!-- begin-user-doc -->
415
   * <!-- end-user-doc -->
416
   * @return the meta object for the attribute '<em>Name</em>'.
417
   * @see org.eclipse.emf.test.models.sdo.library.Library#getName()
418
   * @see #getLibrary()
419
   * @generated
420
   */
421
  public EAttribute getLibrary_Name()
422
  {
423
    return (EAttribute)libraryEClass.getEStructuralFeatures().get(0);
424
  }
425
426
  /**
427
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}'.
428
   * <!-- begin-user-doc -->
429
   * <!-- end-user-doc -->
430
   * @return the meta object for the containment reference list '<em>Writers</em>'.
431
   * @see org.eclipse.emf.test.models.sdo.library.Library#getWriters()
432
   * @see #getLibrary()
433
   * @generated
434
   */
435
  public EReference getLibrary_Writers()
436
  {
437
    return (EReference)libraryEClass.getEStructuralFeatures().get(1);
438
  }
439
440
  /**
441
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}'.
442
   * <!-- begin-user-doc -->
443
   * <!-- end-user-doc -->
444
   * @return the meta object for the containment reference list '<em>Books</em>'.
445
   * @see org.eclipse.emf.test.models.sdo.library.Library#getBooks()
446
   * @see #getLibrary()
447
   * @generated
448
   */
449
  public EReference getLibrary_Books()
450
  {
451
    return (EReference)libraryEClass.getEStructuralFeatures().get(2);
452
  }
453
454
  /**
455
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'.
456
   * <!-- begin-user-doc -->
457
   * <!-- end-user-doc -->
458
   * @return the meta object for class '<em>Writer</em>'.
459
   * @see org.eclipse.emf.test.models.sdo.library.Writer
460
   * @generated
461
   */
462
  public EClass getWriter()
463
  {
464
    return writerEClass;
465
  }
466
467
  /**
468
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}'.
469
   * <!-- begin-user-doc -->
470
   * <!-- end-user-doc -->
471
   * @return the meta object for the attribute '<em>Name</em>'.
472
   * @see org.eclipse.emf.test.models.sdo.library.Writer#getName()
473
   * @see #getWriter()
474
   * @generated
475
   */
476
  public EAttribute getWriter_Name()
477
  {
478
    return (EAttribute)writerEClass.getEStructuralFeatures().get(0);
479
  }
480
481
  /**
482
   * Returns the meta object for the reference list '{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}'.
483
   * <!-- begin-user-doc -->
484
   * <!-- end-user-doc -->
485
   * @return the meta object for the reference list '<em>Books</em>'.
486
   * @see org.eclipse.emf.test.models.sdo.library.Writer#getBooks()
487
   * @see #getWriter()
488
   * @generated
489
   */
490
  public EReference getWriter_Books()
491
  {
492
    return (EReference)writerEClass.getEStructuralFeatures().get(1);
493
  }
494
495
  /**
496
   * Returns the meta object for enum '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}'.
497
   * <!-- begin-user-doc -->
498
   * <!-- end-user-doc -->
499
   * @return the meta object for enum '<em>Book Category</em>'.
500
   * @see org.eclipse.emf.test.models.sdo.library.BookCategory
501
   * @generated
502
   */
503
  public EEnum getBookCategory()
504
  {
505
    return bookCategoryEEnum;
506
  }
507
508
  /**
509
   * Returns the factory that creates the instances of the model.
510
   * <!-- begin-user-doc -->
511
   * <!-- end-user-doc -->
512
   * @return the factory that creates the instances of the model.
513
   * @generated
514
   */
515
  public SDOLibraryFactory getSDOLibraryFactory()
516
  {
517
    return (SDOLibraryFactory)getEFactoryInstance();
518
  }
519
520
  /**
521
   * <!-- begin-user-doc -->
522
   * <!-- end-user-doc -->
523
   * @generated
524
   */
525
  private boolean isCreated = false;
526
527
  /**
528
   * Creates the meta-model objects for the package.  This method is
529
   * guarded to have no affect on any invocation but its first.
530
   * <!-- begin-user-doc -->
531
   * <!-- end-user-doc -->
532
   * @generated
533
   */
534
  public void createPackageContents()
535
  {
536
    if (isCreated) return;
537
    isCreated = true;
538
539
    // Create classes and their features
540
    bookEClass = createEClass(BOOK);
541
    createEAttribute(bookEClass, BOOK__TITLE);
542
    createEAttribute(bookEClass, BOOK__PAGES);
543
    createEAttribute(bookEClass, BOOK__CATEGORY);
544
    createEReference(bookEClass, BOOK__AUTHOR);
545
546
    libraryEClass = createEClass(LIBRARY);
547
    createEAttribute(libraryEClass, LIBRARY__NAME);
548
    createEReference(libraryEClass, LIBRARY__WRITERS);
549
    createEReference(libraryEClass, LIBRARY__BOOKS);
550
551
    writerEClass = createEClass(WRITER);
552
    createEAttribute(writerEClass, WRITER__NAME);
553
    createEReference(writerEClass, WRITER__BOOKS);
554
555
    // Create enums
556
    bookCategoryEEnum = createEEnum(BOOK_CATEGORY);
557
  }
558
559
  /**
560
   * <!-- begin-user-doc -->
561
   * <!-- end-user-doc -->
562
   * @generated
563
   */
564
  private boolean isInitialized = false;
565
566
  /**
567
   * Complete the initialization of the package and its meta-model.  This
568
   * method is guarded to have no affect on any invocation but its first.
569
   * <!-- begin-user-doc -->
570
   * <!-- end-user-doc -->
571
   * @generated
572
   */
573
  public void initializePackageContents()
574
  {
575
    if (isInitialized) return;
576
    isInitialized = true;
577
578
    // Initialize package
579
    setName(eNAME);
580
    setNsPrefix(eNS_PREFIX);
581
    setNsURI(eNS_URI);
582
583
    // Create type parameters
584
585
    // Set bounds for type parameters
586
587
    // Add supertypes to classes
588
589
    // Initialize classes and features; add operations and parameters
590
    initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
591
    initEAttribute(getBook_Title(), ecorePackage.getEString(), "title", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
592
    initEAttribute(getBook_Pages(), ecorePackage.getEInt(), "pages", "100", 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
593
    initEAttribute(getBook_Category(), this.getBookCategory(), "category", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
594
    initEReference(getBook_Author(), this.getWriter(), this.getWriter_Books(), "author", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
595
596
    initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
597
    initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
598
    initEReference(getLibrary_Writers(), this.getWriter(), null, "writers", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
599
    initEReference(getLibrary_Books(), this.getBook(), null, "books", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
600
601
    initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
602
    initEAttribute(getWriter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
603
    initEReference(getWriter_Books(), this.getBook(), this.getBook_Author(), "books", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
604
605
    // Initialize enums and add enum literals
606
    initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory");
607
    addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY);
608
    addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION);
609
    addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY);
610
611
    // Create resource
612
    createResource(eNS_URI);
613
  }
614
615
  /**
616
   * <!-- begin-user-doc -->
617
   * Defines literals for the meta objects that represent
618
   * <ul>
619
   *   <li>each class,</li>
620
   *   <li>each feature of each class,</li>
621
   *   <li>each enum,</li>
622
   *   <li>and each data type</li>
623
   * </ul>
624
   * <!-- end-user-doc -->
625
   * @generated
626
   */
627
  public interface Literals
628
  {
629
    /**
630
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class.
631
     * <!-- begin-user-doc -->
632
     * <!-- end-user-doc -->
633
     * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl
634
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook()
635
     * @generated
636
     */
637
    public static final EClass BOOK = eINSTANCE.getBook();
638
639
    /**
640
     * The meta object literal for the '<em><b>Title</b></em>' attribute feature.
641
     * <!-- begin-user-doc -->
642
     * <!-- end-user-doc -->
643
     * @generated
644
     */
645
    public static final EAttribute BOOK__TITLE = eINSTANCE.getBook_Title();
646
647
    /**
648
     * The meta object literal for the '<em><b>Pages</b></em>' attribute feature.
649
     * <!-- begin-user-doc -->
650
     * <!-- end-user-doc -->
651
     * @generated
652
     */
653
    public static final EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages();
654
655
    /**
656
     * The meta object literal for the '<em><b>Category</b></em>' attribute feature.
657
     * <!-- begin-user-doc -->
658
     * <!-- end-user-doc -->
659
     * @generated
660
     */
661
    public static final EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category();
662
663
    /**
664
     * The meta object literal for the '<em><b>Author</b></em>' reference feature.
665
     * <!-- begin-user-doc -->
666
     * <!-- end-user-doc -->
667
     * @generated
668
     */
669
    public static final EReference BOOK__AUTHOR = eINSTANCE.getBook_Author();
670
671
    /**
672
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class.
673
     * <!-- begin-user-doc -->
674
     * <!-- end-user-doc -->
675
     * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl
676
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary()
677
     * @generated
678
     */
679
    public static final EClass LIBRARY = eINSTANCE.getLibrary();
680
681
    /**
682
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
683
     * <!-- begin-user-doc -->
684
     * <!-- end-user-doc -->
685
     * @generated
686
     */
687
    public static final EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name();
688
689
    /**
690
     * The meta object literal for the '<em><b>Writers</b></em>' containment reference list feature.
691
     * <!-- begin-user-doc -->
692
     * <!-- end-user-doc -->
693
     * @generated
694
     */
695
    public static final EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers();
696
697
    /**
698
     * The meta object literal for the '<em><b>Books</b></em>' containment reference list feature.
699
     * <!-- begin-user-doc -->
700
     * <!-- end-user-doc -->
701
     * @generated
702
     */
703
    public static final EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books();
704
705
    /**
706
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class.
707
     * <!-- begin-user-doc -->
708
     * <!-- end-user-doc -->
709
     * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl
710
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter()
711
     * @generated
712
     */
713
    public static final EClass WRITER = eINSTANCE.getWriter();
714
715
    /**
716
     * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
717
     * <!-- begin-user-doc -->
718
     * <!-- end-user-doc -->
719
     * @generated
720
     */
721
    public static final EAttribute WRITER__NAME = eINSTANCE.getWriter_Name();
722
723
    /**
724
     * The meta object literal for the '<em><b>Books</b></em>' reference list feature.
725
     * <!-- begin-user-doc -->
726
     * <!-- end-user-doc -->
727
     * @generated
728
     */
729
    public static final EReference WRITER__BOOKS = eINSTANCE.getWriter_Books();
730
731
    /**
732
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum.
733
     * <!-- begin-user-doc -->
734
     * <!-- end-user-doc -->
735
     * @see org.eclipse.emf.test.models.sdo.library.BookCategory
736
     * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory()
737
     * @generated
738
     */
739
    public static final EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory();
740
741
  }
742
743
} //SDOLibraryPackageImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java (-439 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: BookImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.common.notify.Notification;
20
import org.eclipse.emf.common.notify.NotificationChain;
21
22
import org.eclipse.emf.ecore.EClass;
23
import org.eclipse.emf.ecore.EObject;
24
import org.eclipse.emf.ecore.InternalEObject;
25
26
import org.eclipse.emf.ecore.impl.ENotificationImpl;
27
28
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
29
30
import org.eclipse.emf.test.models.sdo.library.Book;
31
import org.eclipse.emf.test.models.sdo.library.BookCategory;
32
import org.eclipse.emf.test.models.sdo.library.Writer;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Book</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getTitle <em>Title</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getPages <em>Pages</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getCategory <em>Category</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getAuthor <em>Author</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class BookImpl extends EDataObjectImpl implements Book
51
{
52
  /**
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  private static final long serialVersionUID = 1L;
58
59
  /**
60
   * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
61
   * <!-- begin-user-doc -->
62
   * <!-- end-user-doc -->
63
   * @see #getTitle()
64
   * @generated
65
   * @ordered
66
   */
67
  protected static final String TITLE_EDEFAULT = null;
68
69
  /**
70
   * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @see #getTitle()
74
   * @generated
75
   * @ordered
76
   */
77
  protected String title = TITLE_EDEFAULT;
78
79
  /**
80
   * The default value of the '{@link #getPages() <em>Pages</em>}' attribute.
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @see #getPages()
84
   * @generated
85
   * @ordered
86
   */
87
  protected static final int PAGES_EDEFAULT = 100;
88
89
  /**
90
   * The cached value of the '{@link #getPages() <em>Pages</em>}' attribute.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @see #getPages()
94
   * @generated
95
   * @ordered
96
   */
97
  protected int pages = PAGES_EDEFAULT;
98
99
  /**
100
   * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
101
   * <!-- begin-user-doc -->
102
   * <!-- end-user-doc -->
103
   * @see #getCategory()
104
   * @generated
105
   * @ordered
106
   */
107
  protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY;
108
109
  /**
110
   * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @see #getCategory()
114
   * @generated
115
   * @ordered
116
   */
117
  protected BookCategory category = CATEGORY_EDEFAULT;
118
119
  /**
120
   * The cached value of the '{@link #getAuthor() <em>Author</em>}' reference.
121
   * <!-- begin-user-doc -->
122
   * <!-- end-user-doc -->
123
   * @see #getAuthor()
124
   * @generated
125
   * @ordered
126
   */
127
  protected Writer author;
128
129
  /**
130
   * <!-- begin-user-doc -->
131
   * <!-- end-user-doc -->
132
   * @generated
133
   */
134
  protected BookImpl()
135
  {
136
    super();
137
  }
138
139
  /**
140
   * <!-- begin-user-doc -->
141
   * <!-- end-user-doc -->
142
   * @generated
143
   */
144
  @Override
145
  protected EClass eStaticClass()
146
  {
147
    return SDOLibraryPackageImpl.Literals.BOOK;
148
  }
149
150
  /**
151
   * <!-- begin-user-doc -->
152
   * <!-- end-user-doc -->
153
   * @generated
154
   */
155
  public String getTitle()
156
  {
157
    return title;
158
  }
159
160
  /**
161
   * <!-- begin-user-doc -->
162
   * <!-- end-user-doc -->
163
   * @generated
164
   */
165
  public void setTitle(String newTitle)
166
  {
167
    String oldTitle = title;
168
    title = newTitle;
169
    if (eNotificationRequired())
170
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__TITLE, oldTitle, title));
171
  }
172
173
  /**
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   */
178
  public int getPages()
179
  {
180
    return pages;
181
  }
182
183
  /**
184
   * <!-- begin-user-doc -->
185
   * <!-- end-user-doc -->
186
   * @generated
187
   */
188
  public void setPages(int newPages)
189
  {
190
    int oldPages = pages;
191
    pages = newPages;
192
    if (eNotificationRequired())
193
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__PAGES, oldPages, pages));
194
  }
195
196
  /**
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @generated
200
   */
201
  public BookCategory getCategory()
202
  {
203
    return category;
204
  }
205
206
  /**
207
   * <!-- begin-user-doc -->
208
   * <!-- end-user-doc -->
209
   * @generated
210
   */
211
  public void setCategory(BookCategory newCategory)
212
  {
213
    BookCategory oldCategory = category;
214
    category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
215
    if (eNotificationRequired())
216
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__CATEGORY, oldCategory, category));
217
  }
218
219
  /**
220
   * <!-- begin-user-doc -->
221
   * <!-- end-user-doc -->
222
   * @generated
223
   */
224
  public Writer getAuthor()
225
  {
226
    if (author != null && ((EObject)author).eIsProxy())
227
    {
228
      InternalEObject oldAuthor = (InternalEObject)author;
229
      author = (Writer)eResolveProxy(oldAuthor);
230
      if (author != oldAuthor)
231
      {
232
        if (eNotificationRequired())
233
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, author));
234
      }
235
    }
236
    return author;
237
  }
238
239
  /**
240
   * <!-- begin-user-doc -->
241
   * <!-- end-user-doc -->
242
   * @generated
243
   */
244
  public Writer basicGetAuthor()
245
  {
246
    return author;
247
  }
248
249
  /**
250
   * <!-- begin-user-doc -->
251
   * <!-- end-user-doc -->
252
   * @generated
253
   */
254
  public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs)
255
  {
256
    Writer oldAuthor = author;
257
    author = newAuthor;
258
    if (eNotificationRequired())
259
    {
260
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, newAuthor);
261
      if (msgs == null) msgs = notification; else msgs.add(notification);
262
    }
263
    return msgs;
264
  }
265
266
  /**
267
   * <!-- begin-user-doc -->
268
   * <!-- end-user-doc -->
269
   * @generated
270
   */
271
  public void setAuthor(Writer newAuthor)
272
  {
273
    if (newAuthor != author)
274
    {
275
      NotificationChain msgs = null;
276
      if (author != null)
277
        msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
278
      if (newAuthor != null)
279
        msgs = ((InternalEObject)newAuthor).eInverseAdd(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
280
      msgs = basicSetAuthor(newAuthor, msgs);
281
      if (msgs != null) msgs.dispatch();
282
    }
283
    else if (eNotificationRequired())
284
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, newAuthor, newAuthor));
285
  }
286
287
  /**
288
   * <!-- begin-user-doc -->
289
   * <!-- end-user-doc -->
290
   * @generated
291
   */
292
  @Override
293
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
294
  {
295
    switch (featureID)
296
    {
297
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
298
        if (author != null)
299
          msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs);
300
        return basicSetAuthor((Writer)otherEnd, msgs);
301
    }
302
    return super.eInverseAdd(otherEnd, featureID, msgs);
303
  }
304
305
  /**
306
   * <!-- begin-user-doc -->
307
   * <!-- end-user-doc -->
308
   * @generated
309
   */
310
  @Override
311
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
312
  {
313
    switch (featureID)
314
    {
315
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
316
        return basicSetAuthor(null, msgs);
317
    }
318
    return super.eInverseRemove(otherEnd, featureID, msgs);
319
  }
320
321
  /**
322
   * <!-- begin-user-doc -->
323
   * <!-- end-user-doc -->
324
   * @generated
325
   */
326
  @Override
327
  public Object eGet(int featureID, boolean resolve, boolean coreType)
328
  {
329
    switch (featureID)
330
    {
331
      case SDOLibraryPackageImpl.BOOK__TITLE:
332
        return getTitle();
333
      case SDOLibraryPackageImpl.BOOK__PAGES:
334
        return new Integer(getPages());
335
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
336
        return getCategory();
337
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
338
        if (resolve) return getAuthor();
339
        return basicGetAuthor();
340
    }
341
    return super.eGet(featureID, resolve, coreType);
342
  }
343
344
  /**
345
   * <!-- begin-user-doc -->
346
   * <!-- end-user-doc -->
347
   * @generated
348
   */
349
  @Override
350
  public void eSet(int featureID, Object newValue)
351
  {
352
    switch (featureID)
353
    {
354
      case SDOLibraryPackageImpl.BOOK__TITLE:
355
        setTitle((String)newValue);
356
        return;
357
      case SDOLibraryPackageImpl.BOOK__PAGES:
358
        setPages(((Integer)newValue).intValue());
359
        return;
360
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
361
        setCategory((BookCategory)newValue);
362
        return;
363
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
364
        setAuthor((Writer)newValue);
365
        return;
366
    }
367
    super.eSet(featureID, newValue);
368
  }
369
370
  /**
371
   * <!-- begin-user-doc -->
372
   * <!-- end-user-doc -->
373
   * @generated
374
   */
375
  @Override
376
  public void eUnset(int featureID)
377
  {
378
    switch (featureID)
379
    {
380
      case SDOLibraryPackageImpl.BOOK__TITLE:
381
        setTitle(TITLE_EDEFAULT);
382
        return;
383
      case SDOLibraryPackageImpl.BOOK__PAGES:
384
        setPages(PAGES_EDEFAULT);
385
        return;
386
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
387
        setCategory(CATEGORY_EDEFAULT);
388
        return;
389
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
390
        setAuthor((Writer)null);
391
        return;
392
    }
393
    super.eUnset(featureID);
394
  }
395
396
  /**
397
   * <!-- begin-user-doc -->
398
   * <!-- end-user-doc -->
399
   * @generated
400
   */
401
  @Override
402
  public boolean eIsSet(int featureID)
403
  {
404
    switch (featureID)
405
    {
406
      case SDOLibraryPackageImpl.BOOK__TITLE:
407
        return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
408
      case SDOLibraryPackageImpl.BOOK__PAGES:
409
        return pages != PAGES_EDEFAULT;
410
      case SDOLibraryPackageImpl.BOOK__CATEGORY:
411
        return category != CATEGORY_EDEFAULT;
412
      case SDOLibraryPackageImpl.BOOK__AUTHOR:
413
        return author != null;
414
    }
415
    return super.eIsSet(featureID);
416
  }
417
418
  /**
419
   * <!-- begin-user-doc -->
420
   * <!-- end-user-doc -->
421
   * @generated
422
   */
423
  @Override
424
  public String toString()
425
  {
426
    if (eIsProxy()) return super.toString();
427
428
    StringBuffer result = new StringBuffer(super.toString());
429
    result.append(" (title: ");
430
    result.append(title);
431
    result.append(", pages: ");
432
    result.append(pages);
433
    result.append(", category: ");
434
    result.append(category);
435
    result.append(')');
436
    return result.toString();
437
  }
438
439
} //BookImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java (-209 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SDOLibraryFactoryImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EDataType;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.EPackage;
23
24
import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26
import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28
import org.eclipse.emf.test.models.sdo.library.*;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model <b>Factory</b>.
33
 * <!-- end-user-doc -->
34
 * @generated
35
 */
36
public class SDOLibraryFactoryImpl extends EFactoryImpl implements SDOLibraryFactory
37
{
38
  /**
39
   * The singleton instance of the factory.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public static final SDOLibraryFactoryImpl eINSTANCE = init();
45
46
  /**
47
   * Creates the default factory implementation.
48
   * <!-- begin-user-doc -->
49
   * <!-- end-user-doc -->
50
   * @generated
51
   */
52
  public static SDOLibraryFactoryImpl init()
53
  {
54
    try
55
    {
56
      SDOLibraryFactoryImpl theSDOLibraryFactory = (SDOLibraryFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/SDOLibrary"); 
57
      if (theSDOLibraryFactory != null)
58
      {
59
        return theSDOLibraryFactory;
60
      }
61
    }
62
    catch (Exception exception)
63
    {
64
      EcorePlugin.INSTANCE.log(exception);
65
    }
66
    return new SDOLibraryFactoryImpl();
67
  }
68
69
  /**
70
   * Creates an instance of the factory.
71
   * <!-- begin-user-doc -->
72
   * <!-- end-user-doc -->
73
   * @generated
74
   */
75
  public SDOLibraryFactoryImpl()
76
  {
77
    super();
78
  }
79
80
  /**
81
   * <!-- begin-user-doc -->
82
   * <!-- end-user-doc -->
83
   * @generated
84
   */
85
  @Override
86
  public EObject create(EClass eClass)
87
  {
88
    switch (eClass.getClassifierID())
89
    {
90
      case SDOLibraryPackageImpl.BOOK: return (EObject)createBook();
91
      case SDOLibraryPackageImpl.LIBRARY: return (EObject)createLibrary();
92
      case SDOLibraryPackageImpl.WRITER: return (EObject)createWriter();
93
      default:
94
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
95
    }
96
  }
97
98
  /**
99
   * <!-- begin-user-doc -->
100
   * <!-- end-user-doc -->
101
   * @generated
102
   */
103
  @Override
104
  public Object createFromString(EDataType eDataType, String initialValue)
105
  {
106
    switch (eDataType.getClassifierID())
107
    {
108
      case SDOLibraryPackageImpl.BOOK_CATEGORY:
109
        return createBookCategoryFromString(eDataType, initialValue);
110
      default:
111
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
112
    }
113
  }
114
115
  /**
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @generated
119
   */
120
  @Override
121
  public String convertToString(EDataType eDataType, Object instanceValue)
122
  {
123
    switch (eDataType.getClassifierID())
124
    {
125
      case SDOLibraryPackageImpl.BOOK_CATEGORY:
126
        return convertBookCategoryToString(eDataType, instanceValue);
127
      default:
128
        throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
129
    }
130
  }
131
132
  /**
133
   * <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * @generated
136
   */
137
  public Book createBook()
138
  {
139
    BookImpl book = new BookImpl();
140
    return book;
141
  }
142
143
  /**
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @generated
147
   */
148
  public Library createLibrary()
149
  {
150
    LibraryImpl library = new LibraryImpl();
151
    return library;
152
  }
153
154
  /**
155
   * <!-- begin-user-doc -->
156
   * <!-- end-user-doc -->
157
   * @generated
158
   */
159
  public Writer createWriter()
160
  {
161
    WriterImpl writer = new WriterImpl();
162
    return writer;
163
  }
164
165
  /**
166
   * <!-- begin-user-doc -->
167
   * <!-- end-user-doc -->
168
   * @generated
169
   */
170
  public BookCategory createBookCategoryFromString(EDataType eDataType, String initialValue)
171
  {
172
    BookCategory result = BookCategory.get(initialValue);
173
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
174
    return result;
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  public String convertBookCategoryToString(EDataType eDataType, Object instanceValue)
183
  {
184
    return instanceValue == null ? null : instanceValue.toString();
185
  }
186
187
  /**
188
   * <!-- begin-user-doc -->
189
   * <!-- end-user-doc -->
190
   * @generated
191
   */
192
  public SDOLibraryPackageImpl getSDOLibraryPackageImpl()
193
  {
194
    return (SDOLibraryPackageImpl)getEPackage();
195
  }
196
197
  /**
198
   * <!-- begin-user-doc -->
199
   * <!-- end-user-doc -->
200
   * @deprecated
201
   * @generated
202
   */
203
  @Deprecated
204
  public static SDOLibraryPackageImpl getPackage()
205
  {
206
    return SDOLibraryPackageImpl.eINSTANCE;
207
  }
208
209
} //SDOLibraryFactoryImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java (-279 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: WriterImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.Notification;
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EList;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.InternalEObject;
29
30
import org.eclipse.emf.ecore.impl.ENotificationImpl;
31
32
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
33
34
import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
35
import org.eclipse.emf.ecore.util.InternalEList;
36
37
import org.eclipse.emf.test.models.sdo.library.Book;
38
import org.eclipse.emf.test.models.sdo.library.Writer;
39
40
/**
41
 * <!-- begin-user-doc -->
42
 * An implementation of the model object '<em><b>Writer</b></em>'.
43
 * <!-- end-user-doc -->
44
 * <p>
45
 * The following features are implemented:
46
 * <ul>
47
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getName <em>Name</em>}</li>
48
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getBooks <em>Books</em>}</li>
49
 * </ul>
50
 * </p>
51
 *
52
 * @generated
53
 */
54
public class WriterImpl extends EDataObjectImpl implements Writer
55
{
56
  /**
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @generated
60
   */
61
  private static final long serialVersionUID = 1L;
62
63
  /**
64
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @see #getName()
68
   * @generated
69
   * @ordered
70
   */
71
  protected static final String NAME_EDEFAULT = null;
72
73
  /**
74
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @see #getName()
78
   * @generated
79
   * @ordered
80
   */
81
  protected String name = NAME_EDEFAULT;
82
83
  /**
84
   * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list.
85
   * <!-- begin-user-doc -->
86
   * <!-- end-user-doc -->
87
   * @see #getBooks()
88
   * @generated
89
   * @ordered
90
   */
91
  protected EList<Book> books;
92
93
  /**
94
   * <!-- begin-user-doc -->
95
   * <!-- end-user-doc -->
96
   * @generated
97
   */
98
  protected WriterImpl()
99
  {
100
    super();
101
  }
102
103
  /**
104
   * <!-- begin-user-doc -->
105
   * <!-- end-user-doc -->
106
   * @generated
107
   */
108
  @Override
109
  protected EClass eStaticClass()
110
  {
111
    return SDOLibraryPackageImpl.Literals.WRITER;
112
  }
113
114
  /**
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @generated
118
   */
119
  public String getName()
120
  {
121
    return name;
122
  }
123
124
  /**
125
   * <!-- begin-user-doc -->
126
   * <!-- end-user-doc -->
127
   * @generated
128
   */
129
  public void setName(String newName)
130
  {
131
    String oldName = name;
132
    name = newName;
133
    if (eNotificationRequired())
134
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.WRITER__NAME, oldName, name));
135
  }
136
137
  /**
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @generated
141
   */
142
  public List<Book> getBooks()
143
  {
144
    if (books == null)
145
    {
146
      books = new EObjectWithInverseResolvingEList<Book>(Book.class, this, SDOLibraryPackageImpl.WRITER__BOOKS, SDOLibraryPackageImpl.BOOK__AUTHOR);
147
    }
148
    return books;
149
  }
150
151
  /**
152
   * <!-- begin-user-doc -->
153
   * <!-- end-user-doc -->
154
   * @generated
155
   */
156
  @SuppressWarnings("unchecked")
157
  @Override
158
  public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
159
  {
160
    switch (featureID)
161
    {
162
      case SDOLibraryPackageImpl.WRITER__BOOKS:
163
        return ((InternalEList<InternalEObject>)(InternalEList<?>)getBooks()).basicAdd(otherEnd, msgs);
164
    }
165
    return super.eInverseAdd(otherEnd, featureID, msgs);
166
  }
167
168
  /**
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @generated
172
   */
173
  @Override
174
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
175
  {
176
    switch (featureID)
177
    {
178
      case SDOLibraryPackageImpl.WRITER__BOOKS:
179
        return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs);
180
    }
181
    return super.eInverseRemove(otherEnd, featureID, msgs);
182
  }
183
184
  /**
185
   * <!-- begin-user-doc -->
186
   * <!-- end-user-doc -->
187
   * @generated
188
   */
189
  @Override
190
  public Object eGet(int featureID, boolean resolve, boolean coreType)
191
  {
192
    switch (featureID)
193
    {
194
      case SDOLibraryPackageImpl.WRITER__NAME:
195
        return getName();
196
      case SDOLibraryPackageImpl.WRITER__BOOKS:
197
        return getBooks();
198
    }
199
    return super.eGet(featureID, resolve, coreType);
200
  }
201
202
  /**
203
   * <!-- begin-user-doc -->
204
   * <!-- end-user-doc -->
205
   * @generated
206
   */
207
  @SuppressWarnings("unchecked")
208
  @Override
209
  public void eSet(int featureID, Object newValue)
210
  {
211
    switch (featureID)
212
    {
213
      case SDOLibraryPackageImpl.WRITER__NAME:
214
        setName((String)newValue);
215
        return;
216
      case SDOLibraryPackageImpl.WRITER__BOOKS:
217
        getBooks().clear();
218
        getBooks().addAll((Collection<? extends Book>)newValue);
219
        return;
220
    }
221
    super.eSet(featureID, newValue);
222
  }
223
224
  /**
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @generated
228
   */
229
  @Override
230
  public void eUnset(int featureID)
231
  {
232
    switch (featureID)
233
    {
234
      case SDOLibraryPackageImpl.WRITER__NAME:
235
        setName(NAME_EDEFAULT);
236
        return;
237
      case SDOLibraryPackageImpl.WRITER__BOOKS:
238
        getBooks().clear();
239
        return;
240
    }
241
    super.eUnset(featureID);
242
  }
243
244
  /**
245
   * <!-- begin-user-doc -->
246
   * <!-- end-user-doc -->
247
   * @generated
248
   */
249
  @Override
250
  public boolean eIsSet(int featureID)
251
  {
252
    switch (featureID)
253
    {
254
      case SDOLibraryPackageImpl.WRITER__NAME:
255
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
256
      case SDOLibraryPackageImpl.WRITER__BOOKS:
257
        return books != null && !books.isEmpty();
258
    }
259
    return super.eIsSet(featureID);
260
  }
261
262
  /**
263
   * <!-- begin-user-doc -->
264
   * <!-- end-user-doc -->
265
   * @generated
266
   */
267
  @Override
268
  public String toString()
269
  {
270
    if (eIsProxy()) return super.toString();
271
272
    StringBuffer result = new StringBuffer(super.toString());
273
    result.append(" (name: ");
274
    result.append(name);
275
    result.append(')');
276
    return result.toString();
277
  }
278
279
} //WriterImpl
(-)src/org/eclipse/emf/test/models/sdo/library/impl/LibraryImpl.java (-301 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: LibraryImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.library.impl;
18
19
import java.util.Collection;
20
import java.util.List;
21
22
import org.eclipse.emf.common.notify.Notification;
23
import org.eclipse.emf.common.notify.NotificationChain;
24
25
import org.eclipse.emf.common.util.EList;
26
27
import org.eclipse.emf.ecore.EClass;
28
import org.eclipse.emf.ecore.InternalEObject;
29
30
import org.eclipse.emf.ecore.impl.ENotificationImpl;
31
32
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
33
34
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
35
import org.eclipse.emf.ecore.util.InternalEList;
36
37
import org.eclipse.emf.test.models.sdo.library.Book;
38
import org.eclipse.emf.test.models.sdo.library.Library;
39
import org.eclipse.emf.test.models.sdo.library.Writer;
40
41
/**
42
 * <!-- begin-user-doc -->
43
 * An implementation of the model object '<em><b>Library</b></em>'.
44
 * <!-- end-user-doc -->
45
 * <p>
46
 * The following features are implemented:
47
 * <ul>
48
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getName <em>Name</em>}</li>
49
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getWriters <em>Writers</em>}</li>
50
 *   <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getBooks <em>Books</em>}</li>
51
 * </ul>
52
 * </p>
53
 *
54
 * @generated
55
 */
56
public class LibraryImpl extends EDataObjectImpl implements Library
57
{
58
  /**
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  private static final long serialVersionUID = 1L;
64
65
  /**
66
   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @see #getName()
70
   * @generated
71
   * @ordered
72
   */
73
  protected static final String NAME_EDEFAULT = null;
74
75
  /**
76
   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @see #getName()
80
   * @generated
81
   * @ordered
82
   */
83
  protected String name = NAME_EDEFAULT;
84
85
  /**
86
   * The cached value of the '{@link #getWriters() <em>Writers</em>}' containment reference list.
87
   * <!-- begin-user-doc -->
88
   * <!-- end-user-doc -->
89
   * @see #getWriters()
90
   * @generated
91
   * @ordered
92
   */
93
  protected EList<Writer> writers;
94
95
  /**
96
   * The cached value of the '{@link #getBooks() <em>Books</em>}' containment reference list.
97
   * <!-- begin-user-doc -->
98
   * <!-- end-user-doc -->
99
   * @see #getBooks()
100
   * @generated
101
   * @ordered
102
   */
103
  protected EList<Book> books;
104
105
  /**
106
   * <!-- begin-user-doc -->
107
   * <!-- end-user-doc -->
108
   * @generated
109
   */
110
  protected LibraryImpl()
111
  {
112
    super();
113
  }
114
115
  /**
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @generated
119
   */
120
  @Override
121
  protected EClass eStaticClass()
122
  {
123
    return SDOLibraryPackageImpl.Literals.LIBRARY;
124
  }
125
126
  /**
127
   * <!-- begin-user-doc -->
128
   * <!-- end-user-doc -->
129
   * @generated
130
   */
131
  public String getName()
132
  {
133
    return name;
134
  }
135
136
  /**
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @generated
140
   */
141
  public void setName(String newName)
142
  {
143
    String oldName = name;
144
    name = newName;
145
    if (eNotificationRequired())
146
      eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.LIBRARY__NAME, oldName, name));
147
  }
148
149
  /**
150
   * <!-- begin-user-doc -->
151
   * <!-- end-user-doc -->
152
   * @generated
153
   */
154
  public List<Writer> getWriters()
155
  {
156
    if (writers == null)
157
    {
158
      writers = new EObjectContainmentEList<Writer>(Writer.class, this, SDOLibraryPackageImpl.LIBRARY__WRITERS);
159
    }
160
    return writers;
161
  }
162
163
  /**
164
   * <!-- begin-user-doc -->
165
   * <!-- end-user-doc -->
166
   * @generated
167
   */
168
  public List<Book> getBooks()
169
  {
170
    if (books == null)
171
    {
172
      books = new EObjectContainmentEList<Book>(Book.class, this, SDOLibraryPackageImpl.LIBRARY__BOOKS);
173
    }
174
    return books;
175
  }
176
177
  /**
178
   * <!-- begin-user-doc -->
179
   * <!-- end-user-doc -->
180
   * @generated
181
   */
182
  @Override
183
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
184
  {
185
    switch (featureID)
186
    {
187
      case SDOLibraryPackageImpl.LIBRARY__WRITERS:
188
        return ((InternalEList<?>)getWriters()).basicRemove(otherEnd, msgs);
189
      case SDOLibraryPackageImpl.LIBRARY__BOOKS:
190
        return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs);
191
    }
192
    return super.eInverseRemove(otherEnd, featureID, msgs);
193
  }
194
195
  /**
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @generated
199
   */
200
  @Override
201
  public Object eGet(int featureID, boolean resolve, boolean coreType)
202
  {
203
    switch (featureID)
204
    {
205
      case SDOLibraryPackageImpl.LIBRARY__NAME:
206
        return getName();
207
      case SDOLibraryPackageImpl.LIBRARY__WRITERS:
208
        return getWriters();
209
      case SDOLibraryPackageImpl.LIBRARY__BOOKS:
210
        return getBooks();
211
    }
212
    return super.eGet(featureID, resolve, coreType);
213
  }
214
215
  /**
216
   * <!-- begin-user-doc -->
217
   * <!-- end-user-doc -->
218
   * @generated
219
   */
220
  @SuppressWarnings("unchecked")
221
  @Override
222
  public void eSet(int featureID, Object newValue)
223
  {
224
    switch (featureID)
225
    {
226
      case SDOLibraryPackageImpl.LIBRARY__NAME:
227
        setName((String)newValue);
228
        return;
229
      case SDOLibraryPackageImpl.LIBRARY__WRITERS:
230
        getWriters().clear();
231
        getWriters().addAll((Collection<? extends Writer>)newValue);
232
        return;
233
      case SDOLibraryPackageImpl.LIBRARY__BOOKS:
234
        getBooks().clear();
235
        getBooks().addAll((Collection<? extends Book>)newValue);
236
        return;
237
    }
238
    super.eSet(featureID, newValue);
239
  }
240
241
  /**
242
   * <!-- begin-user-doc -->
243
   * <!-- end-user-doc -->
244
   * @generated
245
   */
246
  @Override
247
  public void eUnset(int featureID)
248
  {
249
    switch (featureID)
250
    {
251
      case SDOLibraryPackageImpl.LIBRARY__NAME:
252
        setName(NAME_EDEFAULT);
253
        return;
254
      case SDOLibraryPackageImpl.LIBRARY__WRITERS:
255
        getWriters().clear();
256
        return;
257
      case SDOLibraryPackageImpl.LIBRARY__BOOKS:
258
        getBooks().clear();
259
        return;
260
    }
261
    super.eUnset(featureID);
262
  }
263
264
  /**
265
   * <!-- begin-user-doc -->
266
   * <!-- end-user-doc -->
267
   * @generated
268
   */
269
  @Override
270
  public boolean eIsSet(int featureID)
271
  {
272
    switch (featureID)
273
    {
274
      case SDOLibraryPackageImpl.LIBRARY__NAME:
275
        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
276
      case SDOLibraryPackageImpl.LIBRARY__WRITERS:
277
        return writers != null && !writers.isEmpty();
278
      case SDOLibraryPackageImpl.LIBRARY__BOOKS:
279
        return books != null && !books.isEmpty();
280
    }
281
    return super.eIsSet(featureID);
282
  }
283
284
  /**
285
   * <!-- begin-user-doc -->
286
   * <!-- end-user-doc -->
287
   * @generated
288
   */
289
  @Override
290
  public String toString()
291
  {
292
    if (eIsProxy()) return super.toString();
293
294
    StringBuffer result = new StringBuffer(super.toString());
295
    result.append(" (name: ");
296
    result.append(name);
297
    result.append(')');
298
    return result.toString();
299
  }
300
301
} //LibraryImpl
(-)META-INF/MANIFEST.MF (-20 / +1 lines)
Lines 10-16 Link Here
10
Require-Bundle: org.eclipse.core.runtime,
10
Require-Bundle: org.eclipse.core.runtime,
11
 org.eclipse.emf.ecore;visibility:=reexport,
11
 org.eclipse.emf.ecore;visibility:=reexport,
12
 org.eclipse.emf.ecore.xmi,
12
 org.eclipse.emf.ecore.xmi,
13
 org.eclipse.emf.ecore.sdo,
14
 org.eclipse.emf.ecore.edit
13
 org.eclipse.emf.ecore.edit
15
Eclipse-LazyStart: true
14
Eclipse-LazyStart: true
16
Bundle-Activator: org.eclipse.emf.test.common.EMFTestCommonPlugin
15
Bundle-Activator: org.eclipse.emf.test.common.EMFTestCommonPlugin
Lines 28-36 Link Here
28
 org.eclipse.emf.test.models.ext.impl,
27
 org.eclipse.emf.test.models.ext.impl,
29
 org.eclipse.emf.test.models.ext.provider,
28
 org.eclipse.emf.test.models.ext.provider,
30
 org.eclipse.emf.test.models.ext.util,
29
 org.eclipse.emf.test.models.ext.util,
31
 org.eclipse.emf.test.models.ipo,
32
 org.eclipse.emf.test.models.ipo.impl,
33
 org.eclipse.emf.test.models.ipo.util,
34
 org.eclipse.emf.test.models.key,
30
 org.eclipse.emf.test.models.key,
35
 org.eclipse.emf.test.models.key.impl,
31
 org.eclipse.emf.test.models.key.impl,
36
 org.eclipse.emf.test.models.key.util,
32
 org.eclipse.emf.test.models.key.util,
Lines 46-57 Link Here
46
 org.eclipse.emf.test.models.order,
42
 org.eclipse.emf.test.models.order,
47
 org.eclipse.emf.test.models.order.impl,
43
 org.eclipse.emf.test.models.order.impl,
48
 org.eclipse.emf.test.models.order.util,
44
 org.eclipse.emf.test.models.order.util,
49
 org.eclipse.emf.test.models.personal,
50
 org.eclipse.emf.test.models.personal.impl,
51
 org.eclipse.emf.test.models.personal.mixed,
52
 org.eclipse.emf.test.models.personal.mixed.impl,
53
 org.eclipse.emf.test.models.personal.mixed.util,
54
 org.eclipse.emf.test.models.personal.util,
55
 org.eclipse.emf.test.models.ppo,
45
 org.eclipse.emf.test.models.ppo,
56
 org.eclipse.emf.test.models.ppo.impl,
46
 org.eclipse.emf.test.models.ppo.impl,
57
 org.eclipse.emf.test.models.ppo.util,
47
 org.eclipse.emf.test.models.ppo.util,
Lines 66-82 Link Here
66
 org.eclipse.emf.test.models.ref.unsettable.provider,
56
 org.eclipse.emf.test.models.ref.unsettable.provider,
67
 org.eclipse.emf.test.models.ref.unsettable.util,
57
 org.eclipse.emf.test.models.ref.unsettable.util,
68
 org.eclipse.emf.test.models.ref.util,
58
 org.eclipse.emf.test.models.ref.util,
69
 org.eclipse.emf.test.models.sdo.library,
70
 org.eclipse.emf.test.models.sdo.library.impl,
71
 org.eclipse.emf.test.models.sdo.library.util,
72
 org.eclipse.emf.test.models.sdo.simple,
73
 org.eclipse.emf.test.models.sdo.simple.impl,
74
 org.eclipse.emf.test.models.sdo.simple.util,
75
 org.eclipse.emf.test.models.tree,
59
 org.eclipse.emf.test.models.tree,
76
 org.eclipse.emf.test.models.tree.impl,
60
 org.eclipse.emf.test.models.tree.impl,
77
 org.eclipse.emf.test.models.tree.provider,
61
 org.eclipse.emf.test.models.tree.provider,
78
 org.eclipse.emf.test.models.tree.util,
62
 org.eclipse.emf.test.models.tree.util
79
 org.eclipse.emf.test.models.types,
80
 org.eclipse.emf.test.models.types.impl,
81
 org.eclipse.emf.test.models.types.util
82
Bundle-ActivationPolicy: lazy
63
Bundle-ActivationPolicy: lazy
(-)src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:43 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.ipo.util.IPOResourceImpl
32
 * @generated
33
 */
34
public class IPOResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public IPOResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new IPOResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //IPOResourceFactoryImpl
(-)src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOResourceImpl.java,v 1.2 2007/01/18 22:06:44 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.ipo.util.IPOResourceFactoryImpl
28
 * @generated
29
 */
30
public class IPOResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public IPOResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //IPOResourceImpl
(-)src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java (-294 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.ipo.*;
25
26
import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl
39
 * @generated
40
 */
41
public class IPOSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static IPOPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public IPOSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = IPOPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case IPOPackageImpl.ADDRESS:
112
      {
113
        Address address = (Address)theEObject;
114
        T result = caseAddress(address);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case IPOPackageImpl.DOCUMENT_ROOT:
119
      {
120
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
121
        T result = caseDocumentRoot(documentRoot);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case IPOPackageImpl.ITEMS:
126
      {
127
        Items items = (Items)theEObject;
128
        T result = caseItems(items);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case IPOPackageImpl.ITEM_TYPE:
133
      {
134
        ItemType itemType = (ItemType)theEObject;
135
        T result = caseItemType(itemType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case IPOPackageImpl.PURCHASE_ORDER_TYPE:
140
      {
141
        PurchaseOrderType purchaseOrderType = (PurchaseOrderType)theEObject;
142
        T result = casePurchaseOrderType(purchaseOrderType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case IPOPackageImpl.UK_ADDRESS:
147
      {
148
        UKAddress ukAddress = (UKAddress)theEObject;
149
        T result = caseUKAddress(ukAddress);
150
        if (result == null) result = caseAddress(ukAddress);
151
        if (result == null) result = defaultCase(theEObject);
152
        return result;
153
      }
154
      case IPOPackageImpl.US_ADDRESS:
155
      {
156
        USAddress usAddress = (USAddress)theEObject;
157
        T result = caseUSAddress(usAddress);
158
        if (result == null) result = caseAddress(usAddress);
159
        if (result == null) result = defaultCase(theEObject);
160
        return result;
161
      }
162
      default: return defaultCase(theEObject);
163
    }
164
  }
165
166
  /**
167
   * Returns the result of interpreting the object as an instance of '<em>Address</em>'.
168
   * <!-- begin-user-doc -->
169
   * This implementation returns null;
170
   * returning a non-null result will terminate the switch.
171
   * <!-- end-user-doc -->
172
   * @param object the target of the switch.
173
   * @return the result of interpreting the object as an instance of '<em>Address</em>'.
174
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
175
   * @generated
176
   */
177
  public T caseAddress(Address object)
178
  {
179
    return null;
180
  }
181
182
  /**
183
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
184
   * <!-- begin-user-doc -->
185
   * This implementation returns null;
186
   * returning a non-null result will terminate the switch.
187
   * <!-- end-user-doc -->
188
   * @param object the target of the switch.
189
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
190
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
191
   * @generated
192
   */
193
  public T caseDocumentRoot(DocumentRoot object)
194
  {
195
    return null;
196
  }
197
198
  /**
199
   * Returns the result of interpreting the object as an instance of '<em>Items</em>'.
200
   * <!-- begin-user-doc -->
201
   * This implementation returns null;
202
   * returning a non-null result will terminate the switch.
203
   * <!-- end-user-doc -->
204
   * @param object the target of the switch.
205
   * @return the result of interpreting the object as an instance of '<em>Items</em>'.
206
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
207
   * @generated
208
   */
209
  public T caseItems(Items object)
210
  {
211
    return null;
212
  }
213
214
  /**
215
   * Returns the result of interpreting the object as an instance of '<em>Item Type</em>'.
216
   * <!-- begin-user-doc -->
217
   * This implementation returns null;
218
   * returning a non-null result will terminate the switch.
219
   * <!-- end-user-doc -->
220
   * @param object the target of the switch.
221
   * @return the result of interpreting the object as an instance of '<em>Item Type</em>'.
222
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
223
   * @generated
224
   */
225
  public T caseItemType(ItemType object)
226
  {
227
    return null;
228
  }
229
230
  /**
231
   * Returns the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'.
232
   * <!-- begin-user-doc -->
233
   * This implementation returns null;
234
   * returning a non-null result will terminate the switch.
235
   * <!-- end-user-doc -->
236
   * @param object the target of the switch.
237
   * @return the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'.
238
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
239
   * @generated
240
   */
241
  public T casePurchaseOrderType(PurchaseOrderType object)
242
  {
243
    return null;
244
  }
245
246
  /**
247
   * Returns the result of interpreting the object as an instance of '<em>UK Address</em>'.
248
   * <!-- begin-user-doc -->
249
   * This implementation returns null;
250
   * returning a non-null result will terminate the switch.
251
   * <!-- end-user-doc -->
252
   * @param object the target of the switch.
253
   * @return the result of interpreting the object as an instance of '<em>UK Address</em>'.
254
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
255
   * @generated
256
   */
257
  public T caseUKAddress(UKAddress object)
258
  {
259
    return null;
260
  }
261
262
  /**
263
   * Returns the result of interpreting the object as an instance of '<em>US Address</em>'.
264
   * <!-- begin-user-doc -->
265
   * This implementation returns null;
266
   * returning a non-null result will terminate the switch.
267
   * <!-- end-user-doc -->
268
   * @param object the target of the switch.
269
   * @return the result of interpreting the object as an instance of '<em>US Address</em>'.
270
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
271
   * @generated
272
   */
273
  public T caseUSAddress(USAddress object)
274
  {
275
    return null;
276
  }
277
278
  /**
279
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
280
   * <!-- begin-user-doc -->
281
   * This implementation returns null;
282
   * returning a non-null result will terminate the switch, but this is the last case anyway.
283
   * <!-- end-user-doc -->
284
   * @param object the target of the switch.
285
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
286
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
287
   * @generated
288
   */
289
  public T defaultCase(EObject object)
290
  {
291
    return null;
292
  }
293
294
} //IPOSwitch
(-)src/org/eclipse/emf/test/models/ipo/util/IPOAdapterFactory.java (-268 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.ipo.*;
27
28
import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl
36
 * @generated
37
 */
38
public class IPOAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static IPOPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public IPOAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = IPOPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected IPOSwitch<Adapter> modelSwitch =
91
    new IPOSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseAddress(Address object)
95
      {
96
        return createAddressAdapter();
97
      }
98
      @Override
99
      public Adapter caseDocumentRoot(DocumentRoot object)
100
      {
101
        return createDocumentRootAdapter();
102
      }
103
      @Override
104
      public Adapter caseItems(Items object)
105
      {
106
        return createItemsAdapter();
107
      }
108
      @Override
109
      public Adapter caseItemType(ItemType object)
110
      {
111
        return createItemTypeAdapter();
112
      }
113
      @Override
114
      public Adapter casePurchaseOrderType(PurchaseOrderType object)
115
      {
116
        return createPurchaseOrderTypeAdapter();
117
      }
118
      @Override
119
      public Adapter caseUKAddress(UKAddress object)
120
      {
121
        return createUKAddressAdapter();
122
      }
123
      @Override
124
      public Adapter caseUSAddress(USAddress object)
125
      {
126
        return createUSAddressAdapter();
127
      }
128
      @Override
129
      public Adapter defaultCase(EObject object)
130
      {
131
        return createEObjectAdapter();
132
      }
133
    };
134
135
  /**
136
   * Creates an adapter for the <code>target</code>.
137
   * <!-- begin-user-doc -->
138
   * <!-- end-user-doc -->
139
   * @param target the object to adapt.
140
   * @return the adapter for the <code>target</code>.
141
   * @generated
142
   */
143
  @Override
144
  public Adapter createAdapter(Notifier target)
145
  {
146
    return modelSwitch.doSwitch((EObject)target);
147
  }
148
149
150
  /**
151
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.Address <em>Address</em>}'.
152
   * <!-- begin-user-doc -->
153
   * This default implementation returns null so that we can easily ignore cases;
154
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
155
   * <!-- end-user-doc -->
156
   * @return the new adapter.
157
   * @see org.eclipse.emf.test.models.ipo.Address
158
   * @generated
159
   */
160
  public Adapter createAddressAdapter()
161
  {
162
    return null;
163
  }
164
165
  /**
166
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.DocumentRoot <em>Document Root</em>}'.
167
   * <!-- begin-user-doc -->
168
   * This default implementation returns null so that we can easily ignore cases;
169
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
170
   * <!-- end-user-doc -->
171
   * @return the new adapter.
172
   * @see org.eclipse.emf.test.models.ipo.DocumentRoot
173
   * @generated
174
   */
175
  public Adapter createDocumentRootAdapter()
176
  {
177
    return null;
178
  }
179
180
  /**
181
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.Items <em>Items</em>}'.
182
   * <!-- begin-user-doc -->
183
   * This default implementation returns null so that we can easily ignore cases;
184
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
185
   * <!-- end-user-doc -->
186
   * @return the new adapter.
187
   * @see org.eclipse.emf.test.models.ipo.Items
188
   * @generated
189
   */
190
  public Adapter createItemsAdapter()
191
  {
192
    return null;
193
  }
194
195
  /**
196
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.ItemType <em>Item Type</em>}'.
197
   * <!-- begin-user-doc -->
198
   * This default implementation returns null so that we can easily ignore cases;
199
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
200
   * <!-- end-user-doc -->
201
   * @return the new adapter.
202
   * @see org.eclipse.emf.test.models.ipo.ItemType
203
   * @generated
204
   */
205
  public Adapter createItemTypeAdapter()
206
  {
207
    return null;
208
  }
209
210
  /**
211
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType <em>Purchase Order Type</em>}'.
212
   * <!-- begin-user-doc -->
213
   * This default implementation returns null so that we can easily ignore cases;
214
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
215
   * <!-- end-user-doc -->
216
   * @return the new adapter.
217
   * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType
218
   * @generated
219
   */
220
  public Adapter createPurchaseOrderTypeAdapter()
221
  {
222
    return null;
223
  }
224
225
  /**
226
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.UKAddress <em>UK Address</em>}'.
227
   * <!-- begin-user-doc -->
228
   * This default implementation returns null so that we can easily ignore cases;
229
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
230
   * <!-- end-user-doc -->
231
   * @return the new adapter.
232
   * @see org.eclipse.emf.test.models.ipo.UKAddress
233
   * @generated
234
   */
235
  public Adapter createUKAddressAdapter()
236
  {
237
    return null;
238
  }
239
240
  /**
241
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.USAddress <em>US Address</em>}'.
242
   * <!-- begin-user-doc -->
243
   * This default implementation returns null so that we can easily ignore cases;
244
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
245
   * <!-- end-user-doc -->
246
   * @return the new adapter.
247
   * @see org.eclipse.emf.test.models.ipo.USAddress
248
   * @generated
249
   */
250
  public Adapter createUSAddressAdapter()
251
  {
252
    return null;
253
  }
254
255
  /**
256
   * Creates a new adapter for the default case.
257
   * <!-- begin-user-doc -->
258
   * This default implementation returns null.
259
   * <!-- end-user-doc -->
260
   * @return the new adapter.
261
   * @generated
262
   */
263
  public Adapter createEObjectAdapter()
264
  {
265
    return null;
266
  }
267
268
} //IPOAdapterFactory
(-)src/org/eclipse/emf/test/models/ipo/util/IPOXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOXMLProcessor.java,v 1.2 2007/01/18 22:06:43 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class IPOXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public IPOXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    IPOPackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the IPOResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new IPOResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new IPOResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //IPOXMLProcessor
(-)src/org/eclipse/emf/test/models/ipo/util/IPOValidator.java (-409 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: IPOValidator.java,v 1.4 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.ipo.util;
18
19
import java.math.BigInteger;
20
21
import java.util.Map;
22
23
import org.eclipse.emf.common.util.DiagnosticChain;
24
25
import org.eclipse.emf.common.util.ResourceLocator;
26
import org.eclipse.emf.ecore.EObject;
27
import org.eclipse.emf.ecore.EPackage;
28
29
import org.eclipse.emf.ecore.util.EObjectValidator;
30
31
import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil;
32
import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator;
33
34
import org.eclipse.emf.test.models.ipo.*;
35
36
import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl;
37
38
/**
39
 * <!-- begin-user-doc -->
40
 * The <b>Validator</b> for the model.
41
 * <!-- end-user-doc -->
42
 * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl
43
 * @generated
44
 */
45
public class IPOValidator extends EObjectValidator
46
{
47
  /**
48
   * The cached model package
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  public static final IPOValidator INSTANCE = new IPOValidator();
54
55
  /**
56
   * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package.
57
   * <!-- begin-user-doc -->
58
   * <!-- end-user-doc -->
59
   * @see org.eclipse.emf.common.util.Diagnostic#getSource()
60
   * @see org.eclipse.emf.common.util.Diagnostic#getCode()
61
   * @generated
62
   */
63
  public static final String DIAGNOSTIC_SOURCE = "org.eclipse.emf.test.models.ipo";
64
65
  /**
66
   * A constant with a fixed name that can be used as the base value for additional hand written constants.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0;
72
73
  /**
74
   * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT;
80
81
  /**
82
   * The cached base package validator.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @generated
86
   */
87
  protected XMLTypeValidator xmlTypeValidator;
88
89
  /**
90
   * Creates an instance of the switch.
91
   * <!-- begin-user-doc -->
92
   * <!-- end-user-doc -->
93
   * @generated
94
   */
95
  public IPOValidator()
96
  {
97
    super();
98
    xmlTypeValidator = XMLTypeValidator.INSTANCE;
99
  }
100
101
  /**
102
   * Returns the package of this validator switch.
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @generated
106
   */
107
  @Override
108
  protected EPackage getEPackage()
109
  {
110
    return IPOPackageImpl.eINSTANCE;
111
  }
112
113
  /**
114
   * Calls <code>validateXXX</code> for the corresponding classifier of the model.
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @generated
118
   */
119
  @Override
120
  protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context)
121
  {
122
    switch (classifierID)
123
    {
124
      case IPOPackageImpl.ADDRESS:
125
        return validateAddress((Address)value, diagnostics, context);
126
      case IPOPackageImpl.DOCUMENT_ROOT:
127
        return validateDocumentRoot((DocumentRoot)value, diagnostics, context);
128
      case IPOPackageImpl.ITEMS:
129
        return validateItems((Items)value, diagnostics, context);
130
      case IPOPackageImpl.ITEM_TYPE:
131
        return validateItemType((ItemType)value, diagnostics, context);
132
      case IPOPackageImpl.PURCHASE_ORDER_TYPE:
133
        return validatePurchaseOrderType((PurchaseOrderType)value, diagnostics, context);
134
      case IPOPackageImpl.UK_ADDRESS:
135
        return validateUKAddress((UKAddress)value, diagnostics, context);
136
      case IPOPackageImpl.US_ADDRESS:
137
        return validateUSAddress((USAddress)value, diagnostics, context);
138
      case IPOPackageImpl.US_STATE:
139
        return validateUSState((USState)value, diagnostics, context);
140
      case IPOPackageImpl.POSTCODE:
141
        return validatePostcode((String)value, diagnostics, context);
142
      case IPOPackageImpl.QUANTITY_TYPE:
143
        return validateQuantityType((BigInteger)value, diagnostics, context);
144
      case IPOPackageImpl.SKU:
145
        return validateSKU((String)value, diagnostics, context);
146
      case IPOPackageImpl.UK_POSTCODE:
147
        return validateUKPostcode((String)value, diagnostics, context);
148
      case IPOPackageImpl.US_STATE_OBJECT:
149
        return validateUSStateObject((USState)value, diagnostics, context);
150
      default:
151
        return true;
152
    }
153
  }
154
155
  /**
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   */
160
  public boolean validateAddress(Address address, DiagnosticChain diagnostics, Map<Object, Object> context)
161
  {
162
    return validate_EveryDefaultConstraint((EObject)address, diagnostics, context);
163
  }
164
165
  /**
166
   * <!-- begin-user-doc -->
167
   * <!-- end-user-doc -->
168
   * @generated
169
   */
170
  public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map<Object, Object> context)
171
  {
172
    return validate_EveryDefaultConstraint((EObject)documentRoot, diagnostics, context);
173
  }
174
175
  /**
176
   * <!-- begin-user-doc -->
177
   * <!-- end-user-doc -->
178
   * @generated
179
   */
180
  public boolean validateItems(Items items, DiagnosticChain diagnostics, Map<Object, Object> context)
181
  {
182
    return validate_EveryDefaultConstraint((EObject)items, diagnostics, context);
183
  }
184
185
  /**
186
   * <!-- begin-user-doc -->
187
   * <!-- end-user-doc -->
188
   * @generated
189
   */
190
  public boolean validateItemType(ItemType itemType, DiagnosticChain diagnostics, Map<Object, Object> context)
191
  {
192
    return validate_EveryDefaultConstraint((EObject)itemType, diagnostics, context);
193
  }
194
195
  /**
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @generated
199
   */
200
  public boolean validatePurchaseOrderType(PurchaseOrderType purchaseOrderType, DiagnosticChain diagnostics, Map<Object, Object> context)
201
  {
202
    return validate_EveryDefaultConstraint((EObject)purchaseOrderType, diagnostics, context);
203
  }
204
205
  /**
206
   * <!-- begin-user-doc -->
207
   * <!-- end-user-doc -->
208
   * @generated
209
   */
210
  public boolean validateUKAddress(UKAddress ukAddress, DiagnosticChain diagnostics, Map<Object, Object> context)
211
  {
212
    return validate_EveryDefaultConstraint((EObject)ukAddress, diagnostics, context);
213
  }
214
215
  /**
216
   * <!-- begin-user-doc -->
217
   * <!-- end-user-doc -->
218
   * @generated
219
   */
220
  public boolean validateUSAddress(USAddress usAddress, DiagnosticChain diagnostics, Map<Object, Object> context)
221
  {
222
    return validate_EveryDefaultConstraint((EObject)usAddress, diagnostics, context);
223
  }
224
225
  /**
226
   * <!-- begin-user-doc -->
227
   * <!-- end-user-doc -->
228
   * @generated
229
   */
230
  public boolean validateUSState(USState usState, DiagnosticChain diagnostics, Map<Object, Object> context)
231
  {
232
    return true;
233
  }
234
235
  /**
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @generated
239
   */
240
  public boolean validatePostcode(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context)
241
  {
242
    boolean result = validatePostcode_MinLength(postcode, diagnostics, context);
243
    if (result || diagnostics != null) result &= validatePostcode_MaxLength(postcode, diagnostics, context);
244
    return result;
245
  }
246
247
  /**
248
   * Validates the MinLength constraint of '<em>Postcode</em>'.
249
   * <!-- begin-user-doc -->
250
   * <!-- end-user-doc -->
251
   * @generated
252
   */
253
  public boolean validatePostcode_MinLength(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context)
254
  {
255
    int length = postcode.length();
256
    boolean result = length >= 7;
257
    if (!result && diagnostics != null)
258
      reportMinLengthViolation(IPOPackageImpl.Literals.POSTCODE, postcode, length, 7, diagnostics, context);
259
    return result;
260
  }
261
262
  /**
263
   * Validates the MaxLength constraint of '<em>Postcode</em>'.
264
   * <!-- begin-user-doc -->
265
   * <!-- end-user-doc -->
266
   * @generated
267
   */
268
  public boolean validatePostcode_MaxLength(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context)
269
  {
270
    int length = postcode.length();
271
    boolean result = length <= 7;
272
    if (!result && diagnostics != null)
273
      reportMaxLengthViolation(IPOPackageImpl.Literals.POSTCODE, postcode, length, 7, diagnostics, context);
274
    return result;
275
  }
276
277
  /**
278
   * <!-- begin-user-doc -->
279
   * <!-- end-user-doc -->
280
   * @generated
281
   */
282
  public boolean validateQuantityType(BigInteger quantityType, DiagnosticChain diagnostics, Map<Object, Object> context)
283
  {
284
    boolean result = xmlTypeValidator.validatePositiveInteger_Min(quantityType, diagnostics, context);
285
    if (result || diagnostics != null) result &= validateQuantityType_Max(quantityType, diagnostics, context);
286
    return result;
287
  }
288
289
  /**
290
   * <!-- begin-user-doc -->
291
   * <!-- end-user-doc -->
292
   * @generated
293
   * @see #validateQuantityType_Max
294
   */
295
  public static final BigInteger QUANTITY_TYPE__MAX__VALUE = new BigInteger("100");
296
297
  /**
298
   * Validates the Max constraint of '<em>Quantity Type</em>'.
299
   * <!-- begin-user-doc -->
300
   * <!-- end-user-doc -->
301
   * @generated
302
   */
303
  public boolean validateQuantityType_Max(BigInteger quantityType, DiagnosticChain diagnostics, Map<Object, Object> context)
304
  {
305
    boolean result = quantityType.compareTo(QUANTITY_TYPE__MAX__VALUE) < 0;
306
    if (!result && diagnostics != null)
307
      reportMaxViolation(IPOPackageImpl.Literals.QUANTITY_TYPE, quantityType, QUANTITY_TYPE__MAX__VALUE, false, diagnostics, context);
308
    return result;
309
  }
310
311
  /**
312
   * <!-- begin-user-doc -->
313
   * <!-- end-user-doc -->
314
   * @generated
315
   */
316
  public boolean validateSKU(String sku, DiagnosticChain diagnostics, Map<Object, Object> context)
317
  {
318
    boolean result = validateSKU_Pattern(sku, diagnostics, context);
319
    return result;
320
  }
321
322
  /**
323
   * <!-- begin-user-doc -->
324
   * <!-- end-user-doc -->
325
   * @generated
326
   * @see #validateSKU_Pattern
327
   */
328
  public static final  PatternMatcher [][] SKU__PATTERN__VALUES =
329
    new PatternMatcher [][]
330
    {
331
      new PatternMatcher []
332
      {
333
        XMLTypeUtil.createPatternMatcher("\\d{3}-[A-Z]{2}")
334
      }
335
    };
336
337
  /**
338
   * Validates the Pattern constraint of '<em>SKU</em>'.
339
   * <!-- begin-user-doc -->
340
   * <!-- end-user-doc -->
341
   * @generated
342
   */
343
  public boolean validateSKU_Pattern(String sku, DiagnosticChain diagnostics, Map<Object, Object> context)
344
  {
345
    return validatePattern(IPOPackageImpl.Literals.SKU, sku, SKU__PATTERN__VALUES, diagnostics, context);
346
  }
347
348
  /**
349
   * <!-- begin-user-doc -->
350
   * <!-- end-user-doc -->
351
   * @generated
352
   */
353
  public boolean validateUKPostcode(String ukPostcode, DiagnosticChain diagnostics, Map<Object, Object> context)
354
  {
355
    boolean result = validatePostcode_MinLength(ukPostcode, diagnostics, context);
356
    if (result || diagnostics != null) result &= validatePostcode_MaxLength(ukPostcode, diagnostics, context);
357
    if (result || diagnostics != null) result &= validateUKPostcode_Pattern(ukPostcode, diagnostics, context);
358
    return result;
359
  }
360
361
  /**
362
   * <!-- begin-user-doc -->
363
   * <!-- end-user-doc -->
364
   * @generated
365
   * @see #validateUKPostcode_Pattern
366
   */
367
  public static final  PatternMatcher [][] UK_POSTCODE__PATTERN__VALUES =
368
    new PatternMatcher [][]
369
    {
370
      new PatternMatcher []
371
      {
372
        XMLTypeUtil.createPatternMatcher("[A-Z]{2}\\d\\s\\d[A-Z]{2}")
373
      }
374
    };
375
376
  /**
377
   * Validates the Pattern constraint of '<em>UK Postcode</em>'.
378
   * <!-- begin-user-doc -->
379
   * <!-- end-user-doc -->
380
   * @generated
381
   */
382
  public boolean validateUKPostcode_Pattern(String ukPostcode, DiagnosticChain diagnostics, Map<Object, Object> context)
383
  {
384
    return validatePattern(IPOPackageImpl.Literals.UK_POSTCODE, ukPostcode, UK_POSTCODE__PATTERN__VALUES, diagnostics, context);
385
  }
386
387
  /**
388
   * <!-- begin-user-doc -->
389
   * <!-- end-user-doc -->
390
   * @generated
391
   */
392
  public boolean validateUSStateObject(USState usStateObject, DiagnosticChain diagnostics, Map<Object, Object> context)
393
  {
394
    return true;
395
  }
396
397
  /**
398
   * Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
399
   * <!-- begin-user-doc -->
400
   * <!-- end-user-doc -->
401
   * @generated NOT
402
   */
403
  @Override
404
  public ResourceLocator getResourceLocator()
405
  {
406
    return super.getResourceLocator();
407
  }
408
409
} //IPOValidator
(-)src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java (-44 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalResourceImpl.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * The <b>Resource </b> associated with the package.
26
 * <!-- end-user-doc -->
27
 * @see org.eclipse.emf.test.models.personal.util.PersonalResourceFactoryImpl
28
 * @generated
29
 */
30
public class PersonalResourceImpl extends XMLResourceImpl
31
{
32
  /**
33
   * Creates an instance of the resource.
34
   * <!-- begin-user-doc -->
35
   * <!-- end-user-doc -->
36
   * @param uri the URI of the new resource.
37
   * @generated
38
   */
39
  public PersonalResourceImpl(URI uri)
40
  {
41
    super(uri);
42
  }
43
44
} //PersonalResourceImpl
(-)src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java (-269 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import java.util.List;
20
21
import org.eclipse.emf.ecore.EClass;
22
import org.eclipse.emf.ecore.EObject;
23
24
import org.eclipse.emf.test.models.personal.*;
25
26
import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * The <b>Switch</b> for the model's inheritance hierarchy.
31
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
32
 * to invoke the <code>caseXXX</code> method for each class of the model,
33
 * starting with the actual class of the object
34
 * and proceeding up the inheritance hierarchy
35
 * until a non-null result is returned,
36
 * which is the result of the switch.
37
 * <!-- end-user-doc -->
38
 * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl
39
 * @generated
40
 */
41
public class PersonalSwitch<T>
42
{
43
  /**
44
   * The cached model package
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
47
   * @generated
48
   */
49
  protected static PersonalPackageImpl modelPackage;
50
51
  /**
52
   * Creates an instance of the switch.
53
   * <!-- begin-user-doc -->
54
   * <!-- end-user-doc -->
55
   * @generated
56
   */
57
  public PersonalSwitch()
58
  {
59
    if (modelPackage == null)
60
    {
61
      modelPackage = PersonalPackageImpl.eINSTANCE;
62
    }
63
  }
64
65
  /**
66
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @return the first non-null result returned by a <code>caseXXX</code> call.
70
   * @generated
71
   */
72
  public T doSwitch(EObject theEObject)
73
  {
74
    return doSwitch(theEObject.eClass(), theEObject);
75
  }
76
77
  /**
78
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
79
   * <!-- begin-user-doc -->
80
   * <!-- end-user-doc -->
81
   * @return the first non-null result returned by a <code>caseXXX</code> call.
82
   * @generated
83
   */
84
  protected T doSwitch(EClass theEClass, EObject theEObject)
85
  {
86
    if (theEClass.eContainer() == modelPackage)
87
    {
88
      return doSwitch(theEClass.getClassifierID(), theEObject);
89
    }
90
    else
91
    {
92
      List<EClass> eSuperTypes = theEClass.getESuperTypes();
93
      return
94
        eSuperTypes.isEmpty() ?
95
          defaultCase(theEObject) :
96
          doSwitch(eSuperTypes.get(0), theEObject);
97
    }
98
  }
99
100
  /**
101
   * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @return the first non-null result returned by a <code>caseXXX</code> call.
105
   * @generated
106
   */
107
  protected T doSwitch(int classifierID, EObject theEObject)
108
  {
109
    switch (classifierID)
110
    {
111
      case PersonalPackageImpl.DOCUMENT_ROOT:
112
      {
113
        DocumentRoot documentRoot = (DocumentRoot)theEObject;
114
        T result = caseDocumentRoot(documentRoot);
115
        if (result == null) result = defaultCase(theEObject);
116
        return result;
117
      }
118
      case PersonalPackageImpl.LINK_TYPE:
119
      {
120
        LinkType linkType = (LinkType)theEObject;
121
        T result = caseLinkType(linkType);
122
        if (result == null) result = defaultCase(theEObject);
123
        return result;
124
      }
125
      case PersonalPackageImpl.NAME_TYPE:
126
      {
127
        NameType nameType = (NameType)theEObject;
128
        T result = caseNameType(nameType);
129
        if (result == null) result = defaultCase(theEObject);
130
        return result;
131
      }
132
      case PersonalPackageImpl.PERSONNEL_TYPE:
133
      {
134
        PersonnelType personnelType = (PersonnelType)theEObject;
135
        T result = casePersonnelType(personnelType);
136
        if (result == null) result = defaultCase(theEObject);
137
        return result;
138
      }
139
      case PersonalPackageImpl.PERSON_TYPE:
140
      {
141
        PersonType personType = (PersonType)theEObject;
142
        T result = casePersonType(personType);
143
        if (result == null) result = defaultCase(theEObject);
144
        return result;
145
      }
146
      case PersonalPackageImpl.URL_TYPE:
147
      {
148
        UrlType urlType = (UrlType)theEObject;
149
        T result = caseUrlType(urlType);
150
        if (result == null) result = defaultCase(theEObject);
151
        return result;
152
      }
153
      default: return defaultCase(theEObject);
154
    }
155
  }
156
157
  /**
158
   * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'.
159
   * <!-- begin-user-doc -->
160
   * This implementation returns null;
161
   * returning a non-null result will terminate the switch.
162
   * <!-- end-user-doc -->
163
   * @param object the target of the switch.
164
   * @return the result of interpreting the object as an instance of '<em>Document Root</em>'.
165
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
166
   * @generated
167
   */
168
  public T caseDocumentRoot(DocumentRoot object)
169
  {
170
    return null;
171
  }
172
173
  /**
174
   * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'.
175
   * <!-- begin-user-doc -->
176
   * This implementation returns null;
177
   * returning a non-null result will terminate the switch.
178
   * <!-- end-user-doc -->
179
   * @param object the target of the switch.
180
   * @return the result of interpreting the object as an instance of '<em>Link Type</em>'.
181
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
182
   * @generated
183
   */
184
  public T caseLinkType(LinkType object)
185
  {
186
    return null;
187
  }
188
189
  /**
190
   * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'.
191
   * <!-- begin-user-doc -->
192
   * This implementation returns null;
193
   * returning a non-null result will terminate the switch.
194
   * <!-- end-user-doc -->
195
   * @param object the target of the switch.
196
   * @return the result of interpreting the object as an instance of '<em>Name Type</em>'.
197
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
198
   * @generated
199
   */
200
  public T caseNameType(NameType object)
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
207
   * <!-- begin-user-doc -->
208
   * This implementation returns null;
209
   * returning a non-null result will terminate the switch.
210
   * <!-- end-user-doc -->
211
   * @param object the target of the switch.
212
   * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'.
213
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
214
   * @generated
215
   */
216
  public T casePersonnelType(PersonnelType object)
217
  {
218
    return null;
219
  }
220
221
  /**
222
   * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'.
223
   * <!-- begin-user-doc -->
224
   * This implementation returns null;
225
   * returning a non-null result will terminate the switch.
226
   * <!-- end-user-doc -->
227
   * @param object the target of the switch.
228
   * @return the result of interpreting the object as an instance of '<em>Person Type</em>'.
229
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
230
   * @generated
231
   */
232
  public T casePersonType(PersonType object)
233
  {
234
    return null;
235
  }
236
237
  /**
238
   * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'.
239
   * <!-- begin-user-doc -->
240
   * This implementation returns null;
241
   * returning a non-null result will terminate the switch.
242
   * <!-- end-user-doc -->
243
   * @param object the target of the switch.
244
   * @return the result of interpreting the object as an instance of '<em>Url Type</em>'.
245
   * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
246
   * @generated
247
   */
248
  public T caseUrlType(UrlType object)
249
  {
250
    return null;
251
  }
252
253
  /**
254
   * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
255
   * <!-- begin-user-doc -->
256
   * This implementation returns null;
257
   * returning a non-null result will terminate the switch, but this is the last case anyway.
258
   * <!-- end-user-doc -->
259
   * @param object the target of the switch.
260
   * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
261
   * @see #doSwitch(org.eclipse.emf.ecore.EObject)
262
   * @generated
263
   */
264
  public T defaultCase(EObject object)
265
  {
266
    return null;
267
  }
268
269
} //PersonalSwitch
(-)src/org/eclipse/emf/test/models/personal/util/PersonalAdapterFactory.java (-248 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import org.eclipse.emf.common.notify.Adapter;
20
import org.eclipse.emf.common.notify.Notifier;
21
22
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
23
24
import org.eclipse.emf.ecore.EObject;
25
26
import org.eclipse.emf.test.models.personal.*;
27
28
import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * The <b>Adapter Factory</b> for the model.
33
 * It provides an adapter <code>createXXX</code> method for each class of the model.
34
 * <!-- end-user-doc -->
35
 * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl
36
 * @generated
37
 */
38
public class PersonalAdapterFactory extends AdapterFactoryImpl
39
{
40
  /**
41
   * The cached model package.
42
   * <!-- begin-user-doc -->
43
   * <!-- end-user-doc -->
44
   * @generated
45
   */
46
  protected static PersonalPackageImpl modelPackage;
47
48
  /**
49
   * Creates an instance of the adapter factory.
50
   * <!-- begin-user-doc -->
51
   * <!-- end-user-doc -->
52
   * @generated
53
   */
54
  public PersonalAdapterFactory()
55
  {
56
    if (modelPackage == null)
57
    {
58
      modelPackage = PersonalPackageImpl.eINSTANCE;
59
    }
60
  }
61
62
  /**
63
   * Returns whether this factory is applicable for the type of the object.
64
   * <!-- begin-user-doc -->
65
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66
   * <!-- end-user-doc -->
67
   * @return whether this factory is applicable for the type of the object.
68
   * @generated
69
   */
70
  @Override
71
  public boolean isFactoryForType(Object object)
72
  {
73
    if (object == modelPackage)
74
    {
75
      return true;
76
    }
77
    if (object instanceof EObject)
78
    {
79
      return ((EObject)object).eClass().getEPackage() == modelPackage;
80
    }
81
    return false;
82
  }
83
84
  /**
85
   * The switch that delegates to the <code>createXXX</code> methods.
86
   * <!-- begin-user-doc -->
87
   * <!-- end-user-doc -->
88
   * @generated
89
   */
90
  protected PersonalSwitch<Adapter> modelSwitch =
91
    new PersonalSwitch<Adapter>()
92
    {
93
      @Override
94
      public Adapter caseDocumentRoot(DocumentRoot object)
95
      {
96
        return createDocumentRootAdapter();
97
      }
98
      @Override
99
      public Adapter caseLinkType(LinkType object)
100
      {
101
        return createLinkTypeAdapter();
102
      }
103
      @Override
104
      public Adapter caseNameType(NameType object)
105
      {
106
        return createNameTypeAdapter();
107
      }
108
      @Override
109
      public Adapter casePersonnelType(PersonnelType object)
110
      {
111
        return createPersonnelTypeAdapter();
112
      }
113
      @Override
114
      public Adapter casePersonType(PersonType object)
115
      {
116
        return createPersonTypeAdapter();
117
      }
118
      @Override
119
      public Adapter caseUrlType(UrlType object)
120
      {
121
        return createUrlTypeAdapter();
122
      }
123
      @Override
124
      public Adapter defaultCase(EObject object)
125
      {
126
        return createEObjectAdapter();
127
      }
128
    };
129
130
  /**
131
   * Creates an adapter for the <code>target</code>.
132
   * <!-- begin-user-doc -->
133
   * <!-- end-user-doc -->
134
   * @param target the object to adapt.
135
   * @return the adapter for the <code>target</code>.
136
   * @generated
137
   */
138
  @Override
139
  public Adapter createAdapter(Notifier target)
140
  {
141
    return modelSwitch.doSwitch((EObject)target);
142
  }
143
144
145
  /**
146
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.DocumentRoot <em>Document Root</em>}'.
147
   * <!-- begin-user-doc -->
148
   * This default implementation returns null so that we can easily ignore cases;
149
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
   * <!-- end-user-doc -->
151
   * @return the new adapter.
152
   * @see org.eclipse.emf.test.models.personal.DocumentRoot
153
   * @generated
154
   */
155
  public Adapter createDocumentRootAdapter()
156
  {
157
    return null;
158
  }
159
160
  /**
161
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.LinkType <em>Link Type</em>}'.
162
   * <!-- begin-user-doc -->
163
   * This default implementation returns null so that we can easily ignore cases;
164
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
165
   * <!-- end-user-doc -->
166
   * @return the new adapter.
167
   * @see org.eclipse.emf.test.models.personal.LinkType
168
   * @generated
169
   */
170
  public Adapter createLinkTypeAdapter()
171
  {
172
    return null;
173
  }
174
175
  /**
176
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.NameType <em>Name Type</em>}'.
177
   * <!-- begin-user-doc -->
178
   * This default implementation returns null so that we can easily ignore cases;
179
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
180
   * <!-- end-user-doc -->
181
   * @return the new adapter.
182
   * @see org.eclipse.emf.test.models.personal.NameType
183
   * @generated
184
   */
185
  public Adapter createNameTypeAdapter()
186
  {
187
    return null;
188
  }
189
190
  /**
191
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.PersonnelType <em>Personnel Type</em>}'.
192
   * <!-- begin-user-doc -->
193
   * This default implementation returns null so that we can easily ignore cases;
194
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
195
   * <!-- end-user-doc -->
196
   * @return the new adapter.
197
   * @see org.eclipse.emf.test.models.personal.PersonnelType
198
   * @generated
199
   */
200
  public Adapter createPersonnelTypeAdapter()
201
  {
202
    return null;
203
  }
204
205
  /**
206
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.PersonType <em>Person Type</em>}'.
207
   * <!-- begin-user-doc -->
208
   * This default implementation returns null so that we can easily ignore cases;
209
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
210
   * <!-- end-user-doc -->
211
   * @return the new adapter.
212
   * @see org.eclipse.emf.test.models.personal.PersonType
213
   * @generated
214
   */
215
  public Adapter createPersonTypeAdapter()
216
  {
217
    return null;
218
  }
219
220
  /**
221
   * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.UrlType <em>Url Type</em>}'.
222
   * <!-- begin-user-doc -->
223
   * This default implementation returns null so that we can easily ignore cases;
224
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
225
   * <!-- end-user-doc -->
226
   * @return the new adapter.
227
   * @see org.eclipse.emf.test.models.personal.UrlType
228
   * @generated
229
   */
230
  public Adapter createUrlTypeAdapter()
231
  {
232
    return null;
233
  }
234
235
  /**
236
   * Creates a new adapter for the default case.
237
   * <!-- begin-user-doc -->
238
   * This default implementation returns null.
239
   * <!-- end-user-doc -->
240
   * @return the new adapter.
241
   * @generated
242
   */
243
  public Adapter createEObjectAdapter()
244
  {
245
    return null;
246
  }
247
248
} //PersonalAdapterFactory
(-)src/org/eclipse/emf/test/models/personal/util/PersonalXMLProcessor.java (-68 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalXMLProcessor.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import java.util.Map;
20
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.resource.Resource;
24
25
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
26
27
import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl;
28
29
/**
30
 * This class contains helper methods to serialize and deserialize XML documents
31
 * <!-- begin-user-doc -->
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class PersonalXMLProcessor extends XMLProcessor
36
{
37
38
  /**
39
   * Public constructor to instantiate the helper.
40
   * <!-- begin-user-doc -->
41
   * <!-- end-user-doc -->
42
   * @generated
43
   */
44
  public PersonalXMLProcessor()
45
  {
46
    super((EPackage.Registry.INSTANCE));
47
    PersonalPackageImpl.eINSTANCE.eClass();
48
  }
49
  
50
  /**
51
   * Register for "*" and "xml" file extensions the PersonalResourceFactoryImpl factory.
52
   * <!-- begin-user-doc -->
53
   * <!-- end-user-doc -->
54
   * @generated
55
   */
56
  @Override
57
  protected Map<String, Resource.Factory> getRegistrations()
58
  {
59
    if (registrations == null)
60
    {
61
      super.getRegistrations();
62
      registrations.put(XML_EXTENSION, new PersonalResourceFactoryImpl());
63
      registrations.put(STAR_EXTENSION, new PersonalResourceFactoryImpl());
64
    }
65
    return registrations;
66
  }
67
68
} //PersonalXMLProcessor
(-)src/org/eclipse/emf/test/models/personal/util/PersonalResourceFactoryImpl.java (-69 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: PersonalResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.personal.util;
18
19
import org.eclipse.emf.common.util.URI;
20
21
import org.eclipse.emf.ecore.resource.Resource;
22
23
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24
25
import org.eclipse.emf.ecore.xmi.XMLResource;
26
27
/**
28
 * <!-- begin-user-doc -->
29
 * The <b>Resource Factory</b> associated with the package.
30
 * <!-- end-user-doc -->
31
 * @see org.eclipse.emf.test.models.personal.util.PersonalResourceImpl
32
 * @generated
33
 */
34
public class PersonalResourceFactoryImpl extends ResourceFactoryImpl
35
{
36
  /**
37
   * Creates an instance of the resource factory.
38
   * <!-- begin-user-doc -->
39
   * <!-- end-user-doc -->
40
   * @generated
41
   */
42
  public PersonalResourceFactoryImpl()
43
  {
44
    super();
45
  }
46
47
  /**
48
   * Creates an instance of the resource.
49
   * <!-- begin-user-doc -->
50
   * <!-- end-user-doc -->
51
   * @generated
52
   */
53
  @Override
54
  public Resource createResource(URI uri)
55
  {
56
    XMLResource result = new PersonalResourceImpl(uri);
57
    result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
58
    result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
59
60
    result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
61
62
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
63
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
64
65
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
66
    return result;
67
  }
68
69
} //PersonalResourceFactoryImpl
(-)models/sdo.Personal/personal.xsd (-63 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personal" 
3
xmlns="http:///org.eclipse.emf.test.models/personal" 
4
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
5
6
 <xs:element name="personnel">
7
  <xs:complexType>
8
   <xs:sequence>
9
     <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
10
   </xs:sequence>
11
  </xs:complexType>
12
 </xs:element>
13
14
 <xs:element name="person" type="personType"/>
15
16
 <xs:complexType name="personType">
17
   <xs:sequence>
18
     <xs:element ref="name"/>
19
     <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/>
20
     <xs:element ref="url"   minOccurs='0' maxOccurs='unbounded'/>
21
     <xs:element ref="link"  minOccurs='0' maxOccurs='1'/>
22
   </xs:sequence>
23
   <xs:attribute name="id"  type="xs:ID" use='required'/>
24
   <xs:attribute name="contr" default="false">
25
    <xs:simpleType>
26
     <xs:restriction base = "xs:string">
27
       <xs:enumeration value="true"/>
28
       <xs:enumeration value="false"/>
29
     </xs:restriction>
30
    </xs:simpleType>
31
   </xs:attribute>
32
   <xs:attribute name="salary" type="xs:integer"/>
33
  </xs:complexType>
34
35
 <xs:element name="name" type="nameType"/>
36
  
37
38
  <xs:complexType name="nameType">
39
   <xs:all>
40
    <xs:element ref="family"/>
41
    <xs:element ref="given"/>
42
   </xs:all>
43
  </xs:complexType>
44
45
 <xs:element name="family" type='xs:string'/>
46
47
 <xs:element name="given" type='xs:string'/>
48
49
 <xs:element name="email" type='xs:string'/>
50
51
 <xs:element name="url">
52
  <xs:complexType>
53
   <xs:attribute name="href" type="xs:string" default="http://"/>
54
  </xs:complexType>
55
 </xs:element>
56
57
 <xs:element name="link" type="linkType"/>
58
   <xs:complexType name ="linkType">
59
   <xs:attribute name="manager" type="xs:IDREF"/>
60
   <xs:attribute name="subordinates" type="xs:IDREFS"/>
61
  </xs:complexType>
62
63
</xs:schema>
(-)models/sdo.Personal/personal.ecore (-241 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="personal"
5
    nsURI="http:///org.eclipse.emf.test.models/personal" nsPrefix="personal">
6
  <eClassifiers xsi:type="ecore:EEnum" name="ContrType">
7
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
8
      <details key="name" value="contr_._type"/>
9
    </eAnnotations>
10
    <eLiterals name="true"/>
11
    <eLiterals name="false" value="1"/>
12
  </eClassifiers>
13
  <eClassifiers xsi:type="ecore:EDataType" name="ContrTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
14
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
15
      <details key="name" value="contr_._type:Object"/>
16
      <details key="baseType" value="contr_._type"/>
17
    </eAnnotations>
18
  </eClassifiers>
19
  <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
20
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
21
      <details key="name" value=""/>
22
      <details key="kind" value="mixed"/>
23
    </eAnnotations>
24
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
25
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
26
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
27
        <details key="kind" value="elementWildcard"/>
28
        <details key="name" value=":mixed"/>
29
      </eAnnotations>
30
    </eStructuralFeatures>
31
    <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
32
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
33
        transient="true" containment="true" resolveProxies="false">
34
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
35
        <details key="kind" value="attribute"/>
36
        <details key="name" value="xmlns:prefix"/>
37
      </eAnnotations>
38
    </eStructuralFeatures>
39
    <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
40
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
41
        transient="true" containment="true" resolveProxies="false">
42
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
43
        <details key="kind" value="attribute"/>
44
        <details key="name" value="xsi:schemaLocation"/>
45
      </eAnnotations>
46
    </eStructuralFeatures>
47
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-2"
48
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
49
        transient="true" derived="true">
50
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
51
        <details key="kind" value="element"/>
52
        <details key="name" value="email"/>
53
        <details key="namespace" value="##targetNamespace"/>
54
      </eAnnotations>
55
    </eStructuralFeatures>
56
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" unique="false"
57
        upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
58
        volatile="true" transient="true" derived="true">
59
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
60
        <details key="kind" value="element"/>
61
        <details key="name" value="family"/>
62
        <details key="namespace" value="##targetNamespace"/>
63
      </eAnnotations>
64
    </eStructuralFeatures>
65
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" unique="false" upperBound="-2"
66
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
67
        transient="true" derived="true">
68
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
69
        <details key="kind" value="element"/>
70
        <details key="name" value="given"/>
71
        <details key="namespace" value="##targetNamespace"/>
72
      </eAnnotations>
73
    </eStructuralFeatures>
74
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-2" eType="#//LinkType"
75
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
76
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
77
        <details key="kind" value="element"/>
78
        <details key="name" value="link"/>
79
        <details key="namespace" value="##targetNamespace"/>
80
      </eAnnotations>
81
    </eStructuralFeatures>
82
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" upperBound="-2" eType="#//NameType"
83
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
84
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
85
        <details key="kind" value="element"/>
86
        <details key="name" value="name"/>
87
        <details key="namespace" value="##targetNamespace"/>
88
      </eAnnotations>
89
    </eStructuralFeatures>
90
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" upperBound="-2"
91
        eType="#//PersonType" volatile="true" transient="true" derived="true" containment="true"
92
        resolveProxies="false">
93
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
94
        <details key="kind" value="element"/>
95
        <details key="name" value="person"/>
96
        <details key="namespace" value="##targetNamespace"/>
97
      </eAnnotations>
98
    </eStructuralFeatures>
99
    <eStructuralFeatures xsi:type="ecore:EReference" name="personnel" upperBound="-2"
100
        eType="#//PersonnelType" volatile="true" transient="true" derived="true" containment="true"
101
        resolveProxies="false">
102
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
103
        <details key="kind" value="element"/>
104
        <details key="name" value="personnel"/>
105
        <details key="namespace" value="##targetNamespace"/>
106
      </eAnnotations>
107
    </eStructuralFeatures>
108
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-2" eType="#//UrlType"
109
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
110
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
111
        <details key="kind" value="element"/>
112
        <details key="name" value="url"/>
113
        <details key="namespace" value="##targetNamespace"/>
114
      </eAnnotations>
115
    </eStructuralFeatures>
116
  </eClassifiers>
117
  <eClassifiers xsi:type="ecore:EClass" name="LinkType">
118
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
119
      <details key="name" value="linkType"/>
120
      <details key="kind" value="empty"/>
121
    </eAnnotations>
122
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manager" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREF">
123
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
124
        <details key="kind" value="attribute"/>
125
        <details key="name" value="manager"/>
126
      </eAnnotations>
127
    </eStructuralFeatures>
128
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="subordinates" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREFS">
129
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
130
        <details key="kind" value="attribute"/>
131
        <details key="name" value="subordinates"/>
132
      </eAnnotations>
133
    </eStructuralFeatures>
134
  </eClassifiers>
135
  <eClassifiers xsi:type="ecore:EClass" name="NameType">
136
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
137
      <details key="name" value="nameType"/>
138
      <details key="kind" value="elementOnly"/>
139
    </eAnnotations>
140
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" lowerBound="1"
141
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
142
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
143
        <details key="kind" value="element"/>
144
        <details key="name" value="family"/>
145
        <details key="namespace" value="##targetNamespace"/>
146
      </eAnnotations>
147
    </eStructuralFeatures>
148
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
149
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
150
        <details key="kind" value="element"/>
151
        <details key="name" value="given"/>
152
        <details key="namespace" value="##targetNamespace"/>
153
      </eAnnotations>
154
    </eStructuralFeatures>
155
  </eClassifiers>
156
  <eClassifiers xsi:type="ecore:EClass" name="PersonnelType">
157
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
158
      <details key="name" value="personnel_._type"/>
159
      <details key="kind" value="elementOnly"/>
160
    </eAnnotations>
161
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" lowerBound="1"
162
        upperBound="-1" eType="#//PersonType" containment="true" resolveProxies="false">
163
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
164
        <details key="kind" value="element"/>
165
        <details key="name" value="person"/>
166
        <details key="namespace" value="##targetNamespace"/>
167
      </eAnnotations>
168
    </eStructuralFeatures>
169
  </eClassifiers>
170
  <eClassifiers xsi:type="ecore:EClass" name="PersonType">
171
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
172
      <details key="name" value="personType"/>
173
      <details key="kind" value="elementOnly"/>
174
    </eAnnotations>
175
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" lowerBound="1" eType="#//NameType"
176
        containment="true" resolveProxies="false">
177
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
178
        <details key="kind" value="element"/>
179
        <details key="name" value="name"/>
180
        <details key="namespace" value="##targetNamespace"/>
181
      </eAnnotations>
182
    </eStructuralFeatures>
183
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-1"
184
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
185
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
186
        <details key="kind" value="element"/>
187
        <details key="name" value="email"/>
188
        <details key="namespace" value="##targetNamespace"/>
189
      </eAnnotations>
190
    </eStructuralFeatures>
191
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-1" eType="#//UrlType"
192
        containment="true" resolveProxies="false">
193
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
194
        <details key="kind" value="element"/>
195
        <details key="name" value="url"/>
196
        <details key="namespace" value="##targetNamespace"/>
197
      </eAnnotations>
198
    </eStructuralFeatures>
199
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" eType="#//LinkType"
200
        containment="true" resolveProxies="false">
201
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
202
        <details key="kind" value="element"/>
203
        <details key="name" value="link"/>
204
        <details key="namespace" value="##targetNamespace"/>
205
      </eAnnotations>
206
    </eStructuralFeatures>
207
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="contr" eType="#//ContrType"
208
        defaultValueLiteral="false" unsettable="true">
209
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
210
        <details key="kind" value="attribute"/>
211
        <details key="name" value="contr"/>
212
      </eAnnotations>
213
    </eStructuralFeatures>
214
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//ID"
215
        iD="true">
216
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
217
        <details key="kind" value="attribute"/>
218
        <details key="name" value="id"/>
219
      </eAnnotations>
220
    </eStructuralFeatures>
221
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer">
222
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
223
        <details key="kind" value="attribute"/>
224
        <details key="name" value="salary"/>
225
      </eAnnotations>
226
    </eStructuralFeatures>
227
  </eClassifiers>
228
  <eClassifiers xsi:type="ecore:EClass" name="UrlType">
229
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
230
      <details key="name" value="url_._type"/>
231
      <details key="kind" value="empty"/>
232
    </eAnnotations>
233
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="href" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
234
        defaultValueLiteral="http://" unsettable="true">
235
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
236
        <details key="kind" value="attribute"/>
237
        <details key="name" value="href"/>
238
      </eAnnotations>
239
    </eStructuralFeatures>
240
  </eClassifiers>
241
</ecore:EPackage>
(-)models/sdo.Personal/personalMixed.xsd (-64 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personalMixed" 
3
xmlns="http:///org.eclipse.emf.test.models/personalMixed" 
4
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
5
6
 <xs:element name="personnel">
7
  <xs:complexType>
8
   <xs:sequence>
9
     <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/>
10
   </xs:sequence>
11
  </xs:complexType>
12
 </xs:element>
13
14
 <xs:element name="person" type="personType"/>
15
16
 <xs:complexType name="personType" mixed="true">
17
   <xs:sequence>
18
     <xs:element ref="name"/>
19
     <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/>
20
     <xs:element ref="url"   minOccurs='0' maxOccurs='unbounded'/>
21
     <xs:element ref="link"/>
22
     <xs:any processContents="lax" minOccurs="0"/> 
23
   </xs:sequence>
24
   <xs:attribute name="id"  type="xs:ID" use='required'/>
25
   <xs:attribute name="contr" default="false">
26
    <xs:simpleType>
27
     <xs:restriction base = "xs:string">
28
       <xs:enumeration value="true"/>
29
       <xs:enumeration value="false"/>
30
     </xs:restriction>
31
    </xs:simpleType>
32
   </xs:attribute>
33
   <xs:attribute name="salary" type="xs:integer"/>
34
  </xs:complexType>
35
36
 <xs:element name="name" type="nameType"/>
37
  
38
39
  <xs:complexType name="nameType" mixed="true">
40
   <xs:sequence>
41
    <xs:element ref="family"/>
42
    <xs:element ref="given"/>
43
   </xs:sequence>
44
  </xs:complexType>
45
46
 <xs:element name="family" type='xs:string'/>
47
48
 <xs:element name="given" type='xs:string'/>
49
50
 <xs:element name="email" type='xs:string'/>
51
52
 <xs:element name="url">
53
  <xs:complexType>
54
   <xs:attribute name="href" type="xs:string" default="http://"/>
55
  </xs:complexType>
56
 </xs:element>
57
58
 <xs:element name="link" type="linkType"/>
59
   <xs:complexType name ="linkType" mixed="true">
60
   <xs:attribute name="manager" type="xs:IDREF"/>
61
   <xs:attribute name="subordinates" type="xs:IDREFS"/>
62
  </xs:complexType>
63
64
</xs:schema>
(-)models/sdo.Personal/mixed.ecore (-274 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mixed"
5
    nsURI="http:///org.eclipse.emf.test.models/personalMixed" nsPrefix="mixed">
6
  <eClassifiers xsi:type="ecore:EEnum" name="ContrType">
7
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
8
      <details key="name" value="contr_._type"/>
9
    </eAnnotations>
10
    <eLiterals name="true"/>
11
    <eLiterals name="false" value="1"/>
12
  </eClassifiers>
13
  <eClassifiers xsi:type="ecore:EDataType" name="ContrTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
14
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
15
      <details key="name" value="contr_._type:Object"/>
16
      <details key="baseType" value="contr_._type"/>
17
    </eAnnotations>
18
  </eClassifiers>
19
  <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
20
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
21
      <details key="name" value=""/>
22
      <details key="kind" value="mixed"/>
23
    </eAnnotations>
24
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
25
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
26
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
27
        <details key="kind" value="elementWildcard"/>
28
        <details key="name" value=":mixed"/>
29
      </eAnnotations>
30
    </eStructuralFeatures>
31
    <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
32
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
33
        transient="true" containment="true" resolveProxies="false">
34
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
35
        <details key="kind" value="attribute"/>
36
        <details key="name" value="xmlns:prefix"/>
37
      </eAnnotations>
38
    </eStructuralFeatures>
39
    <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
40
        eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
41
        transient="true" containment="true" resolveProxies="false">
42
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
43
        <details key="kind" value="attribute"/>
44
        <details key="name" value="xsi:schemaLocation"/>
45
      </eAnnotations>
46
    </eStructuralFeatures>
47
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-2"
48
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
49
        transient="true" derived="true">
50
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
51
        <details key="kind" value="element"/>
52
        <details key="name" value="email"/>
53
        <details key="namespace" value="##targetNamespace"/>
54
      </eAnnotations>
55
    </eStructuralFeatures>
56
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" unique="false"
57
        upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
58
        volatile="true" transient="true" derived="true">
59
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
60
        <details key="kind" value="element"/>
61
        <details key="name" value="family"/>
62
        <details key="namespace" value="##targetNamespace"/>
63
      </eAnnotations>
64
    </eStructuralFeatures>
65
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" unique="false" upperBound="-2"
66
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
67
        transient="true" derived="true">
68
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
69
        <details key="kind" value="element"/>
70
        <details key="name" value="given"/>
71
        <details key="namespace" value="##targetNamespace"/>
72
      </eAnnotations>
73
    </eStructuralFeatures>
74
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-2" eType="#//LinkType"
75
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
76
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
77
        <details key="kind" value="element"/>
78
        <details key="name" value="link"/>
79
        <details key="namespace" value="##targetNamespace"/>
80
      </eAnnotations>
81
    </eStructuralFeatures>
82
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" upperBound="-2" eType="#//NameType"
83
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
84
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
85
        <details key="kind" value="element"/>
86
        <details key="name" value="name"/>
87
        <details key="namespace" value="##targetNamespace"/>
88
      </eAnnotations>
89
    </eStructuralFeatures>
90
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" upperBound="-2"
91
        eType="#//PersonType" volatile="true" transient="true" derived="true" containment="true"
92
        resolveProxies="false">
93
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
94
        <details key="kind" value="element"/>
95
        <details key="name" value="person"/>
96
        <details key="namespace" value="##targetNamespace"/>
97
      </eAnnotations>
98
    </eStructuralFeatures>
99
    <eStructuralFeatures xsi:type="ecore:EReference" name="personnel" upperBound="-2"
100
        eType="#//PersonnelType" volatile="true" transient="true" derived="true" containment="true"
101
        resolveProxies="false">
102
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
103
        <details key="kind" value="element"/>
104
        <details key="name" value="personnel"/>
105
        <details key="namespace" value="##targetNamespace"/>
106
      </eAnnotations>
107
    </eStructuralFeatures>
108
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-2" eType="#//UrlType"
109
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
110
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
111
        <details key="kind" value="element"/>
112
        <details key="name" value="url"/>
113
        <details key="namespace" value="##targetNamespace"/>
114
      </eAnnotations>
115
    </eStructuralFeatures>
116
  </eClassifiers>
117
  <eClassifiers xsi:type="ecore:EClass" name="LinkType">
118
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
119
      <details key="name" value="linkType"/>
120
      <details key="kind" value="mixed"/>
121
    </eAnnotations>
122
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
123
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
124
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
125
        <details key="kind" value="elementWildcard"/>
126
        <details key="name" value=":mixed"/>
127
      </eAnnotations>
128
    </eStructuralFeatures>
129
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manager" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREF">
130
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
131
        <details key="kind" value="attribute"/>
132
        <details key="name" value="manager"/>
133
      </eAnnotations>
134
    </eStructuralFeatures>
135
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="subordinates" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREFS">
136
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
137
        <details key="kind" value="attribute"/>
138
        <details key="name" value="subordinates"/>
139
      </eAnnotations>
140
    </eStructuralFeatures>
141
  </eClassifiers>
142
  <eClassifiers xsi:type="ecore:EClass" name="NameType">
143
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
144
      <details key="name" value="nameType"/>
145
      <details key="kind" value="mixed"/>
146
    </eAnnotations>
147
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
148
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
149
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
150
        <details key="kind" value="elementWildcard"/>
151
        <details key="name" value=":mixed"/>
152
      </eAnnotations>
153
    </eStructuralFeatures>
154
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" lowerBound="1"
155
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
156
        transient="true" derived="true">
157
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
158
        <details key="kind" value="element"/>
159
        <details key="name" value="family"/>
160
        <details key="namespace" value="##targetNamespace"/>
161
      </eAnnotations>
162
    </eStructuralFeatures>
163
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
164
        volatile="true" transient="true" derived="true">
165
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
166
        <details key="kind" value="element"/>
167
        <details key="name" value="given"/>
168
        <details key="namespace" value="##targetNamespace"/>
169
      </eAnnotations>
170
    </eStructuralFeatures>
171
  </eClassifiers>
172
  <eClassifiers xsi:type="ecore:EClass" name="PersonnelType">
173
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
174
      <details key="name" value="personnel_._type"/>
175
      <details key="kind" value="elementOnly"/>
176
    </eAnnotations>
177
    <eStructuralFeatures xsi:type="ecore:EReference" name="person" lowerBound="1"
178
        upperBound="-1" eType="#//PersonType" containment="true" resolveProxies="false">
179
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
180
        <details key="kind" value="element"/>
181
        <details key="name" value="person"/>
182
        <details key="namespace" value="##targetNamespace"/>
183
      </eAnnotations>
184
    </eStructuralFeatures>
185
  </eClassifiers>
186
  <eClassifiers xsi:type="ecore:EClass" name="PersonType">
187
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
188
      <details key="name" value="personType"/>
189
      <details key="kind" value="mixed"/>
190
    </eAnnotations>
191
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
192
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
193
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
194
        <details key="kind" value="elementWildcard"/>
195
        <details key="name" value=":mixed"/>
196
      </eAnnotations>
197
    </eStructuralFeatures>
198
    <eStructuralFeatures xsi:type="ecore:EReference" name="name" lowerBound="1" eType="#//NameType"
199
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
200
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
201
        <details key="kind" value="element"/>
202
        <details key="name" value="name"/>
203
        <details key="namespace" value="##targetNamespace"/>
204
      </eAnnotations>
205
    </eStructuralFeatures>
206
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-1"
207
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true"
208
        transient="true" derived="true">
209
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
210
        <details key="kind" value="element"/>
211
        <details key="name" value="email"/>
212
        <details key="namespace" value="##targetNamespace"/>
213
      </eAnnotations>
214
    </eStructuralFeatures>
215
    <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-1" eType="#//UrlType"
216
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
217
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
218
        <details key="kind" value="element"/>
219
        <details key="name" value="url"/>
220
        <details key="namespace" value="##targetNamespace"/>
221
      </eAnnotations>
222
    </eStructuralFeatures>
223
    <eStructuralFeatures xsi:type="ecore:EReference" name="link" lowerBound="1" eType="#//LinkType"
224
        volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
225
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
226
        <details key="kind" value="element"/>
227
        <details key="name" value="link"/>
228
        <details key="namespace" value="##targetNamespace"/>
229
      </eAnnotations>
230
    </eStructuralFeatures>
231
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="any" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"
232
        volatile="true" transient="true" derived="true">
233
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
234
        <details key="kind" value="elementWildcard"/>
235
        <details key="wildcards" value="##any"/>
236
        <details key="name" value=":5"/>
237
        <details key="processing" value="lax"/>
238
      </eAnnotations>
239
    </eStructuralFeatures>
240
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="contr" eType="#//ContrType"
241
        defaultValueLiteral="false" unsettable="true">
242
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
243
        <details key="kind" value="attribute"/>
244
        <details key="name" value="contr"/>
245
      </eAnnotations>
246
    </eStructuralFeatures>
247
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//ID"
248
        iD="true">
249
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
250
        <details key="kind" value="attribute"/>
251
        <details key="name" value="id"/>
252
      </eAnnotations>
253
    </eStructuralFeatures>
254
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer">
255
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
256
        <details key="kind" value="attribute"/>
257
        <details key="name" value="salary"/>
258
      </eAnnotations>
259
    </eStructuralFeatures>
260
  </eClassifiers>
261
  <eClassifiers xsi:type="ecore:EClass" name="UrlType">
262
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
263
      <details key="name" value="url_._type"/>
264
      <details key="kind" value="empty"/>
265
    </eAnnotations>
266
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="href" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
267
        defaultValueLiteral="http://" unsettable="true">
268
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
269
        <details key="kind" value="attribute"/>
270
        <details key="name" value="href"/>
271
      </eAnnotations>
272
    </eStructuralFeatures>
273
  </eClassifiers>
274
</ecore:EPackage>
(-)models/sdo.Personal/personalMixed.genmodel (-63 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="PersonalMixed" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
11
  <foreignModel>personalMixed.xsd</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="Mixed" basePackage="org.eclipse.emf.test.models.personal" resource="XML"
16
      disposableProviderFactory="true" ecorePackage="mixed.ecore#/">
17
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="mixed.ecore#//ContrType">
18
      <genEnumLiterals ecoreEnumLiteral="mixed.ecore#//ContrType/true"/>
19
      <genEnumLiterals ecoreEnumLiteral="mixed.ecore#//ContrType/false"/>
20
    </genEnums>
21
    <genDataTypes ecoreDataType="mixed.ecore#//ContrTypeObject"/>
22
    <genClasses ecoreClass="mixed.ecore#//DocumentRoot">
23
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/mixed"/>
24
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/xMLNSPrefixMap"/>
25
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/xSISchemaLocation"/>
26
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/email"/>
27
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/family"/>
28
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/given"/>
29
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/link"/>
30
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/name"/>
31
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/person"/>
32
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/personnel"/>
33
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/url"/>
34
    </genClasses>
35
    <genClasses ecoreClass="mixed.ecore#//LinkType">
36
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/mixed"/>
37
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/manager"/>
38
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/subordinates"/>
39
    </genClasses>
40
    <genClasses ecoreClass="mixed.ecore#//NameType">
41
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/mixed"/>
42
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/family"/>
43
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/given"/>
44
    </genClasses>
45
    <genClasses ecoreClass="mixed.ecore#//PersonnelType">
46
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//PersonnelType/person"/>
47
    </genClasses>
48
    <genClasses ecoreClass="mixed.ecore#//PersonType">
49
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/mixed"/>
50
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/name"/>
51
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/email"/>
52
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/url"/>
53
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/link"/>
54
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/any"/>
55
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/contr"/>
56
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/id"/>
57
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/salary"/>
58
    </genClasses>
59
    <genClasses ecoreClass="mixed.ecore#//UrlType">
60
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//UrlType/href"/>
61
    </genClasses>
62
  </genPackages>
63
</genmodel:GenModel>
(-)models/sdo.Personal/personal.genmodel (-59 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="Personal" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
11
  <foreignModel>personal.xsd</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="Personal" basePackage="org.eclipse.emf.test.models" resource="XML"
16
      disposableProviderFactory="true" ecorePackage="personal.ecore#/">
17
    <genEnums typeSafeEnumCompatible="false" ecoreEnum="personal.ecore#//ContrType">
18
      <genEnumLiterals ecoreEnumLiteral="personal.ecore#//ContrType/true"/>
19
      <genEnumLiterals ecoreEnumLiteral="personal.ecore#//ContrType/false"/>
20
    </genEnums>
21
    <genDataTypes ecoreDataType="personal.ecore#//ContrTypeObject"/>
22
    <genClasses ecoreClass="personal.ecore#//DocumentRoot">
23
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/mixed"/>
24
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/xMLNSPrefixMap"/>
25
      <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/xSISchemaLocation"/>
26
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/email"/>
27
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/family"/>
28
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/given"/>
29
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/link"/>
30
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/name"/>
31
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/person"/>
32
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/personnel"/>
33
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/url"/>
34
    </genClasses>
35
    <genClasses ecoreClass="personal.ecore#//LinkType">
36
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//LinkType/manager"/>
37
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//LinkType/subordinates"/>
38
    </genClasses>
39
    <genClasses ecoreClass="personal.ecore#//NameType">
40
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//NameType/family"/>
41
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//NameType/given"/>
42
    </genClasses>
43
    <genClasses ecoreClass="personal.ecore#//PersonnelType">
44
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonnelType/person"/>
45
    </genClasses>
46
    <genClasses ecoreClass="personal.ecore#//PersonType">
47
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/name"/>
48
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/email"/>
49
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/url"/>
50
      <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/link"/>
51
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/contr"/>
52
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/id"/>
53
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/salary"/>
54
    </genClasses>
55
    <genClasses ecoreClass="personal.ecore#//UrlType">
56
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//UrlType/href"/>
57
    </genClasses>
58
  </genPackages>
59
</genmodel:GenModel>
(-)src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java (-687 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimplePackageImpl.java,v 1.3 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.impl;
18
19
import org.eclipse.emf.ecore.EAttribute;
20
import org.eclipse.emf.ecore.EClass;
21
import org.eclipse.emf.ecore.EFactory;
22
import org.eclipse.emf.ecore.EPackage;
23
import org.eclipse.emf.ecore.EReference;
24
25
import org.eclipse.emf.ecore.impl.EPackageImpl;
26
27
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
28
29
import org.eclipse.emf.test.models.sdo.simple.Quote;
30
import org.eclipse.emf.test.models.sdo.simple.SimpleFactory;
31
32
/**
33
 * <!-- begin-user-doc -->
34
 * The <b>Package</b> for the model.
35
 * It contains accessors for the meta objects to represent
36
 * <ul>
37
 *   <li>each class,</li>
38
 *   <li>each feature of each class,</li>
39
 *   <li>each enum,</li>
40
 *   <li>and each data type</li>
41
 * </ul>
42
 * <!-- end-user-doc -->
43
 * @see org.eclipse.emf.test.models.sdo.simple.SimpleFactory
44
 * @model kind="package"
45
 * @generated
46
 */
47
public class SimplePackageImpl extends EPackageImpl
48
{
49
  /**
50
   * The package name.
51
   * <!-- begin-user-doc -->
52
   * <!-- end-user-doc -->
53
   * @generated
54
   */
55
  public static final String eNAME = "simple";
56
57
  /**
58
   * The package namespace URI.
59
   * <!-- begin-user-doc -->
60
   * <!-- end-user-doc -->
61
   * @generated
62
   */
63
  public static final String eNS_URI = "http:///org.eclipse.emf.test.models/simple";
64
65
  /**
66
   * The package namespace name.
67
   * <!-- begin-user-doc -->
68
   * <!-- end-user-doc -->
69
   * @generated
70
   */
71
  public static final String eNS_PREFIX = "simple";
72
73
  /**
74
   * The singleton instance of the package.
75
   * <!-- begin-user-doc -->
76
   * <!-- end-user-doc -->
77
   * @generated
78
   */
79
  public static final SimplePackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl.init();
80
81
  /**
82
   * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl
86
   * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote()
87
   * @generated
88
   */
89
  public static final int QUOTE = 0;
90
91
  /**
92
   * The feature id for the '<em><b>Symbol</b></em>' attribute.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @generated
96
   * @ordered
97
   */
98
  public static final int QUOTE__SYMBOL = 0;
99
100
  /**
101
   * The feature id for the '<em><b>Company Name</b></em>' attribute.
102
   * <!-- begin-user-doc -->
103
   * <!-- end-user-doc -->
104
   * @generated
105
   * @ordered
106
   */
107
  public static final int QUOTE__COMPANY_NAME = 1;
108
109
  /**
110
   * The feature id for the '<em><b>Price</b></em>' attribute.
111
   * <!-- begin-user-doc -->
112
   * <!-- end-user-doc -->
113
   * @generated
114
   * @ordered
115
   */
116
  public static final int QUOTE__PRICE = 2;
117
118
  /**
119
   * The feature id for the '<em><b>Open1</b></em>' attribute.
120
   * <!-- begin-user-doc -->
121
   * <!-- end-user-doc -->
122
   * @generated
123
   * @ordered
124
   */
125
  public static final int QUOTE__OPEN1 = 3;
126
127
  /**
128
   * The feature id for the '<em><b>High</b></em>' attribute.
129
   * <!-- begin-user-doc -->
130
   * <!-- end-user-doc -->
131
   * @generated
132
   * @ordered
133
   */
134
  public static final int QUOTE__HIGH = 4;
135
136
  /**
137
   * The feature id for the '<em><b>Low</b></em>' attribute.
138
   * <!-- begin-user-doc -->
139
   * <!-- end-user-doc -->
140
   * @generated
141
   * @ordered
142
   */
143
  public static final int QUOTE__LOW = 5;
144
145
  /**
146
   * The feature id for the '<em><b>Volume</b></em>' attribute.
147
   * <!-- begin-user-doc -->
148
   * <!-- end-user-doc -->
149
   * @generated
150
   * @ordered
151
   */
152
  public static final int QUOTE__VOLUME = 6;
153
154
  /**
155
   * The feature id for the '<em><b>Change1</b></em>' attribute.
156
   * <!-- begin-user-doc -->
157
   * <!-- end-user-doc -->
158
   * @generated
159
   * @ordered
160
   */
161
  public static final int QUOTE__CHANGE1 = 7;
162
163
  /**
164
   * The feature id for the '<em><b>Quotes</b></em>' containment reference list.
165
   * <!-- begin-user-doc -->
166
   * <!-- end-user-doc -->
167
   * @generated
168
   * @ordered
169
   */
170
  public static final int QUOTE__QUOTES = 8;
171
172
  /**
173
   * The number of structural features of the '<em>Quote</em>' class.
174
   * <!-- begin-user-doc -->
175
   * <!-- end-user-doc -->
176
   * @generated
177
   * @ordered
178
   */
179
  public static final int QUOTE_FEATURE_COUNT = 9;
180
181
  /**
182
   * <!-- begin-user-doc -->
183
   * <!-- end-user-doc -->
184
   * @generated
185
   */
186
  private EClass quoteEClass = null;
187
188
  /**
189
   * Creates an instance of the model <b>Package</b>, registered with
190
   * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
191
   * package URI value.
192
   * <p>Note: the correct way to create the package is via the static
193
   * factory method {@link #init init()}, which also performs
194
   * initialization of the package, or returns the registered package,
195
   * if one already exists.
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @see org.eclipse.emf.ecore.EPackage.Registry
199
   * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#eNS_URI
200
   * @see #init()
201
   * @generated
202
   */
203
  private SimplePackageImpl()
204
  {
205
    super(eNS_URI, ((EFactory)SimpleFactory.INSTANCE));
206
  }
207
208
  /**
209
   * <!-- begin-user-doc -->
210
   * <!-- end-user-doc -->
211
   * @generated
212
   */
213
  private static boolean isInited = false;
214
215
  /**
216
   * Creates, registers, and initializes the <b>Package</b> for this
217
   * model, and for any others upon which it depends.  Simple
218
   * dependencies are satisfied by calling this method on all
219
   * dependent packages before doing anything else.  This method drives
220
   * initialization for interdependent packages directly, in parallel
221
   * with this package, itself.
222
   * <p>Of this package and its interdependencies, all packages which
223
   * have not yet been registered by their URI values are first created
224
   * and registered.  The packages are then initialized in two steps:
225
   * meta-model objects for all of the packages are created before any
226
   * are initialized, since one package's meta-model objects may refer to
227
   * those of another.
228
   * <p>Invocation of this method will not affect any packages that have
229
   * already been initialized.
230
   * <!-- begin-user-doc -->
231
   * <!-- end-user-doc -->
232
   * @see #eNS_URI
233
   * @see #createPackageContents()
234
   * @see #initializePackageContents()
235
   * @generated
236
   */
237
  public static SimplePackageImpl init()
238
  {
239
    if (isInited) return (SimplePackageImpl)EPackage.Registry.INSTANCE.getEPackage(SimplePackageImpl.eNS_URI);
240
241
    // Obtain or create and register package
242
    SimplePackageImpl theSimplePackageImpl = (SimplePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SimplePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SimplePackageImpl());
243
244
    isInited = true;
245
246
    // Initialize simple dependencies
247
    XMLTypePackage.eINSTANCE.eClass();
248
249
    // Create package meta-data objects
250
    theSimplePackageImpl.createPackageContents();
251
252
    // Initialize created meta-data
253
    theSimplePackageImpl.initializePackageContents();
254
255
    // Mark meta-data to indicate it can't be changed
256
    theSimplePackageImpl.freeze();
257
258
    return theSimplePackageImpl;
259
  }
260
261
262
  /**
263
   * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.simple.Quote <em>Quote</em>}'.
264
   * <!-- begin-user-doc -->
265
   * <!-- end-user-doc -->
266
   * @return the meta object for class '<em>Quote</em>'.
267
   * @see org.eclipse.emf.test.models.sdo.simple.Quote
268
   * @generated
269
   */
270
  public EClass getQuote()
271
  {
272
    return quoteEClass;
273
  }
274
275
  /**
276
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}'.
277
   * <!-- begin-user-doc -->
278
   * <!-- end-user-doc -->
279
   * @return the meta object for the attribute '<em>Symbol</em>'.
280
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol()
281
   * @see #getQuote()
282
   * @generated
283
   */
284
  public EAttribute getQuote_Symbol()
285
  {
286
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(0);
287
  }
288
289
  /**
290
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}'.
291
   * <!-- begin-user-doc -->
292
   * <!-- end-user-doc -->
293
   * @return the meta object for the attribute '<em>Company Name</em>'.
294
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName()
295
   * @see #getQuote()
296
   * @generated
297
   */
298
  public EAttribute getQuote_CompanyName()
299
  {
300
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(1);
301
  }
302
303
  /**
304
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}'.
305
   * <!-- begin-user-doc -->
306
   * <!-- end-user-doc -->
307
   * @return the meta object for the attribute '<em>Price</em>'.
308
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getPrice()
309
   * @see #getQuote()
310
   * @generated
311
   */
312
  public EAttribute getQuote_Price()
313
  {
314
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(2);
315
  }
316
317
  /**
318
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}'.
319
   * <!-- begin-user-doc -->
320
   * <!-- end-user-doc -->
321
   * @return the meta object for the attribute '<em>Open1</em>'.
322
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1()
323
   * @see #getQuote()
324
   * @generated
325
   */
326
  public EAttribute getQuote_Open1()
327
  {
328
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(3);
329
  }
330
331
  /**
332
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}'.
333
   * <!-- begin-user-doc -->
334
   * <!-- end-user-doc -->
335
   * @return the meta object for the attribute '<em>High</em>'.
336
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getHigh()
337
   * @see #getQuote()
338
   * @generated
339
   */
340
  public EAttribute getQuote_High()
341
  {
342
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(4);
343
  }
344
345
  /**
346
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}'.
347
   * <!-- begin-user-doc -->
348
   * <!-- end-user-doc -->
349
   * @return the meta object for the attribute '<em>Low</em>'.
350
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getLow()
351
   * @see #getQuote()
352
   * @generated
353
   */
354
  public EAttribute getQuote_Low()
355
  {
356
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(5);
357
  }
358
359
  /**
360
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}'.
361
   * <!-- begin-user-doc -->
362
   * <!-- end-user-doc -->
363
   * @return the meta object for the attribute '<em>Volume</em>'.
364
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getVolume()
365
   * @see #getQuote()
366
   * @generated
367
   */
368
  public EAttribute getQuote_Volume()
369
  {
370
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(6);
371
  }
372
373
  /**
374
   * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}'.
375
   * <!-- begin-user-doc -->
376
   * <!-- end-user-doc -->
377
   * @return the meta object for the attribute '<em>Change1</em>'.
378
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getChange1()
379
   * @see #getQuote()
380
   * @generated
381
   */
382
  public EAttribute getQuote_Change1()
383
  {
384
    return (EAttribute)quoteEClass.getEStructuralFeatures().get(7);
385
  }
386
387
  /**
388
   * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes <em>Quotes</em>}'.
389
   * <!-- begin-user-doc -->
390
   * <!-- end-user-doc -->
391
   * @return the meta object for the containment reference list '<em>Quotes</em>'.
392
   * @see org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes()
393
   * @see #getQuote()
394
   * @generated
395
   */
396
  public EReference getQuote_Quotes()
397
  {
398
    return (EReference)quoteEClass.getEStructuralFeatures().get(8);
399
  }
400
401
  /**
402
   * Returns the factory that creates the instances of the model.
403
   * <!-- begin-user-doc -->
404
   * <!-- end-user-doc -->
405
   * @return the factory that creates the instances of the model.
406
   * @generated
407
   */
408
  public SimpleFactory getSimpleFactory()
409
  {
410
    return (SimpleFactory)getEFactoryInstance();
411
  }
412
413
  /**
414
   * <!-- begin-user-doc -->
415
   * <!-- end-user-doc -->
416
   * @generated
417
   */
418
  private boolean isCreated = false;
419
420
  /**
421
   * Creates the meta-model objects for the package.  This method is
422
   * guarded to have no affect on any invocation but its first.
423
   * <!-- begin-user-doc -->
424
   * <!-- end-user-doc -->
425
   * @generated
426
   */
427
  public void createPackageContents()
428
  {
429
    if (isCreated) return;
430
    isCreated = true;
431
432
    // Create classes and their features
433
    quoteEClass = createEClass(QUOTE);
434
    createEAttribute(quoteEClass, QUOTE__SYMBOL);
435
    createEAttribute(quoteEClass, QUOTE__COMPANY_NAME);
436
    createEAttribute(quoteEClass, QUOTE__PRICE);
437
    createEAttribute(quoteEClass, QUOTE__OPEN1);
438
    createEAttribute(quoteEClass, QUOTE__HIGH);
439
    createEAttribute(quoteEClass, QUOTE__LOW);
440
    createEAttribute(quoteEClass, QUOTE__VOLUME);
441
    createEAttribute(quoteEClass, QUOTE__CHANGE1);
442
    createEReference(quoteEClass, QUOTE__QUOTES);
443
  }
444
445
  /**
446
   * <!-- begin-user-doc -->
447
   * <!-- end-user-doc -->
448
   * @generated
449
   */
450
  private boolean isInitialized = false;
451
452
  /**
453
   * Complete the initialization of the package and its meta-model.  This
454
   * method is guarded to have no affect on any invocation but its first.
455
   * <!-- begin-user-doc -->
456
   * <!-- end-user-doc -->
457
   * @generated
458
   */
459
  public void initializePackageContents()
460
  {
461
    if (isInitialized) return;
462
    isInitialized = true;
463
464
    // Initialize package
465
    setName(eNAME);
466
    setNsPrefix(eNS_PREFIX);
467
    setNsURI(eNS_URI);
468
469
    // Obtain other dependent packages
470
    XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
471
472
    // Create type parameters
473
474
    // Set bounds for type parameters
475
476
    // Add supertypes to classes
477
478
    // Initialize classes and features; add operations and parameters
479
    initEClass(quoteEClass, Quote.class, "Quote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
480
    initEAttribute(getQuote_Symbol(), theXMLTypePackage.getString(), "symbol", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
481
    initEAttribute(getQuote_CompanyName(), theXMLTypePackage.getString(), "companyName", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
482
    initEAttribute(getQuote_Price(), theXMLTypePackage.getDecimal(), "price", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
483
    initEAttribute(getQuote_Open1(), theXMLTypePackage.getDecimal(), "open1", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
484
    initEAttribute(getQuote_High(), theXMLTypePackage.getDecimal(), "high", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
485
    initEAttribute(getQuote_Low(), theXMLTypePackage.getDecimal(), "low", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
486
    initEAttribute(getQuote_Volume(), theXMLTypePackage.getDouble(), "volume", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
487
    initEAttribute(getQuote_Change1(), theXMLTypePackage.getDouble(), "change1", null, 1, 1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
488
    initEReference(getQuote_Quotes(), this.getQuote(), null, "quotes", null, 0, -1, Quote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
489
490
    // Create resource
491
    createResource(eNS_URI);
492
493
    // Create annotations
494
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
495
    createExtendedMetaDataAnnotations();
496
  }
497
498
  /**
499
   * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
500
   * <!-- begin-user-doc -->
501
   * <!-- end-user-doc -->
502
   * @generated
503
   */
504
  protected void createExtendedMetaDataAnnotations()
505
  {
506
    String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";		
507
    addAnnotation
508
      (quoteEClass, 
509
       source, 
510
       new String[] 
511
       {
512
       "name", "Quote",
513
       "kind", "elementOnly"
514
       });		
515
    addAnnotation
516
      (getQuote_Symbol(), 
517
       source, 
518
       new String[] 
519
       {
520
       "kind", "element",
521
       "name", "symbol"
522
       });		
523
    addAnnotation
524
      (getQuote_CompanyName(), 
525
       source, 
526
       new String[] 
527
       {
528
       "kind", "element",
529
       "name", "companyName"
530
       });		
531
    addAnnotation
532
      (getQuote_Price(), 
533
       source, 
534
       new String[] 
535
       {
536
       "kind", "element",
537
       "name", "price"
538
       });		
539
    addAnnotation
540
      (getQuote_Open1(), 
541
       source, 
542
       new String[] 
543
       {
544
       "kind", "element",
545
       "name", "open1"
546
       });		
547
    addAnnotation
548
      (getQuote_High(), 
549
       source, 
550
       new String[] 
551
       {
552
       "kind", "element",
553
       "name", "high"
554
       });		
555
    addAnnotation
556
      (getQuote_Low(), 
557
       source, 
558
       new String[] 
559
       {
560
       "kind", "element",
561
       "name", "low"
562
       });		
563
    addAnnotation
564
      (getQuote_Volume(), 
565
       source, 
566
       new String[] 
567
       {
568
       "kind", "element",
569
       "name", "volume"
570
       });		
571
    addAnnotation
572
      (getQuote_Change1(), 
573
       source, 
574
       new String[] 
575
       {
576
       "kind", "element",
577
       "name", "change1"
578
       });		
579
    addAnnotation
580
      (getQuote_Quotes(), 
581
       source, 
582
       new String[] 
583
       {
584
       "kind", "element",
585
       "name", "quotes"
586
       });
587
  }
588
589
  /**
590
   * <!-- begin-user-doc -->
591
   * Defines literals for the meta objects that represent
592
   * <ul>
593
   *   <li>each class,</li>
594
   *   <li>each feature of each class,</li>
595
   *   <li>each enum,</li>
596
   *   <li>and each data type</li>
597
   * </ul>
598
   * <!-- end-user-doc -->
599
   * @generated
600
   */
601
  public interface Literals
602
  {
603
    /**
604
     * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class.
605
     * <!-- begin-user-doc -->
606
     * <!-- end-user-doc -->
607
     * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl
608
     * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote()
609
     * @generated
610
     */
611
    public static final EClass QUOTE = eINSTANCE.getQuote();
612
613
    /**
614
     * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature.
615
     * <!-- begin-user-doc -->
616
     * <!-- end-user-doc -->
617
     * @generated
618
     */
619
    public static final EAttribute QUOTE__SYMBOL = eINSTANCE.getQuote_Symbol();
620
621
    /**
622
     * The meta object literal for the '<em><b>Company Name</b></em>' attribute feature.
623
     * <!-- begin-user-doc -->
624
     * <!-- end-user-doc -->
625
     * @generated
626
     */
627
    public static final EAttribute QUOTE__COMPANY_NAME = eINSTANCE.getQuote_CompanyName();
628
629
    /**
630
     * The meta object literal for the '<em><b>Price</b></em>' attribute feature.
631
     * <!-- begin-user-doc -->
632
     * <!-- end-user-doc -->
633
     * @generated
634
     */
635
    public static final EAttribute QUOTE__PRICE = eINSTANCE.getQuote_Price();
636
637
    /**
638
     * The meta object literal for the '<em><b>Open1</b></em>' attribute feature.
639
     * <!-- begin-user-doc -->
640
     * <!-- end-user-doc -->
641
     * @generated
642
     */
643
    public static final EAttribute QUOTE__OPEN1 = eINSTANCE.getQuote_Open1();
644
645
    /**
646
     * The meta object literal for the '<em><b>High</b></em>' attribute feature.
647
     * <!-- begin-user-doc -->
648
     * <!-- end-user-doc -->
649
     * @generated
650
     */
651
    public static final EAttribute QUOTE__HIGH = eINSTANCE.getQuote_High();
652
653
    /**
654
     * The meta object literal for the '<em><b>Low</b></em>' attribute feature.
655
     * <!-- begin-user-doc -->
656
     * <!-- end-user-doc -->
657
     * @generated
658
     */
659
    public static final EAttribute QUOTE__LOW = eINSTANCE.getQuote_Low();
660
661
    /**
662
     * The meta object literal for the '<em><b>Volume</b></em>' attribute feature.
663
     * <!-- begin-user-doc -->
664
     * <!-- end-user-doc -->
665
     * @generated
666
     */
667
    public static final EAttribute QUOTE__VOLUME = eINSTANCE.getQuote_Volume();
668
669
    /**
670
     * The meta object literal for the '<em><b>Change1</b></em>' attribute feature.
671
     * <!-- begin-user-doc -->
672
     * <!-- end-user-doc -->
673
     * @generated
674
     */
675
    public static final EAttribute QUOTE__CHANGE1 = eINSTANCE.getQuote_Change1();
676
677
    /**
678
     * The meta object literal for the '<em><b>Quotes</b></em>' containment reference list feature.
679
     * <!-- begin-user-doc -->
680
     * <!-- end-user-doc -->
681
     * @generated
682
     */
683
    public static final EReference QUOTE__QUOTES = eINSTANCE.getQuote_Quotes();
684
685
  }
686
687
} //SimplePackageImpl
(-)src/org/eclipse/emf/test/models/sdo/simple/impl/SimpleFactoryImpl.java (-128 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.impl;
18
19
import org.eclipse.emf.ecore.EClass;
20
import org.eclipse.emf.ecore.EObject;
21
import org.eclipse.emf.ecore.EPackage;
22
23
import org.eclipse.emf.ecore.impl.EFactoryImpl;
24
25
import org.eclipse.emf.ecore.plugin.EcorePlugin;
26
27
import org.eclipse.emf.test.models.sdo.simple.*;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model <b>Factory</b>.
32
 * <!-- end-user-doc -->
33
 * @generated
34
 */
35
public class SimpleFactoryImpl extends EFactoryImpl implements SimpleFactory
36
{
37
  /**
38
   * The singleton instance of the factory.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @generated
42
   */
43
  public static final SimpleFactoryImpl eINSTANCE = init();
44
45
  /**
46
   * Creates the default factory implementation.
47
   * <!-- begin-user-doc -->
48
   * <!-- end-user-doc -->
49
   * @generated
50
   */
51
  public static SimpleFactoryImpl init()
52
  {
53
    try
54
    {
55
      SimpleFactoryImpl theSimpleFactory = (SimpleFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/simple"); 
56
      if (theSimpleFactory != null)
57
      {
58
        return theSimpleFactory;
59
      }
60
    }
61
    catch (Exception exception)
62
    {
63
      EcorePlugin.INSTANCE.log(exception);
64
    }
65
    return new SimpleFactoryImpl();
66
  }
67
68
  /**
69
   * Creates an instance of the factory.
70
   * <!-- begin-user-doc -->
71
   * <!-- end-user-doc -->
72
   * @generated
73
   */
74
  public SimpleFactoryImpl()
75
  {
76
    super();
77
  }
78
79
  /**
80
   * <!-- begin-user-doc -->
81
   * <!-- end-user-doc -->
82
   * @generated
83
   */
84
  @Override
85
  public EObject create(EClass eClass)
86
  {
87
    switch (eClass.getClassifierID())
88
    {
89
      case SimplePackageImpl.QUOTE: return (EObject)createQuote();
90
      default:
91
        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
92
    }
93
  }
94
95
  /**
96
   * <!-- begin-user-doc -->
97
   * <!-- end-user-doc -->
98
   * @generated
99
   */
100
  public Quote createQuote()
101
  {
102
    QuoteImpl quote = new QuoteImpl();
103
    return quote;
104
  }
105
106
  /**
107
   * <!-- begin-user-doc -->
108
   * <!-- end-user-doc -->
109
   * @generated
110
   */
111
  public SimplePackageImpl getSimplePackageImpl()
112
  {
113
    return (SimplePackageImpl)getEPackage();
114
  }
115
116
  /**
117
   * <!-- begin-user-doc -->
118
   * <!-- end-user-doc -->
119
   * @deprecated
120
   * @generated
121
   */
122
  @Deprecated
123
  public static SimplePackageImpl getPackage()
124
  {
125
    return SimplePackageImpl.eINSTANCE;
126
  }
127
128
} //SimpleFactoryImpl
(-)src/org/eclipse/emf/test/models/sdo/simple/impl/QuoteImpl.java (-727 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: QuoteImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple.impl;
18
19
import java.math.BigDecimal;
20
21
import java.util.Collection;
22
import java.util.List;
23
24
import org.eclipse.emf.common.notify.Notification;
25
import org.eclipse.emf.common.notify.NotificationChain;
26
27
import org.eclipse.emf.common.util.EList;
28
29
import org.eclipse.emf.ecore.EClass;
30
import org.eclipse.emf.ecore.InternalEObject;
31
32
import org.eclipse.emf.ecore.impl.ENotificationImpl;
33
34
import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
35
36
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
37
import org.eclipse.emf.ecore.util.InternalEList;
38
39
import org.eclipse.emf.test.models.sdo.simple.Quote;
40
41
/**
42
 * <!-- begin-user-doc -->
43
 * An implementation of the model object '<em><b>Quote</b></em>'.
44
 * <!-- end-user-doc -->
45
 * <p>
46
 * The following features are implemented:
47
 * <ul>
48
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getSymbol <em>Symbol</em>}</li>
49
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getCompanyName <em>Company Name</em>}</li>
50
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getPrice <em>Price</em>}</li>
51
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getOpen1 <em>Open1</em>}</li>
52
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getHigh <em>High</em>}</li>
53
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getLow <em>Low</em>}</li>
54
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getVolume <em>Volume</em>}</li>
55
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getChange1 <em>Change1</em>}</li>
56
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getQuotes <em>Quotes</em>}</li>
57
 * </ul>
58
 * </p>
59
 *
60
 * @generated
61
 */
62
public class QuoteImpl extends EDataObjectImpl implements Quote
63
{
64
  /**
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @generated
68
   */
69
  private static final long serialVersionUID = 1L;
70
71
  /**
72
   * The default value of the '{@link #getSymbol() <em>Symbol</em>}' attribute.
73
   * <!-- begin-user-doc -->
74
   * <!-- end-user-doc -->
75
   * @see #getSymbol()
76
   * @generated
77
   * @ordered
78
   */
79
  protected static final String SYMBOL_EDEFAULT = null;
80
81
  /**
82
   * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' attribute.
83
   * <!-- begin-user-doc -->
84
   * <!-- end-user-doc -->
85
   * @see #getSymbol()
86
   * @generated
87
   * @ordered
88
   */
89
  protected String symbol = SYMBOL_EDEFAULT;
90
91
  /**
92
   * The default value of the '{@link #getCompanyName() <em>Company Name</em>}' attribute.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @see #getCompanyName()
96
   * @generated
97
   * @ordered
98
   */
99
  protected static final String COMPANY_NAME_EDEFAULT = null;
100
101
  /**
102
   * The cached value of the '{@link #getCompanyName() <em>Company Name</em>}' attribute.
103
   * <!-- begin-user-doc -->
104
   * <!-- end-user-doc -->
105
   * @see #getCompanyName()
106
   * @generated
107
   * @ordered
108
   */
109
  protected String companyName = COMPANY_NAME_EDEFAULT;
110
111
  /**
112
   * The default value of the '{@link #getPrice() <em>Price</em>}' attribute.
113
   * <!-- begin-user-doc -->
114
   * <!-- end-user-doc -->
115
   * @see #getPrice()
116
   * @generated
117
   * @ordered
118
   */
119
  protected static final BigDecimal PRICE_EDEFAULT = null;
120
121
  /**
122
   * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute.
123
   * <!-- begin-user-doc -->
124
   * <!-- end-user-doc -->
125
   * @see #getPrice()
126
   * @generated
127
   * @ordered
128
   */
129
  protected BigDecimal price = PRICE_EDEFAULT;
130
131
  /**
132
   * The default value of the '{@link #getOpen1() <em>Open1</em>}' attribute.
133
   * <!-- begin-user-doc -->
134
   * <!-- end-user-doc -->
135
   * @see #getOpen1()
136
   * @generated
137
   * @ordered
138
   */
139
  protected static final BigDecimal OPEN1_EDEFAULT = null;
140
141
  /**
142
   * The cached value of the '{@link #getOpen1() <em>Open1</em>}' attribute.
143
   * <!-- begin-user-doc -->
144
   * <!-- end-user-doc -->
145
   * @see #getOpen1()
146
   * @generated
147
   * @ordered
148
   */
149
  protected BigDecimal open1 = OPEN1_EDEFAULT;
150
151
  /**
152
   * The default value of the '{@link #getHigh() <em>High</em>}' attribute.
153
   * <!-- begin-user-doc -->
154
   * <!-- end-user-doc -->
155
   * @see #getHigh()
156
   * @generated
157
   * @ordered
158
   */
159
  protected static final BigDecimal HIGH_EDEFAULT = null;
160
161
  /**
162
   * The cached value of the '{@link #getHigh() <em>High</em>}' attribute.
163
   * <!-- begin-user-doc -->
164
   * <!-- end-user-doc -->
165
   * @see #getHigh()
166
   * @generated
167
   * @ordered
168
   */
169
  protected BigDecimal high = HIGH_EDEFAULT;
170
171
  /**
172
   * The default value of the '{@link #getLow() <em>Low</em>}' attribute.
173
   * <!-- begin-user-doc -->
174
   * <!-- end-user-doc -->
175
   * @see #getLow()
176
   * @generated
177
   * @ordered
178
   */
179
  protected static final BigDecimal LOW_EDEFAULT = null;
180
181
  /**
182
   * The cached value of the '{@link #getLow() <em>Low</em>}' attribute.
183
   * <!-- begin-user-doc -->
184
   * <!-- end-user-doc -->
185
   * @see #getLow()
186
   * @generated
187
   * @ordered
188
   */
189
  protected BigDecimal low = LOW_EDEFAULT;
190
191
  /**
192
   * The default value of the '{@link #getVolume() <em>Volume</em>}' attribute.
193
   * <!-- begin-user-doc -->
194
   * <!-- end-user-doc -->
195
   * @see #getVolume()
196
   * @generated
197
   * @ordered
198
   */
199
  protected static final double VOLUME_EDEFAULT = 0.0;
200
201
  /**
202
   * The cached value of the '{@link #getVolume() <em>Volume</em>}' attribute.
203
   * <!-- begin-user-doc -->
204
   * <!-- end-user-doc -->
205
   * @see #getVolume()
206
   * @generated
207
   * @ordered
208
   */
209
  protected double volume = VOLUME_EDEFAULT;
210
211
  /**
212
   * This is true if the Volume attribute has been set.
213
   * <!-- begin-user-doc -->
214
   * <!-- end-user-doc -->
215
   * @generated
216
   * @ordered
217
   */
218
  protected boolean volumeESet;
219
220
  /**
221
   * The default value of the '{@link #getChange1() <em>Change1</em>}' attribute.
222
   * <!-- begin-user-doc -->
223
   * <!-- end-user-doc -->
224
   * @see #getChange1()
225
   * @generated
226
   * @ordered
227
   */
228
  protected static final double CHANGE1_EDEFAULT = 0.0;
229
230
  /**
231
   * The cached value of the '{@link #getChange1() <em>Change1</em>}' attribute.
232
   * <!-- begin-user-doc -->
233
   * <!-- end-user-doc -->
234
   * @see #getChange1()
235
   * @generated
236
   * @ordered
237
   */
238
  protected double change1 = CHANGE1_EDEFAULT;
239
240
  /**
241
   * This is true if the Change1 attribute has been set.
242
   * <!-- begin-user-doc -->
243
   * <!-- end-user-doc -->
244
   * @generated
245
   * @ordered
246
   */
247
  protected boolean change1ESet;
248
249
  /**
250
   * The cached value of the '{@link #getQuotes() <em>Quotes</em>}' containment reference list.
251
   * <!-- begin-user-doc -->
252
   * <!-- end-user-doc -->
253
   * @see #getQuotes()
254
   * @generated
255
   * @ordered
256
   */
257
  protected EList<Quote> quotes;
258
259
  /**
260
   * <!-- begin-user-doc -->
261
   * <!-- end-user-doc -->
262
   * @generated
263
   */
264
  protected QuoteImpl()
265
  {
266
    super();
267
  }
268
269
  /**
270
   * <!-- begin-user-doc -->
271
   * <!-- end-user-doc -->
272
   * @generated
273
   */
274
  @Override
275
  protected EClass eStaticClass()
276
  {
277
    return SimplePackageImpl.Literals.QUOTE;
278
  }
279
280
  /**
281
   * <!-- begin-user-doc -->
282
   * <!-- end-user-doc -->
283
   * @generated
284
   */
285
  public String getSymbol()
286
  {
287
    return symbol;
288
  }
289
290
  /**
291
   * <!-- begin-user-doc -->
292
   * <!-- end-user-doc -->
293
   * @generated
294
   */
295
  public void setSymbol(String newSymbol)
296
  {
297
    String oldSymbol = symbol;
298
    symbol = newSymbol;
299
    if (eNotificationRequired())
300
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__SYMBOL, oldSymbol, symbol));
301
  }
302
303
  /**
304
   * <!-- begin-user-doc -->
305
   * <!-- end-user-doc -->
306
   * @generated
307
   */
308
  public String getCompanyName()
309
  {
310
    return companyName;
311
  }
312
313
  /**
314
   * <!-- begin-user-doc -->
315
   * <!-- end-user-doc -->
316
   * @generated
317
   */
318
  public void setCompanyName(String newCompanyName)
319
  {
320
    String oldCompanyName = companyName;
321
    companyName = newCompanyName;
322
    if (eNotificationRequired())
323
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__COMPANY_NAME, oldCompanyName, companyName));
324
  }
325
326
  /**
327
   * <!-- begin-user-doc -->
328
   * <!-- end-user-doc -->
329
   * @generated
330
   */
331
  public BigDecimal getPrice()
332
  {
333
    return price;
334
  }
335
336
  /**
337
   * <!-- begin-user-doc -->
338
   * <!-- end-user-doc -->
339
   * @generated
340
   */
341
  public void setPrice(BigDecimal newPrice)
342
  {
343
    BigDecimal oldPrice = price;
344
    price = newPrice;
345
    if (eNotificationRequired())
346
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__PRICE, oldPrice, price));
347
  }
348
349
  /**
350
   * <!-- begin-user-doc -->
351
   * <!-- end-user-doc -->
352
   * @generated
353
   */
354
  public BigDecimal getOpen1()
355
  {
356
    return open1;
357
  }
358
359
  /**
360
   * <!-- begin-user-doc -->
361
   * <!-- end-user-doc -->
362
   * @generated
363
   */
364
  public void setOpen1(BigDecimal newOpen1)
365
  {
366
    BigDecimal oldOpen1 = open1;
367
    open1 = newOpen1;
368
    if (eNotificationRequired())
369
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__OPEN1, oldOpen1, open1));
370
  }
371
372
  /**
373
   * <!-- begin-user-doc -->
374
   * <!-- end-user-doc -->
375
   * @generated
376
   */
377
  public BigDecimal getHigh()
378
  {
379
    return high;
380
  }
381
382
  /**
383
   * <!-- begin-user-doc -->
384
   * <!-- end-user-doc -->
385
   * @generated
386
   */
387
  public void setHigh(BigDecimal newHigh)
388
  {
389
    BigDecimal oldHigh = high;
390
    high = newHigh;
391
    if (eNotificationRequired())
392
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__HIGH, oldHigh, high));
393
  }
394
395
  /**
396
   * <!-- begin-user-doc -->
397
   * <!-- end-user-doc -->
398
   * @generated
399
   */
400
  public BigDecimal getLow()
401
  {
402
    return low;
403
  }
404
405
  /**
406
   * <!-- begin-user-doc -->
407
   * <!-- end-user-doc -->
408
   * @generated
409
   */
410
  public void setLow(BigDecimal newLow)
411
  {
412
    BigDecimal oldLow = low;
413
    low = newLow;
414
    if (eNotificationRequired())
415
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__LOW, oldLow, low));
416
  }
417
418
  /**
419
   * <!-- begin-user-doc -->
420
   * <!-- end-user-doc -->
421
   * @generated
422
   */
423
  public double getVolume()
424
  {
425
    return volume;
426
  }
427
428
  /**
429
   * <!-- begin-user-doc -->
430
   * <!-- end-user-doc -->
431
   * @generated
432
   */
433
  public void setVolume(double newVolume)
434
  {
435
    double oldVolume = volume;
436
    volume = newVolume;
437
    boolean oldVolumeESet = volumeESet;
438
    volumeESet = true;
439
    if (eNotificationRequired())
440
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__VOLUME, oldVolume, volume, !oldVolumeESet));
441
  }
442
443
  /**
444
   * <!-- begin-user-doc -->
445
   * <!-- end-user-doc -->
446
   * @generated
447
   */
448
  public void unsetVolume()
449
  {
450
    double oldVolume = volume;
451
    boolean oldVolumeESet = volumeESet;
452
    volume = VOLUME_EDEFAULT;
453
    volumeESet = false;
454
    if (eNotificationRequired())
455
      eNotify(new ENotificationImpl(this, Notification.UNSET, SimplePackageImpl.QUOTE__VOLUME, oldVolume, VOLUME_EDEFAULT, oldVolumeESet));
456
  }
457
458
  /**
459
   * <!-- begin-user-doc -->
460
   * <!-- end-user-doc -->
461
   * @generated
462
   */
463
  public boolean isSetVolume()
464
  {
465
    return volumeESet;
466
  }
467
468
  /**
469
   * <!-- begin-user-doc -->
470
   * <!-- end-user-doc -->
471
   * @generated
472
   */
473
  public double getChange1()
474
  {
475
    return change1;
476
  }
477
478
  /**
479
   * <!-- begin-user-doc -->
480
   * <!-- end-user-doc -->
481
   * @generated
482
   */
483
  public void setChange1(double newChange1)
484
  {
485
    double oldChange1 = change1;
486
    change1 = newChange1;
487
    boolean oldChange1ESet = change1ESet;
488
    change1ESet = true;
489
    if (eNotificationRequired())
490
      eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__CHANGE1, oldChange1, change1, !oldChange1ESet));
491
  }
492
493
  /**
494
   * <!-- begin-user-doc -->
495
   * <!-- end-user-doc -->
496
   * @generated
497
   */
498
  public void unsetChange1()
499
  {
500
    double oldChange1 = change1;
501
    boolean oldChange1ESet = change1ESet;
502
    change1 = CHANGE1_EDEFAULT;
503
    change1ESet = false;
504
    if (eNotificationRequired())
505
      eNotify(new ENotificationImpl(this, Notification.UNSET, SimplePackageImpl.QUOTE__CHANGE1, oldChange1, CHANGE1_EDEFAULT, oldChange1ESet));
506
  }
507
508
  /**
509
   * <!-- begin-user-doc -->
510
   * <!-- end-user-doc -->
511
   * @generated
512
   */
513
  public boolean isSetChange1()
514
  {
515
    return change1ESet;
516
  }
517
518
  /**
519
   * <!-- begin-user-doc -->
520
   * <!-- end-user-doc -->
521
   * @generated
522
   */
523
  public List<Quote> getQuotes()
524
  {
525
    if (quotes == null)
526
    {
527
      quotes = new EObjectContainmentEList<Quote>(Quote.class, this, SimplePackageImpl.QUOTE__QUOTES);
528
    }
529
    return quotes;
530
  }
531
532
  /**
533
   * <!-- begin-user-doc -->
534
   * <!-- end-user-doc -->
535
   * @generated
536
   */
537
  @Override
538
  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
539
  {
540
    switch (featureID)
541
    {
542
      case SimplePackageImpl.QUOTE__QUOTES:
543
        return ((InternalEList<?>)getQuotes()).basicRemove(otherEnd, msgs);
544
    }
545
    return super.eInverseRemove(otherEnd, featureID, msgs);
546
  }
547
548
  /**
549
   * <!-- begin-user-doc -->
550
   * <!-- end-user-doc -->
551
   * @generated
552
   */
553
  @Override
554
  public Object eGet(int featureID, boolean resolve, boolean coreType)
555
  {
556
    switch (featureID)
557
    {
558
      case SimplePackageImpl.QUOTE__SYMBOL:
559
        return getSymbol();
560
      case SimplePackageImpl.QUOTE__COMPANY_NAME:
561
        return getCompanyName();
562
      case SimplePackageImpl.QUOTE__PRICE:
563
        return getPrice();
564
      case SimplePackageImpl.QUOTE__OPEN1:
565
        return getOpen1();
566
      case SimplePackageImpl.QUOTE__HIGH:
567
        return getHigh();
568
      case SimplePackageImpl.QUOTE__LOW:
569
        return getLow();
570
      case SimplePackageImpl.QUOTE__VOLUME:
571
        return new Double(getVolume());
572
      case SimplePackageImpl.QUOTE__CHANGE1:
573
        return new Double(getChange1());
574
      case SimplePackageImpl.QUOTE__QUOTES:
575
        return getQuotes();
576
    }
577
    return super.eGet(featureID, resolve, coreType);
578
  }
579
580
  /**
581
   * <!-- begin-user-doc -->
582
   * <!-- end-user-doc -->
583
   * @generated
584
   */
585
  @SuppressWarnings("unchecked")
586
  @Override
587
  public void eSet(int featureID, Object newValue)
588
  {
589
    switch (featureID)
590
    {
591
      case SimplePackageImpl.QUOTE__SYMBOL:
592
        setSymbol((String)newValue);
593
        return;
594
      case SimplePackageImpl.QUOTE__COMPANY_NAME:
595
        setCompanyName((String)newValue);
596
        return;
597
      case SimplePackageImpl.QUOTE__PRICE:
598
        setPrice((BigDecimal)newValue);
599
        return;
600
      case SimplePackageImpl.QUOTE__OPEN1:
601
        setOpen1((BigDecimal)newValue);
602
        return;
603
      case SimplePackageImpl.QUOTE__HIGH:
604
        setHigh((BigDecimal)newValue);
605
        return;
606
      case SimplePackageImpl.QUOTE__LOW:
607
        setLow((BigDecimal)newValue);
608
        return;
609
      case SimplePackageImpl.QUOTE__VOLUME:
610
        setVolume(((Double)newValue).doubleValue());
611
        return;
612
      case SimplePackageImpl.QUOTE__CHANGE1:
613
        setChange1(((Double)newValue).doubleValue());
614
        return;
615
      case SimplePackageImpl.QUOTE__QUOTES:
616
        getQuotes().clear();
617
        getQuotes().addAll((Collection<? extends Quote>)newValue);
618
        return;
619
    }
620
    super.eSet(featureID, newValue);
621
  }
622
623
  /**
624
   * <!-- begin-user-doc -->
625
   * <!-- end-user-doc -->
626
   * @generated
627
   */
628
  @Override
629
  public void eUnset(int featureID)
630
  {
631
    switch (featureID)
632
    {
633
      case SimplePackageImpl.QUOTE__SYMBOL:
634
        setSymbol(SYMBOL_EDEFAULT);
635
        return;
636
      case SimplePackageImpl.QUOTE__COMPANY_NAME:
637
        setCompanyName(COMPANY_NAME_EDEFAULT);
638
        return;
639
      case SimplePackageImpl.QUOTE__PRICE:
640
        setPrice(PRICE_EDEFAULT);
641
        return;
642
      case SimplePackageImpl.QUOTE__OPEN1:
643
        setOpen1(OPEN1_EDEFAULT);
644
        return;
645
      case SimplePackageImpl.QUOTE__HIGH:
646
        setHigh(HIGH_EDEFAULT);
647
        return;
648
      case SimplePackageImpl.QUOTE__LOW:
649
        setLow(LOW_EDEFAULT);
650
        return;
651
      case SimplePackageImpl.QUOTE__VOLUME:
652
        unsetVolume();
653
        return;
654
      case SimplePackageImpl.QUOTE__CHANGE1:
655
        unsetChange1();
656
        return;
657
      case SimplePackageImpl.QUOTE__QUOTES:
658
        getQuotes().clear();
659
        return;
660
    }
661
    super.eUnset(featureID);
662
  }
663
664
  /**
665
   * <!-- begin-user-doc -->
666
   * <!-- end-user-doc -->
667
   * @generated
668
   */
669
  @Override
670
  public boolean eIsSet(int featureID)
671
  {
672
    switch (featureID)
673
    {
674
      case SimplePackageImpl.QUOTE__SYMBOL:
675
        return SYMBOL_EDEFAULT == null ? symbol != null : !SYMBOL_EDEFAULT.equals(symbol);
676
      case SimplePackageImpl.QUOTE__COMPANY_NAME:
677
        return COMPANY_NAME_EDEFAULT == null ? companyName != null : !COMPANY_NAME_EDEFAULT.equals(companyName);
678
      case SimplePackageImpl.QUOTE__PRICE:
679
        return PRICE_EDEFAULT == null ? price != null : !PRICE_EDEFAULT.equals(price);
680
      case SimplePackageImpl.QUOTE__OPEN1:
681
        return OPEN1_EDEFAULT == null ? open1 != null : !OPEN1_EDEFAULT.equals(open1);
682
      case SimplePackageImpl.QUOTE__HIGH:
683
        return HIGH_EDEFAULT == null ? high != null : !HIGH_EDEFAULT.equals(high);
684
      case SimplePackageImpl.QUOTE__LOW:
685
        return LOW_EDEFAULT == null ? low != null : !LOW_EDEFAULT.equals(low);
686
      case SimplePackageImpl.QUOTE__VOLUME:
687
        return isSetVolume();
688
      case SimplePackageImpl.QUOTE__CHANGE1:
689
        return isSetChange1();
690
      case SimplePackageImpl.QUOTE__QUOTES:
691
        return quotes != null && !quotes.isEmpty();
692
    }
693
    return super.eIsSet(featureID);
694
  }
695
696
  /**
697
   * <!-- begin-user-doc -->
698
   * <!-- end-user-doc -->
699
   * @generated
700
   */
701
  @Override
702
  public String toString()
703
  {
704
    if (eIsProxy()) return super.toString();
705
706
    StringBuffer result = new StringBuffer(super.toString());
707
    result.append(" (symbol: ");
708
    result.append(symbol);
709
    result.append(", companyName: ");
710
    result.append(companyName);
711
    result.append(", price: ");
712
    result.append(price);
713
    result.append(", open1: ");
714
    result.append(open1);
715
    result.append(", high: ");
716
    result.append(high);
717
    result.append(", low: ");
718
    result.append(low);
719
    result.append(", volume: ");
720
    if (volumeESet) result.append(volume); else result.append("<unset>");
721
    result.append(", change1: ");
722
    if (change1ESet) result.append(change1); else result.append("<unset>");
723
    result.append(')');
724
    return result.toString();
725
  }
726
727
} //QuoteImpl
(-)models/sdo.Types/types.xsd (-77 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema 
3
  targetNamespace="http:///org.eclipse.emf.test.models/types"
4
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
5
  xmlns:types="http:///org.eclipse.emf.test.models/types"
6
  xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"> 
7
8
	<xsd:simpleType name="myChar" ecore:instanceClass="char">
9
	    <xsd:restriction base="xsd:string">
10
	    </xsd:restriction>
11
	</xsd:simpleType>
12
	
13
	<xsd:simpleType name="myDate" ecore:instanceClass="java.util.Date">
14
	    <xsd:restriction base="xsd:string">
15
	    </xsd:restriction>
16
	</xsd:simpleType>
17
18
	<xsd:simpleType name="myBytes" ecore:instanceClass="byte[]">
19
	    <xsd:restriction base="xsd:string">
20
	    </xsd:restriction>
21
	</xsd:simpleType>
22
23
	<xsd:simpleType name="myNumber" ecore:instanceClass="java.lang.Number">
24
	    <xsd:restriction base="xsd:string">
25
	    </xsd:restriction>
26
	</xsd:simpleType>
27
28
	<xsd:simpleType name="myObject" ecore:instanceClass="java.lang.Object">
29
	    <xsd:restriction base="xsd:string">
30
	    </xsd:restriction>
31
	</xsd:simpleType>
32
33
	<xsd:simpleType name="myThread" ecore:instanceClass="java.lang.Thread">
34
	    <xsd:restriction base="xsd:string">
35
	    </xsd:restriction>
36
	</xsd:simpleType>
37
38
   <xsd:complexType name="AThing">
39
       <xsd:sequence>
40
          <xsd:element name="aBoolean" type="xsd:boolean"/>
41
          <xsd:element name="aByte" type="xsd:byte"/>
42
          <xsd:element name="aDecimal" type="xsd:decimal"/>
43
          <xsd:element name="aFloat" type="xsd:float"/>
44
          <xsd:element name="aDouble" type="xsd:double"/>
45
          <xsd:element name="aInt" type="xsd:int"/>
46
          <xsd:element name="aInteger" type="xsd:integer"/>
47
          <xsd:element name="aLong" type="xsd:long"/>
48
          <xsd:element name="aShort" type="xsd:short"/>
49
          <xsd:element name="aString" type="xsd:string"/>
50
51
          <xsd:element name="aChar" type="types:myChar"/>
52
          <xsd:element name="aDate" type="types:myDate"/>
53
          <xsd:element name="aBytes" type="types:myBytes"/>
54
55
          <xsd:element name="aNumber" type="types:myNumber"/>
56
          <xsd:element name="aObject" type="types:myObject"/>
57
          <xsd:element name="aThread" type="types:myThread"/>
58
          
59
          <xsd:element name="manyBoolean" type="xsd:boolean" maxOccurs="unbounded"/>
60
          <xsd:element name="manyByte" type="xsd:byte" maxOccurs="unbounded"/>
61
          <xsd:element name="manyDecimal" type="xsd:decimal" maxOccurs="unbounded"/>
62
          <xsd:element name="manyFloat" type="xsd:float" maxOccurs="unbounded"/>
63
          <xsd:element name="manyDouble" type="xsd:double" maxOccurs="unbounded"/>
64
          <xsd:element name="manyInt" type="xsd:int" maxOccurs="unbounded"/>
65
          <xsd:element name="manyInteger" type="xsd:integer" maxOccurs="unbounded"/>
66
          <xsd:element name="manyLong" type="xsd:long" maxOccurs="unbounded"/>
67
          <xsd:element name="manyShort" type="xsd:short" maxOccurs="unbounded"/>
68
          <xsd:element name="manyString" type="xsd:string" maxOccurs="unbounded"/>
69
          <xsd:element name="manyChar" type="types:myChar" maxOccurs="unbounded"/>
70
          <xsd:element name="manyDate" type="types:myDate" maxOccurs="unbounded"/>
71
          <xsd:element name="manyBytes" type="types:myBytes" maxOccurs="unbounded"/>
72
          <xsd:element name="manyNumber" type="types:myNumber" maxOccurs="unbounded"/>
73
          <xsd:element name="manyObject" type="types:myObject" maxOccurs="unbounded"/>
74
          <xsd:element name="manyThread" type="types:myThread" maxOccurs="unbounded"/>
75
       </xsd:sequence>
76
   </xsd:complexType>
77
</xsd:schema>
(-)models/sdo.Types/types.ecore (-272 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ecore:EPackage xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="types"
5
    nsURI="http:///org.eclipse.emf.test.models/types" nsPrefix="types">
6
  <eClassifiers xsi:type="ecore:EClass" name="AThing">
7
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
8
      <details key="name" value="AThing"/>
9
      <details key="kind" value="elementOnly"/>
10
    </eAnnotations>
11
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aBoolean" lowerBound="1"
12
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
13
        unsettable="true">
14
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
15
        <details key="kind" value="element"/>
16
        <details key="name" value="aBoolean"/>
17
      </eAnnotations>
18
    </eStructuralFeatures>
19
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aByte" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Byte"
20
        unsettable="true">
21
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
22
        <details key="kind" value="element"/>
23
        <details key="name" value="aByte"/>
24
      </eAnnotations>
25
    </eStructuralFeatures>
26
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDecimal" lowerBound="1"
27
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
28
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
29
        <details key="kind" value="element"/>
30
        <details key="name" value="aDecimal"/>
31
      </eAnnotations>
32
    </eStructuralFeatures>
33
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aFloat" lowerBound="1"
34
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true">
35
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
36
        <details key="kind" value="element"/>
37
        <details key="name" value="aFloat"/>
38
      </eAnnotations>
39
    </eStructuralFeatures>
40
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDouble" lowerBound="1"
41
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true">
42
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
43
        <details key="kind" value="element"/>
44
        <details key="name" value="aDouble"/>
45
      </eAnnotations>
46
    </eStructuralFeatures>
47
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aInt" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
48
        unsettable="true">
49
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
50
        <details key="kind" value="element"/>
51
        <details key="name" value="aInt"/>
52
      </eAnnotations>
53
    </eStructuralFeatures>
54
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aInteger" lowerBound="1"
55
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer">
56
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
57
        <details key="kind" value="element"/>
58
        <details key="name" value="aInteger"/>
59
      </eAnnotations>
60
    </eStructuralFeatures>
61
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aLong" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
62
        unsettable="true">
63
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
64
        <details key="kind" value="element"/>
65
        <details key="name" value="aLong"/>
66
      </eAnnotations>
67
    </eStructuralFeatures>
68
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aShort" lowerBound="1"
69
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Short" unsettable="true">
70
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
71
        <details key="kind" value="element"/>
72
        <details key="name" value="aShort"/>
73
      </eAnnotations>
74
    </eStructuralFeatures>
75
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aString" lowerBound="1"
76
        eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
77
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
78
        <details key="kind" value="element"/>
79
        <details key="name" value="aString"/>
80
      </eAnnotations>
81
    </eStructuralFeatures>
82
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aChar" lowerBound="1" eType="#//MyChar"
83
        unsettable="true">
84
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
85
        <details key="kind" value="element"/>
86
        <details key="name" value="aChar"/>
87
      </eAnnotations>
88
    </eStructuralFeatures>
89
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDate" lowerBound="1" eType="#//MyDate">
90
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
91
        <details key="kind" value="element"/>
92
        <details key="name" value="aDate"/>
93
      </eAnnotations>
94
    </eStructuralFeatures>
95
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aBytes" lowerBound="1"
96
        eType="#//MyBytes">
97
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
98
        <details key="kind" value="element"/>
99
        <details key="name" value="aBytes"/>
100
      </eAnnotations>
101
    </eStructuralFeatures>
102
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aNumber" lowerBound="1"
103
        eType="#//MyNumber">
104
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
105
        <details key="kind" value="element"/>
106
        <details key="name" value="aNumber"/>
107
      </eAnnotations>
108
    </eStructuralFeatures>
109
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aObject" lowerBound="1"
110
        eType="#//MyObject">
111
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
112
        <details key="kind" value="element"/>
113
        <details key="name" value="aObject"/>
114
      </eAnnotations>
115
    </eStructuralFeatures>
116
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="aThread" lowerBound="1"
117
        eType="#//MyThread">
118
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
119
        <details key="kind" value="element"/>
120
        <details key="name" value="aThread"/>
121
      </eAnnotations>
122
    </eStructuralFeatures>
123
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyBoolean" unique="false"
124
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean">
125
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
126
        <details key="kind" value="element"/>
127
        <details key="name" value="manyBoolean"/>
128
      </eAnnotations>
129
    </eStructuralFeatures>
130
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyByte" unique="false"
131
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Byte">
132
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
133
        <details key="kind" value="element"/>
134
        <details key="name" value="manyByte"/>
135
      </eAnnotations>
136
    </eStructuralFeatures>
137
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDecimal" unique="false"
138
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal">
139
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
140
        <details key="kind" value="element"/>
141
        <details key="name" value="manyDecimal"/>
142
      </eAnnotations>
143
    </eStructuralFeatures>
144
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyFloat" unique="false"
145
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float">
146
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
147
        <details key="kind" value="element"/>
148
        <details key="name" value="manyFloat"/>
149
      </eAnnotations>
150
    </eStructuralFeatures>
151
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDouble" unique="false"
152
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double">
153
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
154
        <details key="kind" value="element"/>
155
        <details key="name" value="manyDouble"/>
156
      </eAnnotations>
157
    </eStructuralFeatures>
158
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyInt" unique="false"
159
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int">
160
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
161
        <details key="kind" value="element"/>
162
        <details key="name" value="manyInt"/>
163
      </eAnnotations>
164
    </eStructuralFeatures>
165
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyInteger" unique="false"
166
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer">
167
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
168
        <details key="kind" value="element"/>
169
        <details key="name" value="manyInteger"/>
170
      </eAnnotations>
171
    </eStructuralFeatures>
172
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyLong" unique="false"
173
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long">
174
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
175
        <details key="kind" value="element"/>
176
        <details key="name" value="manyLong"/>
177
      </eAnnotations>
178
    </eStructuralFeatures>
179
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyShort" unique="false"
180
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Short">
181
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
182
        <details key="kind" value="element"/>
183
        <details key="name" value="manyShort"/>
184
      </eAnnotations>
185
    </eStructuralFeatures>
186
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyString" unique="false"
187
        lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
188
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
189
        <details key="kind" value="element"/>
190
        <details key="name" value="manyString"/>
191
      </eAnnotations>
192
    </eStructuralFeatures>
193
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyChar" unique="false"
194
        lowerBound="1" upperBound="-1" eType="#//MyChar">
195
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
196
        <details key="kind" value="element"/>
197
        <details key="name" value="manyChar"/>
198
      </eAnnotations>
199
    </eStructuralFeatures>
200
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDate" unique="false"
201
        lowerBound="1" upperBound="-1" eType="#//MyDate">
202
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
203
        <details key="kind" value="element"/>
204
        <details key="name" value="manyDate"/>
205
      </eAnnotations>
206
    </eStructuralFeatures>
207
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyBytes" unique="false"
208
        lowerBound="1" upperBound="-1" eType="#//MyBytes">
209
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
210
        <details key="kind" value="element"/>
211
        <details key="name" value="manyBytes"/>
212
      </eAnnotations>
213
    </eStructuralFeatures>
214
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyNumber" unique="false"
215
        lowerBound="1" upperBound="-1" eType="#//MyNumber">
216
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
217
        <details key="kind" value="element"/>
218
        <details key="name" value="manyNumber"/>
219
      </eAnnotations>
220
    </eStructuralFeatures>
221
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyObject" unique="false"
222
        lowerBound="1" upperBound="-1" eType="#//MyObject">
223
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
224
        <details key="kind" value="element"/>
225
        <details key="name" value="manyObject"/>
226
      </eAnnotations>
227
    </eStructuralFeatures>
228
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyThread" unique="false"
229
        lowerBound="1" upperBound="-1" eType="#//MyThread">
230
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
231
        <details key="kind" value="element"/>
232
        <details key="name" value="manyThread"/>
233
      </eAnnotations>
234
    </eStructuralFeatures>
235
  </eClassifiers>
236
  <eClassifiers xsi:type="ecore:EDataType" name="MyBytes" instanceClassName="byte[]">
237
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
238
      <details key="name" value="myBytes"/>
239
    </eAnnotations>
240
  </eClassifiers>
241
  <eClassifiers xsi:type="ecore:EDataType" name="MyChar" instanceClassName="char">
242
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
243
      <details key="name" value="myChar"/>
244
    </eAnnotations>
245
  </eClassifiers>
246
  <eClassifiers xsi:type="ecore:EDataType" name="MyCharObject" instanceClassName="java.lang.Character">
247
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
248
      <details key="name" value="myChar:Object"/>
249
      <details key="baseType" value="myChar"/>
250
    </eAnnotations>
251
  </eClassifiers>
252
  <eClassifiers xsi:type="ecore:EDataType" name="MyDate" instanceClassName="java.util.Date">
253
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
254
      <details key="name" value="myDate"/>
255
    </eAnnotations>
256
  </eClassifiers>
257
  <eClassifiers xsi:type="ecore:EDataType" name="MyNumber" instanceClassName="java.lang.Number">
258
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
259
      <details key="name" value="myNumber"/>
260
    </eAnnotations>
261
  </eClassifiers>
262
  <eClassifiers xsi:type="ecore:EDataType" name="MyObject" instanceClassName="java.lang.Object">
263
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
264
      <details key="name" value="myObject"/>
265
    </eAnnotations>
266
  </eClassifiers>
267
  <eClassifiers xsi:type="ecore:EDataType" name="MyThread" instanceClassName="java.lang.Thread">
268
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
269
      <details key="name" value="myThread"/>
270
    </eAnnotations>
271
  </eClassifiers>
272
</ecore:EPackage>
(-)models/sdo.Types/types.genmodel (-59 lines)
Removed Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<genmodel:GenModel xmi:version="2.0"
3
    xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src"
5
    editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models"
6
    modelName="Types" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl"
7
    rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true"
8
    suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence"
9
    featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory=""
10
    importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
11
  <foreignModel>types.xsd</foreignModel>
12
  <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages>
13
  <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables>
14
  <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables>
15
  <genPackages prefix="Types" basePackage="org.eclipse.emf.test.models" resource="XML"
16
      disposableProviderFactory="true" ecorePackage="types.ecore#/">
17
    <genDataTypes ecoreDataType="types.ecore#//MyBytes"/>
18
    <genDataTypes ecoreDataType="types.ecore#//MyChar"/>
19
    <genDataTypes ecoreDataType="types.ecore#//MyCharObject"/>
20
    <genDataTypes ecoreDataType="types.ecore#//MyDate"/>
21
    <genDataTypes ecoreDataType="types.ecore#//MyNumber"/>
22
    <genDataTypes ecoreDataType="types.ecore#//MyObject"/>
23
    <genDataTypes ecoreDataType="types.ecore#//MyThread"/>
24
    <genClasses ecoreClass="types.ecore#//AThing">
25
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aBoolean"/>
26
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aByte"/>
27
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDecimal"/>
28
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aFloat"/>
29
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDouble"/>
30
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aInt"/>
31
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aInteger"/>
32
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aLong"/>
33
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aShort"/>
34
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aString"/>
35
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aChar"/>
36
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDate"/>
37
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aBytes"/>
38
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aNumber"/>
39
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aObject"/>
40
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aThread"/>
41
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyBoolean"/>
42
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyByte"/>
43
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDecimal"/>
44
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyFloat"/>
45
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDouble"/>
46
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyInt"/>
47
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyInteger"/>
48
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyLong"/>
49
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyShort"/>
50
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyString"/>
51
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyChar"/>
52
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDate"/>
53
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyBytes"/>
54
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyNumber"/>
55
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyObject"/>
56
      <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyThread"/>
57
    </genClasses>
58
  </genPackages>
59
</genmodel:GenModel>
(-)src/org/eclipse/emf/test/models/sdo/simple/SimpleFactory.java (-46 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: SimpleFactory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface SimpleFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  SimpleFactory INSTANCE = org.eclipse.emf.test.models.sdo.simple.impl.SimpleFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>Quote</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>Quote</em>'.
42
   * @generated
43
   */
44
  Quote createQuote();
45
46
} //SimpleFactory
(-)src/org/eclipse/emf/test/models/sdo/simple/Quote.java (-326 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: Quote.java,v 1.4 2007/06/15 21:22:17 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.sdo.simple;
18
19
import java.math.BigDecimal;
20
21
import java.util.List;
22
23
/**
24
 * <!-- begin-user-doc -->
25
 * A representation of the model object '<em><b>Quote</b></em>'.
26
 * <!-- end-user-doc -->
27
 *
28
 * <p>
29
 * The following features are supported:
30
 * <ul>
31
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}</li>
32
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}</li>
33
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes <em>Quotes</em>}</li>
40
 * </ul>
41
 * </p>
42
 *
43
 * @model extendedMetaData="name='Quote' kind='elementOnly'"
44
 * @generated
45
 */
46
public interface Quote
47
{
48
  /**
49
   * Returns the value of the '<em><b>Symbol</b></em>' attribute.
50
   * <!-- begin-user-doc -->
51
   * <p>
52
   * If the meaning of the '<em>Symbol</em>' attribute isn't clear,
53
   * there really should be more of a description here...
54
   * </p>
55
   * <!-- end-user-doc -->
56
   * @return the value of the '<em>Symbol</em>' attribute.
57
   * @see #setSymbol(String)
58
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
59
   *        extendedMetaData="kind='element' name='symbol'"
60
   * @generated
61
   */
62
  String getSymbol();
63
64
  /**
65
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}' attribute.
66
   * <!-- begin-user-doc -->
67
   * <!-- end-user-doc -->
68
   * @param value the new value of the '<em>Symbol</em>' attribute.
69
   * @see #getSymbol()
70
   * @generated
71
   */
72
  void setSymbol(String value);
73
74
  /**
75
   * Returns the value of the '<em><b>Company Name</b></em>' attribute.
76
   * <!-- begin-user-doc -->
77
   * <p>
78
   * If the meaning of the '<em>Company Name</em>' attribute isn't clear,
79
   * there really should be more of a description here...
80
   * </p>
81
   * <!-- end-user-doc -->
82
   * @return the value of the '<em>Company Name</em>' attribute.
83
   * @see #setCompanyName(String)
84
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
85
   *        extendedMetaData="kind='element' name='companyName'"
86
   * @generated
87
   */
88
  String getCompanyName();
89
90
  /**
91
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}' attribute.
92
   * <!-- begin-user-doc -->
93
   * <!-- end-user-doc -->
94
   * @param value the new value of the '<em>Company Name</em>' attribute.
95
   * @see #getCompanyName()
96
   * @generated
97
   */
98
  void setCompanyName(String value);
99
100
  /**
101
   * Returns the value of the '<em><b>Price</b></em>' attribute.
102
   * <!-- begin-user-doc -->
103
   * <p>
104
   * If the meaning of the '<em>Price</em>' attribute isn't clear,
105
   * there really should be more of a description here...
106
   * </p>
107
   * <!-- end-user-doc -->
108
   * @return the value of the '<em>Price</em>' attribute.
109
   * @see #setPrice(BigDecimal)
110
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
111
   *        extendedMetaData="kind='element' name='price'"
112
   * @generated
113
   */
114
  BigDecimal getPrice();
115
116
  /**
117
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}' attribute.
118
   * <!-- begin-user-doc -->
119
   * <!-- end-user-doc -->
120
   * @param value the new value of the '<em>Price</em>' attribute.
121
   * @see #getPrice()
122
   * @generated
123
   */
124
  void setPrice(BigDecimal value);
125
126
  /**
127
   * Returns the value of the '<em><b>Open1</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <p>
130
   * If the meaning of the '<em>Open1</em>' attribute isn't clear,
131
   * there really should be more of a description here...
132
   * </p>
133
   * <!-- end-user-doc -->
134
   * @return the value of the '<em>Open1</em>' attribute.
135
   * @see #setOpen1(BigDecimal)
136
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
137
   *        extendedMetaData="kind='element' name='open1'"
138
   * @generated
139
   */
140
  BigDecimal getOpen1();
141
142
  /**
143
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}' attribute.
144
   * <!-- begin-user-doc -->
145
   * <!-- end-user-doc -->
146
   * @param value the new value of the '<em>Open1</em>' attribute.
147
   * @see #getOpen1()
148
   * @generated
149
   */
150
  void setOpen1(BigDecimal value);
151
152
  /**
153
   * Returns the value of the '<em><b>High</b></em>' attribute.
154
   * <!-- begin-user-doc -->
155
   * <p>
156
   * If the meaning of the '<em>High</em>' attribute isn't clear,
157
   * there really should be more of a description here...
158
   * </p>
159
   * <!-- end-user-doc -->
160
   * @return the value of the '<em>High</em>' attribute.
161
   * @see #setHigh(BigDecimal)
162
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
163
   *        extendedMetaData="kind='element' name='high'"
164
   * @generated
165
   */
166
  BigDecimal getHigh();
167
168
  /**
169
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}' attribute.
170
   * <!-- begin-user-doc -->
171
   * <!-- end-user-doc -->
172
   * @param value the new value of the '<em>High</em>' attribute.
173
   * @see #getHigh()
174
   * @generated
175
   */
176
  void setHigh(BigDecimal value);
177
178
  /**
179
   * Returns the value of the '<em><b>Low</b></em>' attribute.
180
   * <!-- begin-user-doc -->
181
   * <p>
182
   * If the meaning of the '<em>Low</em>' attribute isn't clear,
183
   * there really should be more of a description here...
184
   * </p>
185
   * <!-- end-user-doc -->
186
   * @return the value of the '<em>Low</em>' attribute.
187
   * @see #setLow(BigDecimal)
188
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
189
   *        extendedMetaData="kind='element' name='low'"
190
   * @generated
191
   */
192
  BigDecimal getLow();
193
194
  /**
195
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}' attribute.
196
   * <!-- begin-user-doc -->
197
   * <!-- end-user-doc -->
198
   * @param value the new value of the '<em>Low</em>' attribute.
199
   * @see #getLow()
200
   * @generated
201
   */
202
  void setLow(BigDecimal value);
203
204
  /**
205
   * Returns the value of the '<em><b>Volume</b></em>' attribute.
206
   * <!-- begin-user-doc -->
207
   * <p>
208
   * If the meaning of the '<em>Volume</em>' attribute isn't clear,
209
   * there really should be more of a description here...
210
   * </p>
211
   * <!-- end-user-doc -->
212
   * @return the value of the '<em>Volume</em>' attribute.
213
   * @see #isSetVolume()
214
   * @see #unsetVolume()
215
   * @see #setVolume(double)
216
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true"
217
   *        extendedMetaData="kind='element' name='volume'"
218
   * @generated
219
   */
220
  double getVolume();
221
222
  /**
223
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute.
224
   * <!-- begin-user-doc -->
225
   * <!-- end-user-doc -->
226
   * @param value the new value of the '<em>Volume</em>' attribute.
227
   * @see #isSetVolume()
228
   * @see #unsetVolume()
229
   * @see #getVolume()
230
   * @generated
231
   */
232
  void setVolume(double value);
233
234
  /**
235
   * Unsets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute.
236
   * <!-- begin-user-doc -->
237
   * <!-- end-user-doc -->
238
   * @see #isSetVolume()
239
   * @see #getVolume()
240
   * @see #setVolume(double)
241
   * @generated
242
   */
243
  void unsetVolume();
244
245
  /**
246
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute is set.
247
   * <!-- begin-user-doc -->
248
   * <!-- end-user-doc -->
249
   * @return whether the value of the '<em>Volume</em>' attribute is set.
250
   * @see #unsetVolume()
251
   * @see #getVolume()
252
   * @see #setVolume(double)
253
   * @generated
254
   */
255
  boolean isSetVolume();
256
257
  /**
258
   * Returns the value of the '<em><b>Change1</b></em>' attribute.
259
   * <!-- begin-user-doc -->
260
   * <p>
261
   * If the meaning of the '<em>Change1</em>' attribute isn't clear,
262
   * there really should be more of a description here...
263
   * </p>
264
   * <!-- end-user-doc -->
265
   * @return the value of the '<em>Change1</em>' attribute.
266
   * @see #isSetChange1()
267
   * @see #unsetChange1()
268
   * @see #setChange1(double)
269
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true"
270
   *        extendedMetaData="kind='element' name='change1'"
271
   * @generated
272
   */
273
  double getChange1();
274
275
  /**
276
   * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute.
277
   * <!-- begin-user-doc -->
278
   * <!-- end-user-doc -->
279
   * @param value the new value of the '<em>Change1</em>' attribute.
280
   * @see #isSetChange1()
281
   * @see #unsetChange1()
282
   * @see #getChange1()
283
   * @generated
284
   */
285
  void setChange1(double value);
286
287
  /**
288
   * Unsets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute.
289
   * <!-- begin-user-doc -->
290
   * <!-- end-user-doc -->
291
   * @see #isSetChange1()
292
   * @see #getChange1()
293
   * @see #setChange1(double)
294
   * @generated
295
   */
296
  void unsetChange1();
297
298
  /**
299
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute is set.
300
   * <!-- begin-user-doc -->
301
   * <!-- end-user-doc -->
302
   * @return whether the value of the '<em>Change1</em>' attribute is set.
303
   * @see #unsetChange1()
304
   * @see #getChange1()
305
   * @see #setChange1(double)
306
   * @generated
307
   */
308
  boolean isSetChange1();
309
310
  /**
311
   * Returns the value of the '<em><b>Quotes</b></em>' containment reference list.
312
   * The list contents are of type {@link org.eclipse.emf.test.models.sdo.simple.Quote}.
313
   * <!-- begin-user-doc -->
314
   * <p>
315
   * If the meaning of the '<em>Quotes</em>' containment reference list isn't clear,
316
   * there really should be more of a description here...
317
   * </p>
318
   * <!-- end-user-doc -->
319
   * @return the value of the '<em>Quotes</em>' containment reference list.
320
   * @model containment="true"
321
   *        extendedMetaData="kind='element' name='quotes'"
322
   * @generated
323
   */
324
  List<Quote> getQuotes();
325
326
} // Quote
(-)src/org/eclipse/emf/test/models/types/AThing.java (-961 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: AThing.java,v 1.5 2007/06/15 21:22:18 emerks Exp $
16
 */
17
package org.eclipse.emf.test.models.types;
18
19
import java.math.BigDecimal;
20
import java.math.BigInteger;
21
22
import java.util.Date;
23
import java.util.List;
24
25
/**
26
 * <!-- begin-user-doc -->
27
 * A representation of the model object '<em><b>AThing</b></em>'.
28
 * <!-- end-user-doc -->
29
 *
30
 * <p>
31
 * The following features are supported:
32
 * <ul>
33
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}</li>
34
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}</li>
35
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}</li>
36
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}</li>
37
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}</li>
38
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}</li>
39
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}</li>
40
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}</li>
41
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}</li>
42
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}</li>
43
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}</li>
44
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}</li>
45
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}</li>
46
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}</li>
47
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}</li>
48
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}</li>
49
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyBoolean <em>Many Boolean</em>}</li>
50
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyByte <em>Many Byte</em>}</li>
51
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDecimal <em>Many Decimal</em>}</li>
52
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyFloat <em>Many Float</em>}</li>
53
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDouble <em>Many Double</em>}</li>
54
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyInt <em>Many Int</em>}</li>
55
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyInteger <em>Many Integer</em>}</li>
56
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyLong <em>Many Long</em>}</li>
57
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyShort <em>Many Short</em>}</li>
58
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyString <em>Many String</em>}</li>
59
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyChar <em>Many Char</em>}</li>
60
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDate <em>Many Date</em>}</li>
61
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyBytes <em>Many Bytes</em>}</li>
62
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyNumber <em>Many Number</em>}</li>
63
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyObject <em>Many Object</em>}</li>
64
 *   <li>{@link org.eclipse.emf.test.models.types.AThing#getManyThread <em>Many Thread</em>}</li>
65
 * </ul>
66
 * </p>
67
 *
68
 * @model extendedMetaData="name='AThing' kind='elementOnly'"
69
 * @generated
70
 */
71
public interface AThing
72
{
73
  /**
74
   * Returns the value of the '<em><b>ABoolean</b></em>' attribute.
75
   * <!-- begin-user-doc -->
76
   * <p>
77
   * If the meaning of the '<em>ABoolean</em>' attribute isn't clear,
78
   * there really should be more of a description here...
79
   * </p>
80
   * <!-- end-user-doc -->
81
   * @return the value of the '<em>ABoolean</em>' attribute.
82
   * @see #isSetABoolean()
83
   * @see #unsetABoolean()
84
   * @see #setABoolean(boolean)
85
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" required="true"
86
   *        extendedMetaData="kind='element' name='aBoolean'"
87
   * @generated
88
   */
89
  boolean isABoolean();
90
91
  /**
92
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute.
93
   * <!-- begin-user-doc -->
94
   * <!-- end-user-doc -->
95
   * @param value the new value of the '<em>ABoolean</em>' attribute.
96
   * @see #isSetABoolean()
97
   * @see #unsetABoolean()
98
   * @see #isABoolean()
99
   * @generated
100
   */
101
  void setABoolean(boolean value);
102
103
  /**
104
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute.
105
   * <!-- begin-user-doc -->
106
   * <!-- end-user-doc -->
107
   * @see #isSetABoolean()
108
   * @see #isABoolean()
109
   * @see #setABoolean(boolean)
110
   * @generated
111
   */
112
  void unsetABoolean();
113
114
  /**
115
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute is set.
116
   * <!-- begin-user-doc -->
117
   * <!-- end-user-doc -->
118
   * @return whether the value of the '<em>ABoolean</em>' attribute is set.
119
   * @see #unsetABoolean()
120
   * @see #isABoolean()
121
   * @see #setABoolean(boolean)
122
   * @generated
123
   */
124
  boolean isSetABoolean();
125
126
  /**
127
   * Returns the value of the '<em><b>AByte</b></em>' attribute.
128
   * <!-- begin-user-doc -->
129
   * <p>
130
   * If the meaning of the '<em>AByte</em>' attribute isn't clear,
131
   * there really should be more of a description here...
132
   * </p>
133
   * <!-- end-user-doc -->
134
   * @return the value of the '<em>AByte</em>' attribute.
135
   * @see #isSetAByte()
136
   * @see #unsetAByte()
137
   * @see #setAByte(byte)
138
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Byte" required="true"
139
   *        extendedMetaData="kind='element' name='aByte'"
140
   * @generated
141
   */
142
  byte getAByte();
143
144
  /**
145
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute.
146
   * <!-- begin-user-doc -->
147
   * <!-- end-user-doc -->
148
   * @param value the new value of the '<em>AByte</em>' attribute.
149
   * @see #isSetAByte()
150
   * @see #unsetAByte()
151
   * @see #getAByte()
152
   * @generated
153
   */
154
  void setAByte(byte value);
155
156
  /**
157
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute.
158
   * <!-- begin-user-doc -->
159
   * <!-- end-user-doc -->
160
   * @see #isSetAByte()
161
   * @see #getAByte()
162
   * @see #setAByte(byte)
163
   * @generated
164
   */
165
  void unsetAByte();
166
167
  /**
168
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute is set.
169
   * <!-- begin-user-doc -->
170
   * <!-- end-user-doc -->
171
   * @return whether the value of the '<em>AByte</em>' attribute is set.
172
   * @see #unsetAByte()
173
   * @see #getAByte()
174
   * @see #setAByte(byte)
175
   * @generated
176
   */
177
  boolean isSetAByte();
178
179
  /**
180
   * Returns the value of the '<em><b>ADecimal</b></em>' attribute.
181
   * <!-- begin-user-doc -->
182
   * <p>
183
   * If the meaning of the '<em>ADecimal</em>' attribute isn't clear,
184
   * there really should be more of a description here...
185
   * </p>
186
   * <!-- end-user-doc -->
187
   * @return the value of the '<em>ADecimal</em>' attribute.
188
   * @see #setADecimal(BigDecimal)
189
   * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
190
   *        extendedMetaData="kind='element' name='aDecimal'"
191
   * @generated
192
   */
193
  BigDecimal getADecimal();
194
195
  /**
196
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}' attribute.
197
   * <!-- begin-user-doc -->
198
   * <!-- end-user-doc -->
199
   * @param value the new value of the '<em>ADecimal</em>' attribute.
200
   * @see #getADecimal()
201
   * @generated
202
   */
203
  void setADecimal(BigDecimal value);
204
205
  /**
206
   * Returns the value of the '<em><b>AFloat</b></em>' attribute.
207
   * <!-- begin-user-doc -->
208
   * <p>
209
   * If the meaning of the '<em>AFloat</em>' attribute isn't clear,
210
   * there really should be more of a description here...
211
   * </p>
212
   * <!-- end-user-doc -->
213
   * @return the value of the '<em>AFloat</em>' attribute.
214
   * @see #isSetAFloat()
215
   * @see #unsetAFloat()
216
   * @see #setAFloat(float)
217
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Float" required="true"
218
   *        extendedMetaData="kind='element' name='aFloat'"
219
   * @generated
220
   */
221
  float getAFloat();
222
223
  /**
224
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute.
225
   * <!-- begin-user-doc -->
226
   * <!-- end-user-doc -->
227
   * @param value the new value of the '<em>AFloat</em>' attribute.
228
   * @see #isSetAFloat()
229
   * @see #unsetAFloat()
230
   * @see #getAFloat()
231
   * @generated
232
   */
233
  void setAFloat(float value);
234
235
  /**
236
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute.
237
   * <!-- begin-user-doc -->
238
   * <!-- end-user-doc -->
239
   * @see #isSetAFloat()
240
   * @see #getAFloat()
241
   * @see #setAFloat(float)
242
   * @generated
243
   */
244
  void unsetAFloat();
245
246
  /**
247
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute is set.
248
   * <!-- begin-user-doc -->
249
   * <!-- end-user-doc -->
250
   * @return whether the value of the '<em>AFloat</em>' attribute is set.
251
   * @see #unsetAFloat()
252
   * @see #getAFloat()
253
   * @see #setAFloat(float)
254
   * @generated
255
   */
256
  boolean isSetAFloat();
257
258
  /**
259
   * Returns the value of the '<em><b>ADouble</b></em>' attribute.
260
   * <!-- begin-user-doc -->
261
   * <p>
262
   * If the meaning of the '<em>ADouble</em>' attribute isn't clear,
263
   * there really should be more of a description here...
264
   * </p>
265
   * <!-- end-user-doc -->
266
   * @return the value of the '<em>ADouble</em>' attribute.
267
   * @see #isSetADouble()
268
   * @see #unsetADouble()
269
   * @see #setADouble(double)
270
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true"
271
   *        extendedMetaData="kind='element' name='aDouble'"
272
   * @generated
273
   */
274
  double getADouble();
275
276
  /**
277
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute.
278
   * <!-- begin-user-doc -->
279
   * <!-- end-user-doc -->
280
   * @param value the new value of the '<em>ADouble</em>' attribute.
281
   * @see #isSetADouble()
282
   * @see #unsetADouble()
283
   * @see #getADouble()
284
   * @generated
285
   */
286
  void setADouble(double value);
287
288
  /**
289
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute.
290
   * <!-- begin-user-doc -->
291
   * <!-- end-user-doc -->
292
   * @see #isSetADouble()
293
   * @see #getADouble()
294
   * @see #setADouble(double)
295
   * @generated
296
   */
297
  void unsetADouble();
298
299
  /**
300
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute is set.
301
   * <!-- begin-user-doc -->
302
   * <!-- end-user-doc -->
303
   * @return whether the value of the '<em>ADouble</em>' attribute is set.
304
   * @see #unsetADouble()
305
   * @see #getADouble()
306
   * @see #setADouble(double)
307
   * @generated
308
   */
309
  boolean isSetADouble();
310
311
  /**
312
   * Returns the value of the '<em><b>AInt</b></em>' attribute.
313
   * <!-- begin-user-doc -->
314
   * <p>
315
   * If the meaning of the '<em>AInt</em>' attribute isn't clear,
316
   * there really should be more of a description here...
317
   * </p>
318
   * <!-- end-user-doc -->
319
   * @return the value of the '<em>AInt</em>' attribute.
320
   * @see #isSetAInt()
321
   * @see #unsetAInt()
322
   * @see #setAInt(int)
323
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
324
   *        extendedMetaData="kind='element' name='aInt'"
325
   * @generated
326
   */
327
  int getAInt();
328
329
  /**
330
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute.
331
   * <!-- begin-user-doc -->
332
   * <!-- end-user-doc -->
333
   * @param value the new value of the '<em>AInt</em>' attribute.
334
   * @see #isSetAInt()
335
   * @see #unsetAInt()
336
   * @see #getAInt()
337
   * @generated
338
   */
339
  void setAInt(int value);
340
341
  /**
342
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute.
343
   * <!-- begin-user-doc -->
344
   * <!-- end-user-doc -->
345
   * @see #isSetAInt()
346
   * @see #getAInt()
347
   * @see #setAInt(int)
348
   * @generated
349
   */
350
  void unsetAInt();
351
352
  /**
353
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute is set.
354
   * <!-- begin-user-doc -->
355
   * <!-- end-user-doc -->
356
   * @return whether the value of the '<em>AInt</em>' attribute is set.
357
   * @see #unsetAInt()
358
   * @see #getAInt()
359
   * @see #setAInt(int)
360
   * @generated
361
   */
362
  boolean isSetAInt();
363
364
  /**
365
   * Returns the value of the '<em><b>AInteger</b></em>' attribute.
366
   * <!-- begin-user-doc -->
367
   * <p>
368
   * If the meaning of the '<em>AInteger</em>' attribute isn't clear,
369
   * there really should be more of a description here...
370
   * </p>
371
   * <!-- end-user-doc -->
372
   * @return the value of the '<em>AInteger</em>' attribute.
373
   * @see #setAInteger(BigInteger)
374
   * @model dataType="org.eclipse.emf.ecore.xml.type.Integer" required="true"
375
   *        extendedMetaData="kind='element' name='aInteger'"
376
   * @generated
377
   */
378
  BigInteger getAInteger();
379
380
  /**
381
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}' attribute.
382
   * <!-- begin-user-doc -->
383
   * <!-- end-user-doc -->
384
   * @param value the new value of the '<em>AInteger</em>' attribute.
385
   * @see #getAInteger()
386
   * @generated
387
   */
388
  void setAInteger(BigInteger value);
389
390
  /**
391
   * Returns the value of the '<em><b>ALong</b></em>' attribute.
392
   * <!-- begin-user-doc -->
393
   * <p>
394
   * If the meaning of the '<em>ALong</em>' attribute isn't clear,
395
   * there really should be more of a description here...
396
   * </p>
397
   * <!-- end-user-doc -->
398
   * @return the value of the '<em>ALong</em>' attribute.
399
   * @see #isSetALong()
400
   * @see #unsetALong()
401
   * @see #setALong(long)
402
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
403
   *        extendedMetaData="kind='element' name='aLong'"
404
   * @generated
405
   */
406
  long getALong();
407
408
  /**
409
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute.
410
   * <!-- begin-user-doc -->
411
   * <!-- end-user-doc -->
412
   * @param value the new value of the '<em>ALong</em>' attribute.
413
   * @see #isSetALong()
414
   * @see #unsetALong()
415
   * @see #getALong()
416
   * @generated
417
   */
418
  void setALong(long value);
419
420
  /**
421
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute.
422
   * <!-- begin-user-doc -->
423
   * <!-- end-user-doc -->
424
   * @see #isSetALong()
425
   * @see #getALong()
426
   * @see #setALong(long)
427
   * @generated
428
   */
429
  void unsetALong();
430
431
  /**
432
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute is set.
433
   * <!-- begin-user-doc -->
434
   * <!-- end-user-doc -->
435
   * @return whether the value of the '<em>ALong</em>' attribute is set.
436
   * @see #unsetALong()
437
   * @see #getALong()
438
   * @see #setALong(long)
439
   * @generated
440
   */
441
  boolean isSetALong();
442
443
  /**
444
   * Returns the value of the '<em><b>AShort</b></em>' attribute.
445
   * <!-- begin-user-doc -->
446
   * <p>
447
   * If the meaning of the '<em>AShort</em>' attribute isn't clear,
448
   * there really should be more of a description here...
449
   * </p>
450
   * <!-- end-user-doc -->
451
   * @return the value of the '<em>AShort</em>' attribute.
452
   * @see #isSetAShort()
453
   * @see #unsetAShort()
454
   * @see #setAShort(short)
455
   * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Short" required="true"
456
   *        extendedMetaData="kind='element' name='aShort'"
457
   * @generated
458
   */
459
  short getAShort();
460
461
  /**
462
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute.
463
   * <!-- begin-user-doc -->
464
   * <!-- end-user-doc -->
465
   * @param value the new value of the '<em>AShort</em>' attribute.
466
   * @see #isSetAShort()
467
   * @see #unsetAShort()
468
   * @see #getAShort()
469
   * @generated
470
   */
471
  void setAShort(short value);
472
473
  /**
474
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute.
475
   * <!-- begin-user-doc -->
476
   * <!-- end-user-doc -->
477
   * @see #isSetAShort()
478
   * @see #getAShort()
479
   * @see #setAShort(short)
480
   * @generated
481
   */
482
  void unsetAShort();
483
484
  /**
485
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute is set.
486
   * <!-- begin-user-doc -->
487
   * <!-- end-user-doc -->
488
   * @return whether the value of the '<em>AShort</em>' attribute is set.
489
   * @see #unsetAShort()
490
   * @see #getAShort()
491
   * @see #setAShort(short)
492
   * @generated
493
   */
494
  boolean isSetAShort();
495
496
  /**
497
   * Returns the value of the '<em><b>AString</b></em>' attribute.
498
   * <!-- begin-user-doc -->
499
   * <p>
500
   * If the meaning of the '<em>AString</em>' attribute isn't clear,
501
   * there really should be more of a description here...
502
   * </p>
503
   * <!-- end-user-doc -->
504
   * @return the value of the '<em>AString</em>' attribute.
505
   * @see #setAString(String)
506
   * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
507
   *        extendedMetaData="kind='element' name='aString'"
508
   * @generated
509
   */
510
  String getAString();
511
512
  /**
513
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}' attribute.
514
   * <!-- begin-user-doc -->
515
   * <!-- end-user-doc -->
516
   * @param value the new value of the '<em>AString</em>' attribute.
517
   * @see #getAString()
518
   * @generated
519
   */
520
  void setAString(String value);
521
522
  /**
523
   * Returns the value of the '<em><b>AChar</b></em>' attribute.
524
   * <!-- begin-user-doc -->
525
   * <p>
526
   * If the meaning of the '<em>AChar</em>' attribute isn't clear,
527
   * there really should be more of a description here...
528
   * </p>
529
   * <!-- end-user-doc -->
530
   * @return the value of the '<em>AChar</em>' attribute.
531
   * @see #isSetAChar()
532
   * @see #unsetAChar()
533
   * @see #setAChar(char)
534
   * @model unsettable="true" dataType="org.eclipse.emf.test.models.types.MyChar" required="true"
535
   *        extendedMetaData="kind='element' name='aChar'"
536
   * @generated
537
   */
538
  char getAChar();
539
540
  /**
541
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute.
542
   * <!-- begin-user-doc -->
543
   * <!-- end-user-doc -->
544
   * @param value the new value of the '<em>AChar</em>' attribute.
545
   * @see #isSetAChar()
546
   * @see #unsetAChar()
547
   * @see #getAChar()
548
   * @generated
549
   */
550
  void setAChar(char value);
551
552
  /**
553
   * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute.
554
   * <!-- begin-user-doc -->
555
   * <!-- end-user-doc -->
556
   * @see #isSetAChar()
557
   * @see #getAChar()
558
   * @see #setAChar(char)
559
   * @generated
560
   */
561
  void unsetAChar();
562
563
  /**
564
   * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute is set.
565
   * <!-- begin-user-doc -->
566
   * <!-- end-user-doc -->
567
   * @return whether the value of the '<em>AChar</em>' attribute is set.
568
   * @see #unsetAChar()
569
   * @see #getAChar()
570
   * @see #setAChar(char)
571
   * @generated
572
   */
573
  boolean isSetAChar();
574
575
  /**
576
   * Returns the value of the '<em><b>ADate</b></em>' attribute.
577
   * <!-- begin-user-doc -->
578
   * <p>
579
   * If the meaning of the '<em>ADate</em>' attribute isn't clear,
580
   * there really should be more of a description here...
581
   * </p>
582
   * <!-- end-user-doc -->
583
   * @return the value of the '<em>ADate</em>' attribute.
584
   * @see #setADate(Date)
585
   * @model dataType="org.eclipse.emf.test.models.types.MyDate" required="true"
586
   *        extendedMetaData="kind='element' name='aDate'"
587
   * @generated
588
   */
589
  Date getADate();
590
591
  /**
592
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}' attribute.
593
   * <!-- begin-user-doc -->
594
   * <!-- end-user-doc -->
595
   * @param value the new value of the '<em>ADate</em>' attribute.
596
   * @see #getADate()
597
   * @generated
598
   */
599
  void setADate(Date value);
600
601
  /**
602
   * Returns the value of the '<em><b>ABytes</b></em>' attribute.
603
   * <!-- begin-user-doc -->
604
   * <p>
605
   * If the meaning of the '<em>ABytes</em>' attribute isn't clear,
606
   * there really should be more of a description here...
607
   * </p>
608
   * <!-- end-user-doc -->
609
   * @return the value of the '<em>ABytes</em>' attribute.
610
   * @see #setABytes(byte[])
611
   * @model dataType="org.eclipse.emf.test.models.types.MyBytes" required="true"
612
   *        extendedMetaData="kind='element' name='aBytes'"
613
   * @generated
614
   */
615
  byte[] getABytes();
616
617
  /**
618
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}' attribute.
619
   * <!-- begin-user-doc -->
620
   * <!-- end-user-doc -->
621
   * @param value the new value of the '<em>ABytes</em>' attribute.
622
   * @see #getABytes()
623
   * @generated
624
   */
625
  void setABytes(byte[] value);
626
627
  /**
628
   * Returns the value of the '<em><b>ANumber</b></em>' attribute.
629
   * <!-- begin-user-doc -->
630
   * <p>
631
   * If the meaning of the '<em>ANumber</em>' attribute isn't clear,
632
   * there really should be more of a description here...
633
   * </p>
634
   * <!-- end-user-doc -->
635
   * @return the value of the '<em>ANumber</em>' attribute.
636
   * @see #setANumber(Number)
637
   * @model dataType="org.eclipse.emf.test.models.types.MyNumber" required="true"
638
   *        extendedMetaData="kind='element' name='aNumber'"
639
   * @generated
640
   */
641
  Number getANumber();
642
643
  /**
644
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}' attribute.
645
   * <!-- begin-user-doc -->
646
   * <!-- end-user-doc -->
647
   * @param value the new value of the '<em>ANumber</em>' attribute.
648
   * @see #getANumber()
649
   * @generated
650
   */
651
  void setANumber(Number value);
652
653
  /**
654
   * Returns the value of the '<em><b>AObject</b></em>' attribute.
655
   * <!-- begin-user-doc -->
656
   * <p>
657
   * If the meaning of the '<em>AObject</em>' attribute isn't clear,
658
   * there really should be more of a description here...
659
   * </p>
660
   * <!-- end-user-doc -->
661
   * @return the value of the '<em>AObject</em>' attribute.
662
   * @see #setAObject(Object)
663
   * @model dataType="org.eclipse.emf.test.models.types.MyObject" required="true"
664
   *        extendedMetaData="kind='element' name='aObject'"
665
   * @generated
666
   */
667
  Object getAObject();
668
669
  /**
670
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}' attribute.
671
   * <!-- begin-user-doc -->
672
   * <!-- end-user-doc -->
673
   * @param value the new value of the '<em>AObject</em>' attribute.
674
   * @see #getAObject()
675
   * @generated
676
   */
677
  void setAObject(Object value);
678
679
  /**
680
   * Returns the value of the '<em><b>AThread</b></em>' attribute.
681
   * <!-- begin-user-doc -->
682
   * <p>
683
   * If the meaning of the '<em>AThread</em>' attribute isn't clear,
684
   * there really should be more of a description here...
685
   * </p>
686
   * <!-- end-user-doc -->
687
   * @return the value of the '<em>AThread</em>' attribute.
688
   * @see #setAThread(Thread)
689
   * @model dataType="org.eclipse.emf.test.models.types.MyThread" required="true"
690
   *        extendedMetaData="kind='element' name='aThread'"
691
   * @generated
692
   */
693
  Thread getAThread();
694
695
  /**
696
   * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}' attribute.
697
   * <!-- begin-user-doc -->
698
   * <!-- end-user-doc -->
699
   * @param value the new value of the '<em>AThread</em>' attribute.
700
   * @see #getAThread()
701
   * @generated
702
   */
703
  void setAThread(Thread value);
704
705
  /**
706
   * Returns the value of the '<em><b>Many Boolean</b></em>' attribute list.
707
   * The list contents are of type {@link java.lang.Boolean}.
708
   * <!-- begin-user-doc -->
709
   * <p>
710
   * If the meaning of the '<em>Many Boolean</em>' attribute list isn't clear,
711
   * there really should be more of a description here...
712
   * </p>
713
   * <!-- end-user-doc -->
714
   * @return the value of the '<em>Many Boolean</em>' attribute list.
715
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Boolean" required="true"
716
   *        extendedMetaData="kind='element' name='manyBoolean'"
717
   * @generated
718
   */
719
  List<Boolean> getManyBoolean();
720
721
  /**
722
   * Returns the value of the '<em><b>Many Byte</b></em>' attribute list.
723
   * The list contents are of type {@link java.lang.Byte}.
724
   * <!-- begin-user-doc -->
725
   * <p>
726
   * If the meaning of the '<em>Many Byte</em>' attribute list isn't clear,
727
   * there really should be more of a description here...
728
   * </p>
729
   * <!-- end-user-doc -->
730
   * @return the value of the '<em>Many Byte</em>' attribute list.
731
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Byte" required="true"
732
   *        extendedMetaData="kind='element' name='manyByte'"
733
   * @generated
734
   */
735
  List<Byte> getManyByte();
736
737
  /**
738
   * Returns the value of the '<em><b>Many Decimal</b></em>' attribute list.
739
   * The list contents are of type {@link java.math.BigDecimal}.
740
   * <!-- begin-user-doc -->
741
   * <p>
742
   * If the meaning of the '<em>Many Decimal</em>' attribute list isn't clear,
743
   * there really should be more of a description here...
744
   * </p>
745
   * <!-- end-user-doc -->
746
   * @return the value of the '<em>Many Decimal</em>' attribute list.
747
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true"
748
   *        extendedMetaData="kind='element' name='manyDecimal'"
749
   * @generated
750
   */
751
  List<BigDecimal> getManyDecimal();
752
753
  /**
754
   * Returns the value of the '<em><b>Many Float</b></em>' attribute list.
755
   * The list contents are of type {@link java.lang.Float}.
756
   * <!-- begin-user-doc -->
757
   * <p>
758
   * If the meaning of the '<em>Many Float</em>' attribute list isn't clear,
759
   * there really should be more of a description here...
760
   * </p>
761
   * <!-- end-user-doc -->
762
   * @return the value of the '<em>Many Float</em>' attribute list.
763
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Float" required="true"
764
   *        extendedMetaData="kind='element' name='manyFloat'"
765
   * @generated
766
   */
767
  List<Float> getManyFloat();
768
769
  /**
770
   * Returns the value of the '<em><b>Many Double</b></em>' attribute list.
771
   * The list contents are of type {@link java.lang.Double}.
772
   * <!-- begin-user-doc -->
773
   * <p>
774
   * If the meaning of the '<em>Many Double</em>' attribute list isn't clear,
775
   * there really should be more of a description here...
776
   * </p>
777
   * <!-- end-user-doc -->
778
   * @return the value of the '<em>Many Double</em>' attribute list.
779
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true"
780
   *        extendedMetaData="kind='element' name='manyDouble'"
781
   * @generated
782
   */
783
  List<Double> getManyDouble();
784
785
  /**
786
   * Returns the value of the '<em><b>Many Int</b></em>' attribute list.
787
   * The list contents are of type {@link java.lang.Integer}.
788
   * <!-- begin-user-doc -->
789
   * <p>
790
   * If the meaning of the '<em>Many Int</em>' attribute list isn't clear,
791
   * there really should be more of a description here...
792
   * </p>
793
   * <!-- end-user-doc -->
794
   * @return the value of the '<em>Many Int</em>' attribute list.
795
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
796
   *        extendedMetaData="kind='element' name='manyInt'"
797
   * @generated
798
   */
799
  List<Integer> getManyInt();
800
801
  /**
802
   * Returns the value of the '<em><b>Many Integer</b></em>' attribute list.
803
   * The list contents are of type {@link java.math.BigInteger}.
804
   * <!-- begin-user-doc -->
805
   * <p>
806
   * If the meaning of the '<em>Many Integer</em>' attribute list isn't clear,
807
   * there really should be more of a description here...
808
   * </p>
809
   * <!-- end-user-doc -->
810
   * @return the value of the '<em>Many Integer</em>' attribute list.
811
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Integer" required="true"
812
   *        extendedMetaData="kind='element' name='manyInteger'"
813
   * @generated
814
   */
815
  List<BigInteger> getManyInteger();
816
817
  /**
818
   * Returns the value of the '<em><b>Many Long</b></em>' attribute list.
819
   * The list contents are of type {@link java.lang.Long}.
820
   * <!-- begin-user-doc -->
821
   * <p>
822
   * If the meaning of the '<em>Many Long</em>' attribute list isn't clear,
823
   * there really should be more of a description here...
824
   * </p>
825
   * <!-- end-user-doc -->
826
   * @return the value of the '<em>Many Long</em>' attribute list.
827
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
828
   *        extendedMetaData="kind='element' name='manyLong'"
829
   * @generated
830
   */
831
  List<Long> getManyLong();
832
833
  /**
834
   * Returns the value of the '<em><b>Many Short</b></em>' attribute list.
835
   * The list contents are of type {@link java.lang.Short}.
836
   * <!-- begin-user-doc -->
837
   * <p>
838
   * If the meaning of the '<em>Many Short</em>' attribute list isn't clear,
839
   * there really should be more of a description here...
840
   * </p>
841
   * <!-- end-user-doc -->
842
   * @return the value of the '<em>Many Short</em>' attribute list.
843
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Short" required="true"
844
   *        extendedMetaData="kind='element' name='manyShort'"
845
   * @generated
846
   */
847
  List<Short> getManyShort();
848
849
  /**
850
   * Returns the value of the '<em><b>Many String</b></em>' attribute list.
851
   * The list contents are of type {@link java.lang.String}.
852
   * <!-- begin-user-doc -->
853
   * <p>
854
   * If the meaning of the '<em>Many String</em>' attribute list isn't clear,
855
   * there really should be more of a description here...
856
   * </p>
857
   * <!-- end-user-doc -->
858
   * @return the value of the '<em>Many String</em>' attribute list.
859
   * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
860
   *        extendedMetaData="kind='element' name='manyString'"
861
   * @generated
862
   */
863
  List<String> getManyString();
864
865
  /**
866
   * Returns the value of the '<em><b>Many Char</b></em>' attribute list.
867
   * The list contents are of type {@link java.lang.Character}.
868
   * <!-- begin-user-doc -->
869
   * <p>
870
   * If the meaning of the '<em>Many Char</em>' attribute list isn't clear,
871
   * there really should be more of a description here...
872
   * </p>
873
   * <!-- end-user-doc -->
874
   * @return the value of the '<em>Many Char</em>' attribute list.
875
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyChar" required="true"
876
   *        extendedMetaData="kind='element' name='manyChar'"
877
   * @generated
878
   */
879
  List<Character> getManyChar();
880
881
  /**
882
   * Returns the value of the '<em><b>Many Date</b></em>' attribute list.
883
   * The list contents are of type {@link java.util.Date}.
884
   * <!-- begin-user-doc -->
885
   * <p>
886
   * If the meaning of the '<em>Many Date</em>' attribute list isn't clear,
887
   * there really should be more of a description here...
888
   * </p>
889
   * <!-- end-user-doc -->
890
   * @return the value of the '<em>Many Date</em>' attribute list.
891
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyDate" required="true"
892
   *        extendedMetaData="kind='element' name='manyDate'"
893
   * @generated
894
   */
895
  List<Date> getManyDate();
896
897
  /**
898
   * Returns the value of the '<em><b>Many Bytes</b></em>' attribute list.
899
   * The list contents are of type {@link byte}[].
900
   * <!-- begin-user-doc -->
901
   * <p>
902
   * If the meaning of the '<em>Many Bytes</em>' attribute list isn't clear,
903
   * there really should be more of a description here...
904
   * </p>
905
   * <!-- end-user-doc -->
906
   * @return the value of the '<em>Many Bytes</em>' attribute list.
907
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyBytes" required="true"
908
   *        extendedMetaData="kind='element' name='manyBytes'"
909
   * @generated
910
   */
911
  List<byte[]> getManyBytes();
912
913
  /**
914
   * Returns the value of the '<em><b>Many Number</b></em>' attribute list.
915
   * The list contents are of type {@link java.lang.Number}.
916
   * <!-- begin-user-doc -->
917
   * <p>
918
   * If the meaning of the '<em>Many Number</em>' attribute list isn't clear,
919
   * there really should be more of a description here...
920
   * </p>
921
   * <!-- end-user-doc -->
922
   * @return the value of the '<em>Many Number</em>' attribute list.
923
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyNumber" required="true"
924
   *        extendedMetaData="kind='element' name='manyNumber'"
925
   * @generated
926
   */
927
  List<Number> getManyNumber();
928
929
  /**
930
   * Returns the value of the '<em><b>Many Object</b></em>' attribute list.
931
   * The list contents are of type {@link java.lang.Object}.
932
   * <!-- begin-user-doc -->
933
   * <p>
934
   * If the meaning of the '<em>Many Object</em>' attribute list isn't clear,
935
   * there really should be more of a description here...
936
   * </p>
937
   * <!-- end-user-doc -->
938
   * @return the value of the '<em>Many Object</em>' attribute list.
939
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyObject" required="true"
940
   *        extendedMetaData="kind='element' name='manyObject'"
941
   * @generated
942
   */
943
  List<Object> getManyObject();
944
945
  /**
946
   * Returns the value of the '<em><b>Many Thread</b></em>' attribute list.
947
   * The list contents are of type {@link java.lang.Thread}.
948
   * <!-- begin-user-doc -->
949
   * <p>
950
   * If the meaning of the '<em>Many Thread</em>' attribute list isn't clear,
951
   * there really should be more of a description here...
952
   * </p>
953
   * <!-- end-user-doc -->
954
   * @return the value of the '<em>Many Thread</em>' attribute list.
955
   * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyThread" required="true"
956
   *        extendedMetaData="kind='element' name='manyThread'"
957
   * @generated
958
   */
959
  List<Thread> getManyThread();
960
961
} // AThing
(-)src/org/eclipse/emf/test/models/types/TypesFactory.java (-46 lines)
Removed Link Here
1
/**
2
 * <copyright>
3
 *
4
 * Copyright (c) 2007 IBM Corporation and others.
5
 * All rights reserved.  This program and the accompanying materials
6
 * are made available under the terms of the Eclipse Public License v1.0
7
 * which accompanies this distribution, and is available at
8
 * http://www.eclipse.org/legal/epl-v10.html
9
 *
10
 * Contributors:
11
 *   IBM - Initial API and implementation
12
 *
13
 * </copyright>
14
 *
15
 * $Id: TypesFactory.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $
16
 */
17
package org.eclipse.emf.test.models.types;
18
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Factory</b> for the model.
23
 * It provides a create method for each non-abstract class of the model.
24
 * <!-- end-user-doc -->
25
 * @generated
26
 */
27
public interface TypesFactory
28
{
29
  /**
30
   * The singleton instance of the factory.
31
   * <!-- begin-user-doc -->
32
   * <!-- end-user-doc -->
33
   * @generated
34
   */
35
  TypesFactory INSTANCE = org.eclipse.emf.test.models.types.impl.TypesFactoryImpl.eINSTANCE;
36
37
  /**
38
   * Returns a new object of class '<em>AThing</em>'.
39
   * <!-- begin-user-doc -->
40
   * <!-- end-user-doc -->
41
   * @return a new object of class '<em>AThing</em>'.
42
   * @generated
43
   */
44
  AThing createAThing();
45
46
} //TypesFactory
(-)plugin.xml (-38 lines)
Lines 57-67 Link Here
57
       class = "org.eclipse.emf.test.models.library.LibraryPackage"
57
       class = "org.eclipse.emf.test.models.library.LibraryPackage"
58
       genModel = "models/Library/library.genmodel" /> 
58
       genModel = "models/Library/library.genmodel" /> 
59
59
60
    <package 
61
       uri = "http:///org.eclipse.emf.test.models/SDOLibrary" 
62
       class = "org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl"
63
       genModel = "models/Library/sdoLibrary.genmodel" /> 
64
65
    <!-- MovieDB -->
60
    <!-- MovieDB -->
66
61
67
    <package 
62
    <package 
Lines 92-130 Link Here
92
       uri = "http:///org.eclipse.emf.test.models/qname" 
87
       uri = "http:///org.eclipse.emf.test.models/qname" 
93
       class = "org.eclipse.emf.test.models.qname.QNamePackage"
88
       class = "org.eclipse.emf.test.models.qname.QNamePackage"
94
       genModel = "models/QName/qname.genmodel" /> 
89
       genModel = "models/QName/qname.genmodel" /> 
95
       
96
    <!-- sdo.IPO -->
97
    
98
    <package 
99
       uri = "http:///org.eclipse.emf.test.models/IPO" 
100
       class = "org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl"
101
       genModel = "models/sdo.IPO/ipo.genmodel" /> 
102
103
    <!-- sdo.Personal -->
104
    
105
    <package 
106
       uri = "http:///org.eclipse.emf.test.models/personal" 
107
       class = "org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl"
108
       genModel = "models/sdo.Personal/personal.genmodel" /> 
109
110
    <package 
111
       uri = "http:///org.eclipse.emf.test.models/personalMixed" 
112
       class = "org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl"
113
       genModel = "models/sdo.Personal/personalMixed.genmodel" /> 
114
115
    <!-- sdo.Simple -->
116
    
117
    <package 
118
       uri = "http:///org.eclipse.emf.test.models/simple" 
119
       class = "org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl"
120
       genModel = "models/sdo.Simple/simple.genmodel" /> 
121
122
    <!-- sdo.Types -->
123
    
124
    <package 
125
       uri = "http:///org.eclipse.emf.test.models/types" 
126
       class = "org.eclipse.emf.test.models.types.impl.TypesPackageImpl"
127
       genModel = "models/sdo.Types/types.genmodel" /> 
128
90
129
  </extension>
91
  </extension>
130
92
(-).settings/org.eclipse.core.resources.prefs (-3 / +1 lines)
Lines 1-6 Link Here
1
#Wed Jan 17 13:36:08 EST 2007
1
#Sun Nov 02 08:35:24 EST 2008
2
eclipse.preferences.version=1
2
eclipse.preferences.version=1
3
encoding//models/MovieDB/moviedb.xsd=UTF8
3
encoding//models/MovieDB/moviedb.xsd=UTF8
4
encoding//models/MovieDB/order.xsd=UTF8
4
encoding//models/MovieDB/order.xsd=UTF8
5
encoding//models/sdo.IPO/address.xsd=UTF8
6
encoding//models/sdo.IPO/ipo.xsd=UTF8
(-)src/org/eclipse/emf/test/build/BuildTest.java (-3 lines)
Lines 319-327 Link Here
319
  {
319
  {
320
    Set<String> brandingPluginNames = new HashSet<String>();
320
    Set<String> brandingPluginNames = new HashSet<String>();
321
    brandingPluginNames.add("org.eclipse.emf.doc");
321
    brandingPluginNames.add("org.eclipse.emf.doc");
322
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo.doc");
323
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo.source");
324
    brandingPluginNames.add("org.eclipse.emf.ecore.sdo");
325
    brandingPluginNames.add("org.eclipse.emf.source");
322
    brandingPluginNames.add("org.eclipse.emf.source");
326
    brandingPluginNames.add("org.eclipse.emf");
323
    brandingPluginNames.add("org.eclipse.emf");
327
    brandingPluginNames.add("org.eclipse.xsd.doc");
324
    brandingPluginNames.add("org.eclipse.xsd.doc");
(-)src/org/eclipse/emf/test/build/StandAloneSuites.java (-1 lines)
Lines 23-29 Link Here
23
  private static Test[] suites = new Test []{ 
23
  private static Test[] suites = new Test []{ 
24
    org.eclipse.emf.test.core.AllSuites.suite() 
24
    org.eclipse.emf.test.core.AllSuites.suite() 
25
    ,org.eclipse.emf.test.edit.AllSuites.suite()
25
    ,org.eclipse.emf.test.edit.AllSuites.suite()
26
    ,org.eclipse.emf.test.sdo.AllSuites.suite()
27
    ,org.eclipse.emf.test.xml.AllSuites.suite()
26
    ,org.eclipse.emf.test.xml.AllSuites.suite()
28
  };
27
  };
29
28
(-)src/org/eclipse/emf/test/build/CheckPIITest.java (-1 / +1 lines)
Lines 413-419 Link Here
413
  }
413
  }
414
414
415
  public static final String[] BUILD_GENERATED_ZIP_FILES_PREFIX = { "emf-runtime", "emf-source", "emf-doc", "xsd-runtime", "xsd-source",
415
  public static final String[] BUILD_GENERATED_ZIP_FILES_PREFIX = { "emf-runtime", "emf-source", "emf-doc", "xsd-runtime", "xsd-source",
416
      "xsd-doc", "sdo-runtime", "sdo-source", "sdo-doc", "emf-sdo-xsd-SDK" }; // last one changed 041104 to fix absentee chkpii testing
416
      "xsd-doc", "emf-xsd-SDK" }; // last one changed 041104 to fix absentee chkpii testing
417
417
418
  // must include non-shipping
418
  // must include non-shipping
419
  // test plugins
419
  // test plugins
(-)src/org/eclipse/emf/test/build/VersionAuditTest.java (-7 lines)
Lines 31-37 Link Here
31
  
31
  
32
  private static String[] URLs = {
32
  private static String[] URLs = {
33
    "http://build.eclipse.org/modeling/emf/emf/versionaudit.php?branch=",
33
    "http://build.eclipse.org/modeling/emf/emf/versionaudit.php?branch=",
34
    "http://build.eclipse.org/modeling/emf/sdo/versionaudit.php?branch=",
35
    "http://build.eclipse.org/modeling/mdt/xsd/versionaudit.php?branch="
34
    "http://build.eclipse.org/modeling/mdt/xsd/versionaudit.php?branch="
36
  };
35
  };
37
  private static String branch = "";
36
  private static String branch = "";
Lines 43-49 Link Here
43
    TestSuite ts = new TestSuite("EMF Plugin / Feature Version Auditing");
42
    TestSuite ts = new TestSuite("EMF Plugin / Feature Version Auditing");
44
    //ts.addTest(new VersionAuditTest("testWhereAmI")); /* for debugging only */
43
    //ts.addTest(new VersionAuditTest("testWhereAmI")); /* for debugging only */
45
    ts.addTest(new VersionAuditTest("testVersionEMF"));
44
    ts.addTest(new VersionAuditTest("testVersionEMF"));
46
    ts.addTest(new VersionAuditTest("testVersionSDO"));
47
    ts.addTest(new VersionAuditTest("testVersionXSD"));
45
    ts.addTest(new VersionAuditTest("testVersionXSD"));
48
    return ts;
46
    return ts;
49
  }
47
  }
Lines 80-90 Link Here
80
    testVersion(URLs[0], branch);
78
    testVersion(URLs[0], branch);
81
  }
79
  }
82
  
80
  
83
  public void testVersionSDO() throws Exception
84
  {
85
    testVersion(URLs[1], branch);
86
  }
87
  
88
  public void testVersionXSD() throws Exception
81
  public void testVersionXSD() throws Exception
89
  {
82
  {
90
    testVersion(URLs[2], branch);
83
    testVersion(URLs[2], branch);
(-)META-INF/MANIFEST.MF (-3 / +1 lines)
Lines 14-21 Link Here
14
 org.junit,
14
 org.junit,
15
 org.eclipse.emf.test.core,
15
 org.eclipse.emf.test.core,
16
 org.eclipse.emf.test.edit,
16
 org.eclipse.emf.test.edit,
17
 org.eclipse.emf.test.sdo,
17
 org.eclipse.emf.test.xml
18
 org.eclipse.emf.test.xml,
19
 org.eclipse.emf.test.performance
20
Eclipse-LazyStart: true
18
Eclipse-LazyStart: true
21
Bundle-ActivationPolicy: lazy
19
Bundle-ActivationPolicy: lazy

Return to bug 251402