Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 116724 Details for
Bug 251402
Remove SDO from Galileo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Changes needed in EMF to remove SDO dependencies
251402.patch (text/plain), 1.10 MB, created by
Ed Merks
on 2008-11-02 09:16:52 EST
(
hide
)
Description:
Changes needed in EMF to remove SDO dependencies
Filename:
MIME Type:
Creator:
Ed Merks
Created:
2008-11-02 09:16:52 EST
Size:
1.10 MB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.tests-feature >Index: feature.xml >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.tests-feature/feature.xml,v >retrieving revision 1.45 >diff -u -r1.45 feature.xml >--- feature.xml 7 Aug 2008 16:15:54 -0000 1.45 >+++ feature.xml 2 Nov 2008 14:14:00 -0000 >@@ -41,19 +41,6 @@ > version="0.0.0"/> > > <plugin >- id="org.eclipse.test.performance" >- download-size="0" >- install-size="0" >- version="0.0.0"/> >- >- <plugin >- id="org.eclipse.test.performance.win32" >- download-size="0" >- install-size="0" >- version="0.0.0" >- fragment="true"/> >- >- <plugin > id="org.eclipse.ant.optional.junit" > download-size="0" > install-size="0" >@@ -67,12 +54,6 @@ > version="0.0.0"/> > > <plugin >- id="org.eclipse.emf.test.performance" >- download-size="0" >- install-size="0" >- version="0.0.0"/> >- >- <plugin > id="org.eclipse.emf.test.build" > download-size="0" > install-size="0" >@@ -97,12 +78,6 @@ > version="0.0.0"/> > > <plugin >- id="org.eclipse.emf.test.sdo" >- download-size="0" >- install-size="0" >- version="0.0.0"/> >- >- <plugin > id="org.eclipse.emf.test.tools" > download-size="0" > install-size="0" >#P org.eclipse.emf.test.common >Index: src/org/eclipse/emf/test/models/types/util/TypesXMLProcessor.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/util/TypesXMLProcessor.java >diff -N src/org/eclipse/emf/test/models/types/util/TypesXMLProcessor.java >--- src/org/eclipse/emf/test/models/types/util/TypesXMLProcessor.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,68 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesXMLProcessor.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.types.util; >- >-import java.util.Map; >- >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.xmi.util.XMLProcessor; >- >-import org.eclipse.emf.test.models.types.impl.TypesPackageImpl; >- >-/** >- * This class contains helper methods to serialize and deserialize XML documents >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-public class TypesXMLProcessor extends XMLProcessor >-{ >- >- /** >- * Public constructor to instantiate the helper. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesXMLProcessor() >- { >- super((EPackage.Registry.INSTANCE)); >- TypesPackageImpl.eINSTANCE.eClass(); >- } >- >- /** >- * Register for "*" and "xml" file extensions the TypesResourceFactoryImpl factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected Map<String, Resource.Factory> getRegistrations() >- { >- if (registrations == null) >- { >- super.getRegistrations(); >- registrations.put(XML_EXTENSION, new TypesResourceFactoryImpl()); >- registrations.put(STAR_EXTENSION, new TypesResourceFactoryImpl()); >- } >- return registrations; >- } >- >-} //TypesXMLProcessor >Index: src/org/eclipse/emf/test/models/types/util/TypesAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/util/TypesAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/types/util/TypesAdapterFactory.java >--- src/org/eclipse/emf/test/models/types/util/TypesAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,148 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.types.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.types.*; >- >-import org.eclipse.emf.test.models.types.impl.TypesPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl >- * @generated >- */ >-public class TypesAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static TypesPackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = TypesPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected TypesSwitch<Adapter> modelSwitch = >- new TypesSwitch<Adapter>() >- { >- @Override >- public Adapter caseAThing(AThing object) >- { >- return createAThingAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.types.AThing <em>AThing</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.types.AThing >- * @generated >- */ >- public Adapter createAThingAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //TypesAdapterFactory >Index: src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java >--- src/org/eclipse/emf/test/models/types/util/TypesResourceFactoryImpl.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,69 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.types.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; >- >-import org.eclipse.emf.ecore.xmi.XMLResource; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource Factory</b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.util.TypesResourceImpl >- * @generated >- */ >-public class TypesResourceFactoryImpl extends ResourceFactoryImpl >-{ >- /** >- * Creates an instance of the resource factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesResourceFactoryImpl() >- { >- super(); >- } >- >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Resource createResource(URI uri) >- { >- XMLResource result = new TypesResourceImpl(uri); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- >- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >- return result; >- } >- >-} //TypesResourceFactoryImpl >Index: src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java >diff -N src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java >--- src/org/eclipse/emf/test/models/types/util/TypesResourceImpl.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,44 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesResourceImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.types.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource </b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.util.TypesResourceFactoryImpl >- * @generated >- */ >-public class TypesResourceImpl extends XMLResourceImpl >-{ >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param uri the URI of the new resource. >- * @generated >- */ >- public TypesResourceImpl(URI uri) >- { >- super(uri); >- } >- >-} //TypesResourceImpl >Index: src/org/eclipse/emf/test/models/types/util/TypesSwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/util/TypesSwitch.java >diff -N src/org/eclipse/emf/test/models/types/util/TypesSwitch.java >--- src/org/eclipse/emf/test/models/types/util/TypesSwitch.java 12 Jun 2007 21:15:19 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,154 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.types.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.types.*; >- >-import org.eclipse.emf.test.models.types.impl.TypesPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl >- * @generated >- */ >-public class TypesSwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static TypesPackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesSwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = TypesPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case TypesPackageImpl.ATHING: >- { >- AThing aThing = (AThing)theEObject; >- T result = caseAThing(aThing); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>AThing</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>AThing</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseAThing(AThing object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //TypesSwitch >Index: models/sdo.IPO/ipo.ecore >=================================================================== >RCS file: models/sdo.IPO/ipo.ecore >diff -N models/sdo.IPO/ipo.ecore >--- models/sdo.IPO/ipo.ecore 15 Jun 2007 21:22:18 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,263 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ipo" >- nsURI="http:///org.eclipse.emf.test.models/IPO" nsPrefix="ipo"> >- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> >- <details key="documentation" value="
 International Purchase order schema for Example.com
 Copyright 2000 Example.com. All rights reserved.
 "/> >- </eAnnotations> >- <eClassifiers xsi:type="ecore:EClass" name="Address"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="Address"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="name"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="street"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="city"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value=""/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xmlns:prefix"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xsi:schemaLocation"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" unique="false" >- upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- volatile="true" transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="comment"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrder" upperBound="-2" >- eType="#//PurchaseOrderType" volatile="true" transient="true" derived="true" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="purchaseOrder"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="Items"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="Items"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EReference" name="item" upperBound="-1" eType="#//ItemType" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="item"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="ItemType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="item_._type"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="productName" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="productName"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" lowerBound="1" >- eType="#//QuantityType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="quantity"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="uSPrice" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="USPrice"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="comment"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="shipDate" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Date"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="shipDate"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="partNum" lowerBound="1" >- eType="#//SKU"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="partNum"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="Postcode" instanceClassName="java.lang.String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="Postcode"/> >- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/> >- <details key="length" value="7"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrderType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="PurchaseOrderType"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EReference" name="shipTo" lowerBound="1" >- eType="#//Address" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="shipTo"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="billTo" lowerBound="1" >- eType="#//Address" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="billTo"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="comment"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="items" lowerBound="1" eType="#//Items" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="items"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="orderDate" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//DateTime"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="orderDate"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="QuantityType" instanceClassName="java.math.BigInteger"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="quantity_._type"/> >- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#positiveInteger"/> >- <details key="maxExclusive" value="100"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="SKU" instanceClassName="java.lang.String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="SKU"/> >- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/> >- <details key="pattern" value="\d{3}-[A-Z]{2}"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="UKAddress" eSuperTypes="#//Address"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="UKAddress"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="postcode" lowerBound="1" >- eType="#//UKPostcode"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="postcode"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="exportCode" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//PositiveInteger" >- defaultValueLiteral="1" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="exportCode"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="UKPostcode" instanceClassName="java.lang.String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="UKPostcode"/> >- <details key="baseType" value="Postcode"/> >- <details key="pattern" value="[A-Z]{2}\d\s\d[A-Z]{2}"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="USAddress" eSuperTypes="#//Address"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="USAddress"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="state" lowerBound="1" eType="#//USState" >- defaultValueLiteral="AK" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="state"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="zip" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//PositiveInteger"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="zip"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EEnum" name="USState"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="USState"/> >- </eAnnotations> >- <eLiterals name="AK"/> >- <eLiterals name="AL" value="1"/> >- <eLiterals name="AR" value="2"/> >- <eLiterals name="PA" value="3"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="USStateObject" instanceClassName="org.eclipse.emf.common.util.Enumerator"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="USState:Object"/> >- <details key="baseType" value="USState"/> >- </eAnnotations> >- </eClassifiers> >-</ecore:EPackage> >Index: models/sdo.IPO/address.xsd >=================================================================== >RCS file: models/sdo.IPO/address.xsd >diff -N models/sdo.IPO/address.xsd >--- models/sdo.IPO/address.xsd 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,63 +0,0 @@ >-<schema targetNamespace="http:///org.eclipse.emf.test.models/IPO" >- xmlns="http://www.w3.org/2001/XMLSchema" >- xmlns:ipo="http:///org.eclipse.emf.test.models/IPO"> >- >- <complexType name="Address"> >- <sequence> >- <element name="name" type="string"/> >- <element name="street" type="string"/> >- <element name="city" type="string"/> >- </sequence> >- </complexType> >- >- <complexType name="USAddress"> >- <complexContent> >- <extension base="ipo:Address"> >- <sequence> >- <element name="state" type="ipo:USState"/> >- <element name="zip" type="positiveInteger"/> >- </sequence> >- </extension> >- </complexContent> >- </complexType> >- >- <complexType name="UKAddress"> >- <complexContent> >- <extension base="ipo:Address"> >- <sequence> >- <element name="postcode" type="ipo:UKPostcode"/> >- </sequence> >- <attribute name="exportCode" type="positiveInteger" fixed="1"/> >- </extension> >- </complexContent> >- </complexType> >- >- <!-- other Address derivations for more countries --> >- >- <simpleType name="USState"> >- <restriction base="string"> >- <enumeration value="AK"/> >- <enumeration value="AL"/> >- <enumeration value="AR"/> >- <enumeration value="PA"/> >- <!-- and so on ... --> >- </restriction> >- </simpleType> >- >- <!-- simple type definition for UKPostcode --> >- >- <simpleType name="UKPostcode"> >- <restriction base="ipo:Postcode"> >- <pattern value="[A-Z]{2}\d\s\d[A-Z]{2}"/> >- </restriction> >- </simpleType> >- >-<simpleType name="Postcode"> >- <restriction base="string"> >- <length value="7" fixed="true"/> >- </restriction> >-</simpleType> >- >- >-</schema> >- >Index: models/sdo.IPO/ipo.xsd >=================================================================== >RCS file: models/sdo.IPO/ipo.xsd >diff -N models/sdo.IPO/ipo.xsd >--- models/sdo.IPO/ipo.xsd 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,59 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<schema xmlns="http://www.w3.org/2001/XMLSchema" >- xmlns:ipo="http:///org.eclipse.emf.test.models/IPO" >- targetNamespace="http:///org.eclipse.emf.test.models/IPO"> >- >- <annotation> >- <documentation xml:lang="en"> >- International Purchase order schema for Example.com >- Copyright 2000 Example.com. All rights reserved. >- </documentation> >- </annotation> >- >- <!-- include address constructs --> >- <include schemaLocation="address.xsd"/> >- >- <element name="purchaseOrder" type="ipo:PurchaseOrderType"/> >- >- <element name="comment" type="string"/> >- >- <complexType name="PurchaseOrderType"> >- <sequence> >- <element name="shipTo" type="ipo:Address"/> >- <element name="billTo" type="ipo:Address"/> >- <element minOccurs="0" ref="ipo:comment"/> >- <element name="items" type="ipo:Items"/> >- </sequence> >- <attribute name="orderDate" type="dateTime"/> >- </complexType> >- >- <complexType name="Items"> >- <sequence> >- <element maxOccurs="unbounded" minOccurs="0" name="item"> >- <complexType> >- <sequence> >- <element name="productName" type="string"/> >- <element name="quantity"> >- <simpleType> >- <restriction base="positiveInteger"> >- <maxExclusive value="100"/> >- </restriction> >- </simpleType> >- </element> >- <element name="USPrice" type="decimal"/> >- <element minOccurs="0" ref="ipo:comment"/> >- <element minOccurs="0" name="shipDate" type="date"/> >- </sequence> >- <attribute name="partNum" type="ipo:SKU" use="required"/> >- </complexType> >- </element> >- </sequence> >- </complexType> >- >- <simpleType name="SKU"> >- <restriction base="string"> >- <pattern value="\d{3}-[A-Z]{2}"/> >- </restriction> >- </simpleType> >- >-</schema> >Index: models/sdo.IPO/ipo.genmodel >=================================================================== >RCS file: models/sdo.IPO/ipo.genmodel >diff -N models/sdo.IPO/ipo.genmodel >--- models/sdo.IPO/ipo.genmodel 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,67 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="IPO" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"> >- <foreignModel>ipo.xsd</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="IPO" basePackage="org.eclipse.emf.test.models" resource="XML" >- disposableProviderFactory="true" ecorePackage="ipo.ecore#/"> >- <genEnums typeSafeEnumCompatible="false" ecoreEnum="ipo.ecore#//USState"> >- <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AK"/> >- <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AL"/> >- <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/AR"/> >- <genEnumLiterals ecoreEnumLiteral="ipo.ecore#//USState/PA"/> >- </genEnums> >- <genDataTypes ecoreDataType="ipo.ecore#//Postcode"/> >- <genDataTypes ecoreDataType="ipo.ecore#//QuantityType"/> >- <genDataTypes ecoreDataType="ipo.ecore#//SKU"/> >- <genDataTypes ecoreDataType="ipo.ecore#//UKPostcode"/> >- <genDataTypes ecoreDataType="ipo.ecore#//USStateObject"/> >- <genClasses ecoreClass="ipo.ecore#//Address"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/name"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/street"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//Address/city"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//DocumentRoot"> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//DocumentRoot/mixed"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/xMLNSPrefixMap"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/xSISchemaLocation"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//DocumentRoot/comment"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//DocumentRoot/purchaseOrder"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//Items"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//Items/item"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//ItemType"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/productName"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/quantity"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/uSPrice"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/comment"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/shipDate"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//ItemType/partNum"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//PurchaseOrderType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/shipTo"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/billTo"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//PurchaseOrderType/comment"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ipo.ecore#//PurchaseOrderType/items"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//PurchaseOrderType/orderDate"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//UKAddress"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//UKAddress/postcode"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//UKAddress/exportCode"/> >- </genClasses> >- <genClasses ecoreClass="ipo.ecore#//USAddress"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//USAddress/state"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ipo.ecore#//USAddress/zip"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: src/org/eclipse/emf/test/models/ipo/impl/IPOFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/IPOFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/IPOFactoryImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/IPOFactoryImpl.java 18 Jan 2007 22:06:39 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,382 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOFactoryImpl.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.math.BigInteger; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.ipo.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class IPOFactoryImpl extends EFactoryImpl implements IPOFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final IPOFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static IPOFactoryImpl init() >- { >- try >- { >- IPOFactoryImpl theIPOFactory = (IPOFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/IPO"); >- if (theIPOFactory != null) >- { >- return theIPOFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new IPOFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case IPOPackageImpl.ADDRESS: return (EObject)createAddress(); >- case IPOPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot(); >- case IPOPackageImpl.ITEMS: return (EObject)createItems(); >- case IPOPackageImpl.ITEM_TYPE: return (EObject)createItemType(); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE: return (EObject)createPurchaseOrderType(); >- case IPOPackageImpl.UK_ADDRESS: return (EObject)createUKAddress(); >- case IPOPackageImpl.US_ADDRESS: return (EObject)createUSAddress(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object createFromString(EDataType eDataType, String initialValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case IPOPackageImpl.US_STATE: >- return createUSStateFromString(eDataType, initialValue); >- case IPOPackageImpl.POSTCODE: >- return createPostcodeFromString(eDataType, initialValue); >- case IPOPackageImpl.QUANTITY_TYPE: >- return createQuantityTypeFromString(eDataType, initialValue); >- case IPOPackageImpl.SKU: >- return createSKUFromString(eDataType, initialValue); >- case IPOPackageImpl.UK_POSTCODE: >- return createUKPostcodeFromString(eDataType, initialValue); >- case IPOPackageImpl.US_STATE_OBJECT: >- return createUSStateObjectFromString(eDataType, initialValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String convertToString(EDataType eDataType, Object instanceValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case IPOPackageImpl.US_STATE: >- return convertUSStateToString(eDataType, instanceValue); >- case IPOPackageImpl.POSTCODE: >- return convertPostcodeToString(eDataType, instanceValue); >- case IPOPackageImpl.QUANTITY_TYPE: >- return convertQuantityTypeToString(eDataType, instanceValue); >- case IPOPackageImpl.SKU: >- return convertSKUToString(eDataType, instanceValue); >- case IPOPackageImpl.UK_POSTCODE: >- return convertUKPostcodeToString(eDataType, instanceValue); >- case IPOPackageImpl.US_STATE_OBJECT: >- return convertUSStateObjectToString(eDataType, instanceValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Address createAddress() >- { >- AddressImpl address = new AddressImpl(); >- return address; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public DocumentRoot createDocumentRoot() >- { >- DocumentRootImpl documentRoot = new DocumentRootImpl(); >- return documentRoot; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Items createItems() >- { >- ItemsImpl items = new ItemsImpl(); >- return items; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ItemType createItemType() >- { >- ItemTypeImpl itemType = new ItemTypeImpl(); >- return itemType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PurchaseOrderType createPurchaseOrderType() >- { >- PurchaseOrderTypeImpl purchaseOrderType = new PurchaseOrderTypeImpl(); >- return purchaseOrderType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public UKAddress createUKAddress() >- { >- UKAddressImpl ukAddress = new UKAddressImpl(); >- return ukAddress; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public USAddress createUSAddress() >- { >- USAddressImpl usAddress = new USAddressImpl(); >- return usAddress; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public USState createUSStateFromString(EDataType eDataType, String initialValue) >- { >- USState result = USState.get(initialValue); >- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertUSStateToString(EDataType eDataType, Object instanceValue) >- { >- return instanceValue == null ? null : instanceValue.toString(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String createPostcodeFromString(EDataType eDataType, String initialValue) >- { >- return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertPostcodeToString(EDataType eDataType, Object instanceValue) >- { >- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger createQuantityTypeFromString(EDataType eDataType, String initialValue) >- { >- return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.POSITIVE_INTEGER, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertQuantityTypeToString(EDataType eDataType, Object instanceValue) >- { >- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.POSITIVE_INTEGER, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String createSKUFromString(EDataType eDataType, String initialValue) >- { >- return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertSKUToString(EDataType eDataType, Object instanceValue) >- { >- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String createUKPostcodeFromString(EDataType eDataType, String initialValue) >- { >- return createPostcodeFromString(IPOPackageImpl.Literals.POSTCODE, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertUKPostcodeToString(EDataType eDataType, Object instanceValue) >- { >- return convertPostcodeToString(IPOPackageImpl.Literals.POSTCODE, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public USState createUSStateObjectFromString(EDataType eDataType, String initialValue) >- { >- return createUSStateFromString(IPOPackageImpl.Literals.US_STATE, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertUSStateObjectToString(EDataType eDataType, Object instanceValue) >- { >- return convertUSStateToString(IPOPackageImpl.Literals.US_STATE, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOPackageImpl getIPOPackageImpl() >- { >- return (IPOPackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static IPOPackageImpl getPackage() >- { >- return IPOPackageImpl.eINSTANCE; >- } >- >-} //IPOFactoryImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/PurchaseOrderTypeImpl.java 2 Jun 2007 19:35:32 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,486 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PurchaseOrderTypeImpl.java,v 1.4 2007/06/02 19:35:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import javax.xml.datatype.XMLGregorianCalendar; >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.ipo.Address; >-import org.eclipse.emf.test.models.ipo.Items; >-import org.eclipse.emf.test.models.ipo.PurchaseOrderType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Purchase Order Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getShipTo <em>Ship To</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getBillTo <em>Bill To</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getItems <em>Items</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl#getOrderDate <em>Order Date</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class PurchaseOrderTypeImpl extends EDataObjectImpl implements PurchaseOrderType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getShipTo() <em>Ship To</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getShipTo() >- * @generated >- * @ordered >- */ >- protected Address shipTo; >- >- /** >- * The cached value of the '{@link #getBillTo() <em>Bill To</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getBillTo() >- * @generated >- * @ordered >- */ >- protected Address billTo; >- >- /** >- * The default value of the '{@link #getComment() <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getComment() >- * @generated >- * @ordered >- */ >- protected static final String COMMENT_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getComment() >- * @generated >- * @ordered >- */ >- protected String comment = COMMENT_EDEFAULT; >- >- /** >- * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getItems() >- * @generated >- * @ordered >- */ >- protected Items items; >- >- /** >- * The default value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getOrderDate() >- * @generated >- * @ordered >- */ >- protected static final XMLGregorianCalendar ORDER_DATE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getOrderDate() <em>Order Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getOrderDate() >- * @generated >- * @ordered >- */ >- protected XMLGregorianCalendar orderDate = ORDER_DATE_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PurchaseOrderTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.PURCHASE_ORDER_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Address getShipTo() >- { >- return shipTo; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetShipTo(Address newShipTo, NotificationChain msgs) >- { >- Address oldShipTo = shipTo; >- shipTo = newShipTo; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, oldShipTo, newShipTo); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setShipTo(Address newShipTo) >- { >- if (newShipTo != shipTo) >- { >- NotificationChain msgs = null; >- if (shipTo != null) >- msgs = ((InternalEObject)shipTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs); >- if (newShipTo != null) >- msgs = ((InternalEObject)newShipTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, null, msgs); >- msgs = basicSetShipTo(newShipTo, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO, newShipTo, newShipTo)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Address getBillTo() >- { >- return billTo; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetBillTo(Address newBillTo, NotificationChain msgs) >- { >- Address oldBillTo = billTo; >- billTo = newBillTo; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, oldBillTo, newBillTo); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setBillTo(Address newBillTo) >- { >- if (newBillTo != billTo) >- { >- NotificationChain msgs = null; >- if (billTo != null) >- msgs = ((InternalEObject)billTo).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs); >- if (newBillTo != null) >- msgs = ((InternalEObject)newBillTo).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, null, msgs); >- msgs = basicSetBillTo(newBillTo, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO, newBillTo, newBillTo)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getComment() >- { >- return comment; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setComment(String newComment) >- { >- String oldComment = comment; >- comment = newComment; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT, oldComment, comment)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Items getItems() >- { >- return items; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetItems(Items newItems, NotificationChain msgs) >- { >- Items oldItems = items; >- items = newItems; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, oldItems, newItems); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setItems(Items newItems) >- { >- if (newItems != items) >- { >- NotificationChain msgs = null; >- if (items != null) >- msgs = ((InternalEObject)items).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs); >- if (newItems != null) >- msgs = ((InternalEObject)newItems).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, null, msgs); >- msgs = basicSetItems(newItems, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS, newItems, newItems)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public XMLGregorianCalendar getOrderDate() >- { >- return orderDate; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setOrderDate(XMLGregorianCalendar newOrderDate) >- { >- XMLGregorianCalendar oldOrderDate = orderDate; >- orderDate = newOrderDate; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE, oldOrderDate, orderDate)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO: >- return basicSetShipTo(null, msgs); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO: >- return basicSetBillTo(null, msgs); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS: >- return basicSetItems(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO: >- return getShipTo(); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO: >- return getBillTo(); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT: >- return getComment(); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS: >- return getItems(); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE: >- return getOrderDate(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO: >- setShipTo((Address)newValue); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO: >- setBillTo((Address)newValue); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT: >- setComment((String)newValue); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS: >- setItems((Items)newValue); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE: >- setOrderDate((XMLGregorianCalendar)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO: >- setShipTo((Address)null); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO: >- setBillTo((Address)null); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT: >- setComment(COMMENT_EDEFAULT); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS: >- setItems((Items)null); >- return; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE: >- setOrderDate(ORDER_DATE_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__SHIP_TO: >- return shipTo != null; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__BILL_TO: >- return billTo != null; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__COMMENT: >- return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ITEMS: >- return items != null; >- case IPOPackageImpl.PURCHASE_ORDER_TYPE__ORDER_DATE: >- return ORDER_DATE_EDEFAULT == null ? orderDate != null : !ORDER_DATE_EDEFAULT.equals(orderDate); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (comment: "); >- result.append(comment); >- result.append(", orderDate: "); >- result.append(orderDate); >- result.append(')'); >- return result.toString(); >- } >- >-} //PurchaseOrderTypeImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/ItemTypeImpl.java 2 Jun 2007 19:35:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,482 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: ItemTypeImpl.java,v 1.3 2007/06/02 19:35:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.math.BigDecimal; >-import java.math.BigInteger; >- >-import javax.xml.datatype.XMLGregorianCalendar; >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.ipo.ItemType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Item Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getProductName <em>Product Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getQuantity <em>Quantity</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getUSPrice <em>US Price</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getShipDate <em>Ship Date</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl#getPartNum <em>Part Num</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class ItemTypeImpl extends EDataObjectImpl implements ItemType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getProductName() <em>Product Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getProductName() >- * @generated >- * @ordered >- */ >- protected static final String PRODUCT_NAME_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getProductName() <em>Product Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getProductName() >- * @generated >- * @ordered >- */ >- protected String productName = PRODUCT_NAME_EDEFAULT; >- >- /** >- * The default value of the '{@link #getQuantity() <em>Quantity</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getQuantity() >- * @generated >- * @ordered >- */ >- protected static final BigInteger QUANTITY_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getQuantity() <em>Quantity</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getQuantity() >- * @generated >- * @ordered >- */ >- protected BigInteger quantity = QUANTITY_EDEFAULT; >- >- /** >- * The default value of the '{@link #getUSPrice() <em>US Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getUSPrice() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal US_PRICE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getUSPrice() <em>US Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getUSPrice() >- * @generated >- * @ordered >- */ >- protected BigDecimal uSPrice = US_PRICE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getComment() <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getComment() >- * @generated >- * @ordered >- */ >- protected static final String COMMENT_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getComment() >- * @generated >- * @ordered >- */ >- protected String comment = COMMENT_EDEFAULT; >- >- /** >- * The default value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getShipDate() >- * @generated >- * @ordered >- */ >- protected static final XMLGregorianCalendar SHIP_DATE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getShipDate() <em>Ship Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getShipDate() >- * @generated >- * @ordered >- */ >- protected XMLGregorianCalendar shipDate = SHIP_DATE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getPartNum() <em>Part Num</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPartNum() >- * @generated >- * @ordered >- */ >- protected static final String PART_NUM_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getPartNum() <em>Part Num</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPartNum() >- * @generated >- * @ordered >- */ >- protected String partNum = PART_NUM_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected ItemTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.ITEM_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getProductName() >- { >- return productName; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setProductName(String newProductName) >- { >- String oldProductName = productName; >- productName = newProductName; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME, oldProductName, productName)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getQuantity() >- { >- return quantity; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setQuantity(BigInteger newQuantity) >- { >- BigInteger oldQuantity = quantity; >- quantity = newQuantity; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__QUANTITY, oldQuantity, quantity)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getUSPrice() >- { >- return uSPrice; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setUSPrice(BigDecimal newUSPrice) >- { >- BigDecimal oldUSPrice = uSPrice; >- uSPrice = newUSPrice; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__US_PRICE, oldUSPrice, uSPrice)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getComment() >- { >- return comment; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setComment(String newComment) >- { >- String oldComment = comment; >- comment = newComment; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__COMMENT, oldComment, comment)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public XMLGregorianCalendar getShipDate() >- { >- return shipDate; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setShipDate(XMLGregorianCalendar newShipDate) >- { >- XMLGregorianCalendar oldShipDate = shipDate; >- shipDate = newShipDate; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__SHIP_DATE, oldShipDate, shipDate)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getPartNum() >- { >- return partNum; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPartNum(String newPartNum) >- { >- String oldPartNum = partNum; >- partNum = newPartNum; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ITEM_TYPE__PART_NUM, oldPartNum, partNum)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME: >- return getProductName(); >- case IPOPackageImpl.ITEM_TYPE__QUANTITY: >- return getQuantity(); >- case IPOPackageImpl.ITEM_TYPE__US_PRICE: >- return getUSPrice(); >- case IPOPackageImpl.ITEM_TYPE__COMMENT: >- return getComment(); >- case IPOPackageImpl.ITEM_TYPE__SHIP_DATE: >- return getShipDate(); >- case IPOPackageImpl.ITEM_TYPE__PART_NUM: >- return getPartNum(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME: >- setProductName((String)newValue); >- return; >- case IPOPackageImpl.ITEM_TYPE__QUANTITY: >- setQuantity((BigInteger)newValue); >- return; >- case IPOPackageImpl.ITEM_TYPE__US_PRICE: >- setUSPrice((BigDecimal)newValue); >- return; >- case IPOPackageImpl.ITEM_TYPE__COMMENT: >- setComment((String)newValue); >- return; >- case IPOPackageImpl.ITEM_TYPE__SHIP_DATE: >- setShipDate((XMLGregorianCalendar)newValue); >- return; >- case IPOPackageImpl.ITEM_TYPE__PART_NUM: >- setPartNum((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME: >- setProductName(PRODUCT_NAME_EDEFAULT); >- return; >- case IPOPackageImpl.ITEM_TYPE__QUANTITY: >- setQuantity(QUANTITY_EDEFAULT); >- return; >- case IPOPackageImpl.ITEM_TYPE__US_PRICE: >- setUSPrice(US_PRICE_EDEFAULT); >- return; >- case IPOPackageImpl.ITEM_TYPE__COMMENT: >- setComment(COMMENT_EDEFAULT); >- return; >- case IPOPackageImpl.ITEM_TYPE__SHIP_DATE: >- setShipDate(SHIP_DATE_EDEFAULT); >- return; >- case IPOPackageImpl.ITEM_TYPE__PART_NUM: >- setPartNum(PART_NUM_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEM_TYPE__PRODUCT_NAME: >- return PRODUCT_NAME_EDEFAULT == null ? productName != null : !PRODUCT_NAME_EDEFAULT.equals(productName); >- case IPOPackageImpl.ITEM_TYPE__QUANTITY: >- return QUANTITY_EDEFAULT == null ? quantity != null : !QUANTITY_EDEFAULT.equals(quantity); >- case IPOPackageImpl.ITEM_TYPE__US_PRICE: >- return US_PRICE_EDEFAULT == null ? uSPrice != null : !US_PRICE_EDEFAULT.equals(uSPrice); >- case IPOPackageImpl.ITEM_TYPE__COMMENT: >- return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); >- case IPOPackageImpl.ITEM_TYPE__SHIP_DATE: >- return SHIP_DATE_EDEFAULT == null ? shipDate != null : !SHIP_DATE_EDEFAULT.equals(shipDate); >- case IPOPackageImpl.ITEM_TYPE__PART_NUM: >- return PART_NUM_EDEFAULT == null ? partNum != null : !PART_NUM_EDEFAULT.equals(partNum); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (productName: "); >- result.append(productName); >- result.append(", quantity: "); >- result.append(quantity); >- result.append(", uSPrice: "); >- result.append(uSPrice); >- result.append(", comment: "); >- result.append(comment); >- result.append(", shipDate: "); >- result.append(shipDate); >- result.append(", partNum: "); >- result.append(partNum); >- result.append(')'); >- return result.toString(); >- } >- >-} //ItemTypeImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/AddressImpl.java 18 Jan 2007 22:06:39 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,310 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: AddressImpl.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.ipo.Address; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Address</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getStreet <em>Street</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl#getCity <em>City</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class AddressImpl extends EDataObjectImpl implements Address >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected static final String NAME_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected String name = NAME_EDEFAULT; >- >- /** >- * The default value of the '{@link #getStreet() <em>Street</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getStreet() >- * @generated >- * @ordered >- */ >- protected static final String STREET_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getStreet() >- * @generated >- * @ordered >- */ >- protected String street = STREET_EDEFAULT; >- >- /** >- * The default value of the '{@link #getCity() <em>City</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCity() >- * @generated >- * @ordered >- */ >- protected static final String CITY_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getCity() <em>City</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCity() >- * @generated >- * @ordered >- */ >- protected String city = CITY_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected AddressImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.ADDRESS; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(String newName) >- { >- String oldName = name; >- name = newName; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__NAME, oldName, name)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getStreet() >- { >- return street; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setStreet(String newStreet) >- { >- String oldStreet = street; >- street = newStreet; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__STREET, oldStreet, street)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getCity() >- { >- return city; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setCity(String newCity) >- { >- String oldCity = city; >- city = newCity; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.ADDRESS__CITY, oldCity, city)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ADDRESS__NAME: >- return getName(); >- case IPOPackageImpl.ADDRESS__STREET: >- return getStreet(); >- case IPOPackageImpl.ADDRESS__CITY: >- return getCity(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ADDRESS__NAME: >- setName((String)newValue); >- return; >- case IPOPackageImpl.ADDRESS__STREET: >- setStreet((String)newValue); >- return; >- case IPOPackageImpl.ADDRESS__CITY: >- setCity((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ADDRESS__NAME: >- setName(NAME_EDEFAULT); >- return; >- case IPOPackageImpl.ADDRESS__STREET: >- setStreet(STREET_EDEFAULT); >- return; >- case IPOPackageImpl.ADDRESS__CITY: >- setCity(CITY_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ADDRESS__NAME: >- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); >- case IPOPackageImpl.ADDRESS__STREET: >- return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street); >- case IPOPackageImpl.ADDRESS__CITY: >- return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (name: "); >- result.append(name); >- result.append(", street: "); >- result.append(street); >- result.append(", city: "); >- result.append(city); >- result.append(')'); >- return result.toString(); >- } >- >-} //AddressImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/USAddressImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/USAddressImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/USAddressImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/USAddressImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,291 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: USAddressImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.math.BigInteger; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.test.models.ipo.USAddress; >-import org.eclipse.emf.test.models.ipo.USState; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>US Address</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl#getState <em>State</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl#getZip <em>Zip</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class USAddressImpl extends AddressImpl implements USAddress >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getState() <em>State</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getState() >- * @generated >- * @ordered >- */ >- protected static final USState STATE_EDEFAULT = USState.AK; >- >- /** >- * The cached value of the '{@link #getState() <em>State</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getState() >- * @generated >- * @ordered >- */ >- protected USState state = STATE_EDEFAULT; >- >- /** >- * This is true if the State attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean stateESet; >- >- /** >- * The default value of the '{@link #getZip() <em>Zip</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getZip() >- * @generated >- * @ordered >- */ >- protected static final BigInteger ZIP_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getZip() <em>Zip</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getZip() >- * @generated >- * @ordered >- */ >- protected BigInteger zip = ZIP_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected USAddressImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.US_ADDRESS; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public USState getState() >- { >- return state; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setState(USState newState) >- { >- USState oldState = state; >- state = newState == null ? STATE_EDEFAULT : newState; >- boolean oldStateESet = stateESet; >- stateESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.US_ADDRESS__STATE, oldState, state, !oldStateESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetState() >- { >- USState oldState = state; >- boolean oldStateESet = stateESet; >- state = STATE_EDEFAULT; >- stateESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, IPOPackageImpl.US_ADDRESS__STATE, oldState, STATE_EDEFAULT, oldStateESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetState() >- { >- return stateESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getZip() >- { >- return zip; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setZip(BigInteger newZip) >- { >- BigInteger oldZip = zip; >- zip = newZip; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.US_ADDRESS__ZIP, oldZip, zip)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.US_ADDRESS__STATE: >- return getState(); >- case IPOPackageImpl.US_ADDRESS__ZIP: >- return getZip(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.US_ADDRESS__STATE: >- setState((USState)newValue); >- return; >- case IPOPackageImpl.US_ADDRESS__ZIP: >- setZip((BigInteger)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.US_ADDRESS__STATE: >- unsetState(); >- return; >- case IPOPackageImpl.US_ADDRESS__ZIP: >- setZip(ZIP_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.US_ADDRESS__STATE: >- return isSetState(); >- case IPOPackageImpl.US_ADDRESS__ZIP: >- return ZIP_EDEFAULT == null ? zip != null : !ZIP_EDEFAULT.equals(zip); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (state: "); >- if (stateESet) result.append(state); else result.append("<unset>"); >- result.append(", zip: "); >- result.append(zip); >- result.append(')'); >- return result.toString(); >- } >- >-} //USAddressImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/DocumentRootImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/DocumentRootImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/DocumentRootImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,374 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EMap; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EStructuralFeature; >-import org.eclipse.emf.ecore.EcorePackage; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.EcoreEMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.ipo.DocumentRoot; >-import org.eclipse.emf.test.models.ipo.PurchaseOrderType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl#getPurchaseOrder <em>Purchase Order</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXMLNSPrefixMap() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xMLNSPrefixMap; >- >- /** >- * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXSISchemaLocation() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xSISchemaLocation; >- >- /** >- * The default value of the '{@link #getComment() <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getComment() >- * @generated >- * @ordered >- */ >- protected static final String COMMENT_EDEFAULT = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected DocumentRootImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.DOCUMENT_ROOT; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, IPOPackageImpl.DOCUMENT_ROOT__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXMLNSPrefixMap() >- { >- if (xMLNSPrefixMap == null) >- { >- xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- } >- return xMLNSPrefixMap.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXSISchemaLocation() >- { >- if (xSISchemaLocation == null) >- { >- xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- } >- return xSISchemaLocation.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getComment() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(IPOPackageImpl.Literals.DOCUMENT_ROOT__COMMENT, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setComment(String newComment) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(IPOPackageImpl.Literals.DOCUMENT_ROOT__COMMENT, newComment); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PurchaseOrderType getPurchaseOrder() >- { >- return (PurchaseOrderType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetPurchaseOrder(PurchaseOrderType newPurchaseOrder, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, newPurchaseOrder, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPurchaseOrder(PurchaseOrderType newPurchaseOrder) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(IPOPackageImpl.Literals.DOCUMENT_ROOT__PURCHASE_ORDER, newPurchaseOrder); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case IPOPackageImpl.DOCUMENT_ROOT__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); >- case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); >- case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER: >- return basicSetPurchaseOrder(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.DOCUMENT_ROOT__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap(); >- else return getXMLNSPrefixMap(); >- case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap(); >- else return getXSISchemaLocation(); >- case IPOPackageImpl.DOCUMENT_ROOT__COMMENT: >- return getComment(); >- case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER: >- return getPurchaseOrder(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__COMMENT: >- setComment((String)newValue); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER: >- setPurchaseOrder((PurchaseOrderType)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- getXMLNSPrefixMap().clear(); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- getXSISchemaLocation().clear(); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__COMMENT: >- setComment(COMMENT_EDEFAULT); >- return; >- case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER: >- setPurchaseOrder((PurchaseOrderType)null); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.DOCUMENT_ROOT__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case IPOPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >- case IPOPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >- case IPOPackageImpl.DOCUMENT_ROOT__COMMENT: >- return COMMENT_EDEFAULT == null ? getComment() != null : !COMMENT_EDEFAULT.equals(getComment()); >- case IPOPackageImpl.DOCUMENT_ROOT__PURCHASE_ORDER: >- return getPurchaseOrder() != null; >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(')'); >- return result.toString(); >- } >- >-} //DocumentRootImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/IPOPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/IPOPackageImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/IPOPackageImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/IPOPackageImpl.java 15 Jun 2007 21:22:18 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,2084 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOPackageImpl.java,v 1.4 2007/06/15 21:22:18 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.math.BigInteger; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EEnum; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >-import org.eclipse.emf.ecore.EReference; >-import org.eclipse.emf.ecore.EValidator; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.ipo.Address; >-import org.eclipse.emf.test.models.ipo.DocumentRoot; >-import org.eclipse.emf.test.models.ipo.IPOFactory; >-import org.eclipse.emf.test.models.ipo.ItemType; >-import org.eclipse.emf.test.models.ipo.Items; >-import org.eclipse.emf.test.models.ipo.PurchaseOrderType; >-import org.eclipse.emf.test.models.ipo.UKAddress; >-import org.eclipse.emf.test.models.ipo.USAddress; >-import org.eclipse.emf.test.models.ipo.USState; >- >-import org.eclipse.emf.test.models.ipo.util.IPOValidator; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * <!-- begin-model-doc --> >- * >- * International Purchase order schema for Example.com >- * Copyright 2000 Example.com. All rights reserved. >- * >- * <!-- end-model-doc --> >- * @see org.eclipse.emf.test.models.ipo.IPOFactory >- * @model kind="package" >- * @generated >- */ >-public class IPOPackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "ipo"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/IPO"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "ipo"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final IPOPackageImpl eINSTANCE = org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl <em>Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.AddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getAddress() >- * @generated >- */ >- public static final int ADDRESS = 0; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ADDRESS__NAME = 0; >- >- /** >- * The feature id for the '<em><b>Street</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ADDRESS__STREET = 1; >- >- /** >- * The feature id for the '<em><b>City</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ADDRESS__CITY = 2; >- >- /** >- * The number of structural features of the '<em>Address</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ADDRESS_FEATURE_COUNT = 3; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final int DOCUMENT_ROOT = 1; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >- >- /** >- * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >- >- /** >- * The feature id for the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__COMMENT = 3; >- >- /** >- * The feature id for the '<em><b>Purchase Order</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__PURCHASE_ORDER = 4; >- >- /** >- * The number of structural features of the '<em>Document Root</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT_FEATURE_COUNT = 5; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl <em>Items</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.ItemsImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItems() >- * @generated >- */ >- public static final int ITEMS = 2; >- >- /** >- * The feature id for the '<em><b>Item</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEMS__ITEM = 0; >- >- /** >- * The number of structural features of the '<em>Items</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEMS_FEATURE_COUNT = 1; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl <em>Item Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItemType() >- * @generated >- */ >- public static final int ITEM_TYPE = 3; >- >- /** >- * The feature id for the '<em><b>Product Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__PRODUCT_NAME = 0; >- >- /** >- * The feature id for the '<em><b>Quantity</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__QUANTITY = 1; >- >- /** >- * The feature id for the '<em><b>US Price</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__US_PRICE = 2; >- >- /** >- * The feature id for the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__COMMENT = 3; >- >- /** >- * The feature id for the '<em><b>Ship Date</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__SHIP_DATE = 4; >- >- /** >- * The feature id for the '<em><b>Part Num</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE__PART_NUM = 5; >- >- /** >- * The number of structural features of the '<em>Item Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ITEM_TYPE_FEATURE_COUNT = 6; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl <em>Purchase Order Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPurchaseOrderType() >- * @generated >- */ >- public static final int PURCHASE_ORDER_TYPE = 4; >- >- /** >- * The feature id for the '<em><b>Ship To</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE__SHIP_TO = 0; >- >- /** >- * The feature id for the '<em><b>Bill To</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE__BILL_TO = 1; >- >- /** >- * The feature id for the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE__COMMENT = 2; >- >- /** >- * The feature id for the '<em><b>Items</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE__ITEMS = 3; >- >- /** >- * The feature id for the '<em><b>Order Date</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE__ORDER_DATE = 4; >- >- /** >- * The number of structural features of the '<em>Purchase Order Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PURCHASE_ORDER_TYPE_FEATURE_COUNT = 5; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl <em>UK Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.UKAddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKAddress() >- * @generated >- */ >- public static final int UK_ADDRESS = 5; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS__NAME = ADDRESS__NAME; >- >- /** >- * The feature id for the '<em><b>Street</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS__STREET = ADDRESS__STREET; >- >- /** >- * The feature id for the '<em><b>City</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS__CITY = ADDRESS__CITY; >- >- /** >- * The feature id for the '<em><b>Postcode</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS__POSTCODE = ADDRESS_FEATURE_COUNT + 0; >- >- /** >- * The feature id for the '<em><b>Export Code</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS__EXPORT_CODE = ADDRESS_FEATURE_COUNT + 1; >- >- /** >- * The number of structural features of the '<em>UK Address</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int UK_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl <em>US Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.USAddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSAddress() >- * @generated >- */ >- public static final int US_ADDRESS = 6; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS__NAME = ADDRESS__NAME; >- >- /** >- * The feature id for the '<em><b>Street</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS__STREET = ADDRESS__STREET; >- >- /** >- * The feature id for the '<em><b>City</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS__CITY = ADDRESS__CITY; >- >- /** >- * The feature id for the '<em><b>State</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS__STATE = ADDRESS_FEATURE_COUNT + 0; >- >- /** >- * The feature id for the '<em><b>Zip</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS__ZIP = ADDRESS_FEATURE_COUNT + 1; >- >- /** >- * The number of structural features of the '<em>US Address</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int US_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState() >- * @generated >- */ >- public static final int US_STATE = 7; >- >- /** >- * The meta object id for the '<em>Postcode</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPostcode() >- * @generated >- */ >- public static final int POSTCODE = 8; >- >- /** >- * The meta object id for the '<em>Quantity Type</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.math.BigInteger >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getQuantityType() >- * @generated >- */ >- public static final int QUANTITY_TYPE = 9; >- >- /** >- * The meta object id for the '<em>SKU</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getSKU() >- * @generated >- */ >- public static final int SKU = 10; >- >- /** >- * The meta object id for the '<em>UK Postcode</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKPostcode() >- * @generated >- */ >- public static final int UK_POSTCODE = 11; >- >- /** >- * The meta object id for the '<em>US State Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSStateObject() >- * @generated >- */ >- public static final int US_STATE_OBJECT = 12; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass addressEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass documentRootEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass itemsEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass itemTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass purchaseOrderTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass ukAddressEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass usAddressEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EEnum usStateEEnum = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType postcodeEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType quantityTypeEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType skuEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType ukPostcodeEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType usStateObjectEDataType = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private IPOPackageImpl() >- { >- super(eNS_URI, ((EFactory)IPOFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static IPOPackageImpl init() >- { >- if (isInited) return (IPOPackageImpl)EPackage.Registry.INSTANCE.getEPackage(IPOPackageImpl.eNS_URI); >- >- // Obtain or create and register package >- IPOPackageImpl theIPOPackageImpl = (IPOPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof IPOPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new IPOPackageImpl()); >- >- isInited = true; >- >- // Initialize simple dependencies >- XMLTypePackage.eINSTANCE.eClass(); >- >- // Create package meta-data objects >- theIPOPackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- theIPOPackageImpl.initializePackageContents(); >- >- // Register package validator >- EValidator.Registry.INSTANCE.put >- (theIPOPackageImpl, >- new EValidator.Descriptor() >- { >- public EValidator getEValidator() >- { >- return IPOValidator.INSTANCE; >- } >- }); >- >- // Mark meta-data to indicate it can't be changed >- theIPOPackageImpl.freeze(); >- >- return theIPOPackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.Address <em>Address</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Address</em>'. >- * @see org.eclipse.emf.test.models.ipo.Address >- * @generated >- */ >- public EClass getAddress() >- { >- return addressEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.ipo.Address#getName() >- * @see #getAddress() >- * @generated >- */ >- public EAttribute getAddress_Name() >- { >- return (EAttribute)addressEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Street</em>'. >- * @see org.eclipse.emf.test.models.ipo.Address#getStreet() >- * @see #getAddress() >- * @generated >- */ >- public EAttribute getAddress_Street() >- { >- return (EAttribute)addressEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>City</em>'. >- * @see org.eclipse.emf.test.models.ipo.Address#getCity() >- * @see #getAddress() >- * @generated >- */ >- public EAttribute getAddress_City() >- { >- return (EAttribute)addressEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Document Root</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot >- * @generated >- */ >- public EClass getDocumentRoot() >- { >- return documentRootEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Mixed() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XMLNSPrefixMap() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XSI Schema Location</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XSISchemaLocation() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Comment</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getComment() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Comment() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Purchase Order</em>'. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_PurchaseOrder() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.Items <em>Items</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Items</em>'. >- * @see org.eclipse.emf.test.models.ipo.Items >- * @generated >- */ >- public EClass getItems() >- { >- return itemsEClass; >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.ipo.Items#getItem <em>Item</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Item</em>'. >- * @see org.eclipse.emf.test.models.ipo.Items#getItem() >- * @see #getItems() >- * @generated >- */ >- public EReference getItems_Item() >- { >- return (EReference)itemsEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.ItemType <em>Item Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Item Type</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType >- * @generated >- */ >- public EClass getItemType() >- { >- return itemTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Product Name</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getProductName() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_ProductName() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Quantity</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getQuantity() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_Quantity() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>US Price</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getUSPrice() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_USPrice() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Comment</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getComment() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_Comment() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Ship Date</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getShipDate() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_ShipDate() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Part Num</em>'. >- * @see org.eclipse.emf.test.models.ipo.ItemType#getPartNum() >- * @see #getItemType() >- * @generated >- */ >- public EAttribute getItemType_PartNum() >- { >- return (EAttribute)itemTypeEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType <em>Purchase Order Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Purchase Order Type</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType >- * @generated >- */ >- public EClass getPurchaseOrderType() >- { >- return purchaseOrderTypeEClass; >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Ship To</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo() >- * @see #getPurchaseOrderType() >- * @generated >- */ >- public EReference getPurchaseOrderType_ShipTo() >- { >- return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Bill To</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo() >- * @see #getPurchaseOrderType() >- * @generated >- */ >- public EReference getPurchaseOrderType_BillTo() >- { >- return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Comment</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment() >- * @see #getPurchaseOrderType() >- * @generated >- */ >- public EAttribute getPurchaseOrderType_Comment() >- { >- return (EAttribute)purchaseOrderTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Items</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems() >- * @see #getPurchaseOrderType() >- * @generated >- */ >- public EReference getPurchaseOrderType_Items() >- { >- return (EReference)purchaseOrderTypeEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Order Date</em>'. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate() >- * @see #getPurchaseOrderType() >- * @generated >- */ >- public EAttribute getPurchaseOrderType_OrderDate() >- { >- return (EAttribute)purchaseOrderTypeEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.UKAddress <em>UK Address</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>UK Address</em>'. >- * @see org.eclipse.emf.test.models.ipo.UKAddress >- * @generated >- */ >- public EClass getUKAddress() >- { >- return ukAddressEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Postcode</em>'. >- * @see org.eclipse.emf.test.models.ipo.UKAddress#getPostcode() >- * @see #getUKAddress() >- * @generated >- */ >- public EAttribute getUKAddress_Postcode() >- { >- return (EAttribute)ukAddressEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Export Code</em>'. >- * @see org.eclipse.emf.test.models.ipo.UKAddress#getExportCode() >- * @see #getUKAddress() >- * @generated >- */ >- public EAttribute getUKAddress_ExportCode() >- { >- return (EAttribute)ukAddressEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.ipo.USAddress <em>US Address</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>US Address</em>'. >- * @see org.eclipse.emf.test.models.ipo.USAddress >- * @generated >- */ >- public EClass getUSAddress() >- { >- return usAddressEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>State</em>'. >- * @see org.eclipse.emf.test.models.ipo.USAddress#getState() >- * @see #getUSAddress() >- * @generated >- */ >- public EAttribute getUSAddress_State() >- { >- return (EAttribute)usAddressEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Zip</em>'. >- * @see org.eclipse.emf.test.models.ipo.USAddress#getZip() >- * @see #getUSAddress() >- * @generated >- */ >- public EAttribute getUSAddress_Zip() >- { >- return (EAttribute)usAddressEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for enum '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for enum '<em>US State</em>'. >- * @see org.eclipse.emf.test.models.ipo.USState >- * @generated >- */ >- public EEnum getUSState() >- { >- return usStateEEnum; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.String <em>Postcode</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>Postcode</em>'. >- * @see java.lang.String >- * @model instanceClass="java.lang.String" >- * extendedMetaData="name='Postcode' baseType='http://www.eclipse.org/emf/2003/XMLType#string' length='7'" >- * @generated >- */ >- public EDataType getPostcode() >- { >- return postcodeEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.math.BigInteger <em>Quantity Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>Quantity Type</em>'. >- * @see java.math.BigInteger >- * @model instanceClass="java.math.BigInteger" >- * extendedMetaData="name='quantity_._type' baseType='http://www.eclipse.org/emf/2003/XMLType#positiveInteger' maxExclusive='100'" >- * @generated >- */ >- public EDataType getQuantityType() >- { >- return quantityTypeEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.String <em>SKU</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>SKU</em>'. >- * @see java.lang.String >- * @model instanceClass="java.lang.String" >- * extendedMetaData="name='SKU' baseType='http://www.eclipse.org/emf/2003/XMLType#string' pattern='\\d{3}-[A-Z]{2}'" >- * @generated >- */ >- public EDataType getSKU() >- { >- return skuEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.String <em>UK Postcode</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>UK Postcode</em>'. >- * @see java.lang.String >- * @model instanceClass="java.lang.String" >- * extendedMetaData="name='UKPostcode' baseType='Postcode' pattern='[A-Z]{2}\\d\\s\\d[A-Z]{2}'" >- * @generated >- */ >- public EDataType getUKPostcode() >- { >- return ukPostcodeEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link org.eclipse.emf.test.models.ipo.USState <em>US State Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>US State Object</em>'. >- * @see org.eclipse.emf.test.models.ipo.USState >- * @model instanceClass="org.eclipse.emf.test.models.ipo.USState" >- * extendedMetaData="name='USState:Object' baseType='USState'" >- * @generated >- */ >- public EDataType getUSStateObject() >- { >- return usStateObjectEDataType; >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public IPOFactory getIPOFactory() >- { >- return (IPOFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- addressEClass = createEClass(ADDRESS); >- createEAttribute(addressEClass, ADDRESS__NAME); >- createEAttribute(addressEClass, ADDRESS__STREET); >- createEAttribute(addressEClass, ADDRESS__CITY); >- >- documentRootEClass = createEClass(DOCUMENT_ROOT); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__COMMENT); >- createEReference(documentRootEClass, DOCUMENT_ROOT__PURCHASE_ORDER); >- >- itemsEClass = createEClass(ITEMS); >- createEReference(itemsEClass, ITEMS__ITEM); >- >- itemTypeEClass = createEClass(ITEM_TYPE); >- createEAttribute(itemTypeEClass, ITEM_TYPE__PRODUCT_NAME); >- createEAttribute(itemTypeEClass, ITEM_TYPE__QUANTITY); >- createEAttribute(itemTypeEClass, ITEM_TYPE__US_PRICE); >- createEAttribute(itemTypeEClass, ITEM_TYPE__COMMENT); >- createEAttribute(itemTypeEClass, ITEM_TYPE__SHIP_DATE); >- createEAttribute(itemTypeEClass, ITEM_TYPE__PART_NUM); >- >- purchaseOrderTypeEClass = createEClass(PURCHASE_ORDER_TYPE); >- createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__SHIP_TO); >- createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__BILL_TO); >- createEAttribute(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__COMMENT); >- createEReference(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__ITEMS); >- createEAttribute(purchaseOrderTypeEClass, PURCHASE_ORDER_TYPE__ORDER_DATE); >- >- ukAddressEClass = createEClass(UK_ADDRESS); >- createEAttribute(ukAddressEClass, UK_ADDRESS__POSTCODE); >- createEAttribute(ukAddressEClass, UK_ADDRESS__EXPORT_CODE); >- >- usAddressEClass = createEClass(US_ADDRESS); >- createEAttribute(usAddressEClass, US_ADDRESS__STATE); >- createEAttribute(usAddressEClass, US_ADDRESS__ZIP); >- >- // Create enums >- usStateEEnum = createEEnum(US_STATE); >- >- // Create data types >- postcodeEDataType = createEDataType(POSTCODE); >- quantityTypeEDataType = createEDataType(QUANTITY_TYPE); >- skuEDataType = createEDataType(SKU); >- ukPostcodeEDataType = createEDataType(UK_POSTCODE); >- usStateObjectEDataType = createEDataType(US_STATE_OBJECT); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Obtain other dependent packages >- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- ukAddressEClass.getESuperTypes().add(this.getAddress()); >- usAddressEClass.getESuperTypes().add(this.getAddress()); >- >- // Initialize classes and features; add operations and parameters >- initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- >- initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(itemsEClass, Items.class, "Items", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- >- initEClass(itemTypeEClass, ItemType.class, "ItemType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(purchaseOrderTypeEClass, PurchaseOrderType.class, "PurchaseOrderType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(ukAddressEClass, UKAddress.class, "UKAddress", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- >- initEClass(usAddressEClass, USAddress.class, "USAddress", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- >- // Initialize enums and add enum literals >- initEEnum(usStateEEnum, USState.class, "USState"); >- addEEnumLiteral(usStateEEnum, USState.AK); >- addEEnumLiteral(usStateEEnum, USState.AL); >- addEEnumLiteral(usStateEEnum, USState.AR); >- addEEnumLiteral(usStateEEnum, USState.PA); >- >- // Initialize data types >- initEDataType(postcodeEDataType, String.class, "Postcode", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(quantityTypeEDataType, BigInteger.class, "QuantityType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(skuEDataType, String.class, "SKU", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(ukPostcodeEDataType, String.class, "UKPostcode", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(usStateObjectEDataType, USState.class, "USStateObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); >- >- // Create resource >- createResource(eNS_URI); >- >- // Create annotations >- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >- createExtendedMetaDataAnnotations(); >- } >- >- /** >- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected void createExtendedMetaDataAnnotations() >- { >- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >- addAnnotation >- (addressEClass, >- source, >- new String[] >- { >- "name", "Address", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getAddress_Name(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "name" >- }); >- addAnnotation >- (getAddress_Street(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "street" >- }); >- addAnnotation >- (getAddress_City(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "city" >- }); >- addAnnotation >- (documentRootEClass, >- source, >- new String[] >- { >- "name", "", >- "kind", "mixed" >- }); >- addAnnotation >- (getDocumentRoot_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getDocumentRoot_XMLNSPrefixMap(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xmlns:prefix" >- }); >- addAnnotation >- (getDocumentRoot_XSISchemaLocation(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xsi:schemaLocation" >- }); >- addAnnotation >- (getDocumentRoot_Comment(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "comment", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_PurchaseOrder(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "purchaseOrder", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (itemsEClass, >- source, >- new String[] >- { >- "name", "Items", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getItems_Item(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "item" >- }); >- addAnnotation >- (itemTypeEClass, >- source, >- new String[] >- { >- "name", "item_._type", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getItemType_ProductName(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "productName" >- }); >- addAnnotation >- (getItemType_Quantity(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "quantity" >- }); >- addAnnotation >- (getItemType_USPrice(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "USPrice" >- }); >- addAnnotation >- (getItemType_Comment(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "comment", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getItemType_ShipDate(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "shipDate" >- }); >- addAnnotation >- (getItemType_PartNum(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "partNum" >- }); >- addAnnotation >- (postcodeEDataType, >- source, >- new String[] >- { >- "name", "Postcode", >- "baseType", "http://www.eclipse.org/emf/2003/XMLType#string", >- "length", "7" >- }); >- addAnnotation >- (purchaseOrderTypeEClass, >- source, >- new String[] >- { >- "name", "PurchaseOrderType", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getPurchaseOrderType_ShipTo(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "shipTo" >- }); >- addAnnotation >- (getPurchaseOrderType_BillTo(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "billTo" >- }); >- addAnnotation >- (getPurchaseOrderType_Comment(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "comment", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPurchaseOrderType_Items(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "items" >- }); >- addAnnotation >- (getPurchaseOrderType_OrderDate(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "orderDate" >- }); >- addAnnotation >- (quantityTypeEDataType, >- source, >- new String[] >- { >- "name", "quantity_._type", >- "baseType", "http://www.eclipse.org/emf/2003/XMLType#positiveInteger", >- "maxExclusive", "100" >- }); >- addAnnotation >- (skuEDataType, >- source, >- new String[] >- { >- "name", "SKU", >- "baseType", "http://www.eclipse.org/emf/2003/XMLType#string", >- "pattern", "\\d{3}-[A-Z]{2}" >- }); >- addAnnotation >- (ukAddressEClass, >- source, >- new String[] >- { >- "name", "UKAddress", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getUKAddress_Postcode(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "postcode" >- }); >- addAnnotation >- (getUKAddress_ExportCode(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "exportCode" >- }); >- addAnnotation >- (ukPostcodeEDataType, >- source, >- new String[] >- { >- "name", "UKPostcode", >- "baseType", "Postcode", >- "pattern", "[A-Z]{2}\\d\\s\\d[A-Z]{2}" >- }); >- addAnnotation >- (usAddressEClass, >- source, >- new String[] >- { >- "name", "USAddress", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getUSAddress_State(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "state" >- }); >- addAnnotation >- (getUSAddress_Zip(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "zip" >- }); >- addAnnotation >- (usStateEEnum, >- source, >- new String[] >- { >- "name", "USState" >- }); >- addAnnotation >- (usStateObjectEDataType, >- source, >- new String[] >- { >- "name", "USState:Object", >- "baseType", "USState" >- }); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.AddressImpl <em>Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.AddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getAddress() >- * @generated >- */ >- public static final EClass ADDRESS = eINSTANCE.getAddress(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ADDRESS__NAME = eINSTANCE.getAddress_Name(); >- >- /** >- * The meta object literal for the '<em><b>Street</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ADDRESS__STREET = eINSTANCE.getAddress_Street(); >- >- /** >- * The meta object literal for the '<em><b>City</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ADDRESS__CITY = eINSTANCE.getAddress_City(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap(); >- >- /** >- * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation(); >- >- /** >- * The meta object literal for the '<em><b>Comment</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__COMMENT = eINSTANCE.getDocumentRoot_Comment(); >- >- /** >- * The meta object literal for the '<em><b>Purchase Order</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__PURCHASE_ORDER = eINSTANCE.getDocumentRoot_PurchaseOrder(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl <em>Items</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.ItemsImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItems() >- * @generated >- */ >- public static final EClass ITEMS = eINSTANCE.getItems(); >- >- /** >- * The meta object literal for the '<em><b>Item</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference ITEMS__ITEM = eINSTANCE.getItems_Item(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl <em>Item Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.ItemTypeImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getItemType() >- * @generated >- */ >- public static final EClass ITEM_TYPE = eINSTANCE.getItemType(); >- >- /** >- * The meta object literal for the '<em><b>Product Name</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__PRODUCT_NAME = eINSTANCE.getItemType_ProductName(); >- >- /** >- * The meta object literal for the '<em><b>Quantity</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__QUANTITY = eINSTANCE.getItemType_Quantity(); >- >- /** >- * The meta object literal for the '<em><b>US Price</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__US_PRICE = eINSTANCE.getItemType_USPrice(); >- >- /** >- * The meta object literal for the '<em><b>Comment</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__COMMENT = eINSTANCE.getItemType_Comment(); >- >- /** >- * The meta object literal for the '<em><b>Ship Date</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__SHIP_DATE = eINSTANCE.getItemType_ShipDate(); >- >- /** >- * The meta object literal for the '<em><b>Part Num</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ITEM_TYPE__PART_NUM = eINSTANCE.getItemType_PartNum(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl <em>Purchase Order Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.PurchaseOrderTypeImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPurchaseOrderType() >- * @generated >- */ >- public static final EClass PURCHASE_ORDER_TYPE = eINSTANCE.getPurchaseOrderType(); >- >- /** >- * The meta object literal for the '<em><b>Ship To</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PURCHASE_ORDER_TYPE__SHIP_TO = eINSTANCE.getPurchaseOrderType_ShipTo(); >- >- /** >- * The meta object literal for the '<em><b>Bill To</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PURCHASE_ORDER_TYPE__BILL_TO = eINSTANCE.getPurchaseOrderType_BillTo(); >- >- /** >- * The meta object literal for the '<em><b>Comment</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PURCHASE_ORDER_TYPE__COMMENT = eINSTANCE.getPurchaseOrderType_Comment(); >- >- /** >- * The meta object literal for the '<em><b>Items</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PURCHASE_ORDER_TYPE__ITEMS = eINSTANCE.getPurchaseOrderType_Items(); >- >- /** >- * The meta object literal for the '<em><b>Order Date</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PURCHASE_ORDER_TYPE__ORDER_DATE = eINSTANCE.getPurchaseOrderType_OrderDate(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl <em>UK Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.UKAddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKAddress() >- * @generated >- */ >- public static final EClass UK_ADDRESS = eINSTANCE.getUKAddress(); >- >- /** >- * The meta object literal for the '<em><b>Postcode</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute UK_ADDRESS__POSTCODE = eINSTANCE.getUKAddress_Postcode(); >- >- /** >- * The meta object literal for the '<em><b>Export Code</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute UK_ADDRESS__EXPORT_CODE = eINSTANCE.getUKAddress_ExportCode(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.impl.USAddressImpl <em>US Address</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.USAddressImpl >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSAddress() >- * @generated >- */ >- public static final EClass US_ADDRESS = eINSTANCE.getUSAddress(); >- >- /** >- * The meta object literal for the '<em><b>State</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute US_ADDRESS__STATE = eINSTANCE.getUSAddress_State(); >- >- /** >- * The meta object literal for the '<em><b>Zip</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute US_ADDRESS__ZIP = eINSTANCE.getUSAddress_Zip(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.ipo.USState <em>US State</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState() >- * @generated >- */ >- public static final EEnum US_STATE = eINSTANCE.getUSState(); >- >- /** >- * The meta object literal for the '<em>Postcode</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getPostcode() >- * @generated >- */ >- public static final EDataType POSTCODE = eINSTANCE.getPostcode(); >- >- /** >- * The meta object literal for the '<em>Quantity Type</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.math.BigInteger >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getQuantityType() >- * @generated >- */ >- public static final EDataType QUANTITY_TYPE = eINSTANCE.getQuantityType(); >- >- /** >- * The meta object literal for the '<em>SKU</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getSKU() >- * @generated >- */ >- public static final EDataType SKU = eINSTANCE.getSKU(); >- >- /** >- * The meta object literal for the '<em>UK Postcode</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.String >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUKPostcode() >- * @generated >- */ >- public static final EDataType UK_POSTCODE = eINSTANCE.getUKPostcode(); >- >- /** >- * The meta object literal for the '<em>US State Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSStateObject() >- * @generated >- */ >- public static final EDataType US_STATE_OBJECT = eINSTANCE.getUSStateObject(); >- >- } >- >-} //IPOPackageImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/UKAddressImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/UKAddressImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/UKAddressImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/UKAddressImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,290 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UKAddressImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.math.BigInteger; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.test.models.ipo.UKAddress; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>UK Address</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl#getPostcode <em>Postcode</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.UKAddressImpl#getExportCode <em>Export Code</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class UKAddressImpl extends AddressImpl implements UKAddress >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getPostcode() <em>Postcode</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPostcode() >- * @generated >- * @ordered >- */ >- protected static final String POSTCODE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getPostcode() <em>Postcode</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPostcode() >- * @generated >- * @ordered >- */ >- protected String postcode = POSTCODE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getExportCode() <em>Export Code</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getExportCode() >- * @generated >- * @ordered >- */ >- protected static final BigInteger EXPORT_CODE_EDEFAULT = new BigInteger("1"); >- >- /** >- * The cached value of the '{@link #getExportCode() <em>Export Code</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getExportCode() >- * @generated >- * @ordered >- */ >- protected BigInteger exportCode = EXPORT_CODE_EDEFAULT; >- >- /** >- * This is true if the Export Code attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean exportCodeESet; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected UKAddressImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.UK_ADDRESS; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getPostcode() >- { >- return postcode; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPostcode(String newPostcode) >- { >- String oldPostcode = postcode; >- postcode = newPostcode; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.UK_ADDRESS__POSTCODE, oldPostcode, postcode)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getExportCode() >- { >- return exportCode; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setExportCode(BigInteger newExportCode) >- { >- BigInteger oldExportCode = exportCode; >- exportCode = newExportCode; >- boolean oldExportCodeESet = exportCodeESet; >- exportCodeESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, IPOPackageImpl.UK_ADDRESS__EXPORT_CODE, oldExportCode, exportCode, !oldExportCodeESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetExportCode() >- { >- BigInteger oldExportCode = exportCode; >- boolean oldExportCodeESet = exportCodeESet; >- exportCode = EXPORT_CODE_EDEFAULT; >- exportCodeESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, IPOPackageImpl.UK_ADDRESS__EXPORT_CODE, oldExportCode, EXPORT_CODE_EDEFAULT, oldExportCodeESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetExportCode() >- { >- return exportCodeESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.UK_ADDRESS__POSTCODE: >- return getPostcode(); >- case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE: >- return getExportCode(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.UK_ADDRESS__POSTCODE: >- setPostcode((String)newValue); >- return; >- case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE: >- setExportCode((BigInteger)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.UK_ADDRESS__POSTCODE: >- setPostcode(POSTCODE_EDEFAULT); >- return; >- case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE: >- unsetExportCode(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.UK_ADDRESS__POSTCODE: >- return POSTCODE_EDEFAULT == null ? postcode != null : !POSTCODE_EDEFAULT.equals(postcode); >- case IPOPackageImpl.UK_ADDRESS__EXPORT_CODE: >- return isSetExportCode(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (postcode: "); >- result.append(postcode); >- result.append(", exportCode: "); >- if (exportCodeESet) result.append(exportCode); else result.append("<unset>"); >- result.append(')'); >- return result.toString(); >- } >- >-} //UKAddressImpl >Index: src/org/eclipse/emf/test/models/ipo/impl/ItemsImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/impl/ItemsImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/impl/ItemsImpl.java >--- src/org/eclipse/emf/test/models/ipo/impl/ItemsImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,188 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: ItemsImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.impl; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.ipo.ItemType; >-import org.eclipse.emf.test.models.ipo.Items; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Items</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.impl.ItemsImpl#getItem <em>Item</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class ItemsImpl extends EDataObjectImpl implements Items >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getItem() <em>Item</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getItem() >- * @generated >- * @ordered >- */ >- protected EList<ItemType> item; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected ItemsImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return IPOPackageImpl.Literals.ITEMS; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<ItemType> getItem() >- { >- if (item == null) >- { >- item = new EObjectContainmentEList<ItemType>(ItemType.class, this, IPOPackageImpl.ITEMS__ITEM); >- } >- return item; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEMS__ITEM: >- return ((InternalEList<?>)getItem()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEMS__ITEM: >- return getItem(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEMS__ITEM: >- getItem().clear(); >- getItem().addAll((Collection<? extends ItemType>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEMS__ITEM: >- getItem().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case IPOPackageImpl.ITEMS__ITEM: >- return item != null && !item.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >-} //ItemsImpl >Index: src/org/eclipse/emf/test/models/ipo/IPOFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/IPOFactory.java >diff -N src/org/eclipse/emf/test/models/ipo/IPOFactory.java >--- src/org/eclipse/emf/test/models/ipo/IPOFactory.java 18 Jan 2007 22:06:39 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,100 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOFactory.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface IPOFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- IPOFactory INSTANCE = org.eclipse.emf.test.models.ipo.impl.IPOFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>Address</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Address</em>'. >- * @generated >- */ >- Address createAddress(); >- >- /** >- * Returns a new object of class '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Document Root</em>'. >- * @generated >- */ >- DocumentRoot createDocumentRoot(); >- >- /** >- * Returns a new object of class '<em>Items</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Items</em>'. >- * @generated >- */ >- Items createItems(); >- >- /** >- * Returns a new object of class '<em>Item Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Item Type</em>'. >- * @generated >- */ >- ItemType createItemType(); >- >- /** >- * Returns a new object of class '<em>Purchase Order Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Purchase Order Type</em>'. >- * @generated >- */ >- PurchaseOrderType createPurchaseOrderType(); >- >- /** >- * Returns a new object of class '<em>UK Address</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>UK Address</em>'. >- * @generated >- */ >- UKAddress createUKAddress(); >- >- /** >- * Returns a new object of class '<em>US Address</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>US Address</em>'. >- * @generated >- */ >- USAddress createUSAddress(); >- >-} //IPOFactory >Index: src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java >diff -N src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java >--- src/org/eclipse/emf/test/models/ipo/PurchaseOrderType.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,173 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PurchaseOrderType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import javax.xml.datatype.XMLGregorianCalendar; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Purchase Order Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='PurchaseOrderType' kind='elementOnly'" >- * @generated >- */ >-public interface PurchaseOrderType >-{ >- /** >- * Returns the value of the '<em><b>Ship To</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Ship To</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Ship To</em>' containment reference. >- * @see #setShipTo(Address) >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='shipTo'" >- * @generated >- */ >- Address getShipTo(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getShipTo <em>Ship To</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Ship To</em>' containment reference. >- * @see #getShipTo() >- * @generated >- */ >- void setShipTo(Address value); >- >- /** >- * Returns the value of the '<em><b>Bill To</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Bill To</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Bill To</em>' containment reference. >- * @see #setBillTo(Address) >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='billTo'" >- * @generated >- */ >- Address getBillTo(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getBillTo <em>Bill To</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Bill To</em>' containment reference. >- * @see #getBillTo() >- * @generated >- */ >- void setBillTo(Address value); >- >- /** >- * Returns the value of the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Comment</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Comment</em>' attribute. >- * @see #setComment(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" >- * extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'" >- * @generated >- */ >- String getComment(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getComment <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Comment</em>' attribute. >- * @see #getComment() >- * @generated >- */ >- void setComment(String value); >- >- /** >- * Returns the value of the '<em><b>Items</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Items</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Items</em>' containment reference. >- * @see #setItems(Items) >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='items'" >- * @generated >- */ >- Items getItems(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getItems <em>Items</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Items</em>' containment reference. >- * @see #getItems() >- * @generated >- */ >- void setItems(Items value); >- >- /** >- * Returns the value of the '<em><b>Order Date</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Order Date</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Order Date</em>' attribute. >- * @see #setOrderDate(XMLGregorianCalendar) >- * @model dataType="org.eclipse.emf.ecore.xml.type.DateTime" >- * extendedMetaData="kind='attribute' name='orderDate'" >- * @generated >- */ >- XMLGregorianCalendar getOrderDate(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType#getOrderDate <em>Order Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Order Date</em>' attribute. >- * @see #getOrderDate() >- * @generated >- */ >- void setOrderDate(XMLGregorianCalendar value); >- >-} // PurchaseOrderType >Index: src/org/eclipse/emf/test/models/ipo/ItemType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/ItemType.java >diff -N src/org/eclipse/emf/test/models/ipo/ItemType.java >--- src/org/eclipse/emf/test/models/ipo/ItemType.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,201 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: ItemType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import java.math.BigDecimal; >-import java.math.BigInteger; >-import javax.xml.datatype.XMLGregorianCalendar; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Item Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='item_._type' kind='elementOnly'" >- * @generated >- */ >-public interface ItemType >-{ >- /** >- * Returns the value of the '<em><b>Product Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Product Name</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Product Name</em>' attribute. >- * @see #setProductName(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='productName'" >- * @generated >- */ >- String getProductName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getProductName <em>Product Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Product Name</em>' attribute. >- * @see #getProductName() >- * @generated >- */ >- void setProductName(String value); >- >- /** >- * Returns the value of the '<em><b>Quantity</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Quantity</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Quantity</em>' attribute. >- * @see #setQuantity(BigInteger) >- * @model dataType="org.eclipse.emf.test.models.ipo.QuantityType" required="true" >- * extendedMetaData="kind='element' name='quantity'" >- * @generated >- */ >- BigInteger getQuantity(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getQuantity <em>Quantity</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Quantity</em>' attribute. >- * @see #getQuantity() >- * @generated >- */ >- void setQuantity(BigInteger value); >- >- /** >- * Returns the value of the '<em><b>US Price</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>US Price</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>US Price</em>' attribute. >- * @see #setUSPrice(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='USPrice'" >- * @generated >- */ >- BigDecimal getUSPrice(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getUSPrice <em>US Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>US Price</em>' attribute. >- * @see #getUSPrice() >- * @generated >- */ >- void setUSPrice(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Comment</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Comment</em>' attribute. >- * @see #setComment(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" >- * extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'" >- * @generated >- */ >- String getComment(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getComment <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Comment</em>' attribute. >- * @see #getComment() >- * @generated >- */ >- void setComment(String value); >- >- /** >- * Returns the value of the '<em><b>Ship Date</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Ship Date</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Ship Date</em>' attribute. >- * @see #setShipDate(XMLGregorianCalendar) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Date" >- * extendedMetaData="kind='element' name='shipDate'" >- * @generated >- */ >- XMLGregorianCalendar getShipDate(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getShipDate <em>Ship Date</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Ship Date</em>' attribute. >- * @see #getShipDate() >- * @generated >- */ >- void setShipDate(XMLGregorianCalendar value); >- >- /** >- * Returns the value of the '<em><b>Part Num</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Part Num</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Part Num</em>' attribute. >- * @see #setPartNum(String) >- * @model dataType="org.eclipse.emf.test.models.ipo.SKU" required="true" >- * extendedMetaData="kind='attribute' name='partNum'" >- * @generated >- */ >- String getPartNum(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.ItemType#getPartNum <em>Part Num</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Part Num</em>' attribute. >- * @see #getPartNum() >- * @generated >- */ >- void setPartNum(String value); >- >-} // ItemType >Index: src/org/eclipse/emf/test/models/ipo/USState.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/USState.java >diff -N src/org/eclipse/emf/test/models/ipo/USState.java >--- src/org/eclipse/emf/test/models/ipo/USState.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,300 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: USState.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import java.util.Arrays; >-import java.util.Collections; >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the literals of the enumeration '<em><b>US State</b></em>', >- * and utility methods for working with them. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl#getUSState() >- * @model extendedMetaData="name='USState'" >- * @generated >- */ >-public enum USState implements InternalUSState >-{ >- /** >- * The '<em><b>AK</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #AK_VALUE >- * @generated >- * @ordered >- */ >- AK(0, "AK", "AK"), >- >- /** >- * The '<em><b>AL</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #AL_VALUE >- * @generated >- * @ordered >- */ >- AL(1, "AL", "AL"), >- >- /** >- * The '<em><b>AR</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #AR_VALUE >- * @generated >- * @ordered >- */ >- AR(2, "AR", "AR"), >- >- /** >- * The '<em><b>PA</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #PA_VALUE >- * @generated >- * @ordered >- */ >- PA(3, "PA", "PA"); >- >- /** >- * The '<em><b>AK</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>AK</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #AK >- * @model >- * @generated >- * @ordered >- */ >- public static final int AK_VALUE = 0; >- >- /** >- * The '<em><b>AL</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>AL</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #AL >- * @model >- * @generated >- * @ordered >- */ >- public static final int AL_VALUE = 1; >- >- /** >- * The '<em><b>AR</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>AR</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #AR >- * @model >- * @generated >- * @ordered >- */ >- public static final int AR_VALUE = 2; >- >- /** >- * The '<em><b>PA</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>PA</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #PA >- * @model >- * @generated >- * @ordered >- */ >- public static final int PA_VALUE = 3; >- >- /** >- * An array of all the '<em><b>US State</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final USState[] VALUES_ARRAY = >- new USState[] >- { >- AK, >- AL, >- AR, >- PA, >- }; >- >- /** >- * A public read-only list of all the '<em><b>US State</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final List<USState> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); >- >- /** >- * Returns the '<em><b>US State</b></em>' literal with the specified literal value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static USState get(String literal) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- USState result = VALUES_ARRAY[i]; >- if (result.toString().equals(literal)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>US State</b></em>' literal with the specified name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static USState getByName(String name) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- USState result = VALUES_ARRAY[i]; >- if (result.getName().equals(name)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>US State</b></em>' literal with the specified integer value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static USState get(int value) >- { >- switch (value) >- { >- case AK_VALUE: return AK; >- case AL_VALUE: return AL; >- case AR_VALUE: return AR; >- case PA_VALUE: return PA; >- } >- return null; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final int value; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String name; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String literal; >- >- /** >- * Only this class can construct instances. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private USState(int value, String name, String literal) >- { >- this.value = value; >- this.name = name; >- this.literal = literal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getValue() >- { >- return value; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getLiteral() >- { >- return literal; >- } >- >- /** >- * Returns the literal value of the enumerator, which is its string representation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- return literal; >- } >- >-} //USState >- >-/** >- * A private implementation interface used to hide the inheritance from Enumerator. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-interface InternalUSState extends org.eclipse.emf.common.util.Enumerator >-{ >- // Empty >-} >Index: src/org/eclipse/emf/test/models/ipo/Address.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/Address.java >diff -N src/org/eclipse/emf/test/models/ipo/Address.java >--- src/org/eclipse/emf/test/models/ipo/Address.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,117 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Address.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Address</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='Address' kind='elementOnly'" >- * @generated >- */ >-public interface Address >-{ >- /** >- * Returns the value of the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' attribute. >- * @see #setName(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='name'" >- * @generated >- */ >- String getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getName <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' attribute. >- * @see #getName() >- * @generated >- */ >- void setName(String value); >- >- /** >- * Returns the value of the '<em><b>Street</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Street</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Street</em>' attribute. >- * @see #setStreet(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='street'" >- * @generated >- */ >- String getStreet(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getStreet <em>Street</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Street</em>' attribute. >- * @see #getStreet() >- * @generated >- */ >- void setStreet(String value); >- >- /** >- * Returns the value of the '<em><b>City</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>City</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>City</em>' attribute. >- * @see #setCity(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='city'" >- * @generated >- */ >- String getCity(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.Address#getCity <em>City</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>City</em>' attribute. >- * @see #getCity() >- * @generated >- */ >- void setCity(String value); >- >-} // Address >Index: src/org/eclipse/emf/test/models/ipo/USAddress.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/USAddress.java >diff -N src/org/eclipse/emf/test/models/ipo/USAddress.java >--- src/org/eclipse/emf/test/models/ipo/USAddress.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,122 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: USAddress.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import java.math.BigInteger; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>US Address</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='USAddress' kind='elementOnly'" >- * @generated >- */ >-public interface USAddress extends Address >-{ >- /** >- * Returns the value of the '<em><b>State</b></em>' attribute. >- * The default value is <code>"AK"</code>. >- * The literals are from the enumeration {@link org.eclipse.emf.test.models.ipo.USState}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>State</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>State</em>' attribute. >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see #isSetState() >- * @see #unsetState() >- * @see #setState(USState) >- * @model default="AK" unsettable="true" required="true" >- * extendedMetaData="kind='element' name='state'" >- * @generated >- */ >- USState getState(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>State</em>' attribute. >- * @see org.eclipse.emf.test.models.ipo.USState >- * @see #isSetState() >- * @see #unsetState() >- * @see #getState() >- * @generated >- */ >- void setState(USState value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetState() >- * @see #getState() >- * @see #setState(USState) >- * @generated >- */ >- void unsetState(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getState <em>State</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>State</em>' attribute is set. >- * @see #unsetState() >- * @see #getState() >- * @see #setState(USState) >- * @generated >- */ >- boolean isSetState(); >- >- /** >- * Returns the value of the '<em><b>Zip</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Zip</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Zip</em>' attribute. >- * @see #setZip(BigInteger) >- * @model dataType="org.eclipse.emf.ecore.xml.type.PositiveInteger" required="true" >- * extendedMetaData="kind='element' name='zip'" >- * @generated >- */ >- BigInteger getZip(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.USAddress#getZip <em>Zip</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Zip</em>' attribute. >- * @see #getZip() >- * @generated >- */ >- void setZip(BigInteger value); >- >-} // USAddress >Index: src/org/eclipse/emf/test/models/ipo/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/DocumentRoot.java >diff -N src/org/eclipse/emf/test/models/ipo/DocumentRoot.java >--- src/org/eclipse/emf/test/models/ipo/DocumentRoot.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,145 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='' kind='mixed'" >- * @generated >- */ >-public interface DocumentRoot >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XMLNS Prefix Map</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xmlns:prefix'" >- * @generated >- */ >- Map<String, String> getXMLNSPrefixMap(); >- >- /** >- * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XSI Schema Location</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" >- * @generated >- */ >- Map<String, String> getXSISchemaLocation(); >- >- /** >- * Returns the value of the '<em><b>Comment</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Comment</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Comment</em>' attribute. >- * @see #setComment(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='comment' namespace='##targetNamespace'" >- * @generated >- */ >- String getComment(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getComment <em>Comment</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Comment</em>' attribute. >- * @see #getComment() >- * @generated >- */ >- void setComment(String value); >- >- /** >- * Returns the value of the '<em><b>Purchase Order</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Purchase Order</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Purchase Order</em>' containment reference. >- * @see #setPurchaseOrder(PurchaseOrderType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='purchaseOrder' namespace='##targetNamespace'" >- * @generated >- */ >- PurchaseOrderType getPurchaseOrder(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.DocumentRoot#getPurchaseOrder <em>Purchase Order</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Purchase Order</em>' containment reference. >- * @see #getPurchaseOrder() >- * @generated >- */ >- void setPurchaseOrder(PurchaseOrderType value); >- >-} // DocumentRoot >Index: src/org/eclipse/emf/test/models/ipo/UKAddress.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/UKAddress.java >diff -N src/org/eclipse/emf/test/models/ipo/UKAddress.java >--- src/org/eclipse/emf/test/models/ipo/UKAddress.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,119 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UKAddress.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import java.math.BigInteger; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>UK Address</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='UKAddress' kind='elementOnly'" >- * @generated >- */ >-public interface UKAddress extends Address >-{ >- /** >- * Returns the value of the '<em><b>Postcode</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Postcode</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Postcode</em>' attribute. >- * @see #setPostcode(String) >- * @model dataType="org.eclipse.emf.test.models.ipo.UKPostcode" required="true" >- * extendedMetaData="kind='element' name='postcode'" >- * @generated >- */ >- String getPostcode(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getPostcode <em>Postcode</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Postcode</em>' attribute. >- * @see #getPostcode() >- * @generated >- */ >- void setPostcode(String value); >- >- /** >- * Returns the value of the '<em><b>Export Code</b></em>' attribute. >- * The default value is <code>"1"</code>. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Export Code</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Export Code</em>' attribute. >- * @see #isSetExportCode() >- * @see #unsetExportCode() >- * @see #setExportCode(BigInteger) >- * @model default="1" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.PositiveInteger" >- * extendedMetaData="kind='attribute' name='exportCode'" >- * @generated >- */ >- BigInteger getExportCode(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Export Code</em>' attribute. >- * @see #isSetExportCode() >- * @see #unsetExportCode() >- * @see #getExportCode() >- * @generated >- */ >- void setExportCode(BigInteger value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetExportCode() >- * @see #getExportCode() >- * @see #setExportCode(BigInteger) >- * @generated >- */ >- void unsetExportCode(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.ipo.UKAddress#getExportCode <em>Export Code</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Export Code</em>' attribute is set. >- * @see #unsetExportCode() >- * @see #getExportCode() >- * @see #setExportCode(BigInteger) >- * @generated >- */ >- boolean isSetExportCode(); >- >-} // UKAddress >Index: src/org/eclipse/emf/test/models/ipo/Items.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/Items.java >diff -N src/org/eclipse/emf/test/models/ipo/Items.java >--- src/org/eclipse/emf/test/models/ipo/Items.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,54 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Items.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Items</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.ipo.Items#getItem <em>Item</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='Items' kind='elementOnly'" >- * @generated >- */ >-public interface Items >-{ >- /** >- * Returns the value of the '<em><b>Item</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.ipo.ItemType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Item</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Item</em>' containment reference list. >- * @model containment="true" >- * extendedMetaData="kind='element' name='item'" >- * @generated >- */ >- List<ItemType> getItem(); >- >-} // Items >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/DocumentRootImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/DocumentRootImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/DocumentRootImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,632 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EMap; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EStructuralFeature; >-import org.eclipse.emf.ecore.EcorePackage; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.EcoreEMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.mixed.DocumentRoot; >-import org.eclipse.emf.test.models.personal.mixed.LinkType; >-import org.eclipse.emf.test.models.personal.mixed.NameType; >-import org.eclipse.emf.test.models.personal.mixed.PersonType; >-import org.eclipse.emf.test.models.personal.mixed.PersonnelType; >-import org.eclipse.emf.test.models.personal.mixed.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getGiven <em>Given</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getPerson <em>Person</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getPersonnel <em>Personnel</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl#getUrl <em>Url</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXMLNSPrefixMap() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xMLNSPrefixMap; >- >- /** >- * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXSISchemaLocation() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xSISchemaLocation; >- >- /** >- * The default value of the '{@link #getEmail() <em>Email</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getEmail() >- * @generated >- * @ordered >- */ >- protected static final String EMAIL_EDEFAULT = null; >- >- /** >- * The default value of the '{@link #getFamily() <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getFamily() >- * @generated >- * @ordered >- */ >- protected static final String FAMILY_EDEFAULT = null; >- >- /** >- * The default value of the '{@link #getGiven() <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getGiven() >- * @generated >- * @ordered >- */ >- protected static final String GIVEN_EDEFAULT = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected DocumentRootImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.DOCUMENT_ROOT; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.DOCUMENT_ROOT__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXMLNSPrefixMap() >- { >- if (xMLNSPrefixMap == null) >- { >- xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- } >- return xMLNSPrefixMap.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXSISchemaLocation() >- { >- if (xSISchemaLocation == null) >- { >- xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- } >- return xSISchemaLocation.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getEmail() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setEmail(String newEmail) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, newEmail); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getFamily() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setFamily(String newFamily) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, newFamily); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getGiven() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setGiven(String newGiven) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, newGiven); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType getLink() >- { >- return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setLink(LinkType newLink) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType getName() >- { >- return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetName(NameType newName, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(NameType newName) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonType getPerson() >- { >- return (PersonType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetPerson(PersonType newPerson, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPerson(PersonType newPerson) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonnelType getPersonnel() >- { >- return (PersonnelType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetPersonnel(PersonnelType newPersonnel, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPersonnel(PersonnelType newPersonnel) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public UrlType getUrl() >- { >- return (UrlType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetUrl(UrlType newUrl, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setUrl(UrlType newUrl) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__LINK: >- return basicSetLink(null, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__NAME: >- return basicSetName(null, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__PERSON: >- return basicSetPerson(null, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return basicSetPersonnel(null, msgs); >- case MixedPackageImpl.DOCUMENT_ROOT__URL: >- return basicSetUrl(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap(); >- else return getXMLNSPrefixMap(); >- case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap(); >- else return getXSISchemaLocation(); >- case MixedPackageImpl.DOCUMENT_ROOT__EMAIL: >- return getEmail(); >- case MixedPackageImpl.DOCUMENT_ROOT__FAMILY: >- return getFamily(); >- case MixedPackageImpl.DOCUMENT_ROOT__GIVEN: >- return getGiven(); >- case MixedPackageImpl.DOCUMENT_ROOT__LINK: >- return getLink(); >- case MixedPackageImpl.DOCUMENT_ROOT__NAME: >- return getName(); >- case MixedPackageImpl.DOCUMENT_ROOT__PERSON: >- return getPerson(); >- case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return getPersonnel(); >- case MixedPackageImpl.DOCUMENT_ROOT__URL: >- return getUrl(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__EMAIL: >- setEmail((String)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__FAMILY: >- setFamily((String)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__GIVEN: >- setGiven((String)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__LINK: >- setLink((LinkType)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__NAME: >- setName((NameType)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSON: >- setPerson((PersonType)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- setPersonnel((PersonnelType)newValue); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__URL: >- setUrl((UrlType)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- getXMLNSPrefixMap().clear(); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- getXSISchemaLocation().clear(); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__EMAIL: >- setEmail(EMAIL_EDEFAULT); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__FAMILY: >- setFamily(FAMILY_EDEFAULT); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__GIVEN: >- setGiven(GIVEN_EDEFAULT); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__LINK: >- setLink((LinkType)null); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__NAME: >- setName((NameType)null); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSON: >- setPerson((PersonType)null); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- setPersonnel((PersonnelType)null); >- return; >- case MixedPackageImpl.DOCUMENT_ROOT__URL: >- setUrl((UrlType)null); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case MixedPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >- case MixedPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >- case MixedPackageImpl.DOCUMENT_ROOT__EMAIL: >- return EMAIL_EDEFAULT == null ? getEmail() != null : !EMAIL_EDEFAULT.equals(getEmail()); >- case MixedPackageImpl.DOCUMENT_ROOT__FAMILY: >- return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily()); >- case MixedPackageImpl.DOCUMENT_ROOT__GIVEN: >- return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven()); >- case MixedPackageImpl.DOCUMENT_ROOT__LINK: >- return getLink() != null; >- case MixedPackageImpl.DOCUMENT_ROOT__NAME: >- return getName() != null; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSON: >- return getPerson() != null; >- case MixedPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return getPersonnel() != null; >- case MixedPackageImpl.DOCUMENT_ROOT__URL: >- return getUrl() != null; >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(')'); >- return result.toString(); >- } >- >-} //DocumentRootImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/NameTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,286 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: NameTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import commonj.sdo.Sequence; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.mixed.NameType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Name Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl#getGiven <em>Given</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class NameTypeImpl extends EDataObjectImpl implements NameType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The default value of the '{@link #getFamily() <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getFamily() >- * @generated >- * @ordered >- */ >- protected static final String FAMILY_EDEFAULT = null; >- >- /** >- * The default value of the '{@link #getGiven() <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getGiven() >- * @generated >- * @ordered >- */ >- protected static final String GIVEN_EDEFAULT = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected NameTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.NAME_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.NAME_TYPE__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getFamily() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setFamily(String newFamily) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__FAMILY, newFamily); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getGiven() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setGiven(String newGiven) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.NAME_TYPE__GIVEN, newGiven); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case MixedPackageImpl.NAME_TYPE__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.NAME_TYPE__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case MixedPackageImpl.NAME_TYPE__FAMILY: >- return getFamily(); >- case MixedPackageImpl.NAME_TYPE__GIVEN: >- return getGiven(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.NAME_TYPE__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case MixedPackageImpl.NAME_TYPE__FAMILY: >- setFamily((String)newValue); >- return; >- case MixedPackageImpl.NAME_TYPE__GIVEN: >- setGiven((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.NAME_TYPE__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case MixedPackageImpl.NAME_TYPE__FAMILY: >- setFamily(FAMILY_EDEFAULT); >- return; >- case MixedPackageImpl.NAME_TYPE__GIVEN: >- setGiven(GIVEN_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.NAME_TYPE__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case MixedPackageImpl.NAME_TYPE__FAMILY: >- return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily()); >- case MixedPackageImpl.NAME_TYPE__GIVEN: >- return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven()); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(')'); >- return result.toString(); >- } >- >-} //NameTypeImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/UrlTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,234 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.personal.mixed.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Url Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl#getHref <em>Href</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class UrlTypeImpl extends EDataObjectImpl implements UrlType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getHref() <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHref() >- * @generated >- * @ordered >- */ >- protected static final String HREF_EDEFAULT = "http://"; >- >- /** >- * The cached value of the '{@link #getHref() <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHref() >- * @generated >- * @ordered >- */ >- protected String href = HREF_EDEFAULT; >- >- /** >- * This is true if the Href attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean hrefESet; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected UrlTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.URL_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getHref() >- { >- return href; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setHref(String newHref) >- { >- String oldHref = href; >- href = newHref; >- boolean oldHrefESet = hrefESet; >- hrefESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetHref() >- { >- String oldHref = href; >- boolean oldHrefESet = hrefESet; >- href = HREF_EDEFAULT; >- hrefESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetHref() >- { >- return hrefESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.URL_TYPE__HREF: >- return getHref(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.URL_TYPE__HREF: >- setHref((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.URL_TYPE__HREF: >- unsetHref(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.URL_TYPE__HREF: >- return isSetHref(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (href: "); >- if (hrefESet) result.append(href); else result.append("<unset>"); >- result.append(')'); >- return result.toString(); >- } >- >-} //UrlTypeImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/MixedPackageImpl.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,1907 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedPackageImpl.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EEnum; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >-import org.eclipse.emf.ecore.EReference; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.personal.mixed.ContrType; >-import org.eclipse.emf.test.models.personal.mixed.DocumentRoot; >-import org.eclipse.emf.test.models.personal.mixed.LinkType; >-import org.eclipse.emf.test.models.personal.mixed.MixedFactory; >-import org.eclipse.emf.test.models.personal.mixed.NameType; >-import org.eclipse.emf.test.models.personal.mixed.PersonType; >-import org.eclipse.emf.test.models.personal.mixed.PersonnelType; >-import org.eclipse.emf.test.models.personal.mixed.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.MixedFactory >- * @model kind="package" >- * @generated >- */ >-public class MixedPackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "mixed"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personalMixed"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "mixed"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final MixedPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final int DOCUMENT_ROOT = 0; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >- >- /** >- * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >- >- /** >- * The feature id for the '<em><b>Email</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__EMAIL = 3; >- >- /** >- * The feature id for the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__FAMILY = 4; >- >- /** >- * The feature id for the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__GIVEN = 5; >- >- /** >- * The feature id for the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__LINK = 6; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__NAME = 7; >- >- /** >- * The feature id for the '<em><b>Person</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__PERSON = 8; >- >- /** >- * The feature id for the '<em><b>Personnel</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__PERSONNEL = 9; >- >- /** >- * The feature id for the '<em><b>Url</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__URL = 10; >- >- /** >- * The number of structural features of the '<em>Document Root</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType() >- * @generated >- */ >- public static final int LINK_TYPE = 1; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>Manager</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE__MANAGER = 1; >- >- /** >- * The feature id for the '<em><b>Subordinates</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE__SUBORDINATES = 2; >- >- /** >- * The number of structural features of the '<em>Link Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE_FEATURE_COUNT = 3; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType() >- * @generated >- */ >- public static final int NAME_TYPE = 2; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE__FAMILY = 1; >- >- /** >- * The feature id for the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE__GIVEN = 2; >- >- /** >- * The number of structural features of the '<em>Name Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE_FEATURE_COUNT = 3; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType() >- * @generated >- */ >- public static final int PERSONNEL_TYPE = 3; >- >- /** >- * The feature id for the '<em><b>Person</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSONNEL_TYPE__PERSON = 0; >- >- /** >- * The number of structural features of the '<em>Personnel Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType() >- * @generated >- */ >- public static final int PERSON_TYPE = 4; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__NAME = 1; >- >- /** >- * The feature id for the '<em><b>Email</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__EMAIL = 2; >- >- /** >- * The feature id for the '<em><b>Url</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__URL = 3; >- >- /** >- * The feature id for the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__LINK = 4; >- >- /** >- * The feature id for the '<em><b>Any</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__ANY = 5; >- >- /** >- * The feature id for the '<em><b>Contr</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__CONTR = 6; >- >- /** >- * The feature id for the '<em><b>Id</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__ID = 7; >- >- /** >- * The feature id for the '<em><b>Salary</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__SALARY = 8; >- >- /** >- * The number of structural features of the '<em>Person Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE_FEATURE_COUNT = 9; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType() >- * @generated >- */ >- public static final int URL_TYPE = 5; >- >- /** >- * The feature id for the '<em><b>Href</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int URL_TYPE__HREF = 0; >- >- /** >- * The number of structural features of the '<em>Url Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int URL_TYPE_FEATURE_COUNT = 1; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType() >- * @generated >- */ >- public static final int CONTR_TYPE = 6; >- >- /** >- * The meta object id for the '<em>Contr Type Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject() >- * @generated >- */ >- public static final int CONTR_TYPE_OBJECT = 7; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass documentRootEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass linkTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass nameTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass personnelTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass personTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass urlTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EEnum contrTypeEEnum = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType contrTypeObjectEDataType = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private MixedPackageImpl() >- { >- super(eNS_URI, ((EFactory)MixedFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static MixedPackageImpl init() >- { >- if (isInited) return (MixedPackageImpl)EPackage.Registry.INSTANCE.getEPackage(MixedPackageImpl.eNS_URI); >- >- // Obtain or create and register package >- MixedPackageImpl theMixedPackageImpl = (MixedPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MixedPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MixedPackageImpl()); >- >- isInited = true; >- >- // Initialize simple dependencies >- XMLTypePackage.eINSTANCE.eClass(); >- >- // Create package meta-data objects >- theMixedPackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- theMixedPackageImpl.initializePackageContents(); >- >- // Mark meta-data to indicate it can't be changed >- theMixedPackageImpl.freeze(); >- >- return theMixedPackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Document Root</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot >- * @generated >- */ >- public EClass getDocumentRoot() >- { >- return documentRootEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Mixed() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XMLNSPrefixMap() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XSI Schema Location</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XSISchemaLocation() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Email</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Email() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Family</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Family() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Given</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Given() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Link</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Link() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Name() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(7); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Person</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Person() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(8); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Personnel</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Personnel() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(9); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Url</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Url() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(10); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Link Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.LinkType >- * @generated >- */ >- public EClass getLinkType() >- { >- return linkTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed() >- * @see #getLinkType() >- * @generated >- */ >- public EAttribute getLinkType_Mixed() >- { >- return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Manager</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getManager() >- * @see #getLinkType() >- * @generated >- */ >- public EAttribute getLinkType_Manager() >- { >- return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Subordinates</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates() >- * @see #getLinkType() >- * @generated >- */ >- public EAttribute getLinkType_Subordinates() >- { >- return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Name Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.NameType >- * @generated >- */ >- public EClass getNameType() >- { >- return nameTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.NameType#getMixed() >- * @see #getNameType() >- * @generated >- */ >- public EAttribute getNameType_Mixed() >- { >- return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Family</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.NameType#getFamily() >- * @see #getNameType() >- * @generated >- */ >- public EAttribute getNameType_Family() >- { >- return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Given</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.NameType#getGiven() >- * @see #getNameType() >- * @generated >- */ >- public EAttribute getNameType_Given() >- { >- return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Personnel Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType >- * @generated >- */ >- public EClass getPersonnelType() >- { >- return personnelTypeEClass; >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson <em>Person</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Person</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson() >- * @see #getPersonnelType() >- * @generated >- */ >- public EReference getPersonnelType_Person() >- { >- return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Person Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType >- * @generated >- */ >- public EClass getPersonType() >- { >- return personTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Mixed() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getName() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Name() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Email</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Email() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Url</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Url() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Link</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getLink() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Link() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Any</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getAny() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Any() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Contr</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getContr() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Contr() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Id</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getId() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Id() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(7); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Salary</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Salary() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(8); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Url Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.UrlType >- * @generated >- */ >- public EClass getUrlType() >- { >- return urlTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Href</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.UrlType#getHref() >- * @see #getUrlType() >- * @generated >- */ >- public EAttribute getUrlType_Href() >- { >- return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for enum '<em>Contr Type</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @generated >- */ >- public EEnum getContrType() >- { >- return contrTypeEEnum; >- } >- >- /** >- * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>Contr Type Object</em>'. >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @model instanceClass="org.eclipse.emf.test.models.personal.mixed.ContrType" >- * extendedMetaData="name='contr_._type:Object' baseType='contr_._type'" >- * @generated >- */ >- public EDataType getContrTypeObject() >- { >- return contrTypeObjectEDataType; >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public MixedFactory getMixedFactory() >- { >- return (MixedFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- documentRootEClass = createEClass(DOCUMENT_ROOT); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN); >- createEReference(documentRootEClass, DOCUMENT_ROOT__LINK); >- createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); >- createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON); >- createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL); >- createEReference(documentRootEClass, DOCUMENT_ROOT__URL); >- >- linkTypeEClass = createEClass(LINK_TYPE); >- createEAttribute(linkTypeEClass, LINK_TYPE__MIXED); >- createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER); >- createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES); >- >- nameTypeEClass = createEClass(NAME_TYPE); >- createEAttribute(nameTypeEClass, NAME_TYPE__MIXED); >- createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY); >- createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN); >- >- personnelTypeEClass = createEClass(PERSONNEL_TYPE); >- createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON); >- >- personTypeEClass = createEClass(PERSON_TYPE); >- createEAttribute(personTypeEClass, PERSON_TYPE__MIXED); >- createEReference(personTypeEClass, PERSON_TYPE__NAME); >- createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL); >- createEReference(personTypeEClass, PERSON_TYPE__URL); >- createEReference(personTypeEClass, PERSON_TYPE__LINK); >- createEAttribute(personTypeEClass, PERSON_TYPE__ANY); >- createEAttribute(personTypeEClass, PERSON_TYPE__CONTR); >- createEAttribute(personTypeEClass, PERSON_TYPE__ID); >- createEAttribute(personTypeEClass, PERSON_TYPE__SALARY); >- >- urlTypeEClass = createEClass(URL_TYPE); >- createEAttribute(urlTypeEClass, URL_TYPE__HREF); >- >- // Create enums >- contrTypeEEnum = createEEnum(CONTR_TYPE); >- >- // Create data types >- contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Obtain other dependent packages >- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- >- // Initialize classes and features; add operations and parameters >- initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- >- initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- >- initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- >- initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- >- // Initialize enums and add enum literals >- initEEnum(contrTypeEEnum, ContrType.class, "ContrType"); >- addEEnumLiteral(contrTypeEEnum, ContrType.TRUE); >- addEEnumLiteral(contrTypeEEnum, ContrType.FALSE); >- >- // Initialize data types >- initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); >- >- // Create resource >- createResource(eNS_URI); >- >- // Create annotations >- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >- createExtendedMetaDataAnnotations(); >- } >- >- /** >- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected void createExtendedMetaDataAnnotations() >- { >- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >- addAnnotation >- (contrTypeEEnum, >- source, >- new String[] >- { >- "name", "contr_._type" >- }); >- addAnnotation >- (contrTypeObjectEDataType, >- source, >- new String[] >- { >- "name", "contr_._type:Object", >- "baseType", "contr_._type" >- }); >- addAnnotation >- (documentRootEClass, >- source, >- new String[] >- { >- "name", "", >- "kind", "mixed" >- }); >- addAnnotation >- (getDocumentRoot_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getDocumentRoot_XMLNSPrefixMap(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xmlns:prefix" >- }); >- addAnnotation >- (getDocumentRoot_XSISchemaLocation(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xsi:schemaLocation" >- }); >- addAnnotation >- (getDocumentRoot_Email(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "email", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Family(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "family", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Given(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "given", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Link(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "link", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Name(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "name", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Person(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "person", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Personnel(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "personnel", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Url(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "url", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (linkTypeEClass, >- source, >- new String[] >- { >- "name", "linkType", >- "kind", "mixed" >- }); >- addAnnotation >- (getLinkType_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getLinkType_Manager(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "manager" >- }); >- addAnnotation >- (getLinkType_Subordinates(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "subordinates" >- }); >- addAnnotation >- (nameTypeEClass, >- source, >- new String[] >- { >- "name", "nameType", >- "kind", "mixed" >- }); >- addAnnotation >- (getNameType_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getNameType_Family(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "family", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getNameType_Given(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "given", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (personnelTypeEClass, >- source, >- new String[] >- { >- "name", "personnel_._type", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getPersonnelType_Person(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "person", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (personTypeEClass, >- source, >- new String[] >- { >- "name", "personType", >- "kind", "mixed" >- }); >- addAnnotation >- (getPersonType_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getPersonType_Name(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "name", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Email(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "email", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Url(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "url", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Link(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "link", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Any(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "wildcards", "##any", >- "name", ":5", >- "processing", "lax" >- }); >- addAnnotation >- (getPersonType_Contr(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "contr" >- }); >- addAnnotation >- (getPersonType_Id(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "id" >- }); >- addAnnotation >- (getPersonType_Salary(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "salary" >- }); >- addAnnotation >- (urlTypeEClass, >- source, >- new String[] >- { >- "name", "url_._type", >- "kind", "empty" >- }); >- addAnnotation >- (getUrlType_Href(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "href" >- }); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap(); >- >- /** >- * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation(); >- >- /** >- * The meta object literal for the '<em><b>Email</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email(); >- >- /** >- * The meta object literal for the '<em><b>Family</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family(); >- >- /** >- * The meta object literal for the '<em><b>Given</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given(); >- >- /** >- * The meta object literal for the '<em><b>Link</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name(); >- >- /** >- * The meta object literal for the '<em><b>Person</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person(); >- >- /** >- * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel(); >- >- /** >- * The meta object literal for the '<em><b>Url</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl <em>Link Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getLinkType() >- * @generated >- */ >- public static final EClass LINK_TYPE = eINSTANCE.getLinkType(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LINK_TYPE__MIXED = eINSTANCE.getLinkType_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>Manager</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager(); >- >- /** >- * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl <em>Name Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.NameTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getNameType() >- * @generated >- */ >- public static final EClass NAME_TYPE = eINSTANCE.getNameType(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute NAME_TYPE__MIXED = eINSTANCE.getNameType_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>Family</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family(); >- >- /** >- * The meta object literal for the '<em><b>Given</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonnelType() >- * @generated >- */ >- public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType(); >- >- /** >- * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl <em>Person Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getPersonType() >- * @generated >- */ >- public static final EClass PERSON_TYPE = eINSTANCE.getPersonType(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__MIXED = eINSTANCE.getPersonType_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name(); >- >- /** >- * The meta object literal for the '<em><b>Email</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email(); >- >- /** >- * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url(); >- >- /** >- * The meta object literal for the '<em><b>Link</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link(); >- >- /** >- * The meta object literal for the '<em><b>Any</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__ANY = eINSTANCE.getPersonType_Any(); >- >- /** >- * The meta object literal for the '<em><b>Contr</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr(); >- >- /** >- * The meta object literal for the '<em><b>Id</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id(); >- >- /** >- * The meta object literal for the '<em><b>Salary</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl <em>Url Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.UrlTypeImpl >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getUrlType() >- * @generated >- */ >- public static final EClass URL_TYPE = eINSTANCE.getUrlType(); >- >- /** >- * The meta object literal for the '<em><b>Href</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.mixed.ContrType <em>Contr Type</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType() >- * @generated >- */ >- public static final EEnum CONTR_TYPE = eINSTANCE.getContrType(); >- >- /** >- * The meta object literal for the '<em>Contr Type Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrTypeObject() >- * @generated >- */ >- public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject(); >- >- } >- >-} //MixedPackageImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/MixedFactoryImpl.java 18 Jan 2007 22:06:42 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,269 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedFactoryImpl.java,v 1.2 2007/01/18 22:06:42 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.test.models.personal.mixed.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class MixedFactoryImpl extends EFactoryImpl implements MixedFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final MixedFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static MixedFactoryImpl init() >- { >- try >- { >- MixedFactoryImpl theMixedFactory = (MixedFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personalMixed"); >- if (theMixedFactory != null) >- { >- return theMixedFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new MixedFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case MixedPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot(); >- case MixedPackageImpl.LINK_TYPE: return (EObject)createLinkType(); >- case MixedPackageImpl.NAME_TYPE: return (EObject)createNameType(); >- case MixedPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType(); >- case MixedPackageImpl.PERSON_TYPE: return (EObject)createPersonType(); >- case MixedPackageImpl.URL_TYPE: return (EObject)createUrlType(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object createFromString(EDataType eDataType, String initialValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case MixedPackageImpl.CONTR_TYPE: >- return createContrTypeFromString(eDataType, initialValue); >- case MixedPackageImpl.CONTR_TYPE_OBJECT: >- return createContrTypeObjectFromString(eDataType, initialValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String convertToString(EDataType eDataType, Object instanceValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case MixedPackageImpl.CONTR_TYPE: >- return convertContrTypeToString(eDataType, instanceValue); >- case MixedPackageImpl.CONTR_TYPE_OBJECT: >- return convertContrTypeObjectToString(eDataType, instanceValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public DocumentRoot createDocumentRoot() >- { >- DocumentRootImpl documentRoot = new DocumentRootImpl(); >- return documentRoot; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType createLinkType() >- { >- LinkTypeImpl linkType = new LinkTypeImpl(); >- return linkType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType createNameType() >- { >- NameTypeImpl nameType = new NameTypeImpl(); >- return nameType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonnelType createPersonnelType() >- { >- PersonnelTypeImpl personnelType = new PersonnelTypeImpl(); >- return personnelType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonType createPersonType() >- { >- PersonTypeImpl personType = new PersonTypeImpl(); >- return personType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public UrlType createUrlType() >- { >- UrlTypeImpl urlType = new UrlTypeImpl(); >- return urlType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType createContrTypeFromString(EDataType eDataType, String initialValue) >- { >- ContrType result = ContrType.get(initialValue); >- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertContrTypeToString(EDataType eDataType, Object instanceValue) >- { >- return instanceValue == null ? null : instanceValue.toString(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue) >- { >- return createContrTypeFromString(MixedPackageImpl.Literals.CONTR_TYPE, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue) >- { >- return convertContrTypeToString(MixedPackageImpl.Literals.CONTR_TYPE, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedPackageImpl getMixedPackageImpl() >- { >- return (MixedPackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static MixedPackageImpl getPackage() >- { >- return MixedPackageImpl.eINSTANCE; >- } >- >-} //MixedFactoryImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/PersonTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,577 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import commonj.sdo.Sequence; >- >-import java.math.BigInteger; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.mixed.ContrType; >-import org.eclipse.emf.test.models.personal.mixed.LinkType; >-import org.eclipse.emf.test.models.personal.mixed.NameType; >-import org.eclipse.emf.test.models.personal.mixed.PersonType; >-import org.eclipse.emf.test.models.personal.mixed.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Person Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getUrl <em>Url</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getAny <em>Any</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getContr <em>Contr</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getId <em>Id</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonTypeImpl#getSalary <em>Salary</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class PersonTypeImpl extends EDataObjectImpl implements PersonType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The default value of the '{@link #getContr() <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getContr() >- * @generated >- * @ordered >- */ >- protected static final ContrType CONTR_EDEFAULT = ContrType.FALSE; >- >- /** >- * The cached value of the '{@link #getContr() <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getContr() >- * @generated >- * @ordered >- */ >- protected ContrType contr = CONTR_EDEFAULT; >- >- /** >- * This is true if the Contr attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean contrESet; >- >- /** >- * The default value of the '{@link #getId() <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getId() >- * @generated >- * @ordered >- */ >- protected static final String ID_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getId() >- * @generated >- * @ordered >- */ >- protected String id = ID_EDEFAULT; >- >- /** >- * The default value of the '{@link #getSalary() <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSalary() >- * @generated >- * @ordered >- */ >- protected static final BigInteger SALARY_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getSalary() <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSalary() >- * @generated >- * @ordered >- */ >- protected BigInteger salary = SALARY_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PersonTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.PERSON_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.PERSON_TYPE__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType getName() >- { >- return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__NAME, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetName(NameType newName, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(NameType newName) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__NAME, newName); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<String> getEmail() >- { >- return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__EMAIL); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<UrlType> getUrl() >- { >- return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().list(MixedPackageImpl.Literals.PERSON_TYPE__URL); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType getLink() >- { >- return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(MixedPackageImpl.Literals.PERSON_TYPE__LINK, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setLink(LinkType newLink) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(MixedPackageImpl.Literals.PERSON_TYPE__LINK, newLink); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getAny() >- { >- return new BasicESequence((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().<FeatureMap.Entry>list(MixedPackageImpl.Literals.PERSON_TYPE__ANY)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType getContr() >- { >- return contr; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setContr(ContrType newContr) >- { >- ContrType oldContr = contr; >- contr = newContr == null ? CONTR_EDEFAULT : newContr; >- boolean oldContrESet = contrESet; >- contrESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, contr, !oldContrESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetContr() >- { >- ContrType oldContr = contr; >- boolean oldContrESet = contrESet; >- contr = CONTR_EDEFAULT; >- contrESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, MixedPackageImpl.PERSON_TYPE__CONTR, oldContr, CONTR_EDEFAULT, oldContrESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetContr() >- { >- return contrESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getId() >- { >- return id; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setId(String newId) >- { >- String oldId = id; >- id = newId; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__ID, oldId, id)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getSalary() >- { >- return salary; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setSalary(BigInteger newSalary) >- { >- BigInteger oldSalary = salary; >- salary = newSalary; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.PERSON_TYPE__SALARY, oldSalary, salary)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSON_TYPE__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- case MixedPackageImpl.PERSON_TYPE__NAME: >- return basicSetName(null, msgs); >- case MixedPackageImpl.PERSON_TYPE__URL: >- return ((InternalEList<?>)getUrl()).basicRemove(otherEnd, msgs); >- case MixedPackageImpl.PERSON_TYPE__LINK: >- return basicSetLink(null, msgs); >- case MixedPackageImpl.PERSON_TYPE__ANY: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSON_TYPE__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case MixedPackageImpl.PERSON_TYPE__NAME: >- return getName(); >- case MixedPackageImpl.PERSON_TYPE__EMAIL: >- return getEmail(); >- case MixedPackageImpl.PERSON_TYPE__URL: >- return getUrl(); >- case MixedPackageImpl.PERSON_TYPE__LINK: >- return getLink(); >- case MixedPackageImpl.PERSON_TYPE__ANY: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getAny()).featureMap(); >- return getAny(); >- case MixedPackageImpl.PERSON_TYPE__CONTR: >- return getContr(); >- case MixedPackageImpl.PERSON_TYPE__ID: >- return getId(); >- case MixedPackageImpl.PERSON_TYPE__SALARY: >- return getSalary(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSON_TYPE__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__NAME: >- setName((NameType)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__EMAIL: >- getEmail().clear(); >- getEmail().addAll((Collection<? extends String>)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__URL: >- getUrl().clear(); >- getUrl().addAll((Collection<? extends UrlType>)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__LINK: >- setLink((LinkType)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__ANY: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getAny()).featureMap()).set(newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__CONTR: >- setContr((ContrType)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__ID: >- setId((String)newValue); >- return; >- case MixedPackageImpl.PERSON_TYPE__SALARY: >- setSalary((BigInteger)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSON_TYPE__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case MixedPackageImpl.PERSON_TYPE__NAME: >- setName((NameType)null); >- return; >- case MixedPackageImpl.PERSON_TYPE__EMAIL: >- getEmail().clear(); >- return; >- case MixedPackageImpl.PERSON_TYPE__URL: >- getUrl().clear(); >- return; >- case MixedPackageImpl.PERSON_TYPE__LINK: >- setLink((LinkType)null); >- return; >- case MixedPackageImpl.PERSON_TYPE__ANY: >- ((FeatureMap.Internal.Wrapper)getAny()).featureMap().clear(); >- return; >- case MixedPackageImpl.PERSON_TYPE__CONTR: >- unsetContr(); >- return; >- case MixedPackageImpl.PERSON_TYPE__ID: >- setId(ID_EDEFAULT); >- return; >- case MixedPackageImpl.PERSON_TYPE__SALARY: >- setSalary(SALARY_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSON_TYPE__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case MixedPackageImpl.PERSON_TYPE__NAME: >- return getName() != null; >- case MixedPackageImpl.PERSON_TYPE__EMAIL: >- return !getEmail().isEmpty(); >- case MixedPackageImpl.PERSON_TYPE__URL: >- return !getUrl().isEmpty(); >- case MixedPackageImpl.PERSON_TYPE__LINK: >- return getLink() != null; >- case MixedPackageImpl.PERSON_TYPE__ANY: >- return !((FeatureMap.Internal.Wrapper)getAny()).featureMap().isEmpty(); >- case MixedPackageImpl.PERSON_TYPE__CONTR: >- return isSetContr(); >- case MixedPackageImpl.PERSON_TYPE__ID: >- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); >- case MixedPackageImpl.PERSON_TYPE__SALARY: >- return SALARY_EDEFAULT == null ? salary != null : !SALARY_EDEFAULT.equals(salary); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(", contr: "); >- if (contrESet) result.append(contr); else result.append("<unset>"); >- result.append(", id: "); >- result.append(id); >- result.append(", salary: "); >- result.append(salary); >- result.append(')'); >- return result.toString(); >- } >- >-} //PersonTypeImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/LinkTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/LinkTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/LinkTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/LinkTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,322 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: LinkTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import commonj.sdo.Sequence; >- >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.mixed.LinkType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Link Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getManager <em>Manager</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.LinkTypeImpl#getSubordinates <em>Subordinates</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class LinkTypeImpl extends EDataObjectImpl implements LinkType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The default value of the '{@link #getManager() <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManager() >- * @generated >- * @ordered >- */ >- protected static final String MANAGER_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getManager() <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManager() >- * @generated >- * @ordered >- */ >- protected String manager = MANAGER_EDEFAULT; >- >- /** >- * The default value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSubordinates() >- * @generated >- * @ordered >- */ >- protected static final List<String> SUBORDINATES_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSubordinates() >- * @generated >- * @ordered >- */ >- protected List<String> subordinates = SUBORDINATES_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected LinkTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.LINK_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, MixedPackageImpl.LINK_TYPE__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getManager() >- { >- return manager; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setManager(String newManager) >- { >- String oldManager = manager; >- manager = newManager; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.LINK_TYPE__MANAGER, oldManager, manager)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<String> getSubordinates() >- { >- return subordinates; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setSubordinates(List<String> newSubordinates) >- { >- List<String> oldSubordinates = subordinates; >- subordinates = newSubordinates; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, MixedPackageImpl.LINK_TYPE__SUBORDINATES, oldSubordinates, subordinates)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case MixedPackageImpl.LINK_TYPE__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.LINK_TYPE__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case MixedPackageImpl.LINK_TYPE__MANAGER: >- return getManager(); >- case MixedPackageImpl.LINK_TYPE__SUBORDINATES: >- return getSubordinates(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.LINK_TYPE__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case MixedPackageImpl.LINK_TYPE__MANAGER: >- setManager((String)newValue); >- return; >- case MixedPackageImpl.LINK_TYPE__SUBORDINATES: >- setSubordinates((List<String>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.LINK_TYPE__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case MixedPackageImpl.LINK_TYPE__MANAGER: >- setManager(MANAGER_EDEFAULT); >- return; >- case MixedPackageImpl.LINK_TYPE__SUBORDINATES: >- setSubordinates(SUBORDINATES_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.LINK_TYPE__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case MixedPackageImpl.LINK_TYPE__MANAGER: >- return MANAGER_EDEFAULT == null ? manager != null : !MANAGER_EDEFAULT.equals(manager); >- case MixedPackageImpl.LINK_TYPE__SUBORDINATES: >- return SUBORDINATES_EDEFAULT == null ? subordinates != null : !SUBORDINATES_EDEFAULT.equals(subordinates); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(", manager: "); >- result.append(manager); >- result.append(", subordinates: "); >- result.append(subordinates); >- result.append(')'); >- return result.toString(); >- } >- >-} //LinkTypeImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/impl/PersonnelTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/impl/PersonnelTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/impl/PersonnelTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/impl/PersonnelTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,188 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonnelTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.impl; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.mixed.PersonType; >-import org.eclipse.emf.test.models.personal.mixed.PersonnelType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Personnel Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.impl.PersonnelTypeImpl#getPerson <em>Person</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class PersonnelTypeImpl extends EDataObjectImpl implements PersonnelType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getPerson() <em>Person</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPerson() >- * @generated >- * @ordered >- */ >- protected EList<PersonType> person; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PersonnelTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return MixedPackageImpl.Literals.PERSONNEL_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<PersonType> getPerson() >- { >- if (person == null) >- { >- person = new EObjectContainmentEList<PersonType>(PersonType.class, this, MixedPackageImpl.PERSONNEL_TYPE__PERSON); >- } >- return person; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSONNEL_TYPE__PERSON: >- return ((InternalEList<?>)getPerson()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSONNEL_TYPE__PERSON: >- return getPerson(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSONNEL_TYPE__PERSON: >- getPerson().clear(); >- getPerson().addAll((Collection<? extends PersonType>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSONNEL_TYPE__PERSON: >- getPerson().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case MixedPackageImpl.PERSONNEL_TYPE__PERSON: >- return person != null && !person.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >-} //PersonnelTypeImpl >Index: src/org/eclipse/emf/test/models/personal/PersonnelType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/PersonnelType.java >diff -N src/org/eclipse/emf/test/models/personal/PersonnelType.java >--- src/org/eclipse/emf/test/models/personal/PersonnelType.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,54 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonnelType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Personnel Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonnelType#getPerson <em>Person</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='personnel_._type' kind='elementOnly'" >- * @generated >- */ >-public interface PersonnelType >-{ >- /** >- * Returns the value of the '<em><b>Person</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.personal.PersonType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Person</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Person</em>' containment reference list. >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='person' namespace='##targetNamespace'" >- * @generated >- */ >- List<PersonType> getPerson(); >- >-} // PersonnelType >Index: src/org/eclipse/emf/test/models/personal/ContrType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/ContrType.java >diff -N src/org/eclipse/emf/test/models/personal/ContrType.java >--- src/org/eclipse/emf/test/models/personal/ContrType.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,246 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: ContrType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >-import java.util.Arrays; >-import java.util.Collections; >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the literals of the enumeration '<em><b>Contr Type</b></em>', >- * and utility methods for working with them. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType() >- * @model extendedMetaData="name='contr_._type'" >- * @generated >- */ >-public enum ContrType implements InternalContrType >-{ >- /** >- * The '<em><b>True</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #TRUE_VALUE >- * @generated >- * @ordered >- */ >- TRUE(0, "true", "true"), >- >- /** >- * The '<em><b>False</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #FALSE_VALUE >- * @generated >- * @ordered >- */ >- FALSE(1, "false", "false"); >- >- /** >- * The '<em><b>True</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>True</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #TRUE >- * @model name="true" >- * @generated >- * @ordered >- */ >- public static final int TRUE_VALUE = 0; >- >- /** >- * The '<em><b>False</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>False</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #FALSE >- * @model name="false" >- * @generated >- * @ordered >- */ >- public static final int FALSE_VALUE = 1; >- >- /** >- * An array of all the '<em><b>Contr Type</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final ContrType[] VALUES_ARRAY = >- new ContrType[] >- { >- TRUE, >- FALSE, >- }; >- >- /** >- * A public read-only list of all the '<em><b>Contr Type</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final List<ContrType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified literal value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType get(String literal) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- ContrType result = VALUES_ARRAY[i]; >- if (result.toString().equals(literal)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType getByName(String name) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- ContrType result = VALUES_ARRAY[i]; >- if (result.getName().equals(name)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified integer value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType get(int value) >- { >- switch (value) >- { >- case TRUE_VALUE: return TRUE; >- case FALSE_VALUE: return FALSE; >- } >- return null; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final int value; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String name; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String literal; >- >- /** >- * Only this class can construct instances. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private ContrType(int value, String name, String literal) >- { >- this.value = value; >- this.name = name; >- this.literal = literal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getValue() >- { >- return value; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getLiteral() >- { >- return literal; >- } >- >- /** >- * Returns the literal value of the enumerator, which is its string representation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- return literal; >- } >- >-} //ContrType >- >-/** >- * A private implementation interface used to hide the inheritance from Enumerator. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-interface InternalContrType extends org.eclipse.emf.common.util.Enumerator >-{ >- // Empty >-} >Index: src/org/eclipse/emf/test/models/personal/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/DocumentRoot.java >diff -N src/org/eclipse/emf/test/models/personal/DocumentRoot.java >--- src/org/eclipse/emf/test/models/personal/DocumentRoot.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,307 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='' kind='mixed'" >- * @generated >- */ >-public interface DocumentRoot >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XMLNS Prefix Map</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xmlns:prefix'" >- * @generated >- */ >- Map<String, String> getXMLNSPrefixMap(); >- >- /** >- * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XSI Schema Location</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" >- * @generated >- */ >- Map<String, String> getXSISchemaLocation(); >- >- /** >- * Returns the value of the '<em><b>Email</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Email</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Email</em>' attribute. >- * @see #setEmail(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='email' namespace='##targetNamespace'" >- * @generated >- */ >- String getEmail(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Email</em>' attribute. >- * @see #getEmail() >- * @generated >- */ >- void setEmail(String value); >- >- /** >- * Returns the value of the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Family</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Family</em>' attribute. >- * @see #setFamily(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='family' namespace='##targetNamespace'" >- * @generated >- */ >- String getFamily(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Family</em>' attribute. >- * @see #getFamily() >- * @generated >- */ >- void setFamily(String value); >- >- /** >- * Returns the value of the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Given</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Given</em>' attribute. >- * @see #setGiven(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='given' namespace='##targetNamespace'" >- * @generated >- */ >- String getGiven(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Given</em>' attribute. >- * @see #getGiven() >- * @generated >- */ >- void setGiven(String value); >- >- /** >- * Returns the value of the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Link</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Link</em>' containment reference. >- * @see #setLink(LinkType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='link' namespace='##targetNamespace'" >- * @generated >- */ >- LinkType getLink(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Link</em>' containment reference. >- * @see #getLink() >- * @generated >- */ >- void setLink(LinkType value); >- >- /** >- * Returns the value of the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' containment reference. >- * @see #setName(NameType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='name' namespace='##targetNamespace'" >- * @generated >- */ >- NameType getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' containment reference. >- * @see #getName() >- * @generated >- */ >- void setName(NameType value); >- >- /** >- * Returns the value of the '<em><b>Person</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Person</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Person</em>' containment reference. >- * @see #setPerson(PersonType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='person' namespace='##targetNamespace'" >- * @generated >- */ >- PersonType getPerson(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Person</em>' containment reference. >- * @see #getPerson() >- * @generated >- */ >- void setPerson(PersonType value); >- >- /** >- * Returns the value of the '<em><b>Personnel</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Personnel</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Personnel</em>' containment reference. >- * @see #setPersonnel(PersonnelType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='personnel' namespace='##targetNamespace'" >- * @generated >- */ >- PersonnelType getPersonnel(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Personnel</em>' containment reference. >- * @see #getPersonnel() >- * @generated >- */ >- void setPersonnel(PersonnelType value); >- >- /** >- * Returns the value of the '<em><b>Url</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Url</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Url</em>' containment reference. >- * @see #setUrl(UrlType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='url' namespace='##targetNamespace'" >- * @generated >- */ >- UrlType getUrl(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Url</em>' containment reference. >- * @see #getUrl() >- * @generated >- */ >- void setUrl(UrlType value); >- >-} // DocumentRoot >Index: src/org/eclipse/emf/test/models/personal/NameType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/NameType.java >diff -N src/org/eclipse/emf/test/models/personal/NameType.java >--- src/org/eclipse/emf/test/models/personal/NameType.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,90 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Name Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='nameType' kind='elementOnly'" >- * @generated >- */ >-public interface NameType >-{ >- /** >- * Returns the value of the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Family</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Family</em>' attribute. >- * @see #setFamily(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='family' namespace='##targetNamespace'" >- * @generated >- */ >- String getFamily(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Family</em>' attribute. >- * @see #getFamily() >- * @generated >- */ >- void setFamily(String value); >- >- /** >- * Returns the value of the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Given</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Given</em>' attribute. >- * @see #setGiven(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='given' namespace='##targetNamespace'" >- * @generated >- */ >- String getGiven(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Given</em>' attribute. >- * @see #getGiven() >- * @generated >- */ >- void setGiven(String value); >- >-} // NameType >Index: src/org/eclipse/emf/test/models/personal/UrlType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/UrlType.java >diff -N src/org/eclipse/emf/test/models/personal/UrlType.java >--- src/org/eclipse/emf/test/models/personal/UrlType.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,91 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Url Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='url_._type' kind='empty'" >- * @generated >- */ >-public interface UrlType >-{ >- /** >- * Returns the value of the '<em><b>Href</b></em>' attribute. >- * The default value is <code>"http://"</code>. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Href</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Href</em>' attribute. >- * @see #isSetHref() >- * @see #unsetHref() >- * @see #setHref(String) >- * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" >- * extendedMetaData="kind='attribute' name='href'" >- * @generated >- */ >- String getHref(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Href</em>' attribute. >- * @see #isSetHref() >- * @see #unsetHref() >- * @see #getHref() >- * @generated >- */ >- void setHref(String value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetHref() >- * @see #getHref() >- * @see #setHref(String) >- * @generated >- */ >- void unsetHref(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Href</em>' attribute is set. >- * @see #unsetHref() >- * @see #getHref() >- * @see #setHref(String) >- * @generated >- */ >- boolean isSetHref(); >- >-} // UrlType >Index: src/org/eclipse/emf/test/models/personal/PersonalFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/PersonalFactory.java >diff -N src/org/eclipse/emf/test/models/personal/PersonalFactory.java >--- src/org/eclipse/emf/test/models/personal/PersonalFactory.java 18 Jan 2007 22:06:38 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,91 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalFactory.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface PersonalFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- PersonalFactory INSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Document Root</em>'. >- * @generated >- */ >- DocumentRoot createDocumentRoot(); >- >- /** >- * Returns a new object of class '<em>Link Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Link Type</em>'. >- * @generated >- */ >- LinkType createLinkType(); >- >- /** >- * Returns a new object of class '<em>Name Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Name Type</em>'. >- * @generated >- */ >- NameType createNameType(); >- >- /** >- * Returns a new object of class '<em>Personnel Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Personnel Type</em>'. >- * @generated >- */ >- PersonnelType createPersonnelType(); >- >- /** >- * Returns a new object of class '<em>Person Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Person Type</em>'. >- * @generated >- */ >- PersonType createPersonType(); >- >- /** >- * Returns a new object of class '<em>Url Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Url Type</em>'. >- * @generated >- */ >- UrlType createUrlType(); >- >-} //PersonalFactory >Index: src/org/eclipse/emf/test/models/personal/PersonType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/PersonType.java >diff -N src/org/eclipse/emf/test/models/personal/PersonType.java >--- src/org/eclipse/emf/test/models/personal/PersonType.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,239 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >-import java.math.BigInteger; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Person Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getUrl <em>Url</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='personType' kind='elementOnly'" >- * @generated >- */ >-public interface PersonType >-{ >- /** >- * Returns the value of the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' containment reference. >- * @see #setName(NameType) >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='name' namespace='##targetNamespace'" >- * @generated >- */ >- NameType getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' containment reference. >- * @see #getName() >- * @generated >- */ >- void setName(NameType value); >- >- /** >- * Returns the value of the '<em><b>Email</b></em>' attribute list. >- * The list contents are of type {@link java.lang.String}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Email</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Email</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" >- * extendedMetaData="kind='element' name='email' namespace='##targetNamespace'" >- * @generated >- */ >- List<String> getEmail(); >- >- /** >- * Returns the value of the '<em><b>Url</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.personal.UrlType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Url</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Url</em>' containment reference list. >- * @model containment="true" >- * extendedMetaData="kind='element' name='url' namespace='##targetNamespace'" >- * @generated >- */ >- List<UrlType> getUrl(); >- >- /** >- * Returns the value of the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Link</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Link</em>' containment reference. >- * @see #setLink(LinkType) >- * @model containment="true" >- * extendedMetaData="kind='element' name='link' namespace='##targetNamespace'" >- * @generated >- */ >- LinkType getLink(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Link</em>' containment reference. >- * @see #getLink() >- * @generated >- */ >- void setLink(LinkType value); >- >- /** >- * Returns the value of the '<em><b>Contr</b></em>' attribute. >- * The default value is <code>"false"</code>. >- * The literals are from the enumeration {@link org.eclipse.emf.test.models.personal.ContrType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Contr</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Contr</em>' attribute. >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see #isSetContr() >- * @see #unsetContr() >- * @see #setContr(ContrType) >- * @model default="false" unsettable="true" >- * extendedMetaData="kind='attribute' name='contr'" >- * @generated >- */ >- ContrType getContr(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Contr</em>' attribute. >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see #isSetContr() >- * @see #unsetContr() >- * @see #getContr() >- * @generated >- */ >- void setContr(ContrType value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetContr() >- * @see #getContr() >- * @see #setContr(ContrType) >- * @generated >- */ >- void unsetContr(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Contr</em>' attribute is set. >- * @see #unsetContr() >- * @see #getContr() >- * @see #setContr(ContrType) >- * @generated >- */ >- boolean isSetContr(); >- >- /** >- * Returns the value of the '<em><b>Id</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Id</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Id</em>' attribute. >- * @see #setId(String) >- * @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" >- * extendedMetaData="kind='attribute' name='id'" >- * @generated >- */ >- String getId(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Id</em>' attribute. >- * @see #getId() >- * @generated >- */ >- void setId(String value); >- >- /** >- * Returns the value of the '<em><b>Salary</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Salary</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Salary</em>' attribute. >- * @see #setSalary(BigInteger) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Integer" >- * extendedMetaData="kind='attribute' name='salary'" >- * @generated >- */ >- BigInteger getSalary(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Salary</em>' attribute. >- * @see #getSalary() >- * @generated >- */ >- void setSalary(BigInteger value); >- >-} // PersonType >Index: src/org/eclipse/emf/test/models/personal/LinkType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/LinkType.java >diff -N src/org/eclipse/emf/test/models/personal/LinkType.java >--- src/org/eclipse/emf/test/models/personal/LinkType.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,91 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: LinkType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Link Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='linkType' kind='empty'" >- * @generated >- */ >-public interface LinkType >-{ >- /** >- * Returns the value of the '<em><b>Manager</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Manager</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Manager</em>' attribute. >- * @see #setManager(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.IDREF" >- * extendedMetaData="kind='attribute' name='manager'" >- * @generated >- */ >- String getManager(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Manager</em>' attribute. >- * @see #getManager() >- * @generated >- */ >- void setManager(String value); >- >- /** >- * Returns the value of the '<em><b>Subordinates</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Subordinates</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Subordinates</em>' attribute. >- * @see #setSubordinates(List) >- * @model dataType="org.eclipse.emf.ecore.xml.type.IDREFS" many="false" >- * extendedMetaData="kind='attribute' name='subordinates'" >- * @generated >- */ >- List<String> getSubordinates(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Subordinates</em>' attribute. >- * @see #getSubordinates() >- * @generated >- */ >- void setSubordinates(List<String> value); >- >-} // LinkType >Index: src/org/eclipse/emf/test/models/personal/impl/PersonnelTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/PersonnelTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/PersonnelTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/PersonnelTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,188 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonnelTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.PersonType; >-import org.eclipse.emf.test.models.personal.PersonnelType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Personnel Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl#getPerson <em>Person</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class PersonnelTypeImpl extends EDataObjectImpl implements PersonnelType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getPerson() <em>Person</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPerson() >- * @generated >- * @ordered >- */ >- protected EList<PersonType> person; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PersonnelTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.PERSONNEL_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<PersonType> getPerson() >- { >- if (person == null) >- { >- person = new EObjectContainmentEList<PersonType>(PersonType.class, this, PersonalPackageImpl.PERSONNEL_TYPE__PERSON); >- } >- return person; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSONNEL_TYPE__PERSON: >- return ((InternalEList<?>)getPerson()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSONNEL_TYPE__PERSON: >- return getPerson(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSONNEL_TYPE__PERSON: >- getPerson().clear(); >- getPerson().addAll((Collection<? extends PersonType>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSONNEL_TYPE__PERSON: >- getPerson().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSONNEL_TYPE__PERSON: >- return person != null && !person.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >-} //PersonnelTypeImpl >Index: src/org/eclipse/emf/test/models/personal/impl/DocumentRootImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/DocumentRootImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/DocumentRootImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/DocumentRootImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,632 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRootImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EMap; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EStructuralFeature; >-import org.eclipse.emf.ecore.EcorePackage; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.sdo.util.BasicESequence; >-import org.eclipse.emf.ecore.sdo.util.ESequence; >- >-import org.eclipse.emf.ecore.util.BasicFeatureMap; >-import org.eclipse.emf.ecore.util.EcoreEMap; >-import org.eclipse.emf.ecore.util.FeatureMap; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.DocumentRoot; >-import org.eclipse.emf.test.models.personal.LinkType; >-import org.eclipse.emf.test.models.personal.NameType; >-import org.eclipse.emf.test.models.personal.PersonType; >-import org.eclipse.emf.test.models.personal.PersonnelType; >-import org.eclipse.emf.test.models.personal.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getGiven <em>Given</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getPerson <em>Person</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getPersonnel <em>Personnel</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl#getUrl <em>Url</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class DocumentRootImpl extends EDataObjectImpl implements DocumentRoot >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getMixed() >- * @generated >- * @ordered >- */ >- protected ESequence mixed; >- >- /** >- * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXMLNSPrefixMap() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xMLNSPrefixMap; >- >- /** >- * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getXSISchemaLocation() >- * @generated >- * @ordered >- */ >- protected EMap<String, String> xSISchemaLocation; >- >- /** >- * The default value of the '{@link #getEmail() <em>Email</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getEmail() >- * @generated >- * @ordered >- */ >- protected static final String EMAIL_EDEFAULT = null; >- >- /** >- * The default value of the '{@link #getFamily() <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getFamily() >- * @generated >- * @ordered >- */ >- protected static final String FAMILY_EDEFAULT = null; >- >- /** >- * The default value of the '{@link #getGiven() <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getGiven() >- * @generated >- * @ordered >- */ >- protected static final String GIVEN_EDEFAULT = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected DocumentRootImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.DOCUMENT_ROOT; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Sequence getMixed() >- { >- if (mixed == null) >- { >- mixed = new BasicESequence(new BasicFeatureMap(this, PersonalPackageImpl.DOCUMENT_ROOT__MIXED)); >- } >- return mixed; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXMLNSPrefixMap() >- { >- if (xMLNSPrefixMap == null) >- { >- xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- } >- return xMLNSPrefixMap.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Map<String, String> getXSISchemaLocation() >- { >- if (xSISchemaLocation == null) >- { >- xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- } >- return xSISchemaLocation.map(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getEmail() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setEmail(String newEmail) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__EMAIL, newEmail); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getFamily() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setFamily(String newFamily) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__FAMILY, newFamily); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getGiven() >- { >- return (String)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setGiven(String newGiven) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__GIVEN, newGiven); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType getLink() >- { >- return (LinkType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setLink(LinkType newLink) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__LINK, newLink); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType getName() >- { >- return (NameType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetName(NameType newName, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(NameType newName) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__NAME, newName); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonType getPerson() >- { >- return (PersonType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetPerson(PersonType newPerson, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPerson(PersonType newPerson) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSON, newPerson); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonnelType getPersonnel() >- { >- return (PersonnelType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetPersonnel(PersonnelType newPersonnel, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPersonnel(PersonnelType newPersonnel) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__PERSONNEL, newPersonnel); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public UrlType getUrl() >- { >- return (UrlType)((FeatureMap.Internal.Wrapper)getMixed()).featureMap().get(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, true); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetUrl(UrlType newUrl, NotificationChain msgs) >- { >- return ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicAdd(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setUrl(UrlType newUrl) >- { >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(PersonalPackageImpl.Literals.DOCUMENT_ROOT__URL, newUrl); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT__MIXED: >- return ((InternalEList<?>)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).basicRemove(otherEnd, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).basicRemove(otherEnd, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return ((InternalEList<?>)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).basicRemove(otherEnd, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__LINK: >- return basicSetLink(null, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__NAME: >- return basicSetName(null, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSON: >- return basicSetPerson(null, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return basicSetPersonnel(null, msgs); >- case PersonalPackageImpl.DOCUMENT_ROOT__URL: >- return basicSetUrl(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT__MIXED: >- if (coreType) return ((FeatureMap.Internal.Wrapper)getMixed()).featureMap(); >- return getMixed(); >- case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap(); >- else return getXMLNSPrefixMap(); >- case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- if (coreType) return ((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap(); >- else return getXSISchemaLocation(); >- case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL: >- return getEmail(); >- case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY: >- return getFamily(); >- case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN: >- return getGiven(); >- case PersonalPackageImpl.DOCUMENT_ROOT__LINK: >- return getLink(); >- case PersonalPackageImpl.DOCUMENT_ROOT__NAME: >- return getName(); >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSON: >- return getPerson(); >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return getPersonnel(); >- case PersonalPackageImpl.DOCUMENT_ROOT__URL: >- return getUrl(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal)((FeatureMap.Internal.Wrapper)getMixed()).featureMap()).set(newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXMLNSPrefixMap()).eMap()).set(newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- ((EStructuralFeature.Setting)((EMap.InternalMapView<String, String>)getXSISchemaLocation()).eMap()).set(newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL: >- setEmail((String)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY: >- setFamily((String)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN: >- setGiven((String)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__LINK: >- setLink((LinkType)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__NAME: >- setName((NameType)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSON: >- setPerson((PersonType)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- setPersonnel((PersonnelType)newValue); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__URL: >- setUrl((UrlType)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT__MIXED: >- ((FeatureMap.Internal.Wrapper)getMixed()).featureMap().clear(); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- getXMLNSPrefixMap().clear(); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- getXSISchemaLocation().clear(); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL: >- setEmail(EMAIL_EDEFAULT); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY: >- setFamily(FAMILY_EDEFAULT); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN: >- setGiven(GIVEN_EDEFAULT); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__LINK: >- setLink((LinkType)null); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__NAME: >- setName((NameType)null); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSON: >- setPerson((PersonType)null); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- setPersonnel((PersonnelType)null); >- return; >- case PersonalPackageImpl.DOCUMENT_ROOT__URL: >- setUrl((UrlType)null); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT__MIXED: >- return mixed != null && !mixed.featureMap().isEmpty(); >- case PersonalPackageImpl.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: >- return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); >- case PersonalPackageImpl.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: >- return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); >- case PersonalPackageImpl.DOCUMENT_ROOT__EMAIL: >- return EMAIL_EDEFAULT == null ? getEmail() != null : !EMAIL_EDEFAULT.equals(getEmail()); >- case PersonalPackageImpl.DOCUMENT_ROOT__FAMILY: >- return FAMILY_EDEFAULT == null ? getFamily() != null : !FAMILY_EDEFAULT.equals(getFamily()); >- case PersonalPackageImpl.DOCUMENT_ROOT__GIVEN: >- return GIVEN_EDEFAULT == null ? getGiven() != null : !GIVEN_EDEFAULT.equals(getGiven()); >- case PersonalPackageImpl.DOCUMENT_ROOT__LINK: >- return getLink() != null; >- case PersonalPackageImpl.DOCUMENT_ROOT__NAME: >- return getName() != null; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSON: >- return getPerson() != null; >- case PersonalPackageImpl.DOCUMENT_ROOT__PERSONNEL: >- return getPersonnel() != null; >- case PersonalPackageImpl.DOCUMENT_ROOT__URL: >- return getUrl() != null; >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (mixed: "); >- result.append(mixed); >- result.append(')'); >- return result.toString(); >- } >- >-} //DocumentRootImpl >Index: src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/NameTypeImpl.java 18 Jan 2007 22:06:41 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,254 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: NameTypeImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.personal.NameType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Name Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl#getGiven <em>Given</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class NameTypeImpl extends EDataObjectImpl implements NameType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getFamily() <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getFamily() >- * @generated >- * @ordered >- */ >- protected static final String FAMILY_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getFamily() <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getFamily() >- * @generated >- * @ordered >- */ >- protected String family = FAMILY_EDEFAULT; >- >- /** >- * The default value of the '{@link #getGiven() <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getGiven() >- * @generated >- * @ordered >- */ >- protected static final String GIVEN_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getGiven() <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getGiven() >- * @generated >- * @ordered >- */ >- protected String given = GIVEN_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected NameTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.NAME_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getFamily() >- { >- return family; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setFamily(String newFamily) >- { >- String oldFamily = family; >- family = newFamily; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__FAMILY, oldFamily, family)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getGiven() >- { >- return given; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setGiven(String newGiven) >- { >- String oldGiven = given; >- given = newGiven; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.NAME_TYPE__GIVEN, oldGiven, given)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.NAME_TYPE__FAMILY: >- return getFamily(); >- case PersonalPackageImpl.NAME_TYPE__GIVEN: >- return getGiven(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.NAME_TYPE__FAMILY: >- setFamily((String)newValue); >- return; >- case PersonalPackageImpl.NAME_TYPE__GIVEN: >- setGiven((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.NAME_TYPE__FAMILY: >- setFamily(FAMILY_EDEFAULT); >- return; >- case PersonalPackageImpl.NAME_TYPE__GIVEN: >- setGiven(GIVEN_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.NAME_TYPE__FAMILY: >- return FAMILY_EDEFAULT == null ? family != null : !FAMILY_EDEFAULT.equals(family); >- case PersonalPackageImpl.NAME_TYPE__GIVEN: >- return GIVEN_EDEFAULT == null ? given != null : !GIVEN_EDEFAULT.equals(given); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (family: "); >- result.append(family); >- result.append(", given: "); >- result.append(given); >- result.append(')'); >- return result.toString(); >- } >- >-} //NameTypeImpl >Index: src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/PersonalPackageImpl.java 15 Jun 2007 21:22:18 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,1741 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalPackageImpl.java,v 1.4 2007/06/15 21:22:18 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EEnum; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >-import org.eclipse.emf.ecore.EReference; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.personal.ContrType; >-import org.eclipse.emf.test.models.personal.DocumentRoot; >-import org.eclipse.emf.test.models.personal.LinkType; >-import org.eclipse.emf.test.models.personal.NameType; >-import org.eclipse.emf.test.models.personal.PersonType; >-import org.eclipse.emf.test.models.personal.PersonalFactory; >-import org.eclipse.emf.test.models.personal.PersonnelType; >-import org.eclipse.emf.test.models.personal.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.PersonalFactory >- * @model kind="package" >- * @generated >- */ >-public class PersonalPackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "personal"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/personal"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "personal"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final PersonalPackageImpl eINSTANCE = org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final int DOCUMENT_ROOT = 0; >- >- /** >- * The feature id for the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__MIXED = 0; >- >- /** >- * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; >- >- /** >- * The feature id for the '<em><b>XSI Schema Location</b></em>' map. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; >- >- /** >- * The feature id for the '<em><b>Email</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__EMAIL = 3; >- >- /** >- * The feature id for the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__FAMILY = 4; >- >- /** >- * The feature id for the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__GIVEN = 5; >- >- /** >- * The feature id for the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__LINK = 6; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__NAME = 7; >- >- /** >- * The feature id for the '<em><b>Person</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__PERSON = 8; >- >- /** >- * The feature id for the '<em><b>Personnel</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__PERSONNEL = 9; >- >- /** >- * The feature id for the '<em><b>Url</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT__URL = 10; >- >- /** >- * The number of structural features of the '<em>Document Root</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int DOCUMENT_ROOT_FEATURE_COUNT = 11; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType() >- * @generated >- */ >- public static final int LINK_TYPE = 1; >- >- /** >- * The feature id for the '<em><b>Manager</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE__MANAGER = 0; >- >- /** >- * The feature id for the '<em><b>Subordinates</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE__SUBORDINATES = 1; >- >- /** >- * The number of structural features of the '<em>Link Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LINK_TYPE_FEATURE_COUNT = 2; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType() >- * @generated >- */ >- public static final int NAME_TYPE = 2; >- >- /** >- * The feature id for the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE__FAMILY = 0; >- >- /** >- * The feature id for the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE__GIVEN = 1; >- >- /** >- * The number of structural features of the '<em>Name Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int NAME_TYPE_FEATURE_COUNT = 2; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType() >- * @generated >- */ >- public static final int PERSONNEL_TYPE = 3; >- >- /** >- * The feature id for the '<em><b>Person</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSONNEL_TYPE__PERSON = 0; >- >- /** >- * The number of structural features of the '<em>Personnel Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSONNEL_TYPE_FEATURE_COUNT = 1; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType() >- * @generated >- */ >- public static final int PERSON_TYPE = 4; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__NAME = 0; >- >- /** >- * The feature id for the '<em><b>Email</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__EMAIL = 1; >- >- /** >- * The feature id for the '<em><b>Url</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__URL = 2; >- >- /** >- * The feature id for the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__LINK = 3; >- >- /** >- * The feature id for the '<em><b>Contr</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__CONTR = 4; >- >- /** >- * The feature id for the '<em><b>Id</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__ID = 5; >- >- /** >- * The feature id for the '<em><b>Salary</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE__SALARY = 6; >- >- /** >- * The number of structural features of the '<em>Person Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int PERSON_TYPE_FEATURE_COUNT = 7; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType() >- * @generated >- */ >- public static final int URL_TYPE = 5; >- >- /** >- * The feature id for the '<em><b>Href</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int URL_TYPE__HREF = 0; >- >- /** >- * The number of structural features of the '<em>Url Type</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int URL_TYPE_FEATURE_COUNT = 1; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType() >- * @generated >- */ >- public static final int CONTR_TYPE = 6; >- >- /** >- * The meta object id for the '<em>Contr Type Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject() >- * @generated >- */ >- public static final int CONTR_TYPE_OBJECT = 7; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass documentRootEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass linkTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass nameTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass personnelTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass personTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass urlTypeEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EEnum contrTypeEEnum = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType contrTypeObjectEDataType = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private PersonalPackageImpl() >- { >- super(eNS_URI, ((EFactory)PersonalFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static PersonalPackageImpl init() >- { >- if (isInited) return (PersonalPackageImpl)EPackage.Registry.INSTANCE.getEPackage(PersonalPackageImpl.eNS_URI); >- >- // Obtain or create and register package >- PersonalPackageImpl thePersonalPackageImpl = (PersonalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PersonalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PersonalPackageImpl()); >- >- isInited = true; >- >- // Initialize simple dependencies >- XMLTypePackage.eINSTANCE.eClass(); >- >- // Create package meta-data objects >- thePersonalPackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- thePersonalPackageImpl.initializePackageContents(); >- >- // Mark meta-data to indicate it can't be changed >- thePersonalPackageImpl.freeze(); >- >- return thePersonalPackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Document Root</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot >- * @generated >- */ >- public EClass getDocumentRoot() >- { >- return documentRootEClass; >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getMixed <em>Mixed</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Mixed</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getMixed() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Mixed() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXMLNSPrefixMap() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XMLNSPrefixMap() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the map '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the map '<em>XSI Schema Location</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getXSISchemaLocation() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_XSISchemaLocation() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getEmail <em>Email</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Email</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getEmail() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Email() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getFamily <em>Family</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Family</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getFamily() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Family() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getGiven <em>Given</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Given</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getGiven() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EAttribute getDocumentRoot_Given() >- { >- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getLink <em>Link</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Link</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getLink() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Link() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getName() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Name() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(7); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPerson <em>Person</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Person</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPerson() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Person() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(8); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel <em>Personnel</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Personnel</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getPersonnel() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Personnel() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(9); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.DocumentRoot#getUrl <em>Url</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Url</em>'. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot#getUrl() >- * @see #getDocumentRoot() >- * @generated >- */ >- public EReference getDocumentRoot_Url() >- { >- return (EReference)documentRootEClass.getEStructuralFeatures().get(10); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.LinkType <em>Link Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Link Type</em>'. >- * @see org.eclipse.emf.test.models.personal.LinkType >- * @generated >- */ >- public EClass getLinkType() >- { >- return linkTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getManager <em>Manager</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Manager</em>'. >- * @see org.eclipse.emf.test.models.personal.LinkType#getManager() >- * @see #getLinkType() >- * @generated >- */ >- public EAttribute getLinkType_Manager() >- { >- return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.LinkType#getSubordinates <em>Subordinates</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Subordinates</em>'. >- * @see org.eclipse.emf.test.models.personal.LinkType#getSubordinates() >- * @see #getLinkType() >- * @generated >- */ >- public EAttribute getLinkType_Subordinates() >- { >- return (EAttribute)linkTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.NameType <em>Name Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Name Type</em>'. >- * @see org.eclipse.emf.test.models.personal.NameType >- * @generated >- */ >- public EClass getNameType() >- { >- return nameTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getFamily <em>Family</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Family</em>'. >- * @see org.eclipse.emf.test.models.personal.NameType#getFamily() >- * @see #getNameType() >- * @generated >- */ >- public EAttribute getNameType_Family() >- { >- return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.NameType#getGiven <em>Given</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Given</em>'. >- * @see org.eclipse.emf.test.models.personal.NameType#getGiven() >- * @see #getNameType() >- * @generated >- */ >- public EAttribute getNameType_Given() >- { >- return (EAttribute)nameTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonnelType <em>Personnel Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Personnel Type</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonnelType >- * @generated >- */ >- public EClass getPersonnelType() >- { >- return personnelTypeEClass; >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonnelType#getPerson <em>Person</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Person</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonnelType#getPerson() >- * @see #getPersonnelType() >- * @generated >- */ >- public EReference getPersonnelType_Person() >- { >- return (EReference)personnelTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.PersonType <em>Person Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Person Type</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType >- * @generated >- */ >- public EClass getPersonType() >- { >- return personTypeEClass; >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getName() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Name() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.personal.PersonType#getEmail <em>Email</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Email</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getEmail() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Email() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.personal.PersonType#getUrl <em>Url</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Url</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getUrl() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Url() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the containment reference '{@link org.eclipse.emf.test.models.personal.PersonType#getLink <em>Link</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference '<em>Link</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getLink() >- * @see #getPersonType() >- * @generated >- */ >- public EReference getPersonType_Link() >- { >- return (EReference)personTypeEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getContr <em>Contr</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Contr</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getContr() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Contr() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getId <em>Id</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Id</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getId() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Id() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.PersonType#getSalary <em>Salary</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Salary</em>'. >- * @see org.eclipse.emf.test.models.personal.PersonType#getSalary() >- * @see #getPersonType() >- * @generated >- */ >- public EAttribute getPersonType_Salary() >- { >- return (EAttribute)personTypeEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.personal.UrlType <em>Url Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Url Type</em>'. >- * @see org.eclipse.emf.test.models.personal.UrlType >- * @generated >- */ >- public EClass getUrlType() >- { >- return urlTypeEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.personal.UrlType#getHref <em>Href</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Href</em>'. >- * @see org.eclipse.emf.test.models.personal.UrlType#getHref() >- * @see #getUrlType() >- * @generated >- */ >- public EAttribute getUrlType_Href() >- { >- return (EAttribute)urlTypeEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for enum '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for enum '<em>Contr Type</em>'. >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @generated >- */ >- public EEnum getContrType() >- { >- return contrTypeEEnum; >- } >- >- /** >- * Returns the meta object for data type '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>Contr Type Object</em>'. >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @model instanceClass="org.eclipse.emf.test.models.personal.ContrType" >- * extendedMetaData="name='contr_._type:Object' baseType='contr_._type'" >- * @generated >- */ >- public EDataType getContrTypeObject() >- { >- return contrTypeObjectEDataType; >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public PersonalFactory getPersonalFactory() >- { >- return (PersonalFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- documentRootEClass = createEClass(DOCUMENT_ROOT); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); >- createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__EMAIL); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__FAMILY); >- createEAttribute(documentRootEClass, DOCUMENT_ROOT__GIVEN); >- createEReference(documentRootEClass, DOCUMENT_ROOT__LINK); >- createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); >- createEReference(documentRootEClass, DOCUMENT_ROOT__PERSON); >- createEReference(documentRootEClass, DOCUMENT_ROOT__PERSONNEL); >- createEReference(documentRootEClass, DOCUMENT_ROOT__URL); >- >- linkTypeEClass = createEClass(LINK_TYPE); >- createEAttribute(linkTypeEClass, LINK_TYPE__MANAGER); >- createEAttribute(linkTypeEClass, LINK_TYPE__SUBORDINATES); >- >- nameTypeEClass = createEClass(NAME_TYPE); >- createEAttribute(nameTypeEClass, NAME_TYPE__FAMILY); >- createEAttribute(nameTypeEClass, NAME_TYPE__GIVEN); >- >- personnelTypeEClass = createEClass(PERSONNEL_TYPE); >- createEReference(personnelTypeEClass, PERSONNEL_TYPE__PERSON); >- >- personTypeEClass = createEClass(PERSON_TYPE); >- createEReference(personTypeEClass, PERSON_TYPE__NAME); >- createEAttribute(personTypeEClass, PERSON_TYPE__EMAIL); >- createEReference(personTypeEClass, PERSON_TYPE__URL); >- createEReference(personTypeEClass, PERSON_TYPE__LINK); >- createEAttribute(personTypeEClass, PERSON_TYPE__CONTR); >- createEAttribute(personTypeEClass, PERSON_TYPE__ID); >- createEAttribute(personTypeEClass, PERSON_TYPE__SALARY); >- >- urlTypeEClass = createEClass(URL_TYPE); >- createEAttribute(urlTypeEClass, URL_TYPE__HREF); >- >- // Create enums >- contrTypeEEnum = createEEnum(CONTR_TYPE); >- >- // Create data types >- contrTypeObjectEDataType = createEDataType(CONTR_TYPE_OBJECT); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Obtain other dependent packages >- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- >- // Initialize classes and features; add operations and parameters >- initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(linkTypeEClass, LinkType.class, "LinkType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- >- initEClass(nameTypeEClass, NameType.class, "NameType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- >- initEClass(personnelTypeEClass, PersonnelType.class, "PersonnelType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- >- initEClass(personTypeEClass, PersonType.class, "PersonType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(urlTypeEClass, UrlType.class, "UrlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- >- // Initialize enums and add enum literals >- initEEnum(contrTypeEEnum, ContrType.class, "ContrType"); >- addEEnumLiteral(contrTypeEEnum, ContrType.TRUE); >- addEEnumLiteral(contrTypeEEnum, ContrType.FALSE); >- >- // Initialize data types >- initEDataType(contrTypeObjectEDataType, ContrType.class, "ContrTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); >- >- // Create resource >- createResource(eNS_URI); >- >- // Create annotations >- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >- createExtendedMetaDataAnnotations(); >- } >- >- /** >- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected void createExtendedMetaDataAnnotations() >- { >- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >- addAnnotation >- (contrTypeEEnum, >- source, >- new String[] >- { >- "name", "contr_._type" >- }); >- addAnnotation >- (contrTypeObjectEDataType, >- source, >- new String[] >- { >- "name", "contr_._type:Object", >- "baseType", "contr_._type" >- }); >- addAnnotation >- (documentRootEClass, >- source, >- new String[] >- { >- "name", "", >- "kind", "mixed" >- }); >- addAnnotation >- (getDocumentRoot_Mixed(), >- source, >- new String[] >- { >- "kind", "elementWildcard", >- "name", ":mixed" >- }); >- addAnnotation >- (getDocumentRoot_XMLNSPrefixMap(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xmlns:prefix" >- }); >- addAnnotation >- (getDocumentRoot_XSISchemaLocation(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "xsi:schemaLocation" >- }); >- addAnnotation >- (getDocumentRoot_Email(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "email", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Family(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "family", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Given(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "given", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Link(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "link", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Name(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "name", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Person(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "person", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Personnel(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "personnel", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getDocumentRoot_Url(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "url", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (linkTypeEClass, >- source, >- new String[] >- { >- "name", "linkType", >- "kind", "empty" >- }); >- addAnnotation >- (getLinkType_Manager(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "manager" >- }); >- addAnnotation >- (getLinkType_Subordinates(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "subordinates" >- }); >- addAnnotation >- (nameTypeEClass, >- source, >- new String[] >- { >- "name", "nameType", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getNameType_Family(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "family", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getNameType_Given(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "given", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (personnelTypeEClass, >- source, >- new String[] >- { >- "name", "personnel_._type", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getPersonnelType_Person(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "person", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (personTypeEClass, >- source, >- new String[] >- { >- "name", "personType", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getPersonType_Name(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "name", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Email(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "email", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Url(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "url", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Link(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "link", >- "namespace", "##targetNamespace" >- }); >- addAnnotation >- (getPersonType_Contr(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "contr" >- }); >- addAnnotation >- (getPersonType_Id(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "id" >- }); >- addAnnotation >- (getPersonType_Salary(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "salary" >- }); >- addAnnotation >- (urlTypeEClass, >- source, >- new String[] >- { >- "name", "url_._type", >- "kind", "empty" >- }); >- addAnnotation >- (getUrlType_Href(), >- source, >- new String[] >- { >- "kind", "attribute", >- "name", "href" >- }); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.DocumentRootImpl <em>Document Root</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.DocumentRootImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getDocumentRoot() >- * @generated >- */ >- public static final EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot(); >- >- /** >- * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed(); >- >- /** >- * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap(); >- >- /** >- * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation(); >- >- /** >- * The meta object literal for the '<em><b>Email</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__EMAIL = eINSTANCE.getDocumentRoot_Email(); >- >- /** >- * The meta object literal for the '<em><b>Family</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__FAMILY = eINSTANCE.getDocumentRoot_Family(); >- >- /** >- * The meta object literal for the '<em><b>Given</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute DOCUMENT_ROOT__GIVEN = eINSTANCE.getDocumentRoot_Given(); >- >- /** >- * The meta object literal for the '<em><b>Link</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__LINK = eINSTANCE.getDocumentRoot_Link(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__NAME = eINSTANCE.getDocumentRoot_Name(); >- >- /** >- * The meta object literal for the '<em><b>Person</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__PERSON = eINSTANCE.getDocumentRoot_Person(); >- >- /** >- * The meta object literal for the '<em><b>Personnel</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__PERSONNEL = eINSTANCE.getDocumentRoot_Personnel(); >- >- /** >- * The meta object literal for the '<em><b>Url</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference DOCUMENT_ROOT__URL = eINSTANCE.getDocumentRoot_Url(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl <em>Link Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.LinkTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getLinkType() >- * @generated >- */ >- public static final EClass LINK_TYPE = eINSTANCE.getLinkType(); >- >- /** >- * The meta object literal for the '<em><b>Manager</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LINK_TYPE__MANAGER = eINSTANCE.getLinkType_Manager(); >- >- /** >- * The meta object literal for the '<em><b>Subordinates</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LINK_TYPE__SUBORDINATES = eINSTANCE.getLinkType_Subordinates(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.NameTypeImpl <em>Name Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.NameTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getNameType() >- * @generated >- */ >- public static final EClass NAME_TYPE = eINSTANCE.getNameType(); >- >- /** >- * The meta object literal for the '<em><b>Family</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute NAME_TYPE__FAMILY = eINSTANCE.getNameType_Family(); >- >- /** >- * The meta object literal for the '<em><b>Given</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute NAME_TYPE__GIVEN = eINSTANCE.getNameType_Given(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl <em>Personnel Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonnelTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonnelType() >- * @generated >- */ >- public static final EClass PERSONNEL_TYPE = eINSTANCE.getPersonnelType(); >- >- /** >- * The meta object literal for the '<em><b>Person</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSONNEL_TYPE__PERSON = eINSTANCE.getPersonnelType_Person(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl <em>Person Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getPersonType() >- * @generated >- */ >- public static final EClass PERSON_TYPE = eINSTANCE.getPersonType(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__NAME = eINSTANCE.getPersonType_Name(); >- >- /** >- * The meta object literal for the '<em><b>Email</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__EMAIL = eINSTANCE.getPersonType_Email(); >- >- /** >- * The meta object literal for the '<em><b>Url</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__URL = eINSTANCE.getPersonType_Url(); >- >- /** >- * The meta object literal for the '<em><b>Link</b></em>' containment reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference PERSON_TYPE__LINK = eINSTANCE.getPersonType_Link(); >- >- /** >- * The meta object literal for the '<em><b>Contr</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__CONTR = eINSTANCE.getPersonType_Contr(); >- >- /** >- * The meta object literal for the '<em><b>Id</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__ID = eINSTANCE.getPersonType_Id(); >- >- /** >- * The meta object literal for the '<em><b>Salary</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute PERSON_TYPE__SALARY = eINSTANCE.getPersonType_Salary(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl <em>Url Type</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.UrlTypeImpl >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getUrlType() >- * @generated >- */ >- public static final EClass URL_TYPE = eINSTANCE.getUrlType(); >- >- /** >- * The meta object literal for the '<em><b>Href</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute URL_TYPE__HREF = eINSTANCE.getUrlType_Href(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.personal.ContrType <em>Contr Type</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrType() >- * @generated >- */ >- public static final EEnum CONTR_TYPE = eINSTANCE.getContrType(); >- >- /** >- * The meta object literal for the '<em>Contr Type Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.ContrType >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl#getContrTypeObject() >- * @generated >- */ >- public static final EDataType CONTR_TYPE_OBJECT = eINSTANCE.getContrTypeObject(); >- >- } >- >-} //PersonalPackageImpl >Index: src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/UrlTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,234 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UrlTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.personal.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Url Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.UrlTypeImpl#getHref <em>Href</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class UrlTypeImpl extends EDataObjectImpl implements UrlType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getHref() <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHref() >- * @generated >- * @ordered >- */ >- protected static final String HREF_EDEFAULT = "http://"; >- >- /** >- * The cached value of the '{@link #getHref() <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHref() >- * @generated >- * @ordered >- */ >- protected String href = HREF_EDEFAULT; >- >- /** >- * This is true if the Href attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean hrefESet; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected UrlTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.URL_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getHref() >- { >- return href; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setHref(String newHref) >- { >- String oldHref = href; >- href = newHref; >- boolean oldHrefESet = hrefESet; >- hrefESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, href, !oldHrefESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetHref() >- { >- String oldHref = href; >- boolean oldHrefESet = hrefESet; >- href = HREF_EDEFAULT; >- hrefESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, PersonalPackageImpl.URL_TYPE__HREF, oldHref, HREF_EDEFAULT, oldHrefESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetHref() >- { >- return hrefESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.URL_TYPE__HREF: >- return getHref(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.URL_TYPE__HREF: >- setHref((String)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.URL_TYPE__HREF: >- unsetHref(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.URL_TYPE__HREF: >- return isSetHref(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (href: "); >- if (hrefESet) result.append(href); else result.append("<unset>"); >- result.append(')'); >- return result.toString(); >- } >- >-} //UrlTypeImpl >Index: src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/PersonalFactoryImpl.java 18 Jan 2007 22:06:41 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,269 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalFactoryImpl.java,v 1.2 2007/01/18 22:06:41 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.test.models.personal.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class PersonalFactoryImpl extends EFactoryImpl implements PersonalFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final PersonalFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static PersonalFactoryImpl init() >- { >- try >- { >- PersonalFactoryImpl thePersonalFactory = (PersonalFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/personal"); >- if (thePersonalFactory != null) >- { >- return thePersonalFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new PersonalFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT: return (EObject)createDocumentRoot(); >- case PersonalPackageImpl.LINK_TYPE: return (EObject)createLinkType(); >- case PersonalPackageImpl.NAME_TYPE: return (EObject)createNameType(); >- case PersonalPackageImpl.PERSONNEL_TYPE: return (EObject)createPersonnelType(); >- case PersonalPackageImpl.PERSON_TYPE: return (EObject)createPersonType(); >- case PersonalPackageImpl.URL_TYPE: return (EObject)createUrlType(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object createFromString(EDataType eDataType, String initialValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case PersonalPackageImpl.CONTR_TYPE: >- return createContrTypeFromString(eDataType, initialValue); >- case PersonalPackageImpl.CONTR_TYPE_OBJECT: >- return createContrTypeObjectFromString(eDataType, initialValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String convertToString(EDataType eDataType, Object instanceValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case PersonalPackageImpl.CONTR_TYPE: >- return convertContrTypeToString(eDataType, instanceValue); >- case PersonalPackageImpl.CONTR_TYPE_OBJECT: >- return convertContrTypeObjectToString(eDataType, instanceValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public DocumentRoot createDocumentRoot() >- { >- DocumentRootImpl documentRoot = new DocumentRootImpl(); >- return documentRoot; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType createLinkType() >- { >- LinkTypeImpl linkType = new LinkTypeImpl(); >- return linkType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType createNameType() >- { >- NameTypeImpl nameType = new NameTypeImpl(); >- return nameType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonnelType createPersonnelType() >- { >- PersonnelTypeImpl personnelType = new PersonnelTypeImpl(); >- return personnelType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonType createPersonType() >- { >- PersonTypeImpl personType = new PersonTypeImpl(); >- return personType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public UrlType createUrlType() >- { >- UrlTypeImpl urlType = new UrlTypeImpl(); >- return urlType; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType createContrTypeFromString(EDataType eDataType, String initialValue) >- { >- ContrType result = ContrType.get(initialValue); >- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertContrTypeToString(EDataType eDataType, Object instanceValue) >- { >- return instanceValue == null ? null : instanceValue.toString(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType createContrTypeObjectFromString(EDataType eDataType, String initialValue) >- { >- return createContrTypeFromString(PersonalPackageImpl.Literals.CONTR_TYPE, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertContrTypeObjectToString(EDataType eDataType, Object instanceValue) >- { >- return convertContrTypeToString(PersonalPackageImpl.Literals.CONTR_TYPE, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalPackageImpl getPersonalPackageImpl() >- { >- return (PersonalPackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static PersonalPackageImpl getPackage() >- { >- return PersonalPackageImpl.eINSTANCE; >- } >- >-} //PersonalFactoryImpl >Index: src/org/eclipse/emf/test/models/personal/impl/PersonTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/PersonTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/PersonTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/PersonTypeImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,596 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonTypeImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import java.math.BigInteger; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EDataTypeEList; >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.personal.ContrType; >-import org.eclipse.emf.test.models.personal.LinkType; >-import org.eclipse.emf.test.models.personal.NameType; >-import org.eclipse.emf.test.models.personal.PersonType; >-import org.eclipse.emf.test.models.personal.UrlType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Person Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getUrl <em>Url</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getContr <em>Contr</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getId <em>Id</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.PersonTypeImpl#getSalary <em>Salary</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class PersonTypeImpl extends EDataObjectImpl implements PersonType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The cached value of the '{@link #getName() <em>Name</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected NameType name; >- >- /** >- * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getEmail() >- * @generated >- * @ordered >- */ >- protected EList<String> email; >- >- /** >- * The cached value of the '{@link #getUrl() <em>Url</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getUrl() >- * @generated >- * @ordered >- */ >- protected EList<UrlType> url; >- >- /** >- * The cached value of the '{@link #getLink() <em>Link</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getLink() >- * @generated >- * @ordered >- */ >- protected LinkType link; >- >- /** >- * The default value of the '{@link #getContr() <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getContr() >- * @generated >- * @ordered >- */ >- protected static final ContrType CONTR_EDEFAULT = ContrType.FALSE; >- >- /** >- * The cached value of the '{@link #getContr() <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getContr() >- * @generated >- * @ordered >- */ >- protected ContrType contr = CONTR_EDEFAULT; >- >- /** >- * This is true if the Contr attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean contrESet; >- >- /** >- * The default value of the '{@link #getId() <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getId() >- * @generated >- * @ordered >- */ >- protected static final String ID_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getId() <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getId() >- * @generated >- * @ordered >- */ >- protected String id = ID_EDEFAULT; >- >- /** >- * The default value of the '{@link #getSalary() <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSalary() >- * @generated >- * @ordered >- */ >- protected static final BigInteger SALARY_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getSalary() <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSalary() >- * @generated >- * @ordered >- */ >- protected BigInteger salary = SALARY_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PersonTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.PERSON_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NameType getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetName(NameType newName, NotificationChain msgs) >- { >- NameType oldName = name; >- name = newName; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__NAME, oldName, newName); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(NameType newName) >- { >- if (newName != name) >- { >- NotificationChain msgs = null; >- if (name != null) >- msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__NAME, null, msgs); >- if (newName != null) >- msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__NAME, null, msgs); >- msgs = basicSetName(newName, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__NAME, newName, newName)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<String> getEmail() >- { >- if (email == null) >- { >- email = new EDataTypeEList<String>(String.class, this, PersonalPackageImpl.PERSON_TYPE__EMAIL); >- } >- return email; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<UrlType> getUrl() >- { >- if (url == null) >- { >- url = new EObjectContainmentEList<UrlType>(UrlType.class, this, PersonalPackageImpl.PERSON_TYPE__URL); >- } >- return url; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public LinkType getLink() >- { >- return link; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetLink(LinkType newLink, NotificationChain msgs) >- { >- LinkType oldLink = link; >- link = newLink; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__LINK, oldLink, newLink); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setLink(LinkType newLink) >- { >- if (newLink != link) >- { >- NotificationChain msgs = null; >- if (link != null) >- msgs = ((InternalEObject)link).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__LINK, null, msgs); >- if (newLink != null) >- msgs = ((InternalEObject)newLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PersonalPackageImpl.PERSON_TYPE__LINK, null, msgs); >- msgs = basicSetLink(newLink, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__LINK, newLink, newLink)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public ContrType getContr() >- { >- return contr; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setContr(ContrType newContr) >- { >- ContrType oldContr = contr; >- contr = newContr == null ? CONTR_EDEFAULT : newContr; >- boolean oldContrESet = contrESet; >- contrESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__CONTR, oldContr, contr, !oldContrESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetContr() >- { >- ContrType oldContr = contr; >- boolean oldContrESet = contrESet; >- contr = CONTR_EDEFAULT; >- contrESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, PersonalPackageImpl.PERSON_TYPE__CONTR, oldContr, CONTR_EDEFAULT, oldContrESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetContr() >- { >- return contrESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getId() >- { >- return id; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setId(String newId) >- { >- String oldId = id; >- id = newId; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__ID, oldId, id)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getSalary() >- { >- return salary; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setSalary(BigInteger newSalary) >- { >- BigInteger oldSalary = salary; >- salary = newSalary; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.PERSON_TYPE__SALARY, oldSalary, salary)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSON_TYPE__NAME: >- return basicSetName(null, msgs); >- case PersonalPackageImpl.PERSON_TYPE__URL: >- return ((InternalEList<?>)getUrl()).basicRemove(otherEnd, msgs); >- case PersonalPackageImpl.PERSON_TYPE__LINK: >- return basicSetLink(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSON_TYPE__NAME: >- return getName(); >- case PersonalPackageImpl.PERSON_TYPE__EMAIL: >- return getEmail(); >- case PersonalPackageImpl.PERSON_TYPE__URL: >- return getUrl(); >- case PersonalPackageImpl.PERSON_TYPE__LINK: >- return getLink(); >- case PersonalPackageImpl.PERSON_TYPE__CONTR: >- return getContr(); >- case PersonalPackageImpl.PERSON_TYPE__ID: >- return getId(); >- case PersonalPackageImpl.PERSON_TYPE__SALARY: >- return getSalary(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSON_TYPE__NAME: >- setName((NameType)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__EMAIL: >- getEmail().clear(); >- getEmail().addAll((Collection<? extends String>)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__URL: >- getUrl().clear(); >- getUrl().addAll((Collection<? extends UrlType>)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__LINK: >- setLink((LinkType)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__CONTR: >- setContr((ContrType)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__ID: >- setId((String)newValue); >- return; >- case PersonalPackageImpl.PERSON_TYPE__SALARY: >- setSalary((BigInteger)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSON_TYPE__NAME: >- setName((NameType)null); >- return; >- case PersonalPackageImpl.PERSON_TYPE__EMAIL: >- getEmail().clear(); >- return; >- case PersonalPackageImpl.PERSON_TYPE__URL: >- getUrl().clear(); >- return; >- case PersonalPackageImpl.PERSON_TYPE__LINK: >- setLink((LinkType)null); >- return; >- case PersonalPackageImpl.PERSON_TYPE__CONTR: >- unsetContr(); >- return; >- case PersonalPackageImpl.PERSON_TYPE__ID: >- setId(ID_EDEFAULT); >- return; >- case PersonalPackageImpl.PERSON_TYPE__SALARY: >- setSalary(SALARY_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.PERSON_TYPE__NAME: >- return name != null; >- case PersonalPackageImpl.PERSON_TYPE__EMAIL: >- return email != null && !email.isEmpty(); >- case PersonalPackageImpl.PERSON_TYPE__URL: >- return url != null && !url.isEmpty(); >- case PersonalPackageImpl.PERSON_TYPE__LINK: >- return link != null; >- case PersonalPackageImpl.PERSON_TYPE__CONTR: >- return isSetContr(); >- case PersonalPackageImpl.PERSON_TYPE__ID: >- return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); >- case PersonalPackageImpl.PERSON_TYPE__SALARY: >- return SALARY_EDEFAULT == null ? salary != null : !SALARY_EDEFAULT.equals(salary); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (email: "); >- result.append(email); >- result.append(", contr: "); >- if (contrESet) result.append(contr); else result.append("<unset>"); >- result.append(", id: "); >- result.append(id); >- result.append(", salary: "); >- result.append(salary); >- result.append(')'); >- return result.toString(); >- } >- >-} //PersonTypeImpl >Index: src/org/eclipse/emf/test/models/personal/impl/LinkTypeImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/impl/LinkTypeImpl.java >diff -N src/org/eclipse/emf/test/models/personal/impl/LinkTypeImpl.java >--- src/org/eclipse/emf/test/models/personal/impl/LinkTypeImpl.java 18 Jan 2007 22:06:40 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,257 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: LinkTypeImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.impl; >- >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.personal.LinkType; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Link Type</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl#getManager <em>Manager</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.impl.LinkTypeImpl#getSubordinates <em>Subordinates</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class LinkTypeImpl extends EDataObjectImpl implements LinkType >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getManager() <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManager() >- * @generated >- * @ordered >- */ >- protected static final String MANAGER_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getManager() <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManager() >- * @generated >- * @ordered >- */ >- protected String manager = MANAGER_EDEFAULT; >- >- /** >- * The default value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSubordinates() >- * @generated >- * @ordered >- */ >- protected static final List<String> SUBORDINATES_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getSubordinates() <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSubordinates() >- * @generated >- * @ordered >- */ >- protected List<String> subordinates = SUBORDINATES_EDEFAULT; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected LinkTypeImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return PersonalPackageImpl.Literals.LINK_TYPE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getManager() >- { >- return manager; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setManager(String newManager) >- { >- String oldManager = manager; >- manager = newManager; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.LINK_TYPE__MANAGER, oldManager, manager)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<String> getSubordinates() >- { >- return subordinates; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setSubordinates(List<String> newSubordinates) >- { >- List<String> oldSubordinates = subordinates; >- subordinates = newSubordinates; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, PersonalPackageImpl.LINK_TYPE__SUBORDINATES, oldSubordinates, subordinates)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.LINK_TYPE__MANAGER: >- return getManager(); >- case PersonalPackageImpl.LINK_TYPE__SUBORDINATES: >- return getSubordinates(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.LINK_TYPE__MANAGER: >- setManager((String)newValue); >- return; >- case PersonalPackageImpl.LINK_TYPE__SUBORDINATES: >- setSubordinates((List<String>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.LINK_TYPE__MANAGER: >- setManager(MANAGER_EDEFAULT); >- return; >- case PersonalPackageImpl.LINK_TYPE__SUBORDINATES: >- setSubordinates(SUBORDINATES_EDEFAULT); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case PersonalPackageImpl.LINK_TYPE__MANAGER: >- return MANAGER_EDEFAULT == null ? manager != null : !MANAGER_EDEFAULT.equals(manager); >- case PersonalPackageImpl.LINK_TYPE__SUBORDINATES: >- return SUBORDINATES_EDEFAULT == null ? subordinates != null : !SUBORDINATES_EDEFAULT.equals(subordinates); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (manager: "); >- result.append(manager); >- result.append(", subordinates: "); >- result.append(subordinates); >- result.append(')'); >- return result.toString(); >- } >- >-} //LinkTypeImpl >Index: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleXMLProcessor.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleXMLProcessor.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/util/SimpleXMLProcessor.java >--- src/org/eclipse/emf/test/models/sdo/simple/util/SimpleXMLProcessor.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,68 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleXMLProcessor.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.util; >- >-import java.util.Map; >- >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.xmi.util.XMLProcessor; >- >-import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl; >- >-/** >- * This class contains helper methods to serialize and deserialize XML documents >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-public class SimpleXMLProcessor extends XMLProcessor >-{ >- >- /** >- * Public constructor to instantiate the helper. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimpleXMLProcessor() >- { >- super((EPackage.Registry.INSTANCE)); >- SimplePackageImpl.eINSTANCE.eClass(); >- } >- >- /** >- * Register for "*" and "xml" file extensions the SimpleResourceFactoryImpl factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected Map<String, Resource.Factory> getRegistrations() >- { >- if (registrations == null) >- { >- super.getRegistrations(); >- registrations.put(XML_EXTENSION, new SimpleResourceFactoryImpl()); >- registrations.put(STAR_EXTENSION, new SimpleResourceFactoryImpl()); >- } >- return registrations; >- } >- >-} //SimpleXMLProcessor >Index: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/util/SimpleAdapterFactory.java >--- src/org/eclipse/emf/test/models/sdo/simple/util/SimpleAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,148 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.sdo.simple.*; >- >-import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl >- * @generated >- */ >-public class SimpleAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static SimplePackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimpleAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = SimplePackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected SimpleSwitch<Adapter> modelSwitch = >- new SimpleSwitch<Adapter>() >- { >- @Override >- public Adapter caseQuote(Quote object) >- { >- return createQuoteAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.simple.Quote <em>Quote</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote >- * @generated >- */ >- public Adapter createQuoteAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //SimpleAdapterFactory >Index: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceImpl.java >--- src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceImpl.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,44 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleResourceImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource </b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.util.SimpleResourceFactoryImpl >- * @generated >- */ >-public class SimpleResourceImpl extends XMLResourceImpl >-{ >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param uri the URI of the new resource. >- * @generated >- */ >- public SimpleResourceImpl(URI uri) >- { >- super(uri); >- } >- >-} //SimpleResourceImpl >Index: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleSwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleSwitch.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/util/SimpleSwitch.java >--- src/org/eclipse/emf/test/models/sdo/simple/util/SimpleSwitch.java 12 Jun 2007 21:15:18 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,154 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleSwitch.java,v 1.4 2007/06/12 21:15:18 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.sdo.simple.*; >- >-import org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl >- * @generated >- */ >-public class SimpleSwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static SimplePackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimpleSwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = SimplePackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case SimplePackageImpl.QUOTE: >- { >- Quote quote = (Quote)theEObject; >- T result = caseQuote(quote); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Quote</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Quote</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseQuote(Quote object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //SimpleSwitch >Index: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceFactoryImpl.java >--- src/org/eclipse/emf/test/models/sdo/simple/util/SimpleResourceFactoryImpl.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,69 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; >- >-import org.eclipse.emf.ecore.xmi.XMLResource; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource Factory</b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.util.SimpleResourceImpl >- * @generated >- */ >-public class SimpleResourceFactoryImpl extends ResourceFactoryImpl >-{ >- /** >- * Creates an instance of the resource factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimpleResourceFactoryImpl() >- { >- super(); >- } >- >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Resource createResource(URI uri) >- { >- XMLResource result = new SimpleResourceImpl(uri); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- >- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >- return result; >- } >- >-} //SimpleResourceFactoryImpl >Index: src/org/eclipse/emf/test/models/types/impl/TypesPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/impl/TypesPackageImpl.java >diff -N src/org/eclipse/emf/test/models/types/impl/TypesPackageImpl.java >--- src/org/eclipse/emf/test/models/types/impl/TypesPackageImpl.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,1988 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesPackageImpl.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.types.impl; >- >-import java.util.Date; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.types.AThing; >-import org.eclipse.emf.test.models.types.TypesFactory; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.TypesFactory >- * @model kind="package" >- * @generated >- */ >-public class TypesPackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "types"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/types"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "types"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final TypesPackageImpl eINSTANCE = org.eclipse.emf.test.models.types.impl.TypesPackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.types.impl.AThingImpl <em>AThing</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.AThingImpl >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getAThing() >- * @generated >- */ >- public static final int ATHING = 0; >- >- /** >- * The feature id for the '<em><b>ABoolean</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ABOOLEAN = 0; >- >- /** >- * The feature id for the '<em><b>AByte</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ABYTE = 1; >- >- /** >- * The feature id for the '<em><b>ADecimal</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ADECIMAL = 2; >- >- /** >- * The feature id for the '<em><b>AFloat</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__AFLOAT = 3; >- >- /** >- * The feature id for the '<em><b>ADouble</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ADOUBLE = 4; >- >- /** >- * The feature id for the '<em><b>AInt</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__AINT = 5; >- >- /** >- * The feature id for the '<em><b>AInteger</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__AINTEGER = 6; >- >- /** >- * The feature id for the '<em><b>ALong</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ALONG = 7; >- >- /** >- * The feature id for the '<em><b>AShort</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ASHORT = 8; >- >- /** >- * The feature id for the '<em><b>AString</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ASTRING = 9; >- >- /** >- * The feature id for the '<em><b>AChar</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ACHAR = 10; >- >- /** >- * The feature id for the '<em><b>ADate</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ADATE = 11; >- >- /** >- * The feature id for the '<em><b>ABytes</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ABYTES = 12; >- >- /** >- * The feature id for the '<em><b>ANumber</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ANUMBER = 13; >- >- /** >- * The feature id for the '<em><b>AObject</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__AOBJECT = 14; >- >- /** >- * The feature id for the '<em><b>AThread</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__ATHREAD = 15; >- >- /** >- * The feature id for the '<em><b>Many Boolean</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_BOOLEAN = 16; >- >- /** >- * The feature id for the '<em><b>Many Byte</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_BYTE = 17; >- >- /** >- * The feature id for the '<em><b>Many Decimal</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_DECIMAL = 18; >- >- /** >- * The feature id for the '<em><b>Many Float</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_FLOAT = 19; >- >- /** >- * The feature id for the '<em><b>Many Double</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_DOUBLE = 20; >- >- /** >- * The feature id for the '<em><b>Many Int</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_INT = 21; >- >- /** >- * The feature id for the '<em><b>Many Integer</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_INTEGER = 22; >- >- /** >- * The feature id for the '<em><b>Many Long</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_LONG = 23; >- >- /** >- * The feature id for the '<em><b>Many Short</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_SHORT = 24; >- >- /** >- * The feature id for the '<em><b>Many String</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_STRING = 25; >- >- /** >- * The feature id for the '<em><b>Many Char</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_CHAR = 26; >- >- /** >- * The feature id for the '<em><b>Many Date</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_DATE = 27; >- >- /** >- * The feature id for the '<em><b>Many Bytes</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_BYTES = 28; >- >- /** >- * The feature id for the '<em><b>Many Number</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_NUMBER = 29; >- >- /** >- * The feature id for the '<em><b>Many Object</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_OBJECT = 30; >- >- /** >- * The feature id for the '<em><b>Many Thread</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING__MANY_THREAD = 31; >- >- /** >- * The number of structural features of the '<em>AThing</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int ATHING_FEATURE_COUNT = 32; >- >- /** >- * The meta object id for the '<em>My Bytes</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyBytes() >- * @generated >- */ >- public static final int MY_BYTES = 1; >- >- /** >- * The meta object id for the '<em>My Char</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyChar() >- * @generated >- */ >- public static final int MY_CHAR = 2; >- >- /** >- * The meta object id for the '<em>My Char Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Character >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyCharObject() >- * @generated >- */ >- public static final int MY_CHAR_OBJECT = 3; >- >- /** >- * The meta object id for the '<em>My Date</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.util.Date >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyDate() >- * @generated >- */ >- public static final int MY_DATE = 4; >- >- /** >- * The meta object id for the '<em>My Number</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Number >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyNumber() >- * @generated >- */ >- public static final int MY_NUMBER = 5; >- >- /** >- * The meta object id for the '<em>My Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Object >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyObject() >- * @generated >- */ >- public static final int MY_OBJECT = 6; >- >- /** >- * The meta object id for the '<em>My Thread</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Thread >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyThread() >- * @generated >- */ >- public static final int MY_THREAD = 7; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass aThingEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myBytesEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myCharEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myCharObjectEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myDateEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myNumberEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myObjectEDataType = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EDataType myThreadEDataType = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private TypesPackageImpl() >- { >- super(eNS_URI, ((EFactory)TypesFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static TypesPackageImpl init() >- { >- if (isInited) return (TypesPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TypesPackageImpl.eNS_URI); >- >- // Obtain or create and register package >- TypesPackageImpl theTypesPackageImpl = (TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TypesPackageImpl()); >- >- isInited = true; >- >- // Initialize simple dependencies >- XMLTypePackage.eINSTANCE.eClass(); >- >- // Create package meta-data objects >- theTypesPackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- theTypesPackageImpl.initializePackageContents(); >- >- // Mark meta-data to indicate it can't be changed >- theTypesPackageImpl.freeze(); >- >- return theTypesPackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.types.AThing <em>AThing</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>AThing</em>'. >- * @see org.eclipse.emf.test.models.types.AThing >- * @generated >- */ >- public EClass getAThing() >- { >- return aThingEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ABoolean</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#isABoolean() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ABoolean() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AByte</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAByte() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AByte() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ADecimal</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getADecimal() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ADecimal() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AFloat</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAFloat() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AFloat() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ADouble</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getADouble() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ADouble() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AInt</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAInt() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AInt() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AInteger</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAInteger() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AInteger() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ALong</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getALong() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ALong() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(7); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AShort</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAShort() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AShort() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(8); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AString</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAString() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AString() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(9); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AChar</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAChar() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AChar() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(10); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ADate</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getADate() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ADate() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(11); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ABytes</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getABytes() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ABytes() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(12); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>ANumber</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getANumber() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ANumber() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(13); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AObject</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAObject() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AObject() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(14); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>AThread</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getAThread() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_AThread() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(15); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyBoolean <em>Many Boolean</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Boolean</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyBoolean() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyBoolean() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(16); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyByte <em>Many Byte</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Byte</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyByte() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyByte() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(17); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDecimal <em>Many Decimal</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Decimal</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyDecimal() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyDecimal() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(18); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyFloat <em>Many Float</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Float</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyFloat() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyFloat() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(19); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDouble <em>Many Double</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Double</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyDouble() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyDouble() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(20); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyInt <em>Many Int</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Int</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyInt() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyInt() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(21); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyInteger <em>Many Integer</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Integer</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyInteger() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyInteger() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(22); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyLong <em>Many Long</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Long</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyLong() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyLong() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(23); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyShort <em>Many Short</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Short</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyShort() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyShort() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(24); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyString <em>Many String</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many String</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyString() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyString() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(25); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyChar <em>Many Char</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Char</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyChar() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyChar() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(26); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyDate <em>Many Date</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Date</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyDate() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyDate() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(27); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyBytes <em>Many Bytes</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Bytes</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyBytes() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyBytes() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(28); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyNumber <em>Many Number</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Number</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyNumber() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyNumber() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(29); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyObject <em>Many Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Object</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyObject() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyObject() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(30); >- } >- >- /** >- * Returns the meta object for the attribute list '{@link org.eclipse.emf.test.models.types.AThing#getManyThread <em>Many Thread</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute list '<em>Many Thread</em>'. >- * @see org.eclipse.emf.test.models.types.AThing#getManyThread() >- * @see #getAThing() >- * @generated >- */ >- public EAttribute getAThing_ManyThread() >- { >- return (EAttribute)aThingEClass.getEStructuralFeatures().get(31); >- } >- >- /** >- * Returns the meta object for data type '<em>My Bytes</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Bytes</em>'. >- * @model instanceClass="byte[]" >- * extendedMetaData="name='myBytes'" >- * @generated >- */ >- public EDataType getMyBytes() >- { >- return myBytesEDataType; >- } >- >- /** >- * Returns the meta object for data type '<em>My Char</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Char</em>'. >- * @model instanceClass="char" >- * extendedMetaData="name='myChar'" >- * @generated >- */ >- public EDataType getMyChar() >- { >- return myCharEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.Character <em>My Char Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Char Object</em>'. >- * @see java.lang.Character >- * @model instanceClass="java.lang.Character" >- * extendedMetaData="name='myChar:Object' baseType='myChar'" >- * @generated >- */ >- public EDataType getMyCharObject() >- { >- return myCharObjectEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.util.Date <em>My Date</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Date</em>'. >- * @see java.util.Date >- * @model instanceClass="java.util.Date" >- * extendedMetaData="name='myDate'" >- * @generated >- */ >- public EDataType getMyDate() >- { >- return myDateEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.Number <em>My Number</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Number</em>'. >- * @see java.lang.Number >- * @model instanceClass="java.lang.Number" >- * extendedMetaData="name='myNumber'" >- * @generated >- */ >- public EDataType getMyNumber() >- { >- return myNumberEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.Object <em>My Object</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Object</em>'. >- * @see java.lang.Object >- * @model instanceClass="java.lang.Object" >- * extendedMetaData="name='myObject'" >- * @generated >- */ >- public EDataType getMyObject() >- { >- return myObjectEDataType; >- } >- >- /** >- * Returns the meta object for data type '{@link java.lang.Thread <em>My Thread</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for data type '<em>My Thread</em>'. >- * @see java.lang.Thread >- * @model instanceClass="java.lang.Thread" >- * extendedMetaData="name='myThread'" >- * @generated >- */ >- public EDataType getMyThread() >- { >- return myThreadEDataType; >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public TypesFactory getTypesFactory() >- { >- return (TypesFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- aThingEClass = createEClass(ATHING); >- createEAttribute(aThingEClass, ATHING__ABOOLEAN); >- createEAttribute(aThingEClass, ATHING__ABYTE); >- createEAttribute(aThingEClass, ATHING__ADECIMAL); >- createEAttribute(aThingEClass, ATHING__AFLOAT); >- createEAttribute(aThingEClass, ATHING__ADOUBLE); >- createEAttribute(aThingEClass, ATHING__AINT); >- createEAttribute(aThingEClass, ATHING__AINTEGER); >- createEAttribute(aThingEClass, ATHING__ALONG); >- createEAttribute(aThingEClass, ATHING__ASHORT); >- createEAttribute(aThingEClass, ATHING__ASTRING); >- createEAttribute(aThingEClass, ATHING__ACHAR); >- createEAttribute(aThingEClass, ATHING__ADATE); >- createEAttribute(aThingEClass, ATHING__ABYTES); >- createEAttribute(aThingEClass, ATHING__ANUMBER); >- createEAttribute(aThingEClass, ATHING__AOBJECT); >- createEAttribute(aThingEClass, ATHING__ATHREAD); >- createEAttribute(aThingEClass, ATHING__MANY_BOOLEAN); >- createEAttribute(aThingEClass, ATHING__MANY_BYTE); >- createEAttribute(aThingEClass, ATHING__MANY_DECIMAL); >- createEAttribute(aThingEClass, ATHING__MANY_FLOAT); >- createEAttribute(aThingEClass, ATHING__MANY_DOUBLE); >- createEAttribute(aThingEClass, ATHING__MANY_INT); >- createEAttribute(aThingEClass, ATHING__MANY_INTEGER); >- createEAttribute(aThingEClass, ATHING__MANY_LONG); >- createEAttribute(aThingEClass, ATHING__MANY_SHORT); >- createEAttribute(aThingEClass, ATHING__MANY_STRING); >- createEAttribute(aThingEClass, ATHING__MANY_CHAR); >- createEAttribute(aThingEClass, ATHING__MANY_DATE); >- createEAttribute(aThingEClass, ATHING__MANY_BYTES); >- createEAttribute(aThingEClass, ATHING__MANY_NUMBER); >- createEAttribute(aThingEClass, ATHING__MANY_OBJECT); >- createEAttribute(aThingEClass, ATHING__MANY_THREAD); >- >- // Create data types >- myBytesEDataType = createEDataType(MY_BYTES); >- myCharEDataType = createEDataType(MY_CHAR); >- myCharObjectEDataType = createEDataType(MY_CHAR_OBJECT); >- myDateEDataType = createEDataType(MY_DATE); >- myNumberEDataType = createEDataType(MY_NUMBER); >- myObjectEDataType = createEDataType(MY_OBJECT); >- myThreadEDataType = createEDataType(MY_THREAD); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Obtain other dependent packages >- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- >- // Initialize classes and features; add operations and parameters >- initEClass(aThingEClass, AThing.class, "AThing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- // Initialize data types >- initEDataType(myBytesEDataType, byte[].class, "MyBytes", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myCharEDataType, char.class, "MyChar", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myCharObjectEDataType, Character.class, "MyCharObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myDateEDataType, Date.class, "MyDate", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myNumberEDataType, Number.class, "MyNumber", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myObjectEDataType, Object.class, "MyObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- initEDataType(myThreadEDataType, Thread.class, "MyThread", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); >- >- // Create resource >- createResource(eNS_URI); >- >- // Create annotations >- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >- createExtendedMetaDataAnnotations(); >- } >- >- /** >- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected void createExtendedMetaDataAnnotations() >- { >- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >- addAnnotation >- (aThingEClass, >- source, >- new String[] >- { >- "name", "AThing", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getAThing_ABoolean(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aBoolean" >- }); >- addAnnotation >- (getAThing_AByte(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aByte" >- }); >- addAnnotation >- (getAThing_ADecimal(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aDecimal" >- }); >- addAnnotation >- (getAThing_AFloat(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aFloat" >- }); >- addAnnotation >- (getAThing_ADouble(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aDouble" >- }); >- addAnnotation >- (getAThing_AInt(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aInt" >- }); >- addAnnotation >- (getAThing_AInteger(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aInteger" >- }); >- addAnnotation >- (getAThing_ALong(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aLong" >- }); >- addAnnotation >- (getAThing_AShort(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aShort" >- }); >- addAnnotation >- (getAThing_AString(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aString" >- }); >- addAnnotation >- (getAThing_AChar(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aChar" >- }); >- addAnnotation >- (getAThing_ADate(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aDate" >- }); >- addAnnotation >- (getAThing_ABytes(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aBytes" >- }); >- addAnnotation >- (getAThing_ANumber(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aNumber" >- }); >- addAnnotation >- (getAThing_AObject(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aObject" >- }); >- addAnnotation >- (getAThing_AThread(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "aThread" >- }); >- addAnnotation >- (getAThing_ManyBoolean(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyBoolean" >- }); >- addAnnotation >- (getAThing_ManyByte(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyByte" >- }); >- addAnnotation >- (getAThing_ManyDecimal(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyDecimal" >- }); >- addAnnotation >- (getAThing_ManyFloat(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyFloat" >- }); >- addAnnotation >- (getAThing_ManyDouble(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyDouble" >- }); >- addAnnotation >- (getAThing_ManyInt(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyInt" >- }); >- addAnnotation >- (getAThing_ManyInteger(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyInteger" >- }); >- addAnnotation >- (getAThing_ManyLong(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyLong" >- }); >- addAnnotation >- (getAThing_ManyShort(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyShort" >- }); >- addAnnotation >- (getAThing_ManyString(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyString" >- }); >- addAnnotation >- (getAThing_ManyChar(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyChar" >- }); >- addAnnotation >- (getAThing_ManyDate(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyDate" >- }); >- addAnnotation >- (getAThing_ManyBytes(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyBytes" >- }); >- addAnnotation >- (getAThing_ManyNumber(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyNumber" >- }); >- addAnnotation >- (getAThing_ManyObject(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyObject" >- }); >- addAnnotation >- (getAThing_ManyThread(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "manyThread" >- }); >- addAnnotation >- (myBytesEDataType, >- source, >- new String[] >- { >- "name", "myBytes" >- }); >- addAnnotation >- (myCharEDataType, >- source, >- new String[] >- { >- "name", "myChar" >- }); >- addAnnotation >- (myCharObjectEDataType, >- source, >- new String[] >- { >- "name", "myChar:Object", >- "baseType", "myChar" >- }); >- addAnnotation >- (myDateEDataType, >- source, >- new String[] >- { >- "name", "myDate" >- }); >- addAnnotation >- (myNumberEDataType, >- source, >- new String[] >- { >- "name", "myNumber" >- }); >- addAnnotation >- (myObjectEDataType, >- source, >- new String[] >- { >- "name", "myObject" >- }); >- addAnnotation >- (myThreadEDataType, >- source, >- new String[] >- { >- "name", "myThread" >- }); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.types.impl.AThingImpl <em>AThing</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.AThingImpl >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getAThing() >- * @generated >- */ >- public static final EClass ATHING = eINSTANCE.getAThing(); >- >- /** >- * The meta object literal for the '<em><b>ABoolean</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ABOOLEAN = eINSTANCE.getAThing_ABoolean(); >- >- /** >- * The meta object literal for the '<em><b>AByte</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ABYTE = eINSTANCE.getAThing_AByte(); >- >- /** >- * The meta object literal for the '<em><b>ADecimal</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ADECIMAL = eINSTANCE.getAThing_ADecimal(); >- >- /** >- * The meta object literal for the '<em><b>AFloat</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__AFLOAT = eINSTANCE.getAThing_AFloat(); >- >- /** >- * The meta object literal for the '<em><b>ADouble</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ADOUBLE = eINSTANCE.getAThing_ADouble(); >- >- /** >- * The meta object literal for the '<em><b>AInt</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__AINT = eINSTANCE.getAThing_AInt(); >- >- /** >- * The meta object literal for the '<em><b>AInteger</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__AINTEGER = eINSTANCE.getAThing_AInteger(); >- >- /** >- * The meta object literal for the '<em><b>ALong</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ALONG = eINSTANCE.getAThing_ALong(); >- >- /** >- * The meta object literal for the '<em><b>AShort</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ASHORT = eINSTANCE.getAThing_AShort(); >- >- /** >- * The meta object literal for the '<em><b>AString</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ASTRING = eINSTANCE.getAThing_AString(); >- >- /** >- * The meta object literal for the '<em><b>AChar</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ACHAR = eINSTANCE.getAThing_AChar(); >- >- /** >- * The meta object literal for the '<em><b>ADate</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ADATE = eINSTANCE.getAThing_ADate(); >- >- /** >- * The meta object literal for the '<em><b>ABytes</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ABYTES = eINSTANCE.getAThing_ABytes(); >- >- /** >- * The meta object literal for the '<em><b>ANumber</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ANUMBER = eINSTANCE.getAThing_ANumber(); >- >- /** >- * The meta object literal for the '<em><b>AObject</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__AOBJECT = eINSTANCE.getAThing_AObject(); >- >- /** >- * The meta object literal for the '<em><b>AThread</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__ATHREAD = eINSTANCE.getAThing_AThread(); >- >- /** >- * The meta object literal for the '<em><b>Many Boolean</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_BOOLEAN = eINSTANCE.getAThing_ManyBoolean(); >- >- /** >- * The meta object literal for the '<em><b>Many Byte</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_BYTE = eINSTANCE.getAThing_ManyByte(); >- >- /** >- * The meta object literal for the '<em><b>Many Decimal</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_DECIMAL = eINSTANCE.getAThing_ManyDecimal(); >- >- /** >- * The meta object literal for the '<em><b>Many Float</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_FLOAT = eINSTANCE.getAThing_ManyFloat(); >- >- /** >- * The meta object literal for the '<em><b>Many Double</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_DOUBLE = eINSTANCE.getAThing_ManyDouble(); >- >- /** >- * The meta object literal for the '<em><b>Many Int</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_INT = eINSTANCE.getAThing_ManyInt(); >- >- /** >- * The meta object literal for the '<em><b>Many Integer</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_INTEGER = eINSTANCE.getAThing_ManyInteger(); >- >- /** >- * The meta object literal for the '<em><b>Many Long</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_LONG = eINSTANCE.getAThing_ManyLong(); >- >- /** >- * The meta object literal for the '<em><b>Many Short</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_SHORT = eINSTANCE.getAThing_ManyShort(); >- >- /** >- * The meta object literal for the '<em><b>Many String</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_STRING = eINSTANCE.getAThing_ManyString(); >- >- /** >- * The meta object literal for the '<em><b>Many Char</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_CHAR = eINSTANCE.getAThing_ManyChar(); >- >- /** >- * The meta object literal for the '<em><b>Many Date</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_DATE = eINSTANCE.getAThing_ManyDate(); >- >- /** >- * The meta object literal for the '<em><b>Many Bytes</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_BYTES = eINSTANCE.getAThing_ManyBytes(); >- >- /** >- * The meta object literal for the '<em><b>Many Number</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_NUMBER = eINSTANCE.getAThing_ManyNumber(); >- >- /** >- * The meta object literal for the '<em><b>Many Object</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_OBJECT = eINSTANCE.getAThing_ManyObject(); >- >- /** >- * The meta object literal for the '<em><b>Many Thread</b></em>' attribute list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute ATHING__MANY_THREAD = eINSTANCE.getAThing_ManyThread(); >- >- /** >- * The meta object literal for the '<em>My Bytes</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyBytes() >- * @generated >- */ >- public static final EDataType MY_BYTES = eINSTANCE.getMyBytes(); >- >- /** >- * The meta object literal for the '<em>My Char</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyChar() >- * @generated >- */ >- public static final EDataType MY_CHAR = eINSTANCE.getMyChar(); >- >- /** >- * The meta object literal for the '<em>My Char Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Character >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyCharObject() >- * @generated >- */ >- public static final EDataType MY_CHAR_OBJECT = eINSTANCE.getMyCharObject(); >- >- /** >- * The meta object literal for the '<em>My Date</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.util.Date >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyDate() >- * @generated >- */ >- public static final EDataType MY_DATE = eINSTANCE.getMyDate(); >- >- /** >- * The meta object literal for the '<em>My Number</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Number >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyNumber() >- * @generated >- */ >- public static final EDataType MY_NUMBER = eINSTANCE.getMyNumber(); >- >- /** >- * The meta object literal for the '<em>My Object</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Object >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyObject() >- * @generated >- */ >- public static final EDataType MY_OBJECT = eINSTANCE.getMyObject(); >- >- /** >- * The meta object literal for the '<em>My Thread</em>' data type. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see java.lang.Thread >- * @see org.eclipse.emf.test.models.types.impl.TypesPackageImpl#getMyThread() >- * @generated >- */ >- public static final EDataType MY_THREAD = eINSTANCE.getMyThread(); >- >- } >- >-} //TypesPackageImpl >Index: src/org/eclipse/emf/test/models/types/impl/AThingImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/impl/AThingImpl.java >diff -N src/org/eclipse/emf/test/models/types/impl/AThingImpl.java >--- src/org/eclipse/emf/test/models/types/impl/AThingImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,1946 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: AThingImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.types.impl; >- >-import java.math.BigDecimal; >-import java.math.BigInteger; >- >-import java.util.Collection; >-import java.util.Date; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EDataTypeEList; >- >-import org.eclipse.emf.test.models.types.AThing; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>AThing</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#isABoolean <em>ABoolean</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAByte <em>AByte</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADecimal <em>ADecimal</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAFloat <em>AFloat</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADouble <em>ADouble</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAInt <em>AInt</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAInteger <em>AInteger</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getALong <em>ALong</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAShort <em>AShort</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAString <em>AString</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAChar <em>AChar</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getADate <em>ADate</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getABytes <em>ABytes</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getANumber <em>ANumber</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAObject <em>AObject</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getAThread <em>AThread</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyBoolean <em>Many Boolean</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyByte <em>Many Byte</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDecimal <em>Many Decimal</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyFloat <em>Many Float</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDouble <em>Many Double</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyInt <em>Many Int</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyInteger <em>Many Integer</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyLong <em>Many Long</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyShort <em>Many Short</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyString <em>Many String</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyChar <em>Many Char</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyDate <em>Many Date</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyBytes <em>Many Bytes</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyNumber <em>Many Number</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyObject <em>Many Object</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.impl.AThingImpl#getManyThread <em>Many Thread</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class AThingImpl extends EDataObjectImpl implements AThing >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #isABoolean() <em>ABoolean</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isABoolean() >- * @generated >- * @ordered >- */ >- protected static final boolean ABOOLEAN_EDEFAULT = false; >- >- /** >- * The cached value of the '{@link #isABoolean() <em>ABoolean</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isABoolean() >- * @generated >- * @ordered >- */ >- protected boolean aBoolean = ABOOLEAN_EDEFAULT; >- >- /** >- * This is true if the ABoolean attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aBooleanESet; >- >- /** >- * The default value of the '{@link #getAByte() <em>AByte</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAByte() >- * @generated >- * @ordered >- */ >- protected static final byte ABYTE_EDEFAULT = 0x00; >- >- /** >- * The cached value of the '{@link #getAByte() <em>AByte</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAByte() >- * @generated >- * @ordered >- */ >- protected byte aByte = ABYTE_EDEFAULT; >- >- /** >- * This is true if the AByte attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aByteESet; >- >- /** >- * The default value of the '{@link #getADecimal() <em>ADecimal</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADecimal() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal ADECIMAL_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getADecimal() <em>ADecimal</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADecimal() >- * @generated >- * @ordered >- */ >- protected BigDecimal aDecimal = ADECIMAL_EDEFAULT; >- >- /** >- * The default value of the '{@link #getAFloat() <em>AFloat</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAFloat() >- * @generated >- * @ordered >- */ >- protected static final float AFLOAT_EDEFAULT = 0.0F; >- >- /** >- * The cached value of the '{@link #getAFloat() <em>AFloat</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAFloat() >- * @generated >- * @ordered >- */ >- protected float aFloat = AFLOAT_EDEFAULT; >- >- /** >- * This is true if the AFloat attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aFloatESet; >- >- /** >- * The default value of the '{@link #getADouble() <em>ADouble</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADouble() >- * @generated >- * @ordered >- */ >- protected static final double ADOUBLE_EDEFAULT = 0.0; >- >- /** >- * The cached value of the '{@link #getADouble() <em>ADouble</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADouble() >- * @generated >- * @ordered >- */ >- protected double aDouble = ADOUBLE_EDEFAULT; >- >- /** >- * This is true if the ADouble attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aDoubleESet; >- >- /** >- * The default value of the '{@link #getAInt() <em>AInt</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAInt() >- * @generated >- * @ordered >- */ >- protected static final int AINT_EDEFAULT = 0; >- >- /** >- * The cached value of the '{@link #getAInt() <em>AInt</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAInt() >- * @generated >- * @ordered >- */ >- protected int aInt = AINT_EDEFAULT; >- >- /** >- * This is true if the AInt attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aIntESet; >- >- /** >- * The default value of the '{@link #getAInteger() <em>AInteger</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAInteger() >- * @generated >- * @ordered >- */ >- protected static final BigInteger AINTEGER_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getAInteger() <em>AInteger</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAInteger() >- * @generated >- * @ordered >- */ >- protected BigInteger aInteger = AINTEGER_EDEFAULT; >- >- /** >- * The default value of the '{@link #getALong() <em>ALong</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getALong() >- * @generated >- * @ordered >- */ >- protected static final long ALONG_EDEFAULT = 0L; >- >- /** >- * The cached value of the '{@link #getALong() <em>ALong</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getALong() >- * @generated >- * @ordered >- */ >- protected long aLong = ALONG_EDEFAULT; >- >- /** >- * This is true if the ALong attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aLongESet; >- >- /** >- * The default value of the '{@link #getAShort() <em>AShort</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAShort() >- * @generated >- * @ordered >- */ >- protected static final short ASHORT_EDEFAULT = 0; >- >- /** >- * The cached value of the '{@link #getAShort() <em>AShort</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAShort() >- * @generated >- * @ordered >- */ >- protected short aShort = ASHORT_EDEFAULT; >- >- /** >- * This is true if the AShort attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aShortESet; >- >- /** >- * The default value of the '{@link #getAString() <em>AString</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAString() >- * @generated >- * @ordered >- */ >- protected static final String ASTRING_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getAString() <em>AString</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAString() >- * @generated >- * @ordered >- */ >- protected String aString = ASTRING_EDEFAULT; >- >- /** >- * The default value of the '{@link #getAChar() <em>AChar</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAChar() >- * @generated >- * @ordered >- */ >- protected static final char ACHAR_EDEFAULT = '\u0000'; >- >- /** >- * The cached value of the '{@link #getAChar() <em>AChar</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAChar() >- * @generated >- * @ordered >- */ >- protected char aChar = ACHAR_EDEFAULT; >- >- /** >- * This is true if the AChar attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean aCharESet; >- >- /** >- * The default value of the '{@link #getADate() <em>ADate</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADate() >- * @generated >- * @ordered >- */ >- protected static final Date ADATE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getADate() <em>ADate</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getADate() >- * @generated >- * @ordered >- */ >- protected Date aDate = ADATE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getABytes() <em>ABytes</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getABytes() >- * @generated >- * @ordered >- */ >- protected static final byte[] ABYTES_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getABytes() <em>ABytes</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getABytes() >- * @generated >- * @ordered >- */ >- protected byte[] aBytes = ABYTES_EDEFAULT; >- >- /** >- * The default value of the '{@link #getANumber() <em>ANumber</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getANumber() >- * @generated >- * @ordered >- */ >- protected static final Number ANUMBER_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getANumber() <em>ANumber</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getANumber() >- * @generated >- * @ordered >- */ >- protected Number aNumber = ANUMBER_EDEFAULT; >- >- /** >- * The default value of the '{@link #getAObject() <em>AObject</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAObject() >- * @generated >- * @ordered >- */ >- protected static final Object AOBJECT_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getAObject() <em>AObject</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAObject() >- * @generated >- * @ordered >- */ >- protected Object aObject = AOBJECT_EDEFAULT; >- >- /** >- * The default value of the '{@link #getAThread() <em>AThread</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAThread() >- * @generated >- * @ordered >- */ >- protected static final Thread ATHREAD_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getAThread() <em>AThread</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAThread() >- * @generated >- * @ordered >- */ >- protected Thread aThread = ATHREAD_EDEFAULT; >- >- /** >- * The cached value of the '{@link #getManyBoolean() <em>Many Boolean</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyBoolean() >- * @generated >- * @ordered >- */ >- protected EList<Boolean> manyBoolean; >- >- /** >- * The cached value of the '{@link #getManyByte() <em>Many Byte</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyByte() >- * @generated >- * @ordered >- */ >- protected EList<Byte> manyByte; >- >- /** >- * The cached value of the '{@link #getManyDecimal() <em>Many Decimal</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyDecimal() >- * @generated >- * @ordered >- */ >- protected EList<BigDecimal> manyDecimal; >- >- /** >- * The cached value of the '{@link #getManyFloat() <em>Many Float</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyFloat() >- * @generated >- * @ordered >- */ >- protected EList<Float> manyFloat; >- >- /** >- * The cached value of the '{@link #getManyDouble() <em>Many Double</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyDouble() >- * @generated >- * @ordered >- */ >- protected EList<Double> manyDouble; >- >- /** >- * The cached value of the '{@link #getManyInt() <em>Many Int</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyInt() >- * @generated >- * @ordered >- */ >- protected EList<Integer> manyInt; >- >- /** >- * The cached value of the '{@link #getManyInteger() <em>Many Integer</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyInteger() >- * @generated >- * @ordered >- */ >- protected EList<BigInteger> manyInteger; >- >- /** >- * The cached value of the '{@link #getManyLong() <em>Many Long</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyLong() >- * @generated >- * @ordered >- */ >- protected EList<Long> manyLong; >- >- /** >- * The cached value of the '{@link #getManyShort() <em>Many Short</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyShort() >- * @generated >- * @ordered >- */ >- protected EList<Short> manyShort; >- >- /** >- * The cached value of the '{@link #getManyString() <em>Many String</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyString() >- * @generated >- * @ordered >- */ >- protected EList<String> manyString; >- >- /** >- * The cached value of the '{@link #getManyChar() <em>Many Char</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyChar() >- * @generated >- * @ordered >- */ >- protected EList<Character> manyChar; >- >- /** >- * The cached value of the '{@link #getManyDate() <em>Many Date</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyDate() >- * @generated >- * @ordered >- */ >- protected EList<Date> manyDate; >- >- /** >- * The cached value of the '{@link #getManyBytes() <em>Many Bytes</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyBytes() >- * @generated >- * @ordered >- */ >- protected EList<byte[]> manyBytes; >- >- /** >- * The cached value of the '{@link #getManyNumber() <em>Many Number</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyNumber() >- * @generated >- * @ordered >- */ >- protected EList<Number> manyNumber; >- >- /** >- * The cached value of the '{@link #getManyObject() <em>Many Object</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyObject() >- * @generated >- * @ordered >- */ >- protected EList<Object> manyObject; >- >- /** >- * The cached value of the '{@link #getManyThread() <em>Many Thread</em>}' attribute list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getManyThread() >- * @generated >- * @ordered >- */ >- protected EList<Thread> manyThread; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected AThingImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return TypesPackageImpl.Literals.ATHING; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isABoolean() >- { >- return aBoolean; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setABoolean(boolean newABoolean) >- { >- boolean oldABoolean = aBoolean; >- aBoolean = newABoolean; >- boolean oldABooleanESet = aBooleanESet; >- aBooleanESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABOOLEAN, oldABoolean, aBoolean, !oldABooleanESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetABoolean() >- { >- boolean oldABoolean = aBoolean; >- boolean oldABooleanESet = aBooleanESet; >- aBoolean = ABOOLEAN_EDEFAULT; >- aBooleanESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ABOOLEAN, oldABoolean, ABOOLEAN_EDEFAULT, oldABooleanESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetABoolean() >- { >- return aBooleanESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public byte getAByte() >- { >- return aByte; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAByte(byte newAByte) >- { >- byte oldAByte = aByte; >- aByte = newAByte; >- boolean oldAByteESet = aByteESet; >- aByteESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABYTE, oldAByte, aByte, !oldAByteESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetAByte() >- { >- byte oldAByte = aByte; >- boolean oldAByteESet = aByteESet; >- aByte = ABYTE_EDEFAULT; >- aByteESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ABYTE, oldAByte, ABYTE_EDEFAULT, oldAByteESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetAByte() >- { >- return aByteESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getADecimal() >- { >- return aDecimal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setADecimal(BigDecimal newADecimal) >- { >- BigDecimal oldADecimal = aDecimal; >- aDecimal = newADecimal; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADECIMAL, oldADecimal, aDecimal)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public float getAFloat() >- { >- return aFloat; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAFloat(float newAFloat) >- { >- float oldAFloat = aFloat; >- aFloat = newAFloat; >- boolean oldAFloatESet = aFloatESet; >- aFloatESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AFLOAT, oldAFloat, aFloat, !oldAFloatESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetAFloat() >- { >- float oldAFloat = aFloat; >- boolean oldAFloatESet = aFloatESet; >- aFloat = AFLOAT_EDEFAULT; >- aFloatESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__AFLOAT, oldAFloat, AFLOAT_EDEFAULT, oldAFloatESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetAFloat() >- { >- return aFloatESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public double getADouble() >- { >- return aDouble; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setADouble(double newADouble) >- { >- double oldADouble = aDouble; >- aDouble = newADouble; >- boolean oldADoubleESet = aDoubleESet; >- aDoubleESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADOUBLE, oldADouble, aDouble, !oldADoubleESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetADouble() >- { >- double oldADouble = aDouble; >- boolean oldADoubleESet = aDoubleESet; >- aDouble = ADOUBLE_EDEFAULT; >- aDoubleESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ADOUBLE, oldADouble, ADOUBLE_EDEFAULT, oldADoubleESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetADouble() >- { >- return aDoubleESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getAInt() >- { >- return aInt; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAInt(int newAInt) >- { >- int oldAInt = aInt; >- aInt = newAInt; >- boolean oldAIntESet = aIntESet; >- aIntESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AINT, oldAInt, aInt, !oldAIntESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetAInt() >- { >- int oldAInt = aInt; >- boolean oldAIntESet = aIntESet; >- aInt = AINT_EDEFAULT; >- aIntESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__AINT, oldAInt, AINT_EDEFAULT, oldAIntESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetAInt() >- { >- return aIntESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigInteger getAInteger() >- { >- return aInteger; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAInteger(BigInteger newAInteger) >- { >- BigInteger oldAInteger = aInteger; >- aInteger = newAInteger; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AINTEGER, oldAInteger, aInteger)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public long getALong() >- { >- return aLong; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setALong(long newALong) >- { >- long oldALong = aLong; >- aLong = newALong; >- boolean oldALongESet = aLongESet; >- aLongESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ALONG, oldALong, aLong, !oldALongESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetALong() >- { >- long oldALong = aLong; >- boolean oldALongESet = aLongESet; >- aLong = ALONG_EDEFAULT; >- aLongESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ALONG, oldALong, ALONG_EDEFAULT, oldALongESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetALong() >- { >- return aLongESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public short getAShort() >- { >- return aShort; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAShort(short newAShort) >- { >- short oldAShort = aShort; >- aShort = newAShort; >- boolean oldAShortESet = aShortESet; >- aShortESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ASHORT, oldAShort, aShort, !oldAShortESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetAShort() >- { >- short oldAShort = aShort; >- boolean oldAShortESet = aShortESet; >- aShort = ASHORT_EDEFAULT; >- aShortESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ASHORT, oldAShort, ASHORT_EDEFAULT, oldAShortESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetAShort() >- { >- return aShortESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getAString() >- { >- return aString; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAString(String newAString) >- { >- String oldAString = aString; >- aString = newAString; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ASTRING, oldAString, aString)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public char getAChar() >- { >- return aChar; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAChar(char newAChar) >- { >- char oldAChar = aChar; >- aChar = newAChar; >- boolean oldACharESet = aCharESet; >- aCharESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ACHAR, oldAChar, aChar, !oldACharESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetAChar() >- { >- char oldAChar = aChar; >- boolean oldACharESet = aCharESet; >- aChar = ACHAR_EDEFAULT; >- aCharESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, TypesPackageImpl.ATHING__ACHAR, oldAChar, ACHAR_EDEFAULT, oldACharESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetAChar() >- { >- return aCharESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Date getADate() >- { >- return aDate; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setADate(Date newADate) >- { >- Date oldADate = aDate; >- aDate = newADate; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ADATE, oldADate, aDate)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public byte[] getABytes() >- { >- return aBytes; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setABytes(byte[] newABytes) >- { >- byte[] oldABytes = aBytes; >- aBytes = newABytes; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ABYTES, oldABytes, aBytes)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Number getANumber() >- { >- return aNumber; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setANumber(Number newANumber) >- { >- Number oldANumber = aNumber; >- aNumber = newANumber; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ANUMBER, oldANumber, aNumber)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Object getAObject() >- { >- return aObject; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAObject(Object newAObject) >- { >- Object oldAObject = aObject; >- aObject = newAObject; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__AOBJECT, oldAObject, aObject)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Thread getAThread() >- { >- return aThread; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAThread(Thread newAThread) >- { >- Thread oldAThread = aThread; >- aThread = newAThread; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, TypesPackageImpl.ATHING__ATHREAD, oldAThread, aThread)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Boolean> getManyBoolean() >- { >- if (manyBoolean == null) >- { >- manyBoolean = new EDataTypeEList<Boolean>(Boolean.class, this, TypesPackageImpl.ATHING__MANY_BOOLEAN); >- } >- return manyBoolean; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Byte> getManyByte() >- { >- if (manyByte == null) >- { >- manyByte = new EDataTypeEList<Byte>(Byte.class, this, TypesPackageImpl.ATHING__MANY_BYTE); >- } >- return manyByte; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<BigDecimal> getManyDecimal() >- { >- if (manyDecimal == null) >- { >- manyDecimal = new EDataTypeEList<BigDecimal>(BigDecimal.class, this, TypesPackageImpl.ATHING__MANY_DECIMAL); >- } >- return manyDecimal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Float> getManyFloat() >- { >- if (manyFloat == null) >- { >- manyFloat = new EDataTypeEList<Float>(Float.class, this, TypesPackageImpl.ATHING__MANY_FLOAT); >- } >- return manyFloat; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Double> getManyDouble() >- { >- if (manyDouble == null) >- { >- manyDouble = new EDataTypeEList<Double>(Double.class, this, TypesPackageImpl.ATHING__MANY_DOUBLE); >- } >- return manyDouble; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Integer> getManyInt() >- { >- if (manyInt == null) >- { >- manyInt = new EDataTypeEList<Integer>(Integer.class, this, TypesPackageImpl.ATHING__MANY_INT); >- } >- return manyInt; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<BigInteger> getManyInteger() >- { >- if (manyInteger == null) >- { >- manyInteger = new EDataTypeEList<BigInteger>(BigInteger.class, this, TypesPackageImpl.ATHING__MANY_INTEGER); >- } >- return manyInteger; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Long> getManyLong() >- { >- if (manyLong == null) >- { >- manyLong = new EDataTypeEList<Long>(Long.class, this, TypesPackageImpl.ATHING__MANY_LONG); >- } >- return manyLong; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Short> getManyShort() >- { >- if (manyShort == null) >- { >- manyShort = new EDataTypeEList<Short>(Short.class, this, TypesPackageImpl.ATHING__MANY_SHORT); >- } >- return manyShort; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<String> getManyString() >- { >- if (manyString == null) >- { >- manyString = new EDataTypeEList<String>(String.class, this, TypesPackageImpl.ATHING__MANY_STRING); >- } >- return manyString; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Character> getManyChar() >- { >- if (manyChar == null) >- { >- manyChar = new EDataTypeEList<Character>(Character.class, this, TypesPackageImpl.ATHING__MANY_CHAR); >- } >- return manyChar; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Date> getManyDate() >- { >- if (manyDate == null) >- { >- manyDate = new EDataTypeEList<Date>(Date.class, this, TypesPackageImpl.ATHING__MANY_DATE); >- } >- return manyDate; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<byte[]> getManyBytes() >- { >- if (manyBytes == null) >- { >- manyBytes = new EDataTypeEList<byte[]>(byte[].class, this, TypesPackageImpl.ATHING__MANY_BYTES); >- } >- return manyBytes; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Number> getManyNumber() >- { >- if (manyNumber == null) >- { >- manyNumber = new EDataTypeEList<Number>(Number.class, this, TypesPackageImpl.ATHING__MANY_NUMBER); >- } >- return manyNumber; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Object> getManyObject() >- { >- if (manyObject == null) >- { >- manyObject = new EDataTypeEList<Object>(Object.class, this, TypesPackageImpl.ATHING__MANY_OBJECT); >- } >- return manyObject; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Thread> getManyThread() >- { >- if (manyThread == null) >- { >- manyThread = new EDataTypeEList<Thread>(Thread.class, this, TypesPackageImpl.ATHING__MANY_THREAD); >- } >- return manyThread; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case TypesPackageImpl.ATHING__ABOOLEAN: >- return isABoolean() ? Boolean.TRUE : Boolean.FALSE; >- case TypesPackageImpl.ATHING__ABYTE: >- return new Byte(getAByte()); >- case TypesPackageImpl.ATHING__ADECIMAL: >- return getADecimal(); >- case TypesPackageImpl.ATHING__AFLOAT: >- return new Float(getAFloat()); >- case TypesPackageImpl.ATHING__ADOUBLE: >- return new Double(getADouble()); >- case TypesPackageImpl.ATHING__AINT: >- return new Integer(getAInt()); >- case TypesPackageImpl.ATHING__AINTEGER: >- return getAInteger(); >- case TypesPackageImpl.ATHING__ALONG: >- return new Long(getALong()); >- case TypesPackageImpl.ATHING__ASHORT: >- return new Short(getAShort()); >- case TypesPackageImpl.ATHING__ASTRING: >- return getAString(); >- case TypesPackageImpl.ATHING__ACHAR: >- return new Character(getAChar()); >- case TypesPackageImpl.ATHING__ADATE: >- return getADate(); >- case TypesPackageImpl.ATHING__ABYTES: >- return getABytes(); >- case TypesPackageImpl.ATHING__ANUMBER: >- return getANumber(); >- case TypesPackageImpl.ATHING__AOBJECT: >- return getAObject(); >- case TypesPackageImpl.ATHING__ATHREAD: >- return getAThread(); >- case TypesPackageImpl.ATHING__MANY_BOOLEAN: >- return getManyBoolean(); >- case TypesPackageImpl.ATHING__MANY_BYTE: >- return getManyByte(); >- case TypesPackageImpl.ATHING__MANY_DECIMAL: >- return getManyDecimal(); >- case TypesPackageImpl.ATHING__MANY_FLOAT: >- return getManyFloat(); >- case TypesPackageImpl.ATHING__MANY_DOUBLE: >- return getManyDouble(); >- case TypesPackageImpl.ATHING__MANY_INT: >- return getManyInt(); >- case TypesPackageImpl.ATHING__MANY_INTEGER: >- return getManyInteger(); >- case TypesPackageImpl.ATHING__MANY_LONG: >- return getManyLong(); >- case TypesPackageImpl.ATHING__MANY_SHORT: >- return getManyShort(); >- case TypesPackageImpl.ATHING__MANY_STRING: >- return getManyString(); >- case TypesPackageImpl.ATHING__MANY_CHAR: >- return getManyChar(); >- case TypesPackageImpl.ATHING__MANY_DATE: >- return getManyDate(); >- case TypesPackageImpl.ATHING__MANY_BYTES: >- return getManyBytes(); >- case TypesPackageImpl.ATHING__MANY_NUMBER: >- return getManyNumber(); >- case TypesPackageImpl.ATHING__MANY_OBJECT: >- return getManyObject(); >- case TypesPackageImpl.ATHING__MANY_THREAD: >- return getManyThread(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case TypesPackageImpl.ATHING__ABOOLEAN: >- setABoolean(((Boolean)newValue).booleanValue()); >- return; >- case TypesPackageImpl.ATHING__ABYTE: >- setAByte(((Byte)newValue).byteValue()); >- return; >- case TypesPackageImpl.ATHING__ADECIMAL: >- setADecimal((BigDecimal)newValue); >- return; >- case TypesPackageImpl.ATHING__AFLOAT: >- setAFloat(((Float)newValue).floatValue()); >- return; >- case TypesPackageImpl.ATHING__ADOUBLE: >- setADouble(((Double)newValue).doubleValue()); >- return; >- case TypesPackageImpl.ATHING__AINT: >- setAInt(((Integer)newValue).intValue()); >- return; >- case TypesPackageImpl.ATHING__AINTEGER: >- setAInteger((BigInteger)newValue); >- return; >- case TypesPackageImpl.ATHING__ALONG: >- setALong(((Long)newValue).longValue()); >- return; >- case TypesPackageImpl.ATHING__ASHORT: >- setAShort(((Short)newValue).shortValue()); >- return; >- case TypesPackageImpl.ATHING__ASTRING: >- setAString((String)newValue); >- return; >- case TypesPackageImpl.ATHING__ACHAR: >- setAChar(((Character)newValue).charValue()); >- return; >- case TypesPackageImpl.ATHING__ADATE: >- setADate((Date)newValue); >- return; >- case TypesPackageImpl.ATHING__ABYTES: >- setABytes((byte[])newValue); >- return; >- case TypesPackageImpl.ATHING__ANUMBER: >- setANumber((Number)newValue); >- return; >- case TypesPackageImpl.ATHING__AOBJECT: >- setAObject(newValue); >- return; >- case TypesPackageImpl.ATHING__ATHREAD: >- setAThread((Thread)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_BOOLEAN: >- getManyBoolean().clear(); >- getManyBoolean().addAll((Collection<? extends Boolean>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_BYTE: >- getManyByte().clear(); >- getManyByte().addAll((Collection<? extends Byte>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_DECIMAL: >- getManyDecimal().clear(); >- getManyDecimal().addAll((Collection<? extends BigDecimal>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_FLOAT: >- getManyFloat().clear(); >- getManyFloat().addAll((Collection<? extends Float>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_DOUBLE: >- getManyDouble().clear(); >- getManyDouble().addAll((Collection<? extends Double>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_INT: >- getManyInt().clear(); >- getManyInt().addAll((Collection<? extends Integer>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_INTEGER: >- getManyInteger().clear(); >- getManyInteger().addAll((Collection<? extends BigInteger>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_LONG: >- getManyLong().clear(); >- getManyLong().addAll((Collection<? extends Long>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_SHORT: >- getManyShort().clear(); >- getManyShort().addAll((Collection<? extends Short>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_STRING: >- getManyString().clear(); >- getManyString().addAll((Collection<? extends String>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_CHAR: >- getManyChar().clear(); >- getManyChar().addAll((Collection<? extends Character>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_DATE: >- getManyDate().clear(); >- getManyDate().addAll((Collection<? extends Date>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_BYTES: >- getManyBytes().clear(); >- getManyBytes().addAll((Collection<? extends byte[]>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_NUMBER: >- getManyNumber().clear(); >- getManyNumber().addAll((Collection<? extends Number>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_OBJECT: >- getManyObject().clear(); >- getManyObject().addAll((Collection<? extends Object>)newValue); >- return; >- case TypesPackageImpl.ATHING__MANY_THREAD: >- getManyThread().clear(); >- getManyThread().addAll((Collection<? extends Thread>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case TypesPackageImpl.ATHING__ABOOLEAN: >- unsetABoolean(); >- return; >- case TypesPackageImpl.ATHING__ABYTE: >- unsetAByte(); >- return; >- case TypesPackageImpl.ATHING__ADECIMAL: >- setADecimal(ADECIMAL_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__AFLOAT: >- unsetAFloat(); >- return; >- case TypesPackageImpl.ATHING__ADOUBLE: >- unsetADouble(); >- return; >- case TypesPackageImpl.ATHING__AINT: >- unsetAInt(); >- return; >- case TypesPackageImpl.ATHING__AINTEGER: >- setAInteger(AINTEGER_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__ALONG: >- unsetALong(); >- return; >- case TypesPackageImpl.ATHING__ASHORT: >- unsetAShort(); >- return; >- case TypesPackageImpl.ATHING__ASTRING: >- setAString(ASTRING_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__ACHAR: >- unsetAChar(); >- return; >- case TypesPackageImpl.ATHING__ADATE: >- setADate(ADATE_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__ABYTES: >- setABytes(ABYTES_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__ANUMBER: >- setANumber(ANUMBER_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__AOBJECT: >- setAObject(AOBJECT_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__ATHREAD: >- setAThread(ATHREAD_EDEFAULT); >- return; >- case TypesPackageImpl.ATHING__MANY_BOOLEAN: >- getManyBoolean().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_BYTE: >- getManyByte().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_DECIMAL: >- getManyDecimal().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_FLOAT: >- getManyFloat().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_DOUBLE: >- getManyDouble().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_INT: >- getManyInt().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_INTEGER: >- getManyInteger().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_LONG: >- getManyLong().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_SHORT: >- getManyShort().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_STRING: >- getManyString().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_CHAR: >- getManyChar().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_DATE: >- getManyDate().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_BYTES: >- getManyBytes().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_NUMBER: >- getManyNumber().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_OBJECT: >- getManyObject().clear(); >- return; >- case TypesPackageImpl.ATHING__MANY_THREAD: >- getManyThread().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case TypesPackageImpl.ATHING__ABOOLEAN: >- return isSetABoolean(); >- case TypesPackageImpl.ATHING__ABYTE: >- return isSetAByte(); >- case TypesPackageImpl.ATHING__ADECIMAL: >- return ADECIMAL_EDEFAULT == null ? aDecimal != null : !ADECIMAL_EDEFAULT.equals(aDecimal); >- case TypesPackageImpl.ATHING__AFLOAT: >- return isSetAFloat(); >- case TypesPackageImpl.ATHING__ADOUBLE: >- return isSetADouble(); >- case TypesPackageImpl.ATHING__AINT: >- return isSetAInt(); >- case TypesPackageImpl.ATHING__AINTEGER: >- return AINTEGER_EDEFAULT == null ? aInteger != null : !AINTEGER_EDEFAULT.equals(aInteger); >- case TypesPackageImpl.ATHING__ALONG: >- return isSetALong(); >- case TypesPackageImpl.ATHING__ASHORT: >- return isSetAShort(); >- case TypesPackageImpl.ATHING__ASTRING: >- return ASTRING_EDEFAULT == null ? aString != null : !ASTRING_EDEFAULT.equals(aString); >- case TypesPackageImpl.ATHING__ACHAR: >- return isSetAChar(); >- case TypesPackageImpl.ATHING__ADATE: >- return ADATE_EDEFAULT == null ? aDate != null : !ADATE_EDEFAULT.equals(aDate); >- case TypesPackageImpl.ATHING__ABYTES: >- return ABYTES_EDEFAULT == null ? aBytes != null : !ABYTES_EDEFAULT.equals(aBytes); >- case TypesPackageImpl.ATHING__ANUMBER: >- return ANUMBER_EDEFAULT == null ? aNumber != null : !ANUMBER_EDEFAULT.equals(aNumber); >- case TypesPackageImpl.ATHING__AOBJECT: >- return AOBJECT_EDEFAULT == null ? aObject != null : !AOBJECT_EDEFAULT.equals(aObject); >- case TypesPackageImpl.ATHING__ATHREAD: >- return ATHREAD_EDEFAULT == null ? aThread != null : !ATHREAD_EDEFAULT.equals(aThread); >- case TypesPackageImpl.ATHING__MANY_BOOLEAN: >- return manyBoolean != null && !manyBoolean.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_BYTE: >- return manyByte != null && !manyByte.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_DECIMAL: >- return manyDecimal != null && !manyDecimal.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_FLOAT: >- return manyFloat != null && !manyFloat.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_DOUBLE: >- return manyDouble != null && !manyDouble.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_INT: >- return manyInt != null && !manyInt.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_INTEGER: >- return manyInteger != null && !manyInteger.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_LONG: >- return manyLong != null && !manyLong.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_SHORT: >- return manyShort != null && !manyShort.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_STRING: >- return manyString != null && !manyString.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_CHAR: >- return manyChar != null && !manyChar.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_DATE: >- return manyDate != null && !manyDate.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_BYTES: >- return manyBytes != null && !manyBytes.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_NUMBER: >- return manyNumber != null && !manyNumber.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_OBJECT: >- return manyObject != null && !manyObject.isEmpty(); >- case TypesPackageImpl.ATHING__MANY_THREAD: >- return manyThread != null && !manyThread.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (aBoolean: "); >- if (aBooleanESet) result.append(aBoolean); else result.append("<unset>"); >- result.append(", aByte: "); >- if (aByteESet) result.append(aByte); else result.append("<unset>"); >- result.append(", aDecimal: "); >- result.append(aDecimal); >- result.append(", aFloat: "); >- if (aFloatESet) result.append(aFloat); else result.append("<unset>"); >- result.append(", aDouble: "); >- if (aDoubleESet) result.append(aDouble); else result.append("<unset>"); >- result.append(", aInt: "); >- if (aIntESet) result.append(aInt); else result.append("<unset>"); >- result.append(", aInteger: "); >- result.append(aInteger); >- result.append(", aLong: "); >- if (aLongESet) result.append(aLong); else result.append("<unset>"); >- result.append(", aShort: "); >- if (aShortESet) result.append(aShort); else result.append("<unset>"); >- result.append(", aString: "); >- result.append(aString); >- result.append(", aChar: "); >- if (aCharESet) result.append(aChar); else result.append("<unset>"); >- result.append(", aDate: "); >- result.append(aDate); >- result.append(", aBytes: "); >- result.append(aBytes); >- result.append(", aNumber: "); >- result.append(aNumber); >- result.append(", aObject: "); >- result.append(aObject); >- result.append(", aThread: "); >- result.append(aThread); >- result.append(", manyBoolean: "); >- result.append(manyBoolean); >- result.append(", manyByte: "); >- result.append(manyByte); >- result.append(", manyDecimal: "); >- result.append(manyDecimal); >- result.append(", manyFloat: "); >- result.append(manyFloat); >- result.append(", manyDouble: "); >- result.append(manyDouble); >- result.append(", manyInt: "); >- result.append(manyInt); >- result.append(", manyInteger: "); >- result.append(manyInteger); >- result.append(", manyLong: "); >- result.append(manyLong); >- result.append(", manyShort: "); >- result.append(manyShort); >- result.append(", manyString: "); >- result.append(manyString); >- result.append(", manyChar: "); >- result.append(manyChar); >- result.append(", manyDate: "); >- result.append(manyDate); >- result.append(", manyBytes: "); >- result.append(manyBytes); >- result.append(", manyNumber: "); >- result.append(manyNumber); >- result.append(", manyObject: "); >- result.append(manyObject); >- result.append(", manyThread: "); >- result.append(manyThread); >- result.append(')'); >- return result.toString(); >- } >- >-} //AThingImpl >Index: src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java >--- src/org/eclipse/emf/test/models/types/impl/TypesFactoryImpl.java 21 Mar 2007 18:18:53 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,329 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesFactoryImpl.java,v 1.4 2007/03/21 18:18:53 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.types.impl; >- >-import java.util.Date; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.test.models.types.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class TypesFactoryImpl extends EFactoryImpl implements TypesFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final TypesFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static TypesFactoryImpl init() >- { >- try >- { >- TypesFactoryImpl theTypesFactory = (TypesFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/types"); >- if (theTypesFactory != null) >- { >- return theTypesFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new TypesFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case TypesPackageImpl.ATHING: return (EObject)createAThing(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object createFromString(EDataType eDataType, String initialValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case TypesPackageImpl.MY_BYTES: >- return createMyBytesFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_CHAR: >- return createMyCharFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_CHAR_OBJECT: >- return createMyCharObjectFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_DATE: >- return createMyDateFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_NUMBER: >- return createMyNumberFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_OBJECT: >- return createMyObjectFromString(eDataType, initialValue); >- case TypesPackageImpl.MY_THREAD: >- return createMyThreadFromString(eDataType, initialValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String convertToString(EDataType eDataType, Object instanceValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case TypesPackageImpl.MY_BYTES: >- return convertMyBytesToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_CHAR: >- return convertMyCharToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_CHAR_OBJECT: >- return convertMyCharObjectToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_DATE: >- return convertMyDateToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_NUMBER: >- return convertMyNumberToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_OBJECT: >- return convertMyObjectToString(eDataType, instanceValue); >- case TypesPackageImpl.MY_THREAD: >- return convertMyThreadToString(eDataType, instanceValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public AThing createAThing() >- { >- AThingImpl aThing = new AThingImpl(); >- return aThing; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public byte[] createMyBytesFromString(EDataType eDataType, String initialValue) >- { >- return (byte[])super.createFromString(initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyBytesToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Character createMyCharFromString(EDataType eDataType, String initialValue) >- { >- return (Character)super.createFromString(eDataType, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyCharToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(eDataType, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Character createMyCharObjectFromString(EDataType eDataType, String initialValue) >- { >- return createMyCharFromString(TypesPackageImpl.Literals.MY_CHAR, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyCharObjectToString(EDataType eDataType, Object instanceValue) >- { >- return convertMyCharToString(TypesPackageImpl.Literals.MY_CHAR, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Date createMyDateFromString(EDataType eDataType, String initialValue) >- { >- return (Date)super.createFromString(eDataType, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyDateToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(eDataType, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Number createMyNumberFromString(EDataType eDataType, String initialValue) >- { >- return (Number)super.createFromString(eDataType, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyNumberToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(eDataType, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Object createMyObjectFromString(EDataType eDataType, String initialValue) >- { >- return super.createFromString(eDataType, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyObjectToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(eDataType, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Thread createMyThreadFromString(EDataType eDataType, String initialValue) >- { >- return (Thread)super.createFromString(eDataType, initialValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertMyThreadToString(EDataType eDataType, Object instanceValue) >- { >- return super.convertToString(eDataType, instanceValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public TypesPackageImpl getTypesPackageImpl() >- { >- return (TypesPackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static TypesPackageImpl getPackage() >- { >- return TypesPackageImpl.eINSTANCE; >- } >- >-} //TypesFactoryImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceImpl.java 18 Jan 2007 22:06:40 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,44 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedResourceImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource </b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.util.MixedResourceFactoryImpl >- * @generated >- */ >-public class MixedResourceImpl extends XMLResourceImpl >-{ >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param uri the URI of the new resource. >- * @generated >- */ >- public MixedResourceImpl(URI uri) >- { >- super(uri); >- } >- >-} //MixedResourceImpl >Index: src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java >--- src/org/eclipse/emf/test/models/personal/mixed/util/MixedSwitch.java 12 Jun 2007 21:15:19 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,269 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.personal.mixed.*; >- >-import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl >- * @generated >- */ >-public class MixedSwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static MixedPackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedSwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = MixedPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case MixedPackageImpl.DOCUMENT_ROOT: >- { >- DocumentRoot documentRoot = (DocumentRoot)theEObject; >- T result = caseDocumentRoot(documentRoot); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case MixedPackageImpl.LINK_TYPE: >- { >- LinkType linkType = (LinkType)theEObject; >- T result = caseLinkType(linkType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case MixedPackageImpl.NAME_TYPE: >- { >- NameType nameType = (NameType)theEObject; >- T result = caseNameType(nameType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case MixedPackageImpl.PERSONNEL_TYPE: >- { >- PersonnelType personnelType = (PersonnelType)theEObject; >- T result = casePersonnelType(personnelType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case MixedPackageImpl.PERSON_TYPE: >- { >- PersonType personType = (PersonType)theEObject; >- T result = casePersonType(personType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case MixedPackageImpl.URL_TYPE: >- { >- UrlType urlType = (UrlType)theEObject; >- T result = caseUrlType(urlType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseDocumentRoot(DocumentRoot object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Link Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseLinkType(LinkType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Name Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseNameType(NameType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T casePersonnelType(PersonnelType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Person Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T casePersonType(PersonType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Url Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseUrlType(UrlType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //MixedSwitch >Index: src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java >--- src/org/eclipse/emf/test/models/personal/mixed/util/MixedAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,248 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.personal.mixed.*; >- >-import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl >- * @generated >- */ >-public class MixedAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static MixedPackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = MixedPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected MixedSwitch<Adapter> modelSwitch = >- new MixedSwitch<Adapter>() >- { >- @Override >- public Adapter caseDocumentRoot(DocumentRoot object) >- { >- return createDocumentRootAdapter(); >- } >- @Override >- public Adapter caseLinkType(LinkType object) >- { >- return createLinkTypeAdapter(); >- } >- @Override >- public Adapter caseNameType(NameType object) >- { >- return createNameTypeAdapter(); >- } >- @Override >- public Adapter casePersonnelType(PersonnelType object) >- { >- return createPersonnelTypeAdapter(); >- } >- @Override >- public Adapter casePersonType(PersonType object) >- { >- return createPersonTypeAdapter(); >- } >- @Override >- public Adapter caseUrlType(UrlType object) >- { >- return createUrlTypeAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.DocumentRoot >- * @generated >- */ >- public Adapter createDocumentRootAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.LinkType <em>Link Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.LinkType >- * @generated >- */ >- public Adapter createLinkTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.NameType <em>Name Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.NameType >- * @generated >- */ >- public Adapter createNameTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType <em>Personnel Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonnelType >- * @generated >- */ >- public Adapter createPersonnelTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.PersonType <em>Person Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.PersonType >- * @generated >- */ >- public Adapter createPersonTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.mixed.UrlType <em>Url Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.mixed.UrlType >- * @generated >- */ >- public Adapter createUrlTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //MixedAdapterFactory >Index: src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java >--- src/org/eclipse/emf/test/models/personal/mixed/util/MixedXMLProcessor.java 18 Jan 2007 22:06:40 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,68 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedXMLProcessor.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.util; >- >-import java.util.Map; >- >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.xmi.util.XMLProcessor; >- >-import org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl; >- >-/** >- * This class contains helper methods to serialize and deserialize XML documents >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-public class MixedXMLProcessor extends XMLProcessor >-{ >- >- /** >- * Public constructor to instantiate the helper. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedXMLProcessor() >- { >- super((EPackage.Registry.INSTANCE)); >- MixedPackageImpl.eINSTANCE.eClass(); >- } >- >- /** >- * Register for "*" and "xml" file extensions the MixedResourceFactoryImpl factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected Map<String, Resource.Factory> getRegistrations() >- { >- if (registrations == null) >- { >- super.getRegistrations(); >- registrations.put(XML_EXTENSION, new MixedResourceFactoryImpl()); >- registrations.put(STAR_EXTENSION, new MixedResourceFactoryImpl()); >- } >- return registrations; >- } >- >-} //MixedXMLProcessor >Index: src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceFactoryImpl.java >--- src/org/eclipse/emf/test/models/personal/mixed/util/MixedResourceFactoryImpl.java 18 Jan 2007 22:06:40 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,69 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:40 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; >- >-import org.eclipse.emf.ecore.xmi.XMLResource; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource Factory</b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.util.MixedResourceImpl >- * @generated >- */ >-public class MixedResourceFactoryImpl extends ResourceFactoryImpl >-{ >- /** >- * Creates an instance of the resource factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public MixedResourceFactoryImpl() >- { >- super(); >- } >- >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Resource createResource(URI uri) >- { >- XMLResource result = new MixedResourceImpl(uri); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- >- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >- return result; >- } >- >-} //MixedResourceFactoryImpl >Index: models/sdo.Simple/simple.ecore >=================================================================== >RCS file: models/sdo.Simple/simple.ecore >diff -N models/sdo.Simple/simple.ecore >--- models/sdo.Simple/simple.ecore 15 Jun 2007 21:22:17 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,71 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="simple" >- nsURI="http:///org.eclipse.emf.test.models/simple" nsPrefix="simple"> >- <eClassifiers xsi:type="ecore:EClass" name="Quote"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="Quote"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="symbol" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="symbol"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="companyName" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="companyName"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="price"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="open1" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="open1"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="high" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="high"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="low" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="low"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="volume" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="volume"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="change1" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="change1"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="quotes" upperBound="-1" >- eType="#//Quote" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="quotes"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >-</ecore:EPackage> >Index: models/sdo.Simple/simple.genmodel >=================================================================== >RCS file: models/sdo.Simple/simple.genmodel >diff -N models/sdo.Simple/simple.genmodel >--- models/sdo.Simple/simple.genmodel 18 Jan 2007 15:50:16 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,29 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="Simple" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"> >- <foreignModel>simple.xsd</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="Simple" basePackage="org.eclipse.emf.test.models.sdo" resource="XML" >- disposableProviderFactory="true" ecorePackage="simple.ecore#/"> >- <genClasses ecoreClass="simple.ecore#//Quote"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/symbol"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/companyName"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/price"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/open1"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/high"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/low"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/volume"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute simple.ecore#//Quote/change1"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference simple.ecore#//Quote/quotes"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: models/sdo.Simple/simple.xsd >=================================================================== >RCS file: models/sdo.Simple/simple.xsd >diff -N models/sdo.Simple/simple.xsd >--- models/sdo.Simple/simple.xsd 18 Jan 2007 15:50:16 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,20 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<xsd:schema >- targetNamespace="http:///org.eclipse.emf.test.models/simple" >- xmlns:xsd="http://www.w3.org/2001/XMLSchema" >- xmlns:simple="http:///org.eclipse.emf.test.models/simple"> >- >- <xsd:complexType name="Quote"> >- <xsd:sequence> >- <xsd:element name="symbol" type="xsd:string"/> >- <xsd:element name="companyName" type="xsd:string"/> >- <xsd:element name="price" type="xsd:decimal"/> >- <xsd:element name="open1" type="xsd:decimal"/> >- <xsd:element name="high" type="xsd:decimal"/> >- <xsd:element name="low" type="xsd:decimal"/> >- <xsd:element name="volume" type="xsd:double"/> >- <xsd:element name="change1" type="xsd:double"/> >- <xsd:element name="quotes" type="simple:Quote" minOccurs="0" maxOccurs="unbounded"/> >- </xsd:sequence> >- </xsd:complexType> >-</xsd:schema> >Index: models/Library/sdoLibrary.genmodel >=================================================================== >RCS file: models/Library/sdoLibrary.genmodel >diff -N models/Library/sdoLibrary.genmodel >--- models/Library/sdoLibrary.genmodel 18 Jan 2007 15:50:24 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,38 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="SDOLibrary" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.emf.importer.rose" complianceLevel="5.0"> >- <foreignModel>library.mdl</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="SDOLibrary" basePackage="org.eclipse.emf.test.models.sdo" disposableProviderFactory="true" >- ecorePackage="sdoLibrary.ecore#/"> >- <genEnums typeSafeEnumCompatible="false" ecoreEnum="sdoLibrary.ecore#//BookCategory"> >- <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Mystery"/> >- <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/ScienceFiction"/> >- <genEnumLiterals ecoreEnumLiteral="sdoLibrary.ecore#//BookCategory/Biography"/> >- </genEnums> >- <genClasses ecoreClass="sdoLibrary.ecore#//Book"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/title"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/pages"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Book/category"/> >- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Book/author"/> >- </genClasses> >- <genClasses ecoreClass="sdoLibrary.ecore#//Library"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Library/name"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/writers"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Library/books"/> >- </genClasses> >- <genClasses ecoreClass="sdoLibrary.ecore#//Writer"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute sdoLibrary.ecore#//Writer/name"/> >- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference sdoLibrary.ecore#//Writer/books"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: models/Library/sdoLibrary.ecore >=================================================================== >RCS file: models/Library/sdoLibrary.ecore >diff -N models/Library/sdoLibrary.ecore >--- models/Library/sdoLibrary.ecore 18 Jan 2007 15:50:24 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,31 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library" >- nsURI="http:///org.eclipse.emf.test.models/SDOLibrary" nsPrefix="org.eclipse.emf.test.models.sdolibrary"> >- <eClassifiers xsi:type="ecore:EClass" name="Book"> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" >- defaultValueLiteral="100"/> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1" >- eType="#//Writer" eOpposite="#//Writer/books"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="Library"> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1" >- eType="#//Writer" containment="true"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1" >- eType="#//Book" containment="true"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="Writer"> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1" >- eType="#//Book" eOpposite="#//Book/author"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EEnum" name="BookCategory"> >- <eLiterals name="Mystery"/> >- <eLiterals name="ScienceFiction" value="1"/> >- <eLiterals name="Biography" value="2"/> >- </eClassifiers> >-</ecore:EPackage> >Index: src/org/eclipse/emf/test/models/sdo/library/util/SDOLibrarySwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/util/SDOLibrarySwitch.java >diff -N src/org/eclipse/emf/test/models/sdo/library/util/SDOLibrarySwitch.java >--- src/org/eclipse/emf/test/models/sdo/library/util/SDOLibrarySwitch.java 12 Jun 2007 21:15:19 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,200 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SDOLibrarySwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.sdo.library.*; >- >-import org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl >- * @generated >- */ >-public class SDOLibrarySwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static SDOLibraryPackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SDOLibrarySwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = SDOLibraryPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case SDOLibraryPackageImpl.BOOK: >- { >- Book book = (Book)theEObject; >- T result = caseBook(book); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case SDOLibraryPackageImpl.LIBRARY: >- { >- Library library = (Library)theEObject; >- T result = caseLibrary(library); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case SDOLibraryPackageImpl.WRITER: >- { >- Writer writer = (Writer)theEObject; >- T result = caseWriter(writer); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Book</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Book</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseBook(Book object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Library</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Library</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseLibrary(Library object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Writer</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Writer</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseWriter(Writer object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //SDOLibrarySwitch >Index: src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java >--- src/org/eclipse/emf/test/models/sdo/library/util/SDOLibraryAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,188 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SDOLibraryAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.sdo.library.*; >- >-import org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl >- * @generated >- */ >-public class SDOLibraryAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static SDOLibraryPackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SDOLibraryAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = SDOLibraryPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected SDOLibrarySwitch<Adapter> modelSwitch = >- new SDOLibrarySwitch<Adapter>() >- { >- @Override >- public Adapter caseBook(Book object) >- { >- return createBookAdapter(); >- } >- @Override >- public Adapter caseLibrary(Library object) >- { >- return createLibraryAdapter(); >- } >- @Override >- public Adapter caseWriter(Writer object) >- { >- return createWriterAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.sdo.library.Book >- * @generated >- */ >- public Adapter createBookAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.sdo.library.Library >- * @generated >- */ >- public Adapter createLibraryAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.sdo.library.Writer >- * @generated >- */ >- public Adapter createWriterAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //SDOLibraryAdapterFactory >Index: src/org/eclipse/emf/test/models/personal/mixed/NameType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/NameType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/NameType.java >--- src/org/eclipse/emf/test/models/personal/mixed/NameType.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,107 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: NameType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import commonj.sdo.Sequence; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Name Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='nameType' kind='mixed'" >- * @generated >- */ >-public interface NameType >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Family</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Family</em>' attribute. >- * @see #setFamily(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='family' namespace='##targetNamespace'" >- * @generated >- */ >- String getFamily(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getFamily <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Family</em>' attribute. >- * @see #getFamily() >- * @generated >- */ >- void setFamily(String value); >- >- /** >- * Returns the value of the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Given</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Given</em>' attribute. >- * @see #setGiven(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='given' namespace='##targetNamespace'" >- * @generated >- */ >- String getGiven(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.NameType#getGiven <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Given</em>' attribute. >- * @see #getGiven() >- * @generated >- */ >- void setGiven(String value); >- >-} // NameType >Index: src/org/eclipse/emf/test/models/personal/mixed/UrlType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/UrlType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/UrlType.java >--- src/org/eclipse/emf/test/models/personal/mixed/UrlType.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,91 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: UrlType.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Url Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='url_._type' kind='empty'" >- * @generated >- */ >-public interface UrlType >-{ >- /** >- * Returns the value of the '<em><b>Href</b></em>' attribute. >- * The default value is <code>"http://"</code>. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Href</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Href</em>' attribute. >- * @see #isSetHref() >- * @see #unsetHref() >- * @see #setHref(String) >- * @model default="http://" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" >- * extendedMetaData="kind='attribute' name='href'" >- * @generated >- */ >- String getHref(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Href</em>' attribute. >- * @see #isSetHref() >- * @see #unsetHref() >- * @see #getHref() >- * @generated >- */ >- void setHref(String value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetHref() >- * @see #getHref() >- * @see #setHref(String) >- * @generated >- */ >- void unsetHref(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.UrlType#getHref <em>Href</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Href</em>' attribute is set. >- * @see #unsetHref() >- * @see #getHref() >- * @see #setHref(String) >- * @generated >- */ >- boolean isSetHref(); >- >-} // UrlType >Index: src/org/eclipse/emf/test/models/personal/mixed/PersonType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/PersonType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/PersonType.java >--- src/org/eclipse/emf/test/models/personal/mixed/PersonType.java 15 Jun 2007 21:22:17 -0000 1.5 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,273 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonType.java,v 1.5 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import commonj.sdo.Sequence; >- >-import java.math.BigInteger; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Person Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getUrl <em>Url</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getAny <em>Any</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='personType' kind='mixed'" >- * @generated >- */ >-public interface PersonType >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' containment reference. >- * @see #setName(NameType) >- * @model containment="true" required="true" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='name' namespace='##targetNamespace'" >- * @generated >- */ >- NameType getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getName <em>Name</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' containment reference. >- * @see #getName() >- * @generated >- */ >- void setName(NameType value); >- >- /** >- * Returns the value of the '<em><b>Email</b></em>' attribute list. >- * The list contents are of type {@link java.lang.String}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Email</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Email</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='email' namespace='##targetNamespace'" >- * @generated >- */ >- List<String> getEmail(); >- >- /** >- * Returns the value of the '<em><b>Url</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.personal.mixed.UrlType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Url</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Url</em>' containment reference list. >- * @model containment="true" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='url' namespace='##targetNamespace'" >- * @generated >- */ >- List<UrlType> getUrl(); >- >- /** >- * Returns the value of the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Link</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Link</em>' containment reference. >- * @see #setLink(LinkType) >- * @model containment="true" required="true" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='link' namespace='##targetNamespace'" >- * @generated >- */ >- LinkType getLink(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getLink <em>Link</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Link</em>' containment reference. >- * @see #getLink() >- * @generated >- */ >- void setLink(LinkType value); >- >- /** >- * Returns the value of the '<em><b>Any</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Any</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Any</em>' attribute list. >- * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="false" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='elementWildcard' wildcards='##any' name=':5' processing='lax'" >- * @generated >- */ >- Sequence getAny(); >- >- /** >- * Returns the value of the '<em><b>Contr</b></em>' attribute. >- * The default value is <code>"false"</code>. >- * The literals are from the enumeration {@link org.eclipse.emf.test.models.personal.mixed.ContrType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Contr</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Contr</em>' attribute. >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see #isSetContr() >- * @see #unsetContr() >- * @see #setContr(ContrType) >- * @model default="false" unsettable="true" >- * extendedMetaData="kind='attribute' name='contr'" >- * @generated >- */ >- ContrType getContr(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Contr</em>' attribute. >- * @see org.eclipse.emf.test.models.personal.mixed.ContrType >- * @see #isSetContr() >- * @see #unsetContr() >- * @see #getContr() >- * @generated >- */ >- void setContr(ContrType value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetContr() >- * @see #getContr() >- * @see #setContr(ContrType) >- * @generated >- */ >- void unsetContr(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getContr <em>Contr</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Contr</em>' attribute is set. >- * @see #unsetContr() >- * @see #getContr() >- * @see #setContr(ContrType) >- * @generated >- */ >- boolean isSetContr(); >- >- /** >- * Returns the value of the '<em><b>Id</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Id</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Id</em>' attribute. >- * @see #setId(String) >- * @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" required="true" >- * extendedMetaData="kind='attribute' name='id'" >- * @generated >- */ >- String getId(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getId <em>Id</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Id</em>' attribute. >- * @see #getId() >- * @generated >- */ >- void setId(String value); >- >- /** >- * Returns the value of the '<em><b>Salary</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Salary</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Salary</em>' attribute. >- * @see #setSalary(BigInteger) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Integer" >- * extendedMetaData="kind='attribute' name='salary'" >- * @generated >- */ >- BigInteger getSalary(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.PersonType#getSalary <em>Salary</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Salary</em>' attribute. >- * @see #getSalary() >- * @generated >- */ >- void setSalary(BigInteger value); >- >-} // PersonType >Index: src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java >--- src/org/eclipse/emf/test/models/personal/mixed/MixedFactory.java 18 Jan 2007 22:06:39 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,91 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: MixedFactory.java,v 1.2 2007/01/18 22:06:39 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface MixedFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- MixedFactory INSTANCE = org.eclipse.emf.test.models.personal.mixed.impl.MixedFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Document Root</em>'. >- * @generated >- */ >- DocumentRoot createDocumentRoot(); >- >- /** >- * Returns a new object of class '<em>Link Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Link Type</em>'. >- * @generated >- */ >- LinkType createLinkType(); >- >- /** >- * Returns a new object of class '<em>Name Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Name Type</em>'. >- * @generated >- */ >- NameType createNameType(); >- >- /** >- * Returns a new object of class '<em>Personnel Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Personnel Type</em>'. >- * @generated >- */ >- PersonnelType createPersonnelType(); >- >- /** >- * Returns a new object of class '<em>Person Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Person Type</em>'. >- * @generated >- */ >- PersonType createPersonType(); >- >- /** >- * Returns a new object of class '<em>Url Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Url Type</em>'. >- * @generated >- */ >- UrlType createUrlType(); >- >-} //MixedFactory >Index: src/org/eclipse/emf/test/models/personal/mixed/LinkType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/LinkType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/LinkType.java >--- src/org/eclipse/emf/test/models/personal/mixed/LinkType.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,109 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: LinkType.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import commonj.sdo.Sequence; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Link Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='linkType' kind='mixed'" >- * @generated >- */ >-public interface LinkType >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>Manager</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Manager</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Manager</em>' attribute. >- * @see #setManager(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.IDREF" >- * extendedMetaData="kind='attribute' name='manager'" >- * @generated >- */ >- String getManager(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getManager <em>Manager</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Manager</em>' attribute. >- * @see #getManager() >- * @generated >- */ >- void setManager(String value); >- >- /** >- * Returns the value of the '<em><b>Subordinates</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Subordinates</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Subordinates</em>' attribute. >- * @see #setSubordinates(List) >- * @model dataType="org.eclipse.emf.ecore.xml.type.IDREFS" many="false" >- * extendedMetaData="kind='attribute' name='subordinates'" >- * @generated >- */ >- List<String> getSubordinates(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.LinkType#getSubordinates <em>Subordinates</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Subordinates</em>' attribute. >- * @see #getSubordinates() >- * @generated >- */ >- void setSubordinates(List<String> value); >- >-} // LinkType >Index: src/org/eclipse/emf/test/models/personal/mixed/PersonnelType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/PersonnelType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/PersonnelType.java >--- src/org/eclipse/emf/test/models/personal/mixed/PersonnelType.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,54 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonnelType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Personnel Type</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.PersonnelType#getPerson <em>Person</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='personnel_._type' kind='elementOnly'" >- * @generated >- */ >-public interface PersonnelType >-{ >- /** >- * Returns the value of the '<em><b>Person</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.personal.mixed.PersonType}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Person</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Person</em>' containment reference list. >- * @model containment="true" required="true" >- * extendedMetaData="kind='element' name='person' namespace='##targetNamespace'" >- * @generated >- */ >- List<PersonType> getPerson(); >- >-} // PersonnelType >Index: src/org/eclipse/emf/test/models/personal/mixed/ContrType.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/ContrType.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/ContrType.java >--- src/org/eclipse/emf/test/models/personal/mixed/ContrType.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,246 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: ContrType.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import java.util.Arrays; >-import java.util.Collections; >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the literals of the enumeration '<em><b>Contr Type</b></em>', >- * and utility methods for working with them. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl#getContrType() >- * @model extendedMetaData="name='contr_._type'" >- * @generated >- */ >-public enum ContrType implements InternalContrType >-{ >- /** >- * The '<em><b>True</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #TRUE_VALUE >- * @generated >- * @ordered >- */ >- TRUE(0, "true", "true"), >- >- /** >- * The '<em><b>False</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #FALSE_VALUE >- * @generated >- * @ordered >- */ >- FALSE(1, "false", "false"); >- >- /** >- * The '<em><b>True</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>True</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #TRUE >- * @model name="true" >- * @generated >- * @ordered >- */ >- public static final int TRUE_VALUE = 0; >- >- /** >- * The '<em><b>False</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>False</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #FALSE >- * @model name="false" >- * @generated >- * @ordered >- */ >- public static final int FALSE_VALUE = 1; >- >- /** >- * An array of all the '<em><b>Contr Type</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final ContrType[] VALUES_ARRAY = >- new ContrType[] >- { >- TRUE, >- FALSE, >- }; >- >- /** >- * A public read-only list of all the '<em><b>Contr Type</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final List<ContrType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified literal value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType get(String literal) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- ContrType result = VALUES_ARRAY[i]; >- if (result.toString().equals(literal)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType getByName(String name) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- ContrType result = VALUES_ARRAY[i]; >- if (result.getName().equals(name)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Contr Type</b></em>' literal with the specified integer value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static ContrType get(int value) >- { >- switch (value) >- { >- case TRUE_VALUE: return TRUE; >- case FALSE_VALUE: return FALSE; >- } >- return null; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final int value; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String name; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String literal; >- >- /** >- * Only this class can construct instances. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private ContrType(int value, String name, String literal) >- { >- this.value = value; >- this.name = name; >- this.literal = literal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getValue() >- { >- return value; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getLiteral() >- { >- return literal; >- } >- >- /** >- * Returns the literal value of the enumerator, which is its string representation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- return literal; >- } >- >-} //ContrType >- >-/** >- * A private implementation interface used to hide the inheritance from Enumerator. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-interface InternalContrType extends org.eclipse.emf.common.util.Enumerator >-{ >- // Empty >-} >Index: src/org/eclipse/emf/test/models/personal/mixed/DocumentRoot.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/mixed/DocumentRoot.java >diff -N src/org/eclipse/emf/test/models/personal/mixed/DocumentRoot.java >--- src/org/eclipse/emf/test/models/personal/mixed/DocumentRoot.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,307 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: DocumentRoot.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.mixed; >- >-import commonj.sdo.Sequence; >- >-import java.util.Map; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Document Root</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getMixed <em>Mixed</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='' kind='mixed'" >- * @generated >- */ >-public interface DocumentRoot >-{ >- /** >- * Returns the value of the '<em><b>Mixed</b></em>' attribute list. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Mixed</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" >- * extendedMetaData="kind='elementWildcard' name=':mixed'" >- * @generated >- */ >- Sequence getMixed(); >- >- /** >- * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XMLNS Prefix Map</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xmlns:prefix'" >- * @generated >- */ >- Map<String, String> getXMLNSPrefixMap(); >- >- /** >- * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. >- * The key is of type {@link java.lang.String}, >- * and the value is of type {@link java.lang.String}, >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>XSI Schema Location</em>' map. >- * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" >- * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" >- * @generated >- */ >- Map<String, String> getXSISchemaLocation(); >- >- /** >- * Returns the value of the '<em><b>Email</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Email</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Email</em>' attribute. >- * @see #setEmail(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='email' namespace='##targetNamespace'" >- * @generated >- */ >- String getEmail(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getEmail <em>Email</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Email</em>' attribute. >- * @see #getEmail() >- * @generated >- */ >- void setEmail(String value); >- >- /** >- * Returns the value of the '<em><b>Family</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Family</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Family</em>' attribute. >- * @see #setFamily(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='family' namespace='##targetNamespace'" >- * @generated >- */ >- String getFamily(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getFamily <em>Family</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Family</em>' attribute. >- * @see #getFamily() >- * @generated >- */ >- void setFamily(String value); >- >- /** >- * Returns the value of the '<em><b>Given</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Given</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Given</em>' attribute. >- * @see #setGiven(String) >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='given' namespace='##targetNamespace'" >- * @generated >- */ >- String getGiven(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getGiven <em>Given</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Given</em>' attribute. >- * @see #getGiven() >- * @generated >- */ >- void setGiven(String value); >- >- /** >- * Returns the value of the '<em><b>Link</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Link</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Link</em>' containment reference. >- * @see #setLink(LinkType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='link' namespace='##targetNamespace'" >- * @generated >- */ >- LinkType getLink(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getLink <em>Link</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Link</em>' containment reference. >- * @see #getLink() >- * @generated >- */ >- void setLink(LinkType value); >- >- /** >- * Returns the value of the '<em><b>Name</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' containment reference. >- * @see #setName(NameType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='name' namespace='##targetNamespace'" >- * @generated >- */ >- NameType getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getName <em>Name</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' containment reference. >- * @see #getName() >- * @generated >- */ >- void setName(NameType value); >- >- /** >- * Returns the value of the '<em><b>Person</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Person</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Person</em>' containment reference. >- * @see #setPerson(PersonType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='person' namespace='##targetNamespace'" >- * @generated >- */ >- PersonType getPerson(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPerson <em>Person</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Person</em>' containment reference. >- * @see #getPerson() >- * @generated >- */ >- void setPerson(PersonType value); >- >- /** >- * Returns the value of the '<em><b>Personnel</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Personnel</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Personnel</em>' containment reference. >- * @see #setPersonnel(PersonnelType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='personnel' namespace='##targetNamespace'" >- * @generated >- */ >- PersonnelType getPersonnel(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getPersonnel <em>Personnel</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Personnel</em>' containment reference. >- * @see #getPersonnel() >- * @generated >- */ >- void setPersonnel(PersonnelType value); >- >- /** >- * Returns the value of the '<em><b>Url</b></em>' containment reference. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Url</em>' containment reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Url</em>' containment reference. >- * @see #setUrl(UrlType) >- * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" >- * extendedMetaData="kind='element' name='url' namespace='##targetNamespace'" >- * @generated >- */ >- UrlType getUrl(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.personal.mixed.DocumentRoot#getUrl <em>Url</em>}' containment reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Url</em>' containment reference. >- * @see #getUrl() >- * @generated >- */ >- void setUrl(UrlType value); >- >-} // DocumentRoot >Index: src/org/eclipse/emf/test/models/sdo/library/Writer.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/Writer.java >diff -N src/org/eclipse/emf/test/models/sdo/library/Writer.java >--- src/org/eclipse/emf/test/models/sdo/library/Writer.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,81 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Writer.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Writer</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}</li> >- * </ul> >- * </p> >- * >- * @model >- * @generated >- */ >-public interface Writer >-{ >- /** >- * Returns the value of the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' attribute. >- * @see #setName(String) >- * @model >- * @generated >- */ >- String getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' attribute. >- * @see #getName() >- * @generated >- */ >- void setName(String value); >- >- /** >- * Returns the value of the '<em><b>Books</b></em>' reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}. >- * It is bidirectional and its opposite is '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Books</em>' reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Books</em>' reference list. >- * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor >- * @model opposite="author" >- * @generated >- */ >- List<Book> getBooks(); >- >-} // Writer >Index: src/org/eclipse/emf/test/models/sdo/library/Library.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/Library.java >diff -N src/org/eclipse/emf/test/models/sdo/library/Library.java >--- src/org/eclipse/emf/test/models/sdo/library/Library.java 12 Jun 2007 15:08:10 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,95 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Library.java,v 1.3 2007/06/12 15:08:10 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Library</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}</li> >- * </ul> >- * </p> >- * >- * @model >- * @generated >- */ >-public interface Library >-{ >- /** >- * Returns the value of the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Name</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Name</em>' attribute. >- * @see #setName(String) >- * @model >- * @generated >- */ >- String getName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Name</em>' attribute. >- * @see #getName() >- * @generated >- */ >- void setName(String value); >- >- /** >- * Returns the value of the '<em><b>Writers</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Writer}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Writers</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Writers</em>' containment reference list. >- * @model containment="true" >- * @generated >- */ >- List<Writer> getWriters(); >- >- /** >- * Returns the value of the '<em><b>Books</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.sdo.library.Book}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Books</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Books</em>' containment reference list. >- * @model containment="true" >- * @generated >- */ >- List<Book> getBooks(); >- >-} // Library >Index: src/org/eclipse/emf/test/models/sdo/library/BookCategory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/BookCategory.java >diff -N src/org/eclipse/emf/test/models/sdo/library/BookCategory.java >--- src/org/eclipse/emf/test/models/sdo/library/BookCategory.java 18 Jan 2007 22:06:45 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,273 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: BookCategory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library; >- >-import java.util.Arrays; >-import java.util.Collections; >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the literals of the enumeration '<em><b>Book Category</b></em>', >- * and utility methods for working with them. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory() >- * @model >- * @generated >- */ >-public enum BookCategory implements InternalBookCategory >-{ >- /** >- * The '<em><b>Mystery</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #MYSTERY_VALUE >- * @generated >- * @ordered >- */ >- MYSTERY(0, "Mystery", "Mystery"), >- >- /** >- * The '<em><b>Science Fiction</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #SCIENCE_FICTION_VALUE >- * @generated >- * @ordered >- */ >- SCIENCE_FICTION(1, "ScienceFiction", "ScienceFiction"), >- >- /** >- * The '<em><b>Biography</b></em>' literal object. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #BIOGRAPHY_VALUE >- * @generated >- * @ordered >- */ >- BIOGRAPHY(2, "Biography", "Biography"); >- >- /** >- * The '<em><b>Mystery</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>Mystery</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #MYSTERY >- * @model name="Mystery" >- * @generated >- * @ordered >- */ >- public static final int MYSTERY_VALUE = 0; >- >- /** >- * The '<em><b>Science Fiction</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>Science Fiction</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #SCIENCE_FICTION >- * @model name="ScienceFiction" >- * @generated >- * @ordered >- */ >- public static final int SCIENCE_FICTION_VALUE = 1; >- >- /** >- * The '<em><b>Biography</b></em>' literal value. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of '<em><b>Biography</b></em>' literal object isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @see #BIOGRAPHY >- * @model name="Biography" >- * @generated >- * @ordered >- */ >- public static final int BIOGRAPHY_VALUE = 2; >- >- /** >- * An array of all the '<em><b>Book Category</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final BookCategory[] VALUES_ARRAY = >- new BookCategory[] >- { >- MYSTERY, >- SCIENCE_FICTION, >- BIOGRAPHY, >- }; >- >- /** >- * A public read-only list of all the '<em><b>Book Category</b></em>' enumerators. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final List<BookCategory> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); >- >- /** >- * Returns the '<em><b>Book Category</b></em>' literal with the specified literal value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static BookCategory get(String literal) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- BookCategory result = VALUES_ARRAY[i]; >- if (result.toString().equals(literal)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Book Category</b></em>' literal with the specified name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static BookCategory getByName(String name) >- { >- for (int i = 0; i < VALUES_ARRAY.length; ++i) >- { >- BookCategory result = VALUES_ARRAY[i]; >- if (result.getName().equals(name)) >- { >- return result; >- } >- } >- return null; >- } >- >- /** >- * Returns the '<em><b>Book Category</b></em>' literal with the specified integer value. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static BookCategory get(int value) >- { >- switch (value) >- { >- case MYSTERY_VALUE: return MYSTERY; >- case SCIENCE_FICTION_VALUE: return SCIENCE_FICTION; >- case BIOGRAPHY_VALUE: return BIOGRAPHY; >- } >- return null; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final int value; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String name; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private final String literal; >- >- /** >- * Only this class can construct instances. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private BookCategory(int value, String name, String literal) >- { >- this.value = value; >- this.name = name; >- this.literal = literal; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getValue() >- { >- return value; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getLiteral() >- { >- return literal; >- } >- >- /** >- * Returns the literal value of the enumerator, which is its string representation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- return literal; >- } >- >-} //BookCategory >- >-/** >- * A private implementation interface used to hide the inheritance from Enumerator. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-interface InternalBookCategory extends org.eclipse.emf.common.util.Enumerator >-{ >- // Empty >-} >Index: src/org/eclipse/emf/test/models/sdo/library/Book.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/Book.java >diff -N src/org/eclipse/emf/test/models/sdo/library/Book.java >--- src/org/eclipse/emf/test/models/sdo/library/Book.java 18 Jan 2007 22:06:45 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,146 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Book.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library; >- >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Book</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}</li> >- * </ul> >- * </p> >- * >- * @model >- * @generated >- */ >-public interface Book >-{ >- /** >- * Returns the value of the '<em><b>Title</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Title</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Title</em>' attribute. >- * @see #setTitle(String) >- * @model >- * @generated >- */ >- String getTitle(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Title</em>' attribute. >- * @see #getTitle() >- * @generated >- */ >- void setTitle(String value); >- >- /** >- * Returns the value of the '<em><b>Pages</b></em>' attribute. >- * The default value is <code>"100"</code>. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Pages</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Pages</em>' attribute. >- * @see #setPages(int) >- * @model default="100" >- * @generated >- */ >- int getPages(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Pages</em>' attribute. >- * @see #getPages() >- * @generated >- */ >- void setPages(int value); >- >- /** >- * Returns the value of the '<em><b>Category</b></em>' attribute. >- * The literals are from the enumeration {@link org.eclipse.emf.test.models.sdo.library.BookCategory}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Category</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Category</em>' attribute. >- * @see org.eclipse.emf.test.models.sdo.library.BookCategory >- * @see #setCategory(BookCategory) >- * @model >- * @generated >- */ >- BookCategory getCategory(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Category</em>' attribute. >- * @see org.eclipse.emf.test.models.sdo.library.BookCategory >- * @see #getCategory() >- * @generated >- */ >- void setCategory(BookCategory value); >- >- /** >- * Returns the value of the '<em><b>Author</b></em>' reference. >- * It is bidirectional and its opposite is '{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}'. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Author</em>' reference isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Author</em>' reference. >- * @see #setAuthor(Writer) >- * @see org.eclipse.emf.test.models.sdo.library.Writer#getBooks >- * @model opposite="books" required="true" >- * @generated >- */ >- Writer getAuthor(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}' reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Author</em>' reference. >- * @see #getAuthor() >- * @generated >- */ >- void setAuthor(Writer value); >- >-} // Book >Index: src/org/eclipse/emf/test/models/sdo/library/SDOLibraryFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/SDOLibraryFactory.java >diff -N src/org/eclipse/emf/test/models/sdo/library/SDOLibraryFactory.java >--- src/org/eclipse/emf/test/models/sdo/library/SDOLibraryFactory.java 18 Jan 2007 22:06:45 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,64 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SDOLibraryFactory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface SDOLibraryFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- SDOLibraryFactory INSTANCE = org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>Book</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Book</em>'. >- * @generated >- */ >- Book createBook(); >- >- /** >- * Returns a new object of class '<em>Library</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Library</em>'. >- * @generated >- */ >- Library createLibrary(); >- >- /** >- * Returns a new object of class '<em>Writer</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Writer</em>'. >- * @generated >- */ >- Writer createWriter(); >- >-} //SDOLibraryFactory >Index: src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java >--- src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryPackageImpl.java 18 Jan 2007 22:06:47 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,743 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SDOLibraryPackageImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.impl; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EEnum; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >-import org.eclipse.emf.ecore.EReference; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.test.models.sdo.library.Book; >-import org.eclipse.emf.test.models.sdo.library.BookCategory; >-import org.eclipse.emf.test.models.sdo.library.Library; >-import org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory; >-import org.eclipse.emf.test.models.sdo.library.Writer; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.SDOLibraryFactory >- * @model kind="package" >- * @generated >- */ >-public class SDOLibraryPackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "library"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/SDOLibrary"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "org.eclipse.emf.test.models.sdolibrary"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final SDOLibraryPackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook() >- * @generated >- */ >- public static final int BOOK = 0; >- >- /** >- * The feature id for the '<em><b>Title</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int BOOK__TITLE = 0; >- >- /** >- * The feature id for the '<em><b>Pages</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int BOOK__PAGES = 1; >- >- /** >- * The feature id for the '<em><b>Category</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int BOOK__CATEGORY = 2; >- >- /** >- * The feature id for the '<em><b>Author</b></em>' reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int BOOK__AUTHOR = 3; >- >- /** >- * The number of structural features of the '<em>Book</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int BOOK_FEATURE_COUNT = 4; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary() >- * @generated >- */ >- public static final int LIBRARY = 1; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LIBRARY__NAME = 0; >- >- /** >- * The feature id for the '<em><b>Writers</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LIBRARY__WRITERS = 1; >- >- /** >- * The feature id for the '<em><b>Books</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LIBRARY__BOOKS = 2; >- >- /** >- * The number of structural features of the '<em>Library</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int LIBRARY_FEATURE_COUNT = 3; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter() >- * @generated >- */ >- public static final int WRITER = 2; >- >- /** >- * The feature id for the '<em><b>Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int WRITER__NAME = 0; >- >- /** >- * The feature id for the '<em><b>Books</b></em>' reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int WRITER__BOOKS = 1; >- >- /** >- * The number of structural features of the '<em>Writer</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int WRITER_FEATURE_COUNT = 2; >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.BookCategory >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory() >- * @generated >- */ >- public static final int BOOK_CATEGORY = 3; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass bookEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass libraryEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass writerEClass = null; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EEnum bookCategoryEEnum = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private SDOLibraryPackageImpl() >- { >- super(eNS_URI, ((EFactory)SDOLibraryFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static SDOLibraryPackageImpl init() >- { >- if (isInited) return (SDOLibraryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(SDOLibraryPackageImpl.eNS_URI); >- >- // Obtain or create and register package >- SDOLibraryPackageImpl theSDOLibraryPackageImpl = (SDOLibraryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SDOLibraryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SDOLibraryPackageImpl()); >- >- isInited = true; >- >- // Create package meta-data objects >- theSDOLibraryPackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- theSDOLibraryPackageImpl.initializePackageContents(); >- >- // Mark meta-data to indicate it can't be changed >- theSDOLibraryPackageImpl.freeze(); >- >- return theSDOLibraryPackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Book <em>Book</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Book</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Book >- * @generated >- */ >- public EClass getBook() >- { >- return bookEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getTitle <em>Title</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Title</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Book#getTitle() >- * @see #getBook() >- * @generated >- */ >- public EAttribute getBook_Title() >- { >- return (EAttribute)bookEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getPages <em>Pages</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Pages</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Book#getPages() >- * @see #getBook() >- * @generated >- */ >- public EAttribute getBook_Pages() >- { >- return (EAttribute)bookEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Book#getCategory <em>Category</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Category</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Book#getCategory() >- * @see #getBook() >- * @generated >- */ >- public EAttribute getBook_Category() >- { >- return (EAttribute)bookEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the reference '{@link org.eclipse.emf.test.models.sdo.library.Book#getAuthor <em>Author</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the reference '<em>Author</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Book#getAuthor() >- * @see #getBook() >- * @generated >- */ >- public EReference getBook_Author() >- { >- return (EReference)bookEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Library <em>Library</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Library</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Library >- * @generated >- */ >- public EClass getLibrary() >- { >- return libraryEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Library#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Library#getName() >- * @see #getLibrary() >- * @generated >- */ >- public EAttribute getLibrary_Name() >- { >- return (EAttribute)libraryEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getWriters <em>Writers</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Writers</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Library#getWriters() >- * @see #getLibrary() >- * @generated >- */ >- public EReference getLibrary_Writers() >- { >- return (EReference)libraryEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.library.Library#getBooks <em>Books</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Books</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Library#getBooks() >- * @see #getLibrary() >- * @generated >- */ >- public EReference getLibrary_Books() >- { >- return (EReference)libraryEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.library.Writer <em>Writer</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Writer</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Writer >- * @generated >- */ >- public EClass getWriter() >- { >- return writerEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.library.Writer#getName <em>Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Name</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Writer#getName() >- * @see #getWriter() >- * @generated >- */ >- public EAttribute getWriter_Name() >- { >- return (EAttribute)writerEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the reference list '{@link org.eclipse.emf.test.models.sdo.library.Writer#getBooks <em>Books</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the reference list '<em>Books</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.Writer#getBooks() >- * @see #getWriter() >- * @generated >- */ >- public EReference getWriter_Books() >- { >- return (EReference)writerEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for enum '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for enum '<em>Book Category</em>'. >- * @see org.eclipse.emf.test.models.sdo.library.BookCategory >- * @generated >- */ >- public EEnum getBookCategory() >- { >- return bookCategoryEEnum; >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public SDOLibraryFactory getSDOLibraryFactory() >- { >- return (SDOLibraryFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- bookEClass = createEClass(BOOK); >- createEAttribute(bookEClass, BOOK__TITLE); >- createEAttribute(bookEClass, BOOK__PAGES); >- createEAttribute(bookEClass, BOOK__CATEGORY); >- createEReference(bookEClass, BOOK__AUTHOR); >- >- libraryEClass = createEClass(LIBRARY); >- createEAttribute(libraryEClass, LIBRARY__NAME); >- createEReference(libraryEClass, LIBRARY__WRITERS); >- createEReference(libraryEClass, LIBRARY__BOOKS); >- >- writerEClass = createEClass(WRITER); >- createEAttribute(writerEClass, WRITER__NAME); >- createEReference(writerEClass, WRITER__BOOKS); >- >- // Create enums >- bookCategoryEEnum = createEEnum(BOOK_CATEGORY); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- >- // Initialize classes and features; add operations and parameters >- initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- >- initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- >- initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- >- // Initialize enums and add enum literals >- initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory"); >- addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY); >- addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION); >- addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY); >- >- // Create resource >- createResource(eNS_URI); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl <em>Book</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.BookImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBook() >- * @generated >- */ >- public static final EClass BOOK = eINSTANCE.getBook(); >- >- /** >- * The meta object literal for the '<em><b>Title</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute BOOK__TITLE = eINSTANCE.getBook_Title(); >- >- /** >- * The meta object literal for the '<em><b>Pages</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages(); >- >- /** >- * The meta object literal for the '<em><b>Category</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category(); >- >- /** >- * The meta object literal for the '<em><b>Author</b></em>' reference feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference BOOK__AUTHOR = eINSTANCE.getBook_Author(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl <em>Library</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getLibrary() >- * @generated >- */ >- public static final EClass LIBRARY = eINSTANCE.getLibrary(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name(); >- >- /** >- * The meta object literal for the '<em><b>Writers</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers(); >- >- /** >- * The meta object literal for the '<em><b>Books</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl <em>Writer</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.impl.WriterImpl >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getWriter() >- * @generated >- */ >- public static final EClass WRITER = eINSTANCE.getWriter(); >- >- /** >- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute WRITER__NAME = eINSTANCE.getWriter_Name(); >- >- /** >- * The meta object literal for the '<em><b>Books</b></em>' reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference WRITER__BOOKS = eINSTANCE.getWriter_Books(); >- >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.library.BookCategory <em>Book Category</em>}' enum. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.library.BookCategory >- * @see org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl#getBookCategory() >- * @generated >- */ >- public static final EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory(); >- >- } >- >-} //SDOLibraryPackageImpl >Index: src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java >--- src/org/eclipse/emf/test/models/sdo/library/impl/BookImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,439 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: BookImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.impl; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.test.models.sdo.library.Book; >-import org.eclipse.emf.test.models.sdo.library.BookCategory; >-import org.eclipse.emf.test.models.sdo.library.Writer; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Book</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getTitle <em>Title</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getPages <em>Pages</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getCategory <em>Category</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.BookImpl#getAuthor <em>Author</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class BookImpl extends EDataObjectImpl implements Book >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getTitle() >- * @generated >- * @ordered >- */ >- protected static final String TITLE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getTitle() >- * @generated >- * @ordered >- */ >- protected String title = TITLE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getPages() <em>Pages</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPages() >- * @generated >- * @ordered >- */ >- protected static final int PAGES_EDEFAULT = 100; >- >- /** >- * The cached value of the '{@link #getPages() <em>Pages</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPages() >- * @generated >- * @ordered >- */ >- protected int pages = PAGES_EDEFAULT; >- >- /** >- * The default value of the '{@link #getCategory() <em>Category</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCategory() >- * @generated >- * @ordered >- */ >- protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY; >- >- /** >- * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCategory() >- * @generated >- * @ordered >- */ >- protected BookCategory category = CATEGORY_EDEFAULT; >- >- /** >- * The cached value of the '{@link #getAuthor() <em>Author</em>}' reference. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getAuthor() >- * @generated >- * @ordered >- */ >- protected Writer author; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected BookImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return SDOLibraryPackageImpl.Literals.BOOK; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getTitle() >- { >- return title; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setTitle(String newTitle) >- { >- String oldTitle = title; >- title = newTitle; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__TITLE, oldTitle, title)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public int getPages() >- { >- return pages; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPages(int newPages) >- { >- int oldPages = pages; >- pages = newPages; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__PAGES, oldPages, pages)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BookCategory getCategory() >- { >- return category; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setCategory(BookCategory newCategory) >- { >- BookCategory oldCategory = category; >- category = newCategory == null ? CATEGORY_EDEFAULT : newCategory; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__CATEGORY, oldCategory, category)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Writer getAuthor() >- { >- if (author != null && ((EObject)author).eIsProxy()) >- { >- InternalEObject oldAuthor = (InternalEObject)author; >- author = (Writer)eResolveProxy(oldAuthor); >- if (author != oldAuthor) >- { >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.RESOLVE, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, author)); >- } >- } >- return author; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Writer basicGetAuthor() >- { >- return author; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs) >- { >- Writer oldAuthor = author; >- author = newAuthor; >- if (eNotificationRequired()) >- { >- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, oldAuthor, newAuthor); >- if (msgs == null) msgs = notification; else msgs.add(notification); >- } >- return msgs; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setAuthor(Writer newAuthor) >- { >- if (newAuthor != author) >- { >- NotificationChain msgs = null; >- if (author != null) >- msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs); >- if (newAuthor != null) >- msgs = ((InternalEObject)newAuthor).eInverseAdd(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs); >- msgs = basicSetAuthor(newAuthor, msgs); >- if (msgs != null) msgs.dispatch(); >- } >- else if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.BOOK__AUTHOR, newAuthor, newAuthor)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- if (author != null) >- msgs = ((InternalEObject)author).eInverseRemove(this, SDOLibraryPackageImpl.WRITER__BOOKS, Writer.class, msgs); >- return basicSetAuthor((Writer)otherEnd, msgs); >- } >- return super.eInverseAdd(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- return basicSetAuthor(null, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__TITLE: >- return getTitle(); >- case SDOLibraryPackageImpl.BOOK__PAGES: >- return new Integer(getPages()); >- case SDOLibraryPackageImpl.BOOK__CATEGORY: >- return getCategory(); >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- if (resolve) return getAuthor(); >- return basicGetAuthor(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__TITLE: >- setTitle((String)newValue); >- return; >- case SDOLibraryPackageImpl.BOOK__PAGES: >- setPages(((Integer)newValue).intValue()); >- return; >- case SDOLibraryPackageImpl.BOOK__CATEGORY: >- setCategory((BookCategory)newValue); >- return; >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- setAuthor((Writer)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__TITLE: >- setTitle(TITLE_EDEFAULT); >- return; >- case SDOLibraryPackageImpl.BOOK__PAGES: >- setPages(PAGES_EDEFAULT); >- return; >- case SDOLibraryPackageImpl.BOOK__CATEGORY: >- setCategory(CATEGORY_EDEFAULT); >- return; >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- setAuthor((Writer)null); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.BOOK__TITLE: >- return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); >- case SDOLibraryPackageImpl.BOOK__PAGES: >- return pages != PAGES_EDEFAULT; >- case SDOLibraryPackageImpl.BOOK__CATEGORY: >- return category != CATEGORY_EDEFAULT; >- case SDOLibraryPackageImpl.BOOK__AUTHOR: >- return author != null; >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (title: "); >- result.append(title); >- result.append(", pages: "); >- result.append(pages); >- result.append(", category: "); >- result.append(category); >- result.append(')'); >- return result.toString(); >- } >- >-} //BookImpl >Index: src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java >--- src/org/eclipse/emf/test/models/sdo/library/impl/SDOLibraryFactoryImpl.java 18 Jan 2007 22:06:47 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,209 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SDOLibraryFactoryImpl.java,v 1.2 2007/01/18 22:06:47 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.impl; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EDataType; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.test.models.sdo.library.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class SDOLibraryFactoryImpl extends EFactoryImpl implements SDOLibraryFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final SDOLibraryFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static SDOLibraryFactoryImpl init() >- { >- try >- { >- SDOLibraryFactoryImpl theSDOLibraryFactory = (SDOLibraryFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/SDOLibrary"); >- if (theSDOLibraryFactory != null) >- { >- return theSDOLibraryFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new SDOLibraryFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SDOLibraryFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case SDOLibraryPackageImpl.BOOK: return (EObject)createBook(); >- case SDOLibraryPackageImpl.LIBRARY: return (EObject)createLibrary(); >- case SDOLibraryPackageImpl.WRITER: return (EObject)createWriter(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object createFromString(EDataType eDataType, String initialValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case SDOLibraryPackageImpl.BOOK_CATEGORY: >- return createBookCategoryFromString(eDataType, initialValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String convertToString(EDataType eDataType, Object instanceValue) >- { >- switch (eDataType.getClassifierID()) >- { >- case SDOLibraryPackageImpl.BOOK_CATEGORY: >- return convertBookCategoryToString(eDataType, instanceValue); >- default: >- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Book createBook() >- { >- BookImpl book = new BookImpl(); >- return book; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Library createLibrary() >- { >- LibraryImpl library = new LibraryImpl(); >- return library; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Writer createWriter() >- { >- WriterImpl writer = new WriterImpl(); >- return writer; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BookCategory createBookCategoryFromString(EDataType eDataType, String initialValue) >- { >- BookCategory result = BookCategory.get(initialValue); >- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String convertBookCategoryToString(EDataType eDataType, Object instanceValue) >- { >- return instanceValue == null ? null : instanceValue.toString(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SDOLibraryPackageImpl getSDOLibraryPackageImpl() >- { >- return (SDOLibraryPackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static SDOLibraryPackageImpl getPackage() >- { >- return SDOLibraryPackageImpl.eINSTANCE; >- } >- >-} //SDOLibraryFactoryImpl >Index: src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java >--- src/org/eclipse/emf/test/models/sdo/library/impl/WriterImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,279 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: WriterImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.impl; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.sdo.library.Book; >-import org.eclipse.emf.test.models.sdo.library.Writer; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Writer</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.WriterImpl#getBooks <em>Books</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class WriterImpl extends EDataObjectImpl implements Writer >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected static final String NAME_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected String name = NAME_EDEFAULT; >- >- /** >- * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getBooks() >- * @generated >- * @ordered >- */ >- protected EList<Book> books; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected WriterImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return SDOLibraryPackageImpl.Literals.WRITER; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(String newName) >- { >- String oldName = name; >- name = newName; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.WRITER__NAME, oldName, name)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Book> getBooks() >- { >- if (books == null) >- { >- books = new EObjectWithInverseResolvingEList<Book>(Book.class, this, SDOLibraryPackageImpl.WRITER__BOOKS, SDOLibraryPackageImpl.BOOK__AUTHOR); >- } >- return books; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- return ((InternalEList<InternalEObject>)(InternalEList<?>)getBooks()).basicAdd(otherEnd, msgs); >- } >- return super.eInverseAdd(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__NAME: >- return getName(); >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- return getBooks(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__NAME: >- setName((String)newValue); >- return; >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- getBooks().clear(); >- getBooks().addAll((Collection<? extends Book>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__NAME: >- setName(NAME_EDEFAULT); >- return; >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- getBooks().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.WRITER__NAME: >- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); >- case SDOLibraryPackageImpl.WRITER__BOOKS: >- return books != null && !books.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (name: "); >- result.append(name); >- result.append(')'); >- return result.toString(); >- } >- >-} //WriterImpl >Index: src/org/eclipse/emf/test/models/sdo/library/impl/LibraryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/library/impl/LibraryImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/library/impl/LibraryImpl.java >--- src/org/eclipse/emf/test/models/sdo/library/impl/LibraryImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,301 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: LibraryImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.library.impl; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.sdo.library.Book; >-import org.eclipse.emf.test.models.sdo.library.Library; >-import org.eclipse.emf.test.models.sdo.library.Writer; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Library</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getName <em>Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getWriters <em>Writers</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.library.impl.LibraryImpl#getBooks <em>Books</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class LibraryImpl extends EDataObjectImpl implements Library >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected static final String NAME_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getName() <em>Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getName() >- * @generated >- * @ordered >- */ >- protected String name = NAME_EDEFAULT; >- >- /** >- * The cached value of the '{@link #getWriters() <em>Writers</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getWriters() >- * @generated >- * @ordered >- */ >- protected EList<Writer> writers; >- >- /** >- * The cached value of the '{@link #getBooks() <em>Books</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getBooks() >- * @generated >- * @ordered >- */ >- protected EList<Book> books; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected LibraryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return SDOLibraryPackageImpl.Literals.LIBRARY; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getName() >- { >- return name; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setName(String newName) >- { >- String oldName = name; >- name = newName; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SDOLibraryPackageImpl.LIBRARY__NAME, oldName, name)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Writer> getWriters() >- { >- if (writers == null) >- { >- writers = new EObjectContainmentEList<Writer>(Writer.class, this, SDOLibraryPackageImpl.LIBRARY__WRITERS); >- } >- return writers; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Book> getBooks() >- { >- if (books == null) >- { >- books = new EObjectContainmentEList<Book>(Book.class, this, SDOLibraryPackageImpl.LIBRARY__BOOKS); >- } >- return books; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.LIBRARY__WRITERS: >- return ((InternalEList<?>)getWriters()).basicRemove(otherEnd, msgs); >- case SDOLibraryPackageImpl.LIBRARY__BOOKS: >- return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.LIBRARY__NAME: >- return getName(); >- case SDOLibraryPackageImpl.LIBRARY__WRITERS: >- return getWriters(); >- case SDOLibraryPackageImpl.LIBRARY__BOOKS: >- return getBooks(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.LIBRARY__NAME: >- setName((String)newValue); >- return; >- case SDOLibraryPackageImpl.LIBRARY__WRITERS: >- getWriters().clear(); >- getWriters().addAll((Collection<? extends Writer>)newValue); >- return; >- case SDOLibraryPackageImpl.LIBRARY__BOOKS: >- getBooks().clear(); >- getBooks().addAll((Collection<? extends Book>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.LIBRARY__NAME: >- setName(NAME_EDEFAULT); >- return; >- case SDOLibraryPackageImpl.LIBRARY__WRITERS: >- getWriters().clear(); >- return; >- case SDOLibraryPackageImpl.LIBRARY__BOOKS: >- getBooks().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case SDOLibraryPackageImpl.LIBRARY__NAME: >- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); >- case SDOLibraryPackageImpl.LIBRARY__WRITERS: >- return writers != null && !writers.isEmpty(); >- case SDOLibraryPackageImpl.LIBRARY__BOOKS: >- return books != null && !books.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (name: "); >- result.append(name); >- result.append(')'); >- return result.toString(); >- } >- >-} //LibraryImpl >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.common/META-INF/MANIFEST.MF,v >retrieving revision 1.6 >diff -u -r1.6 MANIFEST.MF >--- META-INF/MANIFEST.MF 29 Apr 2008 21:22:47 -0000 1.6 >+++ META-INF/MANIFEST.MF 2 Nov 2008 14:14:01 -0000 >@@ -10,7 +10,6 @@ > Require-Bundle: org.eclipse.core.runtime, > org.eclipse.emf.ecore;visibility:=reexport, > org.eclipse.emf.ecore.xmi, >- org.eclipse.emf.ecore.sdo, > org.eclipse.emf.ecore.edit > Eclipse-LazyStart: true > Bundle-Activator: org.eclipse.emf.test.common.EMFTestCommonPlugin >@@ -28,9 +27,6 @@ > org.eclipse.emf.test.models.ext.impl, > org.eclipse.emf.test.models.ext.provider, > org.eclipse.emf.test.models.ext.util, >- org.eclipse.emf.test.models.ipo, >- org.eclipse.emf.test.models.ipo.impl, >- org.eclipse.emf.test.models.ipo.util, > org.eclipse.emf.test.models.key, > org.eclipse.emf.test.models.key.impl, > org.eclipse.emf.test.models.key.util, >@@ -46,12 +42,6 @@ > org.eclipse.emf.test.models.order, > org.eclipse.emf.test.models.order.impl, > org.eclipse.emf.test.models.order.util, >- org.eclipse.emf.test.models.personal, >- org.eclipse.emf.test.models.personal.impl, >- org.eclipse.emf.test.models.personal.mixed, >- org.eclipse.emf.test.models.personal.mixed.impl, >- org.eclipse.emf.test.models.personal.mixed.util, >- org.eclipse.emf.test.models.personal.util, > org.eclipse.emf.test.models.ppo, > org.eclipse.emf.test.models.ppo.impl, > org.eclipse.emf.test.models.ppo.util, >@@ -66,17 +56,8 @@ > org.eclipse.emf.test.models.ref.unsettable.provider, > org.eclipse.emf.test.models.ref.unsettable.util, > org.eclipse.emf.test.models.ref.util, >- org.eclipse.emf.test.models.sdo.library, >- org.eclipse.emf.test.models.sdo.library.impl, >- org.eclipse.emf.test.models.sdo.library.util, >- org.eclipse.emf.test.models.sdo.simple, >- org.eclipse.emf.test.models.sdo.simple.impl, >- org.eclipse.emf.test.models.sdo.simple.util, > org.eclipse.emf.test.models.tree, > org.eclipse.emf.test.models.tree.impl, > org.eclipse.emf.test.models.tree.provider, >- org.eclipse.emf.test.models.tree.util, >- org.eclipse.emf.test.models.types, >- org.eclipse.emf.test.models.types.impl, >- org.eclipse.emf.test.models.types.util >+ org.eclipse.emf.test.models.tree.util > Bundle-ActivationPolicy: lazy >Index: src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOResourceFactoryImpl.java 18 Jan 2007 22:06:43 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,69 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:43 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; >- >-import org.eclipse.emf.ecore.xmi.XMLResource; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource Factory</b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.util.IPOResourceImpl >- * @generated >- */ >-public class IPOResourceFactoryImpl extends ResourceFactoryImpl >-{ >- /** >- * Creates an instance of the resource factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOResourceFactoryImpl() >- { >- super(); >- } >- >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Resource createResource(URI uri) >- { >- XMLResource result = new IPOResourceImpl(uri); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- >- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >- return result; >- } >- >-} //IPOResourceFactoryImpl >Index: src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOResourceImpl.java 18 Jan 2007 22:06:44 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,44 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOResourceImpl.java,v 1.2 2007/01/18 22:06:44 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource </b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.util.IPOResourceFactoryImpl >- * @generated >- */ >-public class IPOResourceImpl extends XMLResourceImpl >-{ >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param uri the URI of the new resource. >- * @generated >- */ >- public IPOResourceImpl(URI uri) >- { >- super(uri); >- } >- >-} //IPOResourceImpl >Index: src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOSwitch.java 12 Jun 2007 21:15:19 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,294 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.ipo.*; >- >-import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl >- * @generated >- */ >-public class IPOSwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static IPOPackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOSwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = IPOPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case IPOPackageImpl.ADDRESS: >- { >- Address address = (Address)theEObject; >- T result = caseAddress(address); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.DOCUMENT_ROOT: >- { >- DocumentRoot documentRoot = (DocumentRoot)theEObject; >- T result = caseDocumentRoot(documentRoot); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.ITEMS: >- { >- Items items = (Items)theEObject; >- T result = caseItems(items); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.ITEM_TYPE: >- { >- ItemType itemType = (ItemType)theEObject; >- T result = caseItemType(itemType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.PURCHASE_ORDER_TYPE: >- { >- PurchaseOrderType purchaseOrderType = (PurchaseOrderType)theEObject; >- T result = casePurchaseOrderType(purchaseOrderType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.UK_ADDRESS: >- { >- UKAddress ukAddress = (UKAddress)theEObject; >- T result = caseUKAddress(ukAddress); >- if (result == null) result = caseAddress(ukAddress); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case IPOPackageImpl.US_ADDRESS: >- { >- USAddress usAddress = (USAddress)theEObject; >- T result = caseUSAddress(usAddress); >- if (result == null) result = caseAddress(usAddress); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Address</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Address</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseAddress(Address object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseDocumentRoot(DocumentRoot object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Items</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Items</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseItems(Items object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Item Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Item Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseItemType(ItemType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Purchase Order Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T casePurchaseOrderType(PurchaseOrderType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>UK Address</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>UK Address</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseUKAddress(UKAddress object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>US Address</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>US Address</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseUSAddress(USAddress object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //IPOSwitch >Index: src/org/eclipse/emf/test/models/ipo/util/IPOAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOAdapterFactory.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,268 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.ipo.*; >- >-import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl >- * @generated >- */ >-public class IPOAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static IPOPackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = IPOPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected IPOSwitch<Adapter> modelSwitch = >- new IPOSwitch<Adapter>() >- { >- @Override >- public Adapter caseAddress(Address object) >- { >- return createAddressAdapter(); >- } >- @Override >- public Adapter caseDocumentRoot(DocumentRoot object) >- { >- return createDocumentRootAdapter(); >- } >- @Override >- public Adapter caseItems(Items object) >- { >- return createItemsAdapter(); >- } >- @Override >- public Adapter caseItemType(ItemType object) >- { >- return createItemTypeAdapter(); >- } >- @Override >- public Adapter casePurchaseOrderType(PurchaseOrderType object) >- { >- return createPurchaseOrderTypeAdapter(); >- } >- @Override >- public Adapter caseUKAddress(UKAddress object) >- { >- return createUKAddressAdapter(); >- } >- @Override >- public Adapter caseUSAddress(USAddress object) >- { >- return createUSAddressAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.Address <em>Address</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.Address >- * @generated >- */ >- public Adapter createAddressAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.DocumentRoot >- * @generated >- */ >- public Adapter createDocumentRootAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.Items <em>Items</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.Items >- * @generated >- */ >- public Adapter createItemsAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.ItemType <em>Item Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.ItemType >- * @generated >- */ >- public Adapter createItemTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.PurchaseOrderType <em>Purchase Order Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.PurchaseOrderType >- * @generated >- */ >- public Adapter createPurchaseOrderTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.UKAddress <em>UK Address</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.UKAddress >- * @generated >- */ >- public Adapter createUKAddressAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.ipo.USAddress <em>US Address</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.ipo.USAddress >- * @generated >- */ >- public Adapter createUSAddressAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //IPOAdapterFactory >Index: src/org/eclipse/emf/test/models/ipo/util/IPOXMLProcessor.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOXMLProcessor.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOXMLProcessor.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOXMLProcessor.java 18 Jan 2007 22:06:43 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,68 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOXMLProcessor.java,v 1.2 2007/01/18 22:06:43 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import java.util.Map; >- >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.xmi.util.XMLProcessor; >- >-import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl; >- >-/** >- * This class contains helper methods to serialize and deserialize XML documents >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-public class IPOXMLProcessor extends XMLProcessor >-{ >- >- /** >- * Public constructor to instantiate the helper. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOXMLProcessor() >- { >- super((EPackage.Registry.INSTANCE)); >- IPOPackageImpl.eINSTANCE.eClass(); >- } >- >- /** >- * Register for "*" and "xml" file extensions the IPOResourceFactoryImpl factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected Map<String, Resource.Factory> getRegistrations() >- { >- if (registrations == null) >- { >- super.getRegistrations(); >- registrations.put(XML_EXTENSION, new IPOResourceFactoryImpl()); >- registrations.put(STAR_EXTENSION, new IPOResourceFactoryImpl()); >- } >- return registrations; >- } >- >-} //IPOXMLProcessor >Index: src/org/eclipse/emf/test/models/ipo/util/IPOValidator.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/ipo/util/IPOValidator.java >diff -N src/org/eclipse/emf/test/models/ipo/util/IPOValidator.java >--- src/org/eclipse/emf/test/models/ipo/util/IPOValidator.java 9 May 2008 20:10:32 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,409 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: IPOValidator.java,v 1.4 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.ipo.util; >- >-import java.math.BigInteger; >- >-import java.util.Map; >- >-import org.eclipse.emf.common.util.DiagnosticChain; >- >-import org.eclipse.emf.common.util.ResourceLocator; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.util.EObjectValidator; >- >-import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil; >-import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; >- >-import org.eclipse.emf.test.models.ipo.*; >- >-import org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Validator</b> for the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl >- * @generated >- */ >-public class IPOValidator extends EObjectValidator >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final IPOValidator INSTANCE = new IPOValidator(); >- >- /** >- * 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. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.common.util.Diagnostic#getSource() >- * @see org.eclipse.emf.common.util.Diagnostic#getCode() >- * @generated >- */ >- public static final String DIAGNOSTIC_SOURCE = "org.eclipse.emf.test.models.ipo"; >- >- /** >- * A constant with a fixed name that can be used as the base value for additional hand written constants. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; >- >- /** >- * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; >- >- /** >- * The cached base package validator. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected XMLTypeValidator xmlTypeValidator; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public IPOValidator() >- { >- super(); >- xmlTypeValidator = XMLTypeValidator.INSTANCE; >- } >- >- /** >- * Returns the package of this validator switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EPackage getEPackage() >- { >- return IPOPackageImpl.eINSTANCE; >- } >- >- /** >- * Calls <code>validateXXX</code> for the corresponding classifier of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- switch (classifierID) >- { >- case IPOPackageImpl.ADDRESS: >- return validateAddress((Address)value, diagnostics, context); >- case IPOPackageImpl.DOCUMENT_ROOT: >- return validateDocumentRoot((DocumentRoot)value, diagnostics, context); >- case IPOPackageImpl.ITEMS: >- return validateItems((Items)value, diagnostics, context); >- case IPOPackageImpl.ITEM_TYPE: >- return validateItemType((ItemType)value, diagnostics, context); >- case IPOPackageImpl.PURCHASE_ORDER_TYPE: >- return validatePurchaseOrderType((PurchaseOrderType)value, diagnostics, context); >- case IPOPackageImpl.UK_ADDRESS: >- return validateUKAddress((UKAddress)value, diagnostics, context); >- case IPOPackageImpl.US_ADDRESS: >- return validateUSAddress((USAddress)value, diagnostics, context); >- case IPOPackageImpl.US_STATE: >- return validateUSState((USState)value, diagnostics, context); >- case IPOPackageImpl.POSTCODE: >- return validatePostcode((String)value, diagnostics, context); >- case IPOPackageImpl.QUANTITY_TYPE: >- return validateQuantityType((BigInteger)value, diagnostics, context); >- case IPOPackageImpl.SKU: >- return validateSKU((String)value, diagnostics, context); >- case IPOPackageImpl.UK_POSTCODE: >- return validateUKPostcode((String)value, diagnostics, context); >- case IPOPackageImpl.US_STATE_OBJECT: >- return validateUSStateObject((USState)value, diagnostics, context); >- default: >- return true; >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateAddress(Address address, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)address, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)documentRoot, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateItems(Items items, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)items, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateItemType(ItemType itemType, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)itemType, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validatePurchaseOrderType(PurchaseOrderType purchaseOrderType, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)purchaseOrderType, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUKAddress(UKAddress ukAddress, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)ukAddress, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUSAddress(USAddress usAddress, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validate_EveryDefaultConstraint((EObject)usAddress, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUSState(USState usState, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return true; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validatePostcode(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- boolean result = validatePostcode_MinLength(postcode, diagnostics, context); >- if (result || diagnostics != null) result &= validatePostcode_MaxLength(postcode, diagnostics, context); >- return result; >- } >- >- /** >- * Validates the MinLength constraint of '<em>Postcode</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validatePostcode_MinLength(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- int length = postcode.length(); >- boolean result = length >= 7; >- if (!result && diagnostics != null) >- reportMinLengthViolation(IPOPackageImpl.Literals.POSTCODE, postcode, length, 7, diagnostics, context); >- return result; >- } >- >- /** >- * Validates the MaxLength constraint of '<em>Postcode</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validatePostcode_MaxLength(String postcode, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- int length = postcode.length(); >- boolean result = length <= 7; >- if (!result && diagnostics != null) >- reportMaxLengthViolation(IPOPackageImpl.Literals.POSTCODE, postcode, length, 7, diagnostics, context); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateQuantityType(BigInteger quantityType, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- boolean result = xmlTypeValidator.validatePositiveInteger_Min(quantityType, diagnostics, context); >- if (result || diagnostics != null) result &= validateQuantityType_Max(quantityType, diagnostics, context); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @see #validateQuantityType_Max >- */ >- public static final BigInteger QUANTITY_TYPE__MAX__VALUE = new BigInteger("100"); >- >- /** >- * Validates the Max constraint of '<em>Quantity Type</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateQuantityType_Max(BigInteger quantityType, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- boolean result = quantityType.compareTo(QUANTITY_TYPE__MAX__VALUE) < 0; >- if (!result && diagnostics != null) >- reportMaxViolation(IPOPackageImpl.Literals.QUANTITY_TYPE, quantityType, QUANTITY_TYPE__MAX__VALUE, false, diagnostics, context); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateSKU(String sku, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- boolean result = validateSKU_Pattern(sku, diagnostics, context); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @see #validateSKU_Pattern >- */ >- public static final PatternMatcher [][] SKU__PATTERN__VALUES = >- new PatternMatcher [][] >- { >- new PatternMatcher [] >- { >- XMLTypeUtil.createPatternMatcher("\\d{3}-[A-Z]{2}") >- } >- }; >- >- /** >- * Validates the Pattern constraint of '<em>SKU</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateSKU_Pattern(String sku, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validatePattern(IPOPackageImpl.Literals.SKU, sku, SKU__PATTERN__VALUES, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUKPostcode(String ukPostcode, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- boolean result = validatePostcode_MinLength(ukPostcode, diagnostics, context); >- if (result || diagnostics != null) result &= validatePostcode_MaxLength(ukPostcode, diagnostics, context); >- if (result || diagnostics != null) result &= validateUKPostcode_Pattern(ukPostcode, diagnostics, context); >- return result; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @see #validateUKPostcode_Pattern >- */ >- public static final PatternMatcher [][] UK_POSTCODE__PATTERN__VALUES = >- new PatternMatcher [][] >- { >- new PatternMatcher [] >- { >- XMLTypeUtil.createPatternMatcher("[A-Z]{2}\\d\\s\\d[A-Z]{2}") >- } >- }; >- >- /** >- * Validates the Pattern constraint of '<em>UK Postcode</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUKPostcode_Pattern(String ukPostcode, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return validatePattern(IPOPackageImpl.Literals.UK_POSTCODE, ukPostcode, UK_POSTCODE__PATTERN__VALUES, diagnostics, context); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean validateUSStateObject(USState usStateObject, DiagnosticChain diagnostics, Map<Object, Object> context) >- { >- return true; >- } >- >- /** >- * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated NOT >- */ >- @Override >- public ResourceLocator getResourceLocator() >- { >- return super.getResourceLocator(); >- } >- >-} //IPOValidator >Index: src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java >diff -N src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java >--- src/org/eclipse/emf/test/models/personal/util/PersonalResourceImpl.java 18 Jan 2007 22:06:38 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,44 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalResourceImpl.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource </b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.util.PersonalResourceFactoryImpl >- * @generated >- */ >-public class PersonalResourceImpl extends XMLResourceImpl >-{ >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param uri the URI of the new resource. >- * @generated >- */ >- public PersonalResourceImpl(URI uri) >- { >- super(uri); >- } >- >-} //PersonalResourceImpl >Index: src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java >diff -N src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java >--- src/org/eclipse/emf/test/models/personal/util/PersonalSwitch.java 12 Jun 2007 21:15:19 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,269 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalSwitch.java,v 1.4 2007/06/12 21:15:19 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.util; >- >-import java.util.List; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.personal.*; >- >-import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Switch</b> for the model's inheritance hierarchy. >- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} >- * to invoke the <code>caseXXX</code> method for each class of the model, >- * starting with the actual class of the object >- * and proceeding up the inheritance hierarchy >- * until a non-null result is returned, >- * which is the result of the switch. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl >- * @generated >- */ >-public class PersonalSwitch<T> >-{ >- /** >- * The cached model package >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static PersonalPackageImpl modelPackage; >- >- /** >- * Creates an instance of the switch. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalSwitch() >- { >- if (modelPackage == null) >- { >- modelPackage = PersonalPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- public T doSwitch(EObject theEObject) >- { >- return doSwitch(theEObject.eClass(), theEObject); >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(EClass theEClass, EObject theEObject) >- { >- if (theEClass.eContainer() == modelPackage) >- { >- return doSwitch(theEClass.getClassifierID(), theEObject); >- } >- else >- { >- List<EClass> eSuperTypes = theEClass.getESuperTypes(); >- return >- eSuperTypes.isEmpty() ? >- defaultCase(theEObject) : >- doSwitch(eSuperTypes.get(0), theEObject); >- } >- } >- >- /** >- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the first non-null result returned by a <code>caseXXX</code> call. >- * @generated >- */ >- protected T doSwitch(int classifierID, EObject theEObject) >- { >- switch (classifierID) >- { >- case PersonalPackageImpl.DOCUMENT_ROOT: >- { >- DocumentRoot documentRoot = (DocumentRoot)theEObject; >- T result = caseDocumentRoot(documentRoot); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case PersonalPackageImpl.LINK_TYPE: >- { >- LinkType linkType = (LinkType)theEObject; >- T result = caseLinkType(linkType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case PersonalPackageImpl.NAME_TYPE: >- { >- NameType nameType = (NameType)theEObject; >- T result = caseNameType(nameType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case PersonalPackageImpl.PERSONNEL_TYPE: >- { >- PersonnelType personnelType = (PersonnelType)theEObject; >- T result = casePersonnelType(personnelType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case PersonalPackageImpl.PERSON_TYPE: >- { >- PersonType personType = (PersonType)theEObject; >- T result = casePersonType(personType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- case PersonalPackageImpl.URL_TYPE: >- { >- UrlType urlType = (UrlType)theEObject; >- T result = caseUrlType(urlType); >- if (result == null) result = defaultCase(theEObject); >- return result; >- } >- default: return defaultCase(theEObject); >- } >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Document Root</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseDocumentRoot(DocumentRoot object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Link Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Link Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseLinkType(LinkType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Name Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Name Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseNameType(NameType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Personnel Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Personnel Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T casePersonnelType(PersonnelType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Person Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Person Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T casePersonType(PersonType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>Url Type</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>Url Type</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) >- * @generated >- */ >- public T caseUrlType(UrlType object) >- { >- return null; >- } >- >- /** >- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. >- * <!-- begin-user-doc --> >- * This implementation returns null; >- * returning a non-null result will terminate the switch, but this is the last case anyway. >- * <!-- end-user-doc --> >- * @param object the target of the switch. >- * @return the result of interpreting the object as an instance of '<em>EObject</em>'. >- * @see #doSwitch(org.eclipse.emf.ecore.EObject) >- * @generated >- */ >- public T defaultCase(EObject object) >- { >- return null; >- } >- >-} //PersonalSwitch >Index: src/org/eclipse/emf/test/models/personal/util/PersonalAdapterFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/util/PersonalAdapterFactory.java >diff -N src/org/eclipse/emf/test/models/personal/util/PersonalAdapterFactory.java >--- src/org/eclipse/emf/test/models/personal/util/PersonalAdapterFactory.java 9 May 2008 20:10:32 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,248 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalAdapterFactory.java,v 1.3 2008/05/09 20:10:32 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.personal.util; >- >-import org.eclipse.emf.common.notify.Adapter; >-import org.eclipse.emf.common.notify.Notifier; >- >-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; >- >-import org.eclipse.emf.ecore.EObject; >- >-import org.eclipse.emf.test.models.personal.*; >- >-import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Adapter Factory</b> for the model. >- * It provides an adapter <code>createXXX</code> method for each class of the model. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl >- * @generated >- */ >-public class PersonalAdapterFactory extends AdapterFactoryImpl >-{ >- /** >- * The cached model package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected static PersonalPackageImpl modelPackage; >- >- /** >- * Creates an instance of the adapter factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalAdapterFactory() >- { >- if (modelPackage == null) >- { >- modelPackage = PersonalPackageImpl.eINSTANCE; >- } >- } >- >- /** >- * Returns whether this factory is applicable for the type of the object. >- * <!-- begin-user-doc --> >- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. >- * <!-- end-user-doc --> >- * @return whether this factory is applicable for the type of the object. >- * @generated >- */ >- @Override >- public boolean isFactoryForType(Object object) >- { >- if (object == modelPackage) >- { >- return true; >- } >- if (object instanceof EObject) >- { >- return ((EObject)object).eClass().getEPackage() == modelPackage; >- } >- return false; >- } >- >- /** >- * The switch that delegates to the <code>createXXX</code> methods. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected PersonalSwitch<Adapter> modelSwitch = >- new PersonalSwitch<Adapter>() >- { >- @Override >- public Adapter caseDocumentRoot(DocumentRoot object) >- { >- return createDocumentRootAdapter(); >- } >- @Override >- public Adapter caseLinkType(LinkType object) >- { >- return createLinkTypeAdapter(); >- } >- @Override >- public Adapter caseNameType(NameType object) >- { >- return createNameTypeAdapter(); >- } >- @Override >- public Adapter casePersonnelType(PersonnelType object) >- { >- return createPersonnelTypeAdapter(); >- } >- @Override >- public Adapter casePersonType(PersonType object) >- { >- return createPersonTypeAdapter(); >- } >- @Override >- public Adapter caseUrlType(UrlType object) >- { >- return createUrlTypeAdapter(); >- } >- @Override >- public Adapter defaultCase(EObject object) >- { >- return createEObjectAdapter(); >- } >- }; >- >- /** >- * Creates an adapter for the <code>target</code>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param target the object to adapt. >- * @return the adapter for the <code>target</code>. >- * @generated >- */ >- @Override >- public Adapter createAdapter(Notifier target) >- { >- return modelSwitch.doSwitch((EObject)target); >- } >- >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.DocumentRoot <em>Document Root</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.DocumentRoot >- * @generated >- */ >- public Adapter createDocumentRootAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.LinkType <em>Link Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.LinkType >- * @generated >- */ >- public Adapter createLinkTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.NameType <em>Name Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.NameType >- * @generated >- */ >- public Adapter createNameTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.PersonnelType <em>Personnel Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.PersonnelType >- * @generated >- */ >- public Adapter createPersonnelTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.PersonType <em>Person Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.PersonType >- * @generated >- */ >- public Adapter createPersonTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for an object of class '{@link org.eclipse.emf.test.models.personal.UrlType <em>Url Type</em>}'. >- * <!-- begin-user-doc --> >- * This default implementation returns null so that we can easily ignore cases; >- * it's useful to ignore a case when inheritance will catch all the cases anyway. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @see org.eclipse.emf.test.models.personal.UrlType >- * @generated >- */ >- public Adapter createUrlTypeAdapter() >- { >- return null; >- } >- >- /** >- * Creates a new adapter for the default case. >- * <!-- begin-user-doc --> >- * This default implementation returns null. >- * <!-- end-user-doc --> >- * @return the new adapter. >- * @generated >- */ >- public Adapter createEObjectAdapter() >- { >- return null; >- } >- >-} //PersonalAdapterFactory >Index: src/org/eclipse/emf/test/models/personal/util/PersonalXMLProcessor.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/util/PersonalXMLProcessor.java >diff -N src/org/eclipse/emf/test/models/personal/util/PersonalXMLProcessor.java >--- src/org/eclipse/emf/test/models/personal/util/PersonalXMLProcessor.java 18 Jan 2007 22:06:38 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,68 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalXMLProcessor.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.util; >- >-import java.util.Map; >- >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.xmi.util.XMLProcessor; >- >-import org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl; >- >-/** >- * This class contains helper methods to serialize and deserialize XML documents >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >-public class PersonalXMLProcessor extends XMLProcessor >-{ >- >- /** >- * Public constructor to instantiate the helper. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalXMLProcessor() >- { >- super((EPackage.Registry.INSTANCE)); >- PersonalPackageImpl.eINSTANCE.eClass(); >- } >- >- /** >- * Register for "*" and "xml" file extensions the PersonalResourceFactoryImpl factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected Map<String, Resource.Factory> getRegistrations() >- { >- if (registrations == null) >- { >- super.getRegistrations(); >- registrations.put(XML_EXTENSION, new PersonalResourceFactoryImpl()); >- registrations.put(STAR_EXTENSION, new PersonalResourceFactoryImpl()); >- } >- return registrations; >- } >- >-} //PersonalXMLProcessor >Index: src/org/eclipse/emf/test/models/personal/util/PersonalResourceFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/personal/util/PersonalResourceFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/personal/util/PersonalResourceFactoryImpl.java >--- src/org/eclipse/emf/test/models/personal/util/PersonalResourceFactoryImpl.java 18 Jan 2007 22:06:38 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,69 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: PersonalResourceFactoryImpl.java,v 1.2 2007/01/18 22:06:38 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.personal.util; >- >-import org.eclipse.emf.common.util.URI; >- >-import org.eclipse.emf.ecore.resource.Resource; >- >-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; >- >-import org.eclipse.emf.ecore.xmi.XMLResource; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Resource Factory</b> associated with the package. >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.personal.util.PersonalResourceImpl >- * @generated >- */ >-public class PersonalResourceFactoryImpl extends ResourceFactoryImpl >-{ >- /** >- * Creates an instance of the resource factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public PersonalResourceFactoryImpl() >- { >- super(); >- } >- >- /** >- * Creates an instance of the resource. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Resource createResource(URI uri) >- { >- XMLResource result = new PersonalResourceImpl(uri); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); >- >- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); >- >- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); >- return result; >- } >- >-} //PersonalResourceFactoryImpl >Index: models/sdo.Personal/personal.xsd >=================================================================== >RCS file: models/sdo.Personal/personal.xsd >diff -N models/sdo.Personal/personal.xsd >--- models/sdo.Personal/personal.xsd 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,63 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personal" >-xmlns="http:///org.eclipse.emf.test.models/personal" >-xmlns:xs='http://www.w3.org/2001/XMLSchema'> >- >- <xs:element name="personnel"> >- <xs:complexType> >- <xs:sequence> >- <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/> >- </xs:sequence> >- </xs:complexType> >- </xs:element> >- >- <xs:element name="person" type="personType"/> >- >- <xs:complexType name="personType"> >- <xs:sequence> >- <xs:element ref="name"/> >- <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/> >- <xs:element ref="url" minOccurs='0' maxOccurs='unbounded'/> >- <xs:element ref="link" minOccurs='0' maxOccurs='1'/> >- </xs:sequence> >- <xs:attribute name="id" type="xs:ID" use='required'/> >- <xs:attribute name="contr" default="false"> >- <xs:simpleType> >- <xs:restriction base = "xs:string"> >- <xs:enumeration value="true"/> >- <xs:enumeration value="false"/> >- </xs:restriction> >- </xs:simpleType> >- </xs:attribute> >- <xs:attribute name="salary" type="xs:integer"/> >- </xs:complexType> >- >- <xs:element name="name" type="nameType"/> >- >- >- <xs:complexType name="nameType"> >- <xs:all> >- <xs:element ref="family"/> >- <xs:element ref="given"/> >- </xs:all> >- </xs:complexType> >- >- <xs:element name="family" type='xs:string'/> >- >- <xs:element name="given" type='xs:string'/> >- >- <xs:element name="email" type='xs:string'/> >- >- <xs:element name="url"> >- <xs:complexType> >- <xs:attribute name="href" type="xs:string" default="http://"/> >- </xs:complexType> >- </xs:element> >- >- <xs:element name="link" type="linkType"/> >- <xs:complexType name ="linkType"> >- <xs:attribute name="manager" type="xs:IDREF"/> >- <xs:attribute name="subordinates" type="xs:IDREFS"/> >- </xs:complexType> >- >-</xs:schema> >Index: models/sdo.Personal/personal.ecore >=================================================================== >RCS file: models/sdo.Personal/personal.ecore >diff -N models/sdo.Personal/personal.ecore >--- models/sdo.Personal/personal.ecore 15 Jun 2007 21:22:17 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,241 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="personal" >- nsURI="http:///org.eclipse.emf.test.models/personal" nsPrefix="personal"> >- <eClassifiers xsi:type="ecore:EEnum" name="ContrType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="contr_._type"/> >- </eAnnotations> >- <eLiterals name="true"/> >- <eLiterals name="false" value="1"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="ContrTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="contr_._type:Object"/> >- <details key="baseType" value="contr_._type"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value=""/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xmlns:prefix"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xsi:schemaLocation"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-2" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="email"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" unique="false" >- upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- volatile="true" transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="family"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" unique="false" upperBound="-2" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="given"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-2" eType="#//LinkType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="link"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="name" upperBound="-2" eType="#//NameType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="name"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="person" upperBound="-2" >- eType="#//PersonType" volatile="true" transient="true" derived="true" containment="true" >- resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="person"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="personnel" upperBound="-2" >- eType="#//PersonnelType" volatile="true" transient="true" derived="true" containment="true" >- resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="personnel"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-2" eType="#//UrlType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="url"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="LinkType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="linkType"/> >- <details key="kind" value="empty"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manager" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREF"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="manager"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="subordinates" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREFS"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="subordinates"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="NameType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="nameType"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="family"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="given"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="PersonnelType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="personnel_._type"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EReference" name="person" lowerBound="1" >- upperBound="-1" eType="#//PersonType" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="person"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="PersonType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="personType"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EReference" name="name" lowerBound="1" eType="#//NameType" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="name"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="email"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-1" eType="#//UrlType" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="url"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="link" eType="#//LinkType" >- containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="link"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contr" eType="#//ContrType" >- defaultValueLiteral="false" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="contr"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//ID" >- iD="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="id"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="salary"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="UrlType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="url_._type"/> >- <details key="kind" value="empty"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="href" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- defaultValueLiteral="http://" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="href"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >-</ecore:EPackage> >Index: models/sdo.Personal/personalMixed.xsd >=================================================================== >RCS file: models/sdo.Personal/personalMixed.xsd >diff -N models/sdo.Personal/personalMixed.xsd >--- models/sdo.Personal/personalMixed.xsd 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,64 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<xs:schema targetNamespace="http:///org.eclipse.emf.test.models/personalMixed" >-xmlns="http:///org.eclipse.emf.test.models/personalMixed" >-xmlns:xs='http://www.w3.org/2001/XMLSchema'> >- >- <xs:element name="personnel"> >- <xs:complexType> >- <xs:sequence> >- <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/> >- </xs:sequence> >- </xs:complexType> >- </xs:element> >- >- <xs:element name="person" type="personType"/> >- >- <xs:complexType name="personType" mixed="true"> >- <xs:sequence> >- <xs:element ref="name"/> >- <xs:element ref="email" minOccurs='0' maxOccurs='unbounded'/> >- <xs:element ref="url" minOccurs='0' maxOccurs='unbounded'/> >- <xs:element ref="link"/> >- <xs:any processContents="lax" minOccurs="0"/> >- </xs:sequence> >- <xs:attribute name="id" type="xs:ID" use='required'/> >- <xs:attribute name="contr" default="false"> >- <xs:simpleType> >- <xs:restriction base = "xs:string"> >- <xs:enumeration value="true"/> >- <xs:enumeration value="false"/> >- </xs:restriction> >- </xs:simpleType> >- </xs:attribute> >- <xs:attribute name="salary" type="xs:integer"/> >- </xs:complexType> >- >- <xs:element name="name" type="nameType"/> >- >- >- <xs:complexType name="nameType" mixed="true"> >- <xs:sequence> >- <xs:element ref="family"/> >- <xs:element ref="given"/> >- </xs:sequence> >- </xs:complexType> >- >- <xs:element name="family" type='xs:string'/> >- >- <xs:element name="given" type='xs:string'/> >- >- <xs:element name="email" type='xs:string'/> >- >- <xs:element name="url"> >- <xs:complexType> >- <xs:attribute name="href" type="xs:string" default="http://"/> >- </xs:complexType> >- </xs:element> >- >- <xs:element name="link" type="linkType"/> >- <xs:complexType name ="linkType" mixed="true"> >- <xs:attribute name="manager" type="xs:IDREF"/> >- <xs:attribute name="subordinates" type="xs:IDREFS"/> >- </xs:complexType> >- >-</xs:schema> >Index: models/sdo.Personal/mixed.ecore >=================================================================== >RCS file: models/sdo.Personal/mixed.ecore >diff -N models/sdo.Personal/mixed.ecore >--- models/sdo.Personal/mixed.ecore 15 Jun 2007 21:22:17 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,274 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mixed" >- nsURI="http:///org.eclipse.emf.test.models/personalMixed" nsPrefix="mixed"> >- <eClassifiers xsi:type="ecore:EEnum" name="ContrType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="contr_._type"/> >- </eAnnotations> >- <eLiterals name="true"/> >- <eLiterals name="false" value="1"/> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="ContrTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="contr_._type:Object"/> >- <details key="baseType" value="contr_._type"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value=""/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xmlns:prefix"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1" >- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry" >- transient="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="xsi:schemaLocation"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-2" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="email"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" unique="false" >- upperBound="-2" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- volatile="true" transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="family"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" unique="false" upperBound="-2" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="given"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="link" upperBound="-2" eType="#//LinkType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="link"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="name" upperBound="-2" eType="#//NameType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="name"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="person" upperBound="-2" >- eType="#//PersonType" volatile="true" transient="true" derived="true" containment="true" >- resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="person"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="personnel" upperBound="-2" >- eType="#//PersonnelType" volatile="true" transient="true" derived="true" containment="true" >- resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="personnel"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-2" eType="#//UrlType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="url"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="LinkType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="linkType"/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manager" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREF"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="manager"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="subordinates" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//IDREFS"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="subordinates"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="NameType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="nameType"/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="family" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="family"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="given" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- volatile="true" transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="given"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="PersonnelType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="personnel_._type"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EReference" name="person" lowerBound="1" >- upperBound="-1" eType="#//PersonType" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="person"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="PersonType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="personType"/> >- <details key="kind" value="mixed"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="name" value=":mixed"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="name" lowerBound="1" eType="#//NameType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="name"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="email" unique="false" upperBound="-1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" volatile="true" >- transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="email"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="url" upperBound="-1" eType="#//UrlType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="url"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EReference" name="link" lowerBound="1" eType="#//LinkType" >- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="link"/> >- <details key="namespace" value="##targetNamespace"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="any" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry" >- volatile="true" transient="true" derived="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="elementWildcard"/> >- <details key="wildcards" value="##any"/> >- <details key="name" value=":5"/> >- <details key="processing" value="lax"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="contr" eType="#//ContrType" >- defaultValueLiteral="false" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="contr"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//ID" >- iD="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="id"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="salary"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EClass" name="UrlType"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="url_._type"/> >- <details key="kind" value="empty"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="href" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String" >- defaultValueLiteral="http://" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="attribute"/> >- <details key="name" value="href"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >-</ecore:EPackage> >Index: models/sdo.Personal/personalMixed.genmodel >=================================================================== >RCS file: models/sdo.Personal/personalMixed.genmodel >diff -N models/sdo.Personal/personalMixed.genmodel >--- models/sdo.Personal/personalMixed.genmodel 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,63 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="PersonalMixed" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"> >- <foreignModel>personalMixed.xsd</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="Mixed" basePackage="org.eclipse.emf.test.models.personal" resource="XML" >- disposableProviderFactory="true" ecorePackage="mixed.ecore#/"> >- <genEnums typeSafeEnumCompatible="false" ecoreEnum="mixed.ecore#//ContrType"> >- <genEnumLiterals ecoreEnumLiteral="mixed.ecore#//ContrType/true"/> >- <genEnumLiterals ecoreEnumLiteral="mixed.ecore#//ContrType/false"/> >- </genEnums> >- <genDataTypes ecoreDataType="mixed.ecore#//ContrTypeObject"/> >- <genClasses ecoreClass="mixed.ecore#//DocumentRoot"> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/mixed"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/xMLNSPrefixMap"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/xSISchemaLocation"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/email"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/family"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//DocumentRoot/given"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/link"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/name"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/person"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/personnel"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//DocumentRoot/url"/> >- </genClasses> >- <genClasses ecoreClass="mixed.ecore#//LinkType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/mixed"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/manager"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//LinkType/subordinates"/> >- </genClasses> >- <genClasses ecoreClass="mixed.ecore#//NameType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/mixed"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/family"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//NameType/given"/> >- </genClasses> >- <genClasses ecoreClass="mixed.ecore#//PersonnelType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mixed.ecore#//PersonnelType/person"/> >- </genClasses> >- <genClasses ecoreClass="mixed.ecore#//PersonType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/mixed"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/name"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/email"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/url"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference mixed.ecore#//PersonType/link"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/any"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/contr"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/id"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//PersonType/salary"/> >- </genClasses> >- <genClasses ecoreClass="mixed.ecore#//UrlType"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mixed.ecore#//UrlType/href"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: models/sdo.Personal/personal.genmodel >=================================================================== >RCS file: models/sdo.Personal/personal.genmodel >diff -N models/sdo.Personal/personal.genmodel >--- models/sdo.Personal/personal.genmodel 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,59 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="Personal" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"> >- <foreignModel>personal.xsd</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="Personal" basePackage="org.eclipse.emf.test.models" resource="XML" >- disposableProviderFactory="true" ecorePackage="personal.ecore#/"> >- <genEnums typeSafeEnumCompatible="false" ecoreEnum="personal.ecore#//ContrType"> >- <genEnumLiterals ecoreEnumLiteral="personal.ecore#//ContrType/true"/> >- <genEnumLiterals ecoreEnumLiteral="personal.ecore#//ContrType/false"/> >- </genEnums> >- <genDataTypes ecoreDataType="personal.ecore#//ContrTypeObject"/> >- <genClasses ecoreClass="personal.ecore#//DocumentRoot"> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/mixed"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/xMLNSPrefixMap"/> >- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/xSISchemaLocation"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/email"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/family"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//DocumentRoot/given"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/link"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/name"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/person"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/personnel"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//DocumentRoot/url"/> >- </genClasses> >- <genClasses ecoreClass="personal.ecore#//LinkType"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//LinkType/manager"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//LinkType/subordinates"/> >- </genClasses> >- <genClasses ecoreClass="personal.ecore#//NameType"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//NameType/family"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//NameType/given"/> >- </genClasses> >- <genClasses ecoreClass="personal.ecore#//PersonnelType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonnelType/person"/> >- </genClasses> >- <genClasses ecoreClass="personal.ecore#//PersonType"> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/name"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/email"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/url"/> >- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference personal.ecore#//PersonType/link"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/contr"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/id"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//PersonType/salary"/> >- </genClasses> >- <genClasses ecoreClass="personal.ecore#//UrlType"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute personal.ecore#//UrlType/href"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java >--- src/org/eclipse/emf/test/models/sdo/simple/impl/SimplePackageImpl.java 15 Jun 2007 21:22:17 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,687 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimplePackageImpl.java,v 1.3 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.impl; >- >-import org.eclipse.emf.ecore.EAttribute; >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EFactory; >-import org.eclipse.emf.ecore.EPackage; >-import org.eclipse.emf.ecore.EReference; >- >-import org.eclipse.emf.ecore.impl.EPackageImpl; >- >-import org.eclipse.emf.ecore.xml.type.XMLTypePackage; >- >-import org.eclipse.emf.test.models.sdo.simple.Quote; >-import org.eclipse.emf.test.models.sdo.simple.SimpleFactory; >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Package</b> for the model. >- * It contains accessors for the meta objects to represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.SimpleFactory >- * @model kind="package" >- * @generated >- */ >-public class SimplePackageImpl extends EPackageImpl >-{ >- /** >- * The package name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNAME = "simple"; >- >- /** >- * The package namespace URI. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_URI = "http:///org.eclipse.emf.test.models/simple"; >- >- /** >- * The package namespace name. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final String eNS_PREFIX = "simple"; >- >- /** >- * The singleton instance of the package. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final SimplePackageImpl eINSTANCE = org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl.init(); >- >- /** >- * The meta object id for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl >- * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote() >- * @generated >- */ >- public static final int QUOTE = 0; >- >- /** >- * The feature id for the '<em><b>Symbol</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__SYMBOL = 0; >- >- /** >- * The feature id for the '<em><b>Company Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__COMPANY_NAME = 1; >- >- /** >- * The feature id for the '<em><b>Price</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__PRICE = 2; >- >- /** >- * The feature id for the '<em><b>Open1</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__OPEN1 = 3; >- >- /** >- * The feature id for the '<em><b>High</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__HIGH = 4; >- >- /** >- * The feature id for the '<em><b>Low</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__LOW = 5; >- >- /** >- * The feature id for the '<em><b>Volume</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__VOLUME = 6; >- >- /** >- * The feature id for the '<em><b>Change1</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__CHANGE1 = 7; >- >- /** >- * The feature id for the '<em><b>Quotes</b></em>' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE__QUOTES = 8; >- >- /** >- * The number of structural features of the '<em>Quote</em>' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- public static final int QUOTE_FEATURE_COUNT = 9; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private EClass quoteEClass = null; >- >- /** >- * Creates an instance of the model <b>Package</b>, registered with >- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package >- * package URI value. >- * <p>Note: the correct way to create the package is via the static >- * factory method {@link #init init()}, which also performs >- * initialization of the package, or returns the registered package, >- * if one already exists. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.ecore.EPackage.Registry >- * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#eNS_URI >- * @see #init() >- * @generated >- */ >- private SimplePackageImpl() >- { >- super(eNS_URI, ((EFactory)SimpleFactory.INSTANCE)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static boolean isInited = false; >- >- /** >- * Creates, registers, and initializes the <b>Package</b> for this >- * model, and for any others upon which it depends. Simple >- * dependencies are satisfied by calling this method on all >- * dependent packages before doing anything else. This method drives >- * initialization for interdependent packages directly, in parallel >- * with this package, itself. >- * <p>Of this package and its interdependencies, all packages which >- * have not yet been registered by their URI values are first created >- * and registered. The packages are then initialized in two steps: >- * meta-model objects for all of the packages are created before any >- * are initialized, since one package's meta-model objects may refer to >- * those of another. >- * <p>Invocation of this method will not affect any packages that have >- * already been initialized. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #eNS_URI >- * @see #createPackageContents() >- * @see #initializePackageContents() >- * @generated >- */ >- public static SimplePackageImpl init() >- { >- if (isInited) return (SimplePackageImpl)EPackage.Registry.INSTANCE.getEPackage(SimplePackageImpl.eNS_URI); >- >- // Obtain or create and register package >- SimplePackageImpl theSimplePackageImpl = (SimplePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof SimplePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new SimplePackageImpl()); >- >- isInited = true; >- >- // Initialize simple dependencies >- XMLTypePackage.eINSTANCE.eClass(); >- >- // Create package meta-data objects >- theSimplePackageImpl.createPackageContents(); >- >- // Initialize created meta-data >- theSimplePackageImpl.initializePackageContents(); >- >- // Mark meta-data to indicate it can't be changed >- theSimplePackageImpl.freeze(); >- >- return theSimplePackageImpl; >- } >- >- >- /** >- * Returns the meta object for class '{@link org.eclipse.emf.test.models.sdo.simple.Quote <em>Quote</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for class '<em>Quote</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote >- * @generated >- */ >- public EClass getQuote() >- { >- return quoteEClass; >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Symbol</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Symbol() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(0); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Company Name</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_CompanyName() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(1); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Price</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getPrice() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Price() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(2); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Open1</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Open1() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(3); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>High</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getHigh() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_High() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(4); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Low</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getLow() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Low() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(5); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Volume</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getVolume() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Volume() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(6); >- } >- >- /** >- * Returns the meta object for the attribute '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the attribute '<em>Change1</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getChange1() >- * @see #getQuote() >- * @generated >- */ >- public EAttribute getQuote_Change1() >- { >- return (EAttribute)quoteEClass.getEStructuralFeatures().get(7); >- } >- >- /** >- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes <em>Quotes</em>}'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the meta object for the containment reference list '<em>Quotes</em>'. >- * @see org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes() >- * @see #getQuote() >- * @generated >- */ >- public EReference getQuote_Quotes() >- { >- return (EReference)quoteEClass.getEStructuralFeatures().get(8); >- } >- >- /** >- * Returns the factory that creates the instances of the model. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return the factory that creates the instances of the model. >- * @generated >- */ >- public SimpleFactory getSimpleFactory() >- { >- return (SimpleFactory)getEFactoryInstance(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isCreated = false; >- >- /** >- * Creates the meta-model objects for the package. This method is >- * guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void createPackageContents() >- { >- if (isCreated) return; >- isCreated = true; >- >- // Create classes and their features >- quoteEClass = createEClass(QUOTE); >- createEAttribute(quoteEClass, QUOTE__SYMBOL); >- createEAttribute(quoteEClass, QUOTE__COMPANY_NAME); >- createEAttribute(quoteEClass, QUOTE__PRICE); >- createEAttribute(quoteEClass, QUOTE__OPEN1); >- createEAttribute(quoteEClass, QUOTE__HIGH); >- createEAttribute(quoteEClass, QUOTE__LOW); >- createEAttribute(quoteEClass, QUOTE__VOLUME); >- createEAttribute(quoteEClass, QUOTE__CHANGE1); >- createEReference(quoteEClass, QUOTE__QUOTES); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private boolean isInitialized = false; >- >- /** >- * Complete the initialization of the package and its meta-model. This >- * method is guarded to have no affect on any invocation but its first. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void initializePackageContents() >- { >- if (isInitialized) return; >- isInitialized = true; >- >- // Initialize package >- setName(eNAME); >- setNsPrefix(eNS_PREFIX); >- setNsURI(eNS_URI); >- >- // Obtain other dependent packages >- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); >- >- // Create type parameters >- >- // Set bounds for type parameters >- >- // Add supertypes to classes >- >- // Initialize classes and features; add operations and parameters >- initEClass(quoteEClass, Quote.class, "Quote", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- 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); >- >- // Create resource >- createResource(eNS_URI); >- >- // Create annotations >- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData >- createExtendedMetaDataAnnotations(); >- } >- >- /** >- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected void createExtendedMetaDataAnnotations() >- { >- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; >- addAnnotation >- (quoteEClass, >- source, >- new String[] >- { >- "name", "Quote", >- "kind", "elementOnly" >- }); >- addAnnotation >- (getQuote_Symbol(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "symbol" >- }); >- addAnnotation >- (getQuote_CompanyName(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "companyName" >- }); >- addAnnotation >- (getQuote_Price(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "price" >- }); >- addAnnotation >- (getQuote_Open1(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "open1" >- }); >- addAnnotation >- (getQuote_High(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "high" >- }); >- addAnnotation >- (getQuote_Low(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "low" >- }); >- addAnnotation >- (getQuote_Volume(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "volume" >- }); >- addAnnotation >- (getQuote_Change1(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "change1" >- }); >- addAnnotation >- (getQuote_Quotes(), >- source, >- new String[] >- { >- "kind", "element", >- "name", "quotes" >- }); >- } >- >- /** >- * <!-- begin-user-doc --> >- * Defines literals for the meta objects that represent >- * <ul> >- * <li>each class,</li> >- * <li>each feature of each class,</li> >- * <li>each enum,</li> >- * <li>and each data type</li> >- * </ul> >- * <!-- end-user-doc --> >- * @generated >- */ >- public interface Literals >- { >- /** >- * The meta object literal for the '{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl <em>Quote</em>}' class. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl >- * @see org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl#getQuote() >- * @generated >- */ >- public static final EClass QUOTE = eINSTANCE.getQuote(); >- >- /** >- * The meta object literal for the '<em><b>Symbol</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__SYMBOL = eINSTANCE.getQuote_Symbol(); >- >- /** >- * The meta object literal for the '<em><b>Company Name</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__COMPANY_NAME = eINSTANCE.getQuote_CompanyName(); >- >- /** >- * The meta object literal for the '<em><b>Price</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__PRICE = eINSTANCE.getQuote_Price(); >- >- /** >- * The meta object literal for the '<em><b>Open1</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__OPEN1 = eINSTANCE.getQuote_Open1(); >- >- /** >- * The meta object literal for the '<em><b>High</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__HIGH = eINSTANCE.getQuote_High(); >- >- /** >- * The meta object literal for the '<em><b>Low</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__LOW = eINSTANCE.getQuote_Low(); >- >- /** >- * The meta object literal for the '<em><b>Volume</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__VOLUME = eINSTANCE.getQuote_Volume(); >- >- /** >- * The meta object literal for the '<em><b>Change1</b></em>' attribute feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EAttribute QUOTE__CHANGE1 = eINSTANCE.getQuote_Change1(); >- >- /** >- * The meta object literal for the '<em><b>Quotes</b></em>' containment reference list feature. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final EReference QUOTE__QUOTES = eINSTANCE.getQuote_Quotes(); >- >- } >- >-} //SimplePackageImpl >Index: src/org/eclipse/emf/test/models/sdo/simple/impl/SimpleFactoryImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/impl/SimpleFactoryImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/impl/SimpleFactoryImpl.java >--- src/org/eclipse/emf/test/models/sdo/simple/impl/SimpleFactoryImpl.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,128 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleFactoryImpl.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.impl; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.EObject; >-import org.eclipse.emf.ecore.EPackage; >- >-import org.eclipse.emf.ecore.impl.EFactoryImpl; >- >-import org.eclipse.emf.ecore.plugin.EcorePlugin; >- >-import org.eclipse.emf.test.models.sdo.simple.*; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model <b>Factory</b>. >- * <!-- end-user-doc --> >- * @generated >- */ >-public class SimpleFactoryImpl extends EFactoryImpl implements SimpleFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static final SimpleFactoryImpl eINSTANCE = init(); >- >- /** >- * Creates the default factory implementation. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public static SimpleFactoryImpl init() >- { >- try >- { >- SimpleFactoryImpl theSimpleFactory = (SimpleFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http:///org.eclipse.emf.test.models/simple"); >- if (theSimpleFactory != null) >- { >- return theSimpleFactory; >- } >- } >- catch (Exception exception) >- { >- EcorePlugin.INSTANCE.log(exception); >- } >- return new SimpleFactoryImpl(); >- } >- >- /** >- * Creates an instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimpleFactoryImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public EObject create(EClass eClass) >- { >- switch (eClass.getClassifierID()) >- { >- case SimplePackageImpl.QUOTE: return (EObject)createQuote(); >- default: >- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); >- } >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public Quote createQuote() >- { >- QuoteImpl quote = new QuoteImpl(); >- return quote; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public SimplePackageImpl getSimplePackageImpl() >- { >- return (SimplePackageImpl)getEPackage(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @deprecated >- * @generated >- */ >- @Deprecated >- public static SimplePackageImpl getPackage() >- { >- return SimplePackageImpl.eINSTANCE; >- } >- >-} //SimpleFactoryImpl >Index: src/org/eclipse/emf/test/models/sdo/simple/impl/QuoteImpl.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/impl/QuoteImpl.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/impl/QuoteImpl.java >--- src/org/eclipse/emf/test/models/sdo/simple/impl/QuoteImpl.java 20 Feb 2007 17:42:40 -0000 1.3 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,727 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: QuoteImpl.java,v 1.3 2007/02/20 17:42:40 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple.impl; >- >-import java.math.BigDecimal; >- >-import java.util.Collection; >-import java.util.List; >- >-import org.eclipse.emf.common.notify.Notification; >-import org.eclipse.emf.common.notify.NotificationChain; >- >-import org.eclipse.emf.common.util.EList; >- >-import org.eclipse.emf.ecore.EClass; >-import org.eclipse.emf.ecore.InternalEObject; >- >-import org.eclipse.emf.ecore.impl.ENotificationImpl; >- >-import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl; >- >-import org.eclipse.emf.ecore.util.EObjectContainmentEList; >-import org.eclipse.emf.ecore.util.InternalEList; >- >-import org.eclipse.emf.test.models.sdo.simple.Quote; >- >-/** >- * <!-- begin-user-doc --> >- * An implementation of the model object '<em><b>Quote</b></em>'. >- * <!-- end-user-doc --> >- * <p> >- * The following features are implemented: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getSymbol <em>Symbol</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getCompanyName <em>Company Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getPrice <em>Price</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getOpen1 <em>Open1</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getHigh <em>High</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getLow <em>Low</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getVolume <em>Volume</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getChange1 <em>Change1</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.impl.QuoteImpl#getQuotes <em>Quotes</em>}</li> >- * </ul> >- * </p> >- * >- * @generated >- */ >-public class QuoteImpl extends EDataObjectImpl implements Quote >-{ >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- private static final long serialVersionUID = 1L; >- >- /** >- * The default value of the '{@link #getSymbol() <em>Symbol</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSymbol() >- * @generated >- * @ordered >- */ >- protected static final String SYMBOL_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getSymbol() <em>Symbol</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getSymbol() >- * @generated >- * @ordered >- */ >- protected String symbol = SYMBOL_EDEFAULT; >- >- /** >- * The default value of the '{@link #getCompanyName() <em>Company Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCompanyName() >- * @generated >- * @ordered >- */ >- protected static final String COMPANY_NAME_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getCompanyName() <em>Company Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getCompanyName() >- * @generated >- * @ordered >- */ >- protected String companyName = COMPANY_NAME_EDEFAULT; >- >- /** >- * The default value of the '{@link #getPrice() <em>Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPrice() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal PRICE_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getPrice() <em>Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getPrice() >- * @generated >- * @ordered >- */ >- protected BigDecimal price = PRICE_EDEFAULT; >- >- /** >- * The default value of the '{@link #getOpen1() <em>Open1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getOpen1() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal OPEN1_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getOpen1() <em>Open1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getOpen1() >- * @generated >- * @ordered >- */ >- protected BigDecimal open1 = OPEN1_EDEFAULT; >- >- /** >- * The default value of the '{@link #getHigh() <em>High</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHigh() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal HIGH_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getHigh() <em>High</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getHigh() >- * @generated >- * @ordered >- */ >- protected BigDecimal high = HIGH_EDEFAULT; >- >- /** >- * The default value of the '{@link #getLow() <em>Low</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getLow() >- * @generated >- * @ordered >- */ >- protected static final BigDecimal LOW_EDEFAULT = null; >- >- /** >- * The cached value of the '{@link #getLow() <em>Low</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getLow() >- * @generated >- * @ordered >- */ >- protected BigDecimal low = LOW_EDEFAULT; >- >- /** >- * The default value of the '{@link #getVolume() <em>Volume</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getVolume() >- * @generated >- * @ordered >- */ >- protected static final double VOLUME_EDEFAULT = 0.0; >- >- /** >- * The cached value of the '{@link #getVolume() <em>Volume</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getVolume() >- * @generated >- * @ordered >- */ >- protected double volume = VOLUME_EDEFAULT; >- >- /** >- * This is true if the Volume attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean volumeESet; >- >- /** >- * The default value of the '{@link #getChange1() <em>Change1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getChange1() >- * @generated >- * @ordered >- */ >- protected static final double CHANGE1_EDEFAULT = 0.0; >- >- /** >- * The cached value of the '{@link #getChange1() <em>Change1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getChange1() >- * @generated >- * @ordered >- */ >- protected double change1 = CHANGE1_EDEFAULT; >- >- /** >- * This is true if the Change1 attribute has been set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- * @ordered >- */ >- protected boolean change1ESet; >- >- /** >- * The cached value of the '{@link #getQuotes() <em>Quotes</em>}' containment reference list. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #getQuotes() >- * @generated >- * @ordered >- */ >- protected EList<Quote> quotes; >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- protected QuoteImpl() >- { >- super(); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- protected EClass eStaticClass() >- { >- return SimplePackageImpl.Literals.QUOTE; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getSymbol() >- { >- return symbol; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setSymbol(String newSymbol) >- { >- String oldSymbol = symbol; >- symbol = newSymbol; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__SYMBOL, oldSymbol, symbol)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public String getCompanyName() >- { >- return companyName; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setCompanyName(String newCompanyName) >- { >- String oldCompanyName = companyName; >- companyName = newCompanyName; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__COMPANY_NAME, oldCompanyName, companyName)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getPrice() >- { >- return price; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setPrice(BigDecimal newPrice) >- { >- BigDecimal oldPrice = price; >- price = newPrice; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__PRICE, oldPrice, price)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getOpen1() >- { >- return open1; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setOpen1(BigDecimal newOpen1) >- { >- BigDecimal oldOpen1 = open1; >- open1 = newOpen1; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__OPEN1, oldOpen1, open1)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getHigh() >- { >- return high; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setHigh(BigDecimal newHigh) >- { >- BigDecimal oldHigh = high; >- high = newHigh; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__HIGH, oldHigh, high)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public BigDecimal getLow() >- { >- return low; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setLow(BigDecimal newLow) >- { >- BigDecimal oldLow = low; >- low = newLow; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__LOW, oldLow, low)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public double getVolume() >- { >- return volume; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setVolume(double newVolume) >- { >- double oldVolume = volume; >- volume = newVolume; >- boolean oldVolumeESet = volumeESet; >- volumeESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__VOLUME, oldVolume, volume, !oldVolumeESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetVolume() >- { >- double oldVolume = volume; >- boolean oldVolumeESet = volumeESet; >- volume = VOLUME_EDEFAULT; >- volumeESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, SimplePackageImpl.QUOTE__VOLUME, oldVolume, VOLUME_EDEFAULT, oldVolumeESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetVolume() >- { >- return volumeESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public double getChange1() >- { >- return change1; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void setChange1(double newChange1) >- { >- double oldChange1 = change1; >- change1 = newChange1; >- boolean oldChange1ESet = change1ESet; >- change1ESet = true; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.SET, SimplePackageImpl.QUOTE__CHANGE1, oldChange1, change1, !oldChange1ESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public void unsetChange1() >- { >- double oldChange1 = change1; >- boolean oldChange1ESet = change1ESet; >- change1 = CHANGE1_EDEFAULT; >- change1ESet = false; >- if (eNotificationRequired()) >- eNotify(new ENotificationImpl(this, Notification.UNSET, SimplePackageImpl.QUOTE__CHANGE1, oldChange1, CHANGE1_EDEFAULT, oldChange1ESet)); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public boolean isSetChange1() >- { >- return change1ESet; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- public List<Quote> getQuotes() >- { >- if (quotes == null) >- { >- quotes = new EObjectContainmentEList<Quote>(Quote.class, this, SimplePackageImpl.QUOTE__QUOTES); >- } >- return quotes; >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) >- { >- switch (featureID) >- { >- case SimplePackageImpl.QUOTE__QUOTES: >- return ((InternalEList<?>)getQuotes()).basicRemove(otherEnd, msgs); >- } >- return super.eInverseRemove(otherEnd, featureID, msgs); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public Object eGet(int featureID, boolean resolve, boolean coreType) >- { >- switch (featureID) >- { >- case SimplePackageImpl.QUOTE__SYMBOL: >- return getSymbol(); >- case SimplePackageImpl.QUOTE__COMPANY_NAME: >- return getCompanyName(); >- case SimplePackageImpl.QUOTE__PRICE: >- return getPrice(); >- case SimplePackageImpl.QUOTE__OPEN1: >- return getOpen1(); >- case SimplePackageImpl.QUOTE__HIGH: >- return getHigh(); >- case SimplePackageImpl.QUOTE__LOW: >- return getLow(); >- case SimplePackageImpl.QUOTE__VOLUME: >- return new Double(getVolume()); >- case SimplePackageImpl.QUOTE__CHANGE1: >- return new Double(getChange1()); >- case SimplePackageImpl.QUOTE__QUOTES: >- return getQuotes(); >- } >- return super.eGet(featureID, resolve, coreType); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @SuppressWarnings("unchecked") >- @Override >- public void eSet(int featureID, Object newValue) >- { >- switch (featureID) >- { >- case SimplePackageImpl.QUOTE__SYMBOL: >- setSymbol((String)newValue); >- return; >- case SimplePackageImpl.QUOTE__COMPANY_NAME: >- setCompanyName((String)newValue); >- return; >- case SimplePackageImpl.QUOTE__PRICE: >- setPrice((BigDecimal)newValue); >- return; >- case SimplePackageImpl.QUOTE__OPEN1: >- setOpen1((BigDecimal)newValue); >- return; >- case SimplePackageImpl.QUOTE__HIGH: >- setHigh((BigDecimal)newValue); >- return; >- case SimplePackageImpl.QUOTE__LOW: >- setLow((BigDecimal)newValue); >- return; >- case SimplePackageImpl.QUOTE__VOLUME: >- setVolume(((Double)newValue).doubleValue()); >- return; >- case SimplePackageImpl.QUOTE__CHANGE1: >- setChange1(((Double)newValue).doubleValue()); >- return; >- case SimplePackageImpl.QUOTE__QUOTES: >- getQuotes().clear(); >- getQuotes().addAll((Collection<? extends Quote>)newValue); >- return; >- } >- super.eSet(featureID, newValue); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public void eUnset(int featureID) >- { >- switch (featureID) >- { >- case SimplePackageImpl.QUOTE__SYMBOL: >- setSymbol(SYMBOL_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__COMPANY_NAME: >- setCompanyName(COMPANY_NAME_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__PRICE: >- setPrice(PRICE_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__OPEN1: >- setOpen1(OPEN1_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__HIGH: >- setHigh(HIGH_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__LOW: >- setLow(LOW_EDEFAULT); >- return; >- case SimplePackageImpl.QUOTE__VOLUME: >- unsetVolume(); >- return; >- case SimplePackageImpl.QUOTE__CHANGE1: >- unsetChange1(); >- return; >- case SimplePackageImpl.QUOTE__QUOTES: >- getQuotes().clear(); >- return; >- } >- super.eUnset(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public boolean eIsSet(int featureID) >- { >- switch (featureID) >- { >- case SimplePackageImpl.QUOTE__SYMBOL: >- return SYMBOL_EDEFAULT == null ? symbol != null : !SYMBOL_EDEFAULT.equals(symbol); >- case SimplePackageImpl.QUOTE__COMPANY_NAME: >- return COMPANY_NAME_EDEFAULT == null ? companyName != null : !COMPANY_NAME_EDEFAULT.equals(companyName); >- case SimplePackageImpl.QUOTE__PRICE: >- return PRICE_EDEFAULT == null ? price != null : !PRICE_EDEFAULT.equals(price); >- case SimplePackageImpl.QUOTE__OPEN1: >- return OPEN1_EDEFAULT == null ? open1 != null : !OPEN1_EDEFAULT.equals(open1); >- case SimplePackageImpl.QUOTE__HIGH: >- return HIGH_EDEFAULT == null ? high != null : !HIGH_EDEFAULT.equals(high); >- case SimplePackageImpl.QUOTE__LOW: >- return LOW_EDEFAULT == null ? low != null : !LOW_EDEFAULT.equals(low); >- case SimplePackageImpl.QUOTE__VOLUME: >- return isSetVolume(); >- case SimplePackageImpl.QUOTE__CHANGE1: >- return isSetChange1(); >- case SimplePackageImpl.QUOTE__QUOTES: >- return quotes != null && !quotes.isEmpty(); >- } >- return super.eIsSet(featureID); >- } >- >- /** >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- @Override >- public String toString() >- { >- if (eIsProxy()) return super.toString(); >- >- StringBuffer result = new StringBuffer(super.toString()); >- result.append(" (symbol: "); >- result.append(symbol); >- result.append(", companyName: "); >- result.append(companyName); >- result.append(", price: "); >- result.append(price); >- result.append(", open1: "); >- result.append(open1); >- result.append(", high: "); >- result.append(high); >- result.append(", low: "); >- result.append(low); >- result.append(", volume: "); >- if (volumeESet) result.append(volume); else result.append("<unset>"); >- result.append(", change1: "); >- if (change1ESet) result.append(change1); else result.append("<unset>"); >- result.append(')'); >- return result.toString(); >- } >- >-} //QuoteImpl >Index: models/sdo.Types/types.xsd >=================================================================== >RCS file: models/sdo.Types/types.xsd >diff -N models/sdo.Types/types.xsd >--- models/sdo.Types/types.xsd 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,77 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<xsd:schema >- targetNamespace="http:///org.eclipse.emf.test.models/types" >- xmlns:xsd="http://www.w3.org/2001/XMLSchema" >- xmlns:types="http:///org.eclipse.emf.test.models/types" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"> >- >- <xsd:simpleType name="myChar" ecore:instanceClass="char"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:simpleType name="myDate" ecore:instanceClass="java.util.Date"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:simpleType name="myBytes" ecore:instanceClass="byte[]"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:simpleType name="myNumber" ecore:instanceClass="java.lang.Number"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:simpleType name="myObject" ecore:instanceClass="java.lang.Object"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:simpleType name="myThread" ecore:instanceClass="java.lang.Thread"> >- <xsd:restriction base="xsd:string"> >- </xsd:restriction> >- </xsd:simpleType> >- >- <xsd:complexType name="AThing"> >- <xsd:sequence> >- <xsd:element name="aBoolean" type="xsd:boolean"/> >- <xsd:element name="aByte" type="xsd:byte"/> >- <xsd:element name="aDecimal" type="xsd:decimal"/> >- <xsd:element name="aFloat" type="xsd:float"/> >- <xsd:element name="aDouble" type="xsd:double"/> >- <xsd:element name="aInt" type="xsd:int"/> >- <xsd:element name="aInteger" type="xsd:integer"/> >- <xsd:element name="aLong" type="xsd:long"/> >- <xsd:element name="aShort" type="xsd:short"/> >- <xsd:element name="aString" type="xsd:string"/> >- >- <xsd:element name="aChar" type="types:myChar"/> >- <xsd:element name="aDate" type="types:myDate"/> >- <xsd:element name="aBytes" type="types:myBytes"/> >- >- <xsd:element name="aNumber" type="types:myNumber"/> >- <xsd:element name="aObject" type="types:myObject"/> >- <xsd:element name="aThread" type="types:myThread"/> >- >- <xsd:element name="manyBoolean" type="xsd:boolean" maxOccurs="unbounded"/> >- <xsd:element name="manyByte" type="xsd:byte" maxOccurs="unbounded"/> >- <xsd:element name="manyDecimal" type="xsd:decimal" maxOccurs="unbounded"/> >- <xsd:element name="manyFloat" type="xsd:float" maxOccurs="unbounded"/> >- <xsd:element name="manyDouble" type="xsd:double" maxOccurs="unbounded"/> >- <xsd:element name="manyInt" type="xsd:int" maxOccurs="unbounded"/> >- <xsd:element name="manyInteger" type="xsd:integer" maxOccurs="unbounded"/> >- <xsd:element name="manyLong" type="xsd:long" maxOccurs="unbounded"/> >- <xsd:element name="manyShort" type="xsd:short" maxOccurs="unbounded"/> >- <xsd:element name="manyString" type="xsd:string" maxOccurs="unbounded"/> >- <xsd:element name="manyChar" type="types:myChar" maxOccurs="unbounded"/> >- <xsd:element name="manyDate" type="types:myDate" maxOccurs="unbounded"/> >- <xsd:element name="manyBytes" type="types:myBytes" maxOccurs="unbounded"/> >- <xsd:element name="manyNumber" type="types:myNumber" maxOccurs="unbounded"/> >- <xsd:element name="manyObject" type="types:myObject" maxOccurs="unbounded"/> >- <xsd:element name="manyThread" type="types:myThread" maxOccurs="unbounded"/> >- </xsd:sequence> >- </xsd:complexType> >-</xsd:schema> >Index: models/sdo.Types/types.ecore >=================================================================== >RCS file: models/sdo.Types/types.ecore >diff -N models/sdo.Types/types.ecore >--- models/sdo.Types/types.ecore 15 Jun 2007 21:22:18 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,272 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<ecore:EPackage xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="types" >- nsURI="http:///org.eclipse.emf.test.models/types" nsPrefix="types"> >- <eClassifiers xsi:type="ecore:EClass" name="AThing"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="AThing"/> >- <details key="kind" value="elementOnly"/> >- </eAnnotations> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aBoolean" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean" >- unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aBoolean"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aByte" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Byte" >- unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aByte"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDecimal" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aDecimal"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aFloat" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aFloat"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDouble" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aDouble"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aInt" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" >- unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aInt"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aInteger" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aInteger"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aLong" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" >- unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aLong"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aShort" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Short" unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aShort"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aString" lowerBound="1" >- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aString"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aChar" lowerBound="1" eType="#//MyChar" >- unsettable="true"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aChar"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aDate" lowerBound="1" eType="#//MyDate"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aDate"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aBytes" lowerBound="1" >- eType="#//MyBytes"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aBytes"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aNumber" lowerBound="1" >- eType="#//MyNumber"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aNumber"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aObject" lowerBound="1" >- eType="#//MyObject"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aObject"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="aThread" lowerBound="1" >- eType="#//MyThread"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="aThread"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyBoolean" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyBoolean"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyByte" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Byte"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyByte"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDecimal" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Decimal"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyDecimal"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyFloat" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Float"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyFloat"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDouble" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Double"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyDouble"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyInt" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyInt"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyInteger" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyInteger"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyLong" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyLong"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyShort" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Short"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyShort"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyString" unique="false" >- lowerBound="1" upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyString"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyChar" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyChar"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyChar"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyDate" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyDate"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyDate"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyBytes" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyBytes"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyBytes"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyNumber" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyNumber"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyNumber"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyObject" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyObject"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyObject"/> >- </eAnnotations> >- </eStructuralFeatures> >- <eStructuralFeatures xsi:type="ecore:EAttribute" name="manyThread" unique="false" >- lowerBound="1" upperBound="-1" eType="#//MyThread"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="kind" value="element"/> >- <details key="name" value="manyThread"/> >- </eAnnotations> >- </eStructuralFeatures> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyBytes" instanceClassName="byte[]"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myBytes"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyChar" instanceClassName="char"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myChar"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyCharObject" instanceClassName="java.lang.Character"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myChar:Object"/> >- <details key="baseType" value="myChar"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyDate" instanceClassName="java.util.Date"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myDate"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyNumber" instanceClassName="java.lang.Number"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myNumber"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyObject" instanceClassName="java.lang.Object"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myObject"/> >- </eAnnotations> >- </eClassifiers> >- <eClassifiers xsi:type="ecore:EDataType" name="MyThread" instanceClassName="java.lang.Thread"> >- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData"> >- <details key="name" value="myThread"/> >- </eAnnotations> >- </eClassifiers> >-</ecore:EPackage> >Index: models/sdo.Types/types.genmodel >=================================================================== >RCS file: models/sdo.Types/types.genmodel >diff -N models/sdo.Types/types.genmodel >--- models/sdo.Types/types.genmodel 18 Jan 2007 15:50:25 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,59 +0,0 @@ >-<?xml version="1.0" encoding="UTF-8"?> >-<genmodel:GenModel xmi:version="2.0" >- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.test.common/src" >- editDirectory="" editorDirectory="" modelPluginID="org.eclipse.emf.test.models" >- modelName="Types" rootExtendsInterface="" rootExtendsClass="org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl" >- rootImplementsInterface="org.eclipse.emf.ecore.sdo.InternalEDataObject" suppressEMFTypes="true" >- suppressEMFMetaData="true" featureMapWrapperInterface="commonj.sdo.Sequence" featureMapWrapperInternalInterface="org.eclipse.emf.ecore.sdo.util.ESequence" >- featureMapWrapperClass="org.eclipse.emf.ecore.sdo.util.BasicESequence" testsDirectory="" >- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"> >- <foreignModel>types.xsd</foreignModel> >- <staticPackages>http://www.eclipse.org/emf/2003/SDO</staticPackages> >- <modelPluginVariables>EMF_COMMONJ_SDO=org.eclipse.emf.commonj.sdo</modelPluginVariables> >- <modelPluginVariables>EMF_ECORE_SDO=org.eclipse.emf.ecore.sdo</modelPluginVariables> >- <genPackages prefix="Types" basePackage="org.eclipse.emf.test.models" resource="XML" >- disposableProviderFactory="true" ecorePackage="types.ecore#/"> >- <genDataTypes ecoreDataType="types.ecore#//MyBytes"/> >- <genDataTypes ecoreDataType="types.ecore#//MyChar"/> >- <genDataTypes ecoreDataType="types.ecore#//MyCharObject"/> >- <genDataTypes ecoreDataType="types.ecore#//MyDate"/> >- <genDataTypes ecoreDataType="types.ecore#//MyNumber"/> >- <genDataTypes ecoreDataType="types.ecore#//MyObject"/> >- <genDataTypes ecoreDataType="types.ecore#//MyThread"/> >- <genClasses ecoreClass="types.ecore#//AThing"> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aBoolean"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aByte"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDecimal"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aFloat"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDouble"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aInt"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aInteger"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aLong"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aShort"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aString"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aChar"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aDate"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aBytes"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aNumber"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aObject"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/aThread"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyBoolean"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyByte"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDecimal"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyFloat"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDouble"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyInt"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyInteger"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyLong"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyShort"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyString"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyChar"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyDate"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyBytes"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyNumber"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyObject"/> >- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute types.ecore#//AThing/manyThread"/> >- </genClasses> >- </genPackages> >-</genmodel:GenModel> >Index: src/org/eclipse/emf/test/models/sdo/simple/SimpleFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/SimpleFactory.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/SimpleFactory.java >--- src/org/eclipse/emf/test/models/sdo/simple/SimpleFactory.java 18 Jan 2007 22:06:45 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,46 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: SimpleFactory.java,v 1.2 2007/01/18 22:06:45 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface SimpleFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- SimpleFactory INSTANCE = org.eclipse.emf.test.models.sdo.simple.impl.SimpleFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>Quote</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>Quote</em>'. >- * @generated >- */ >- Quote createQuote(); >- >-} //SimpleFactory >Index: src/org/eclipse/emf/test/models/sdo/simple/Quote.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/sdo/simple/Quote.java >diff -N src/org/eclipse/emf/test/models/sdo/simple/Quote.java >--- src/org/eclipse/emf/test/models/sdo/simple/Quote.java 15 Jun 2007 21:22:17 -0000 1.4 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,326 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: Quote.java,v 1.4 2007/06/15 21:22:17 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.sdo.simple; >- >-import java.math.BigDecimal; >- >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>Quote</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.sdo.simple.Quote#getQuotes <em>Quotes</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='Quote' kind='elementOnly'" >- * @generated >- */ >-public interface Quote >-{ >- /** >- * Returns the value of the '<em><b>Symbol</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Symbol</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Symbol</em>' attribute. >- * @see #setSymbol(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='symbol'" >- * @generated >- */ >- String getSymbol(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getSymbol <em>Symbol</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Symbol</em>' attribute. >- * @see #getSymbol() >- * @generated >- */ >- void setSymbol(String value); >- >- /** >- * Returns the value of the '<em><b>Company Name</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Company Name</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Company Name</em>' attribute. >- * @see #setCompanyName(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='companyName'" >- * @generated >- */ >- String getCompanyName(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getCompanyName <em>Company Name</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Company Name</em>' attribute. >- * @see #getCompanyName() >- * @generated >- */ >- void setCompanyName(String value); >- >- /** >- * Returns the value of the '<em><b>Price</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Price</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Price</em>' attribute. >- * @see #setPrice(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='price'" >- * @generated >- */ >- BigDecimal getPrice(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getPrice <em>Price</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Price</em>' attribute. >- * @see #getPrice() >- * @generated >- */ >- void setPrice(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>Open1</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Open1</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Open1</em>' attribute. >- * @see #setOpen1(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='open1'" >- * @generated >- */ >- BigDecimal getOpen1(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getOpen1 <em>Open1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Open1</em>' attribute. >- * @see #getOpen1() >- * @generated >- */ >- void setOpen1(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>High</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>High</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>High</em>' attribute. >- * @see #setHigh(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='high'" >- * @generated >- */ >- BigDecimal getHigh(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getHigh <em>High</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>High</em>' attribute. >- * @see #getHigh() >- * @generated >- */ >- void setHigh(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>Low</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Low</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Low</em>' attribute. >- * @see #setLow(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='low'" >- * @generated >- */ >- BigDecimal getLow(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getLow <em>Low</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Low</em>' attribute. >- * @see #getLow() >- * @generated >- */ >- void setLow(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>Volume</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Volume</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Volume</em>' attribute. >- * @see #isSetVolume() >- * @see #unsetVolume() >- * @see #setVolume(double) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true" >- * extendedMetaData="kind='element' name='volume'" >- * @generated >- */ >- double getVolume(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Volume</em>' attribute. >- * @see #isSetVolume() >- * @see #unsetVolume() >- * @see #getVolume() >- * @generated >- */ >- void setVolume(double value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetVolume() >- * @see #getVolume() >- * @see #setVolume(double) >- * @generated >- */ >- void unsetVolume(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getVolume <em>Volume</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Volume</em>' attribute is set. >- * @see #unsetVolume() >- * @see #getVolume() >- * @see #setVolume(double) >- * @generated >- */ >- boolean isSetVolume(); >- >- /** >- * Returns the value of the '<em><b>Change1</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Change1</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Change1</em>' attribute. >- * @see #isSetChange1() >- * @see #unsetChange1() >- * @see #setChange1(double) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true" >- * extendedMetaData="kind='element' name='change1'" >- * @generated >- */ >- double getChange1(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>Change1</em>' attribute. >- * @see #isSetChange1() >- * @see #unsetChange1() >- * @see #getChange1() >- * @generated >- */ >- void setChange1(double value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetChange1() >- * @see #getChange1() >- * @see #setChange1(double) >- * @generated >- */ >- void unsetChange1(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.sdo.simple.Quote#getChange1 <em>Change1</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>Change1</em>' attribute is set. >- * @see #unsetChange1() >- * @see #getChange1() >- * @see #setChange1(double) >- * @generated >- */ >- boolean isSetChange1(); >- >- /** >- * Returns the value of the '<em><b>Quotes</b></em>' containment reference list. >- * The list contents are of type {@link org.eclipse.emf.test.models.sdo.simple.Quote}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Quotes</em>' containment reference list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Quotes</em>' containment reference list. >- * @model containment="true" >- * extendedMetaData="kind='element' name='quotes'" >- * @generated >- */ >- List<Quote> getQuotes(); >- >-} // Quote >Index: src/org/eclipse/emf/test/models/types/AThing.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/AThing.java >diff -N src/org/eclipse/emf/test/models/types/AThing.java >--- src/org/eclipse/emf/test/models/types/AThing.java 15 Jun 2007 21:22:18 -0000 1.5 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,961 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: AThing.java,v 1.5 2007/06/15 21:22:18 emerks Exp $ >- */ >-package org.eclipse.emf.test.models.types; >- >-import java.math.BigDecimal; >-import java.math.BigInteger; >- >-import java.util.Date; >-import java.util.List; >- >-/** >- * <!-- begin-user-doc --> >- * A representation of the model object '<em><b>AThing</b></em>'. >- * <!-- end-user-doc --> >- * >- * <p> >- * The following features are supported: >- * <ul> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyBoolean <em>Many Boolean</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyByte <em>Many Byte</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDecimal <em>Many Decimal</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyFloat <em>Many Float</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDouble <em>Many Double</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyInt <em>Many Int</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyInteger <em>Many Integer</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyLong <em>Many Long</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyShort <em>Many Short</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyString <em>Many String</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyChar <em>Many Char</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyDate <em>Many Date</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyBytes <em>Many Bytes</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyNumber <em>Many Number</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyObject <em>Many Object</em>}</li> >- * <li>{@link org.eclipse.emf.test.models.types.AThing#getManyThread <em>Many Thread</em>}</li> >- * </ul> >- * </p> >- * >- * @model extendedMetaData="name='AThing' kind='elementOnly'" >- * @generated >- */ >-public interface AThing >-{ >- /** >- * Returns the value of the '<em><b>ABoolean</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ABoolean</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ABoolean</em>' attribute. >- * @see #isSetABoolean() >- * @see #unsetABoolean() >- * @see #setABoolean(boolean) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" required="true" >- * extendedMetaData="kind='element' name='aBoolean'" >- * @generated >- */ >- boolean isABoolean(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ABoolean</em>' attribute. >- * @see #isSetABoolean() >- * @see #unsetABoolean() >- * @see #isABoolean() >- * @generated >- */ >- void setABoolean(boolean value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetABoolean() >- * @see #isABoolean() >- * @see #setABoolean(boolean) >- * @generated >- */ >- void unsetABoolean(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#isABoolean <em>ABoolean</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>ABoolean</em>' attribute is set. >- * @see #unsetABoolean() >- * @see #isABoolean() >- * @see #setABoolean(boolean) >- * @generated >- */ >- boolean isSetABoolean(); >- >- /** >- * Returns the value of the '<em><b>AByte</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AByte</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AByte</em>' attribute. >- * @see #isSetAByte() >- * @see #unsetAByte() >- * @see #setAByte(byte) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Byte" required="true" >- * extendedMetaData="kind='element' name='aByte'" >- * @generated >- */ >- byte getAByte(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AByte</em>' attribute. >- * @see #isSetAByte() >- * @see #unsetAByte() >- * @see #getAByte() >- * @generated >- */ >- void setAByte(byte value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetAByte() >- * @see #getAByte() >- * @see #setAByte(byte) >- * @generated >- */ >- void unsetAByte(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAByte <em>AByte</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>AByte</em>' attribute is set. >- * @see #unsetAByte() >- * @see #getAByte() >- * @see #setAByte(byte) >- * @generated >- */ >- boolean isSetAByte(); >- >- /** >- * Returns the value of the '<em><b>ADecimal</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ADecimal</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ADecimal</em>' attribute. >- * @see #setADecimal(BigDecimal) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='aDecimal'" >- * @generated >- */ >- BigDecimal getADecimal(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADecimal <em>ADecimal</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ADecimal</em>' attribute. >- * @see #getADecimal() >- * @generated >- */ >- void setADecimal(BigDecimal value); >- >- /** >- * Returns the value of the '<em><b>AFloat</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AFloat</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AFloat</em>' attribute. >- * @see #isSetAFloat() >- * @see #unsetAFloat() >- * @see #setAFloat(float) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Float" required="true" >- * extendedMetaData="kind='element' name='aFloat'" >- * @generated >- */ >- float getAFloat(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AFloat</em>' attribute. >- * @see #isSetAFloat() >- * @see #unsetAFloat() >- * @see #getAFloat() >- * @generated >- */ >- void setAFloat(float value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetAFloat() >- * @see #getAFloat() >- * @see #setAFloat(float) >- * @generated >- */ >- void unsetAFloat(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAFloat <em>AFloat</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>AFloat</em>' attribute is set. >- * @see #unsetAFloat() >- * @see #getAFloat() >- * @see #setAFloat(float) >- * @generated >- */ >- boolean isSetAFloat(); >- >- /** >- * Returns the value of the '<em><b>ADouble</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ADouble</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ADouble</em>' attribute. >- * @see #isSetADouble() >- * @see #unsetADouble() >- * @see #setADouble(double) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true" >- * extendedMetaData="kind='element' name='aDouble'" >- * @generated >- */ >- double getADouble(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ADouble</em>' attribute. >- * @see #isSetADouble() >- * @see #unsetADouble() >- * @see #getADouble() >- * @generated >- */ >- void setADouble(double value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetADouble() >- * @see #getADouble() >- * @see #setADouble(double) >- * @generated >- */ >- void unsetADouble(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADouble <em>ADouble</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>ADouble</em>' attribute is set. >- * @see #unsetADouble() >- * @see #getADouble() >- * @see #setADouble(double) >- * @generated >- */ >- boolean isSetADouble(); >- >- /** >- * Returns the value of the '<em><b>AInt</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AInt</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AInt</em>' attribute. >- * @see #isSetAInt() >- * @see #unsetAInt() >- * @see #setAInt(int) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true" >- * extendedMetaData="kind='element' name='aInt'" >- * @generated >- */ >- int getAInt(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AInt</em>' attribute. >- * @see #isSetAInt() >- * @see #unsetAInt() >- * @see #getAInt() >- * @generated >- */ >- void setAInt(int value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetAInt() >- * @see #getAInt() >- * @see #setAInt(int) >- * @generated >- */ >- void unsetAInt(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInt <em>AInt</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>AInt</em>' attribute is set. >- * @see #unsetAInt() >- * @see #getAInt() >- * @see #setAInt(int) >- * @generated >- */ >- boolean isSetAInt(); >- >- /** >- * Returns the value of the '<em><b>AInteger</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AInteger</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AInteger</em>' attribute. >- * @see #setAInteger(BigInteger) >- * @model dataType="org.eclipse.emf.ecore.xml.type.Integer" required="true" >- * extendedMetaData="kind='element' name='aInteger'" >- * @generated >- */ >- BigInteger getAInteger(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAInteger <em>AInteger</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AInteger</em>' attribute. >- * @see #getAInteger() >- * @generated >- */ >- void setAInteger(BigInteger value); >- >- /** >- * Returns the value of the '<em><b>ALong</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ALong</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ALong</em>' attribute. >- * @see #isSetALong() >- * @see #unsetALong() >- * @see #setALong(long) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true" >- * extendedMetaData="kind='element' name='aLong'" >- * @generated >- */ >- long getALong(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ALong</em>' attribute. >- * @see #isSetALong() >- * @see #unsetALong() >- * @see #getALong() >- * @generated >- */ >- void setALong(long value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetALong() >- * @see #getALong() >- * @see #setALong(long) >- * @generated >- */ >- void unsetALong(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getALong <em>ALong</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>ALong</em>' attribute is set. >- * @see #unsetALong() >- * @see #getALong() >- * @see #setALong(long) >- * @generated >- */ >- boolean isSetALong(); >- >- /** >- * Returns the value of the '<em><b>AShort</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AShort</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AShort</em>' attribute. >- * @see #isSetAShort() >- * @see #unsetAShort() >- * @see #setAShort(short) >- * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Short" required="true" >- * extendedMetaData="kind='element' name='aShort'" >- * @generated >- */ >- short getAShort(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AShort</em>' attribute. >- * @see #isSetAShort() >- * @see #unsetAShort() >- * @see #getAShort() >- * @generated >- */ >- void setAShort(short value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetAShort() >- * @see #getAShort() >- * @see #setAShort(short) >- * @generated >- */ >- void unsetAShort(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAShort <em>AShort</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>AShort</em>' attribute is set. >- * @see #unsetAShort() >- * @see #getAShort() >- * @see #setAShort(short) >- * @generated >- */ >- boolean isSetAShort(); >- >- /** >- * Returns the value of the '<em><b>AString</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AString</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AString</em>' attribute. >- * @see #setAString(String) >- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='aString'" >- * @generated >- */ >- String getAString(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAString <em>AString</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AString</em>' attribute. >- * @see #getAString() >- * @generated >- */ >- void setAString(String value); >- >- /** >- * Returns the value of the '<em><b>AChar</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AChar</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AChar</em>' attribute. >- * @see #isSetAChar() >- * @see #unsetAChar() >- * @see #setAChar(char) >- * @model unsettable="true" dataType="org.eclipse.emf.test.models.types.MyChar" required="true" >- * extendedMetaData="kind='element' name='aChar'" >- * @generated >- */ >- char getAChar(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AChar</em>' attribute. >- * @see #isSetAChar() >- * @see #unsetAChar() >- * @see #getAChar() >- * @generated >- */ >- void setAChar(char value); >- >- /** >- * Unsets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @see #isSetAChar() >- * @see #getAChar() >- * @see #setAChar(char) >- * @generated >- */ >- void unsetAChar(); >- >- /** >- * Returns whether the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAChar <em>AChar</em>}' attribute is set. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return whether the value of the '<em>AChar</em>' attribute is set. >- * @see #unsetAChar() >- * @see #getAChar() >- * @see #setAChar(char) >- * @generated >- */ >- boolean isSetAChar(); >- >- /** >- * Returns the value of the '<em><b>ADate</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ADate</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ADate</em>' attribute. >- * @see #setADate(Date) >- * @model dataType="org.eclipse.emf.test.models.types.MyDate" required="true" >- * extendedMetaData="kind='element' name='aDate'" >- * @generated >- */ >- Date getADate(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getADate <em>ADate</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ADate</em>' attribute. >- * @see #getADate() >- * @generated >- */ >- void setADate(Date value); >- >- /** >- * Returns the value of the '<em><b>ABytes</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ABytes</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ABytes</em>' attribute. >- * @see #setABytes(byte[]) >- * @model dataType="org.eclipse.emf.test.models.types.MyBytes" required="true" >- * extendedMetaData="kind='element' name='aBytes'" >- * @generated >- */ >- byte[] getABytes(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getABytes <em>ABytes</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ABytes</em>' attribute. >- * @see #getABytes() >- * @generated >- */ >- void setABytes(byte[] value); >- >- /** >- * Returns the value of the '<em><b>ANumber</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>ANumber</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>ANumber</em>' attribute. >- * @see #setANumber(Number) >- * @model dataType="org.eclipse.emf.test.models.types.MyNumber" required="true" >- * extendedMetaData="kind='element' name='aNumber'" >- * @generated >- */ >- Number getANumber(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getANumber <em>ANumber</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>ANumber</em>' attribute. >- * @see #getANumber() >- * @generated >- */ >- void setANumber(Number value); >- >- /** >- * Returns the value of the '<em><b>AObject</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AObject</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AObject</em>' attribute. >- * @see #setAObject(Object) >- * @model dataType="org.eclipse.emf.test.models.types.MyObject" required="true" >- * extendedMetaData="kind='element' name='aObject'" >- * @generated >- */ >- Object getAObject(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAObject <em>AObject</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AObject</em>' attribute. >- * @see #getAObject() >- * @generated >- */ >- void setAObject(Object value); >- >- /** >- * Returns the value of the '<em><b>AThread</b></em>' attribute. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>AThread</em>' attribute isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>AThread</em>' attribute. >- * @see #setAThread(Thread) >- * @model dataType="org.eclipse.emf.test.models.types.MyThread" required="true" >- * extendedMetaData="kind='element' name='aThread'" >- * @generated >- */ >- Thread getAThread(); >- >- /** >- * Sets the value of the '{@link org.eclipse.emf.test.models.types.AThing#getAThread <em>AThread</em>}' attribute. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @param value the new value of the '<em>AThread</em>' attribute. >- * @see #getAThread() >- * @generated >- */ >- void setAThread(Thread value); >- >- /** >- * Returns the value of the '<em><b>Many Boolean</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Boolean}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Boolean</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Boolean</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Boolean" required="true" >- * extendedMetaData="kind='element' name='manyBoolean'" >- * @generated >- */ >- List<Boolean> getManyBoolean(); >- >- /** >- * Returns the value of the '<em><b>Many Byte</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Byte}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Byte</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Byte</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Byte" required="true" >- * extendedMetaData="kind='element' name='manyByte'" >- * @generated >- */ >- List<Byte> getManyByte(); >- >- /** >- * Returns the value of the '<em><b>Many Decimal</b></em>' attribute list. >- * The list contents are of type {@link java.math.BigDecimal}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Decimal</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Decimal</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Decimal" required="true" >- * extendedMetaData="kind='element' name='manyDecimal'" >- * @generated >- */ >- List<BigDecimal> getManyDecimal(); >- >- /** >- * Returns the value of the '<em><b>Many Float</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Float}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Float</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Float</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Float" required="true" >- * extendedMetaData="kind='element' name='manyFloat'" >- * @generated >- */ >- List<Float> getManyFloat(); >- >- /** >- * Returns the value of the '<em><b>Many Double</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Double}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Double</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Double</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Double" required="true" >- * extendedMetaData="kind='element' name='manyDouble'" >- * @generated >- */ >- List<Double> getManyDouble(); >- >- /** >- * Returns the value of the '<em><b>Many Int</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Integer}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Int</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Int</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true" >- * extendedMetaData="kind='element' name='manyInt'" >- * @generated >- */ >- List<Integer> getManyInt(); >- >- /** >- * Returns the value of the '<em><b>Many Integer</b></em>' attribute list. >- * The list contents are of type {@link java.math.BigInteger}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Integer</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Integer</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Integer" required="true" >- * extendedMetaData="kind='element' name='manyInteger'" >- * @generated >- */ >- List<BigInteger> getManyInteger(); >- >- /** >- * Returns the value of the '<em><b>Many Long</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Long}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Long</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Long</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true" >- * extendedMetaData="kind='element' name='manyLong'" >- * @generated >- */ >- List<Long> getManyLong(); >- >- /** >- * Returns the value of the '<em><b>Many Short</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Short}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Short</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Short</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Short" required="true" >- * extendedMetaData="kind='element' name='manyShort'" >- * @generated >- */ >- List<Short> getManyShort(); >- >- /** >- * Returns the value of the '<em><b>Many String</b></em>' attribute list. >- * The list contents are of type {@link java.lang.String}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many String</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many String</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" >- * extendedMetaData="kind='element' name='manyString'" >- * @generated >- */ >- List<String> getManyString(); >- >- /** >- * Returns the value of the '<em><b>Many Char</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Character}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Char</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Char</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyChar" required="true" >- * extendedMetaData="kind='element' name='manyChar'" >- * @generated >- */ >- List<Character> getManyChar(); >- >- /** >- * Returns the value of the '<em><b>Many Date</b></em>' attribute list. >- * The list contents are of type {@link java.util.Date}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Date</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Date</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyDate" required="true" >- * extendedMetaData="kind='element' name='manyDate'" >- * @generated >- */ >- List<Date> getManyDate(); >- >- /** >- * Returns the value of the '<em><b>Many Bytes</b></em>' attribute list. >- * The list contents are of type {@link byte}[]. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Bytes</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Bytes</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyBytes" required="true" >- * extendedMetaData="kind='element' name='manyBytes'" >- * @generated >- */ >- List<byte[]> getManyBytes(); >- >- /** >- * Returns the value of the '<em><b>Many Number</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Number}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Number</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Number</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyNumber" required="true" >- * extendedMetaData="kind='element' name='manyNumber'" >- * @generated >- */ >- List<Number> getManyNumber(); >- >- /** >- * Returns the value of the '<em><b>Many Object</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Object}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Object</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Object</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyObject" required="true" >- * extendedMetaData="kind='element' name='manyObject'" >- * @generated >- */ >- List<Object> getManyObject(); >- >- /** >- * Returns the value of the '<em><b>Many Thread</b></em>' attribute list. >- * The list contents are of type {@link java.lang.Thread}. >- * <!-- begin-user-doc --> >- * <p> >- * If the meaning of the '<em>Many Thread</em>' attribute list isn't clear, >- * there really should be more of a description here... >- * </p> >- * <!-- end-user-doc --> >- * @return the value of the '<em>Many Thread</em>' attribute list. >- * @model unique="false" dataType="org.eclipse.emf.test.models.types.MyThread" required="true" >- * extendedMetaData="kind='element' name='manyThread'" >- * @generated >- */ >- List<Thread> getManyThread(); >- >-} // AThing >Index: src/org/eclipse/emf/test/models/types/TypesFactory.java >=================================================================== >RCS file: src/org/eclipse/emf/test/models/types/TypesFactory.java >diff -N src/org/eclipse/emf/test/models/types/TypesFactory.java >--- src/org/eclipse/emf/test/models/types/TypesFactory.java 18 Jan 2007 22:06:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,46 +0,0 @@ >-/** >- * <copyright> >- * >- * Copyright (c) 2007 IBM Corporation and others. >- * All rights reserved. This program and the accompanying materials >- * are made available under the terms of the Eclipse Public License v1.0 >- * which accompanies this distribution, and is available at >- * http://www.eclipse.org/legal/epl-v10.html >- * >- * Contributors: >- * IBM - Initial API and implementation >- * >- * </copyright> >- * >- * $Id: TypesFactory.java,v 1.2 2007/01/18 22:06:48 marcelop Exp $ >- */ >-package org.eclipse.emf.test.models.types; >- >- >-/** >- * <!-- begin-user-doc --> >- * The <b>Factory</b> for the model. >- * It provides a create method for each non-abstract class of the model. >- * <!-- end-user-doc --> >- * @generated >- */ >-public interface TypesFactory >-{ >- /** >- * The singleton instance of the factory. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @generated >- */ >- TypesFactory INSTANCE = org.eclipse.emf.test.models.types.impl.TypesFactoryImpl.eINSTANCE; >- >- /** >- * Returns a new object of class '<em>AThing</em>'. >- * <!-- begin-user-doc --> >- * <!-- end-user-doc --> >- * @return a new object of class '<em>AThing</em>'. >- * @generated >- */ >- AThing createAThing(); >- >-} //TypesFactory >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.common/plugin.xml,v >retrieving revision 1.1 >diff -u -r1.1 plugin.xml >--- plugin.xml 18 Jan 2007 15:50:15 -0000 1.1 >+++ plugin.xml 2 Nov 2008 14:14:01 -0000 >@@ -57,11 +57,6 @@ > class = "org.eclipse.emf.test.models.library.LibraryPackage" > genModel = "models/Library/library.genmodel" /> > >- <package >- uri = "http:///org.eclipse.emf.test.models/SDOLibrary" >- class = "org.eclipse.emf.test.models.sdo.library.impl.SDOLibraryPackageImpl" >- genModel = "models/Library/sdoLibrary.genmodel" /> >- > <!-- MovieDB --> > > <package >@@ -92,39 +87,6 @@ > uri = "http:///org.eclipse.emf.test.models/qname" > class = "org.eclipse.emf.test.models.qname.QNamePackage" > genModel = "models/QName/qname.genmodel" /> >- >- <!-- sdo.IPO --> >- >- <package >- uri = "http:///org.eclipse.emf.test.models/IPO" >- class = "org.eclipse.emf.test.models.ipo.impl.IPOPackageImpl" >- genModel = "models/sdo.IPO/ipo.genmodel" /> >- >- <!-- sdo.Personal --> >- >- <package >- uri = "http:///org.eclipse.emf.test.models/personal" >- class = "org.eclipse.emf.test.models.personal.impl.PersonalPackageImpl" >- genModel = "models/sdo.Personal/personal.genmodel" /> >- >- <package >- uri = "http:///org.eclipse.emf.test.models/personalMixed" >- class = "org.eclipse.emf.test.models.personal.mixed.impl.MixedPackageImpl" >- genModel = "models/sdo.Personal/personalMixed.genmodel" /> >- >- <!-- sdo.Simple --> >- >- <package >- uri = "http:///org.eclipse.emf.test.models/simple" >- class = "org.eclipse.emf.test.models.sdo.simple.impl.SimplePackageImpl" >- genModel = "models/sdo.Simple/simple.genmodel" /> >- >- <!-- sdo.Types --> >- >- <package >- uri = "http:///org.eclipse.emf.test.models/types" >- class = "org.eclipse.emf.test.models.types.impl.TypesPackageImpl" >- genModel = "models/sdo.Types/types.genmodel" /> > > </extension> > >Index: .settings/org.eclipse.core.resources.prefs >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.common/.settings/org.eclipse.core.resources.prefs,v >retrieving revision 1.1 >diff -u -r1.1 org.eclipse.core.resources.prefs >--- .settings/org.eclipse.core.resources.prefs 18 Jan 2007 15:50:26 -0000 1.1 >+++ .settings/org.eclipse.core.resources.prefs 2 Nov 2008 14:14:01 -0000 >@@ -1,6 +1,4 @@ >-#Wed Jan 17 13:36:08 EST 2007 >+#Sun Nov 02 08:35:24 EST 2008 > eclipse.preferences.version=1 > encoding//models/MovieDB/moviedb.xsd=UTF8 > encoding//models/MovieDB/order.xsd=UTF8 >-encoding//models/sdo.IPO/address.xsd=UTF8 >-encoding//models/sdo.IPO/ipo.xsd=UTF8 >#P org.eclipse.emf.test.build >Index: src/org/eclipse/emf/test/build/BuildTest.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.build/src/org/eclipse/emf/test/build/BuildTest.java,v >retrieving revision 1.22 >diff -u -r1.22 BuildTest.java >--- src/org/eclipse/emf/test/build/BuildTest.java 28 Mar 2008 18:42:29 -0000 1.22 >+++ src/org/eclipse/emf/test/build/BuildTest.java 2 Nov 2008 14:14:05 -0000 >@@ -319,9 +319,6 @@ > { > Set<String> brandingPluginNames = new HashSet<String>(); > brandingPluginNames.add("org.eclipse.emf.doc"); >- brandingPluginNames.add("org.eclipse.emf.ecore.sdo.doc"); >- brandingPluginNames.add("org.eclipse.emf.ecore.sdo.source"); >- brandingPluginNames.add("org.eclipse.emf.ecore.sdo"); > brandingPluginNames.add("org.eclipse.emf.source"); > brandingPluginNames.add("org.eclipse.emf"); > brandingPluginNames.add("org.eclipse.xsd.doc"); >Index: src/org/eclipse/emf/test/build/StandAloneSuites.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.build/src/org/eclipse/emf/test/build/StandAloneSuites.java,v >retrieving revision 1.4 >diff -u -r1.4 StandAloneSuites.java >--- src/org/eclipse/emf/test/build/StandAloneSuites.java 28 Dec 2006 06:58:13 -0000 1.4 >+++ src/org/eclipse/emf/test/build/StandAloneSuites.java 2 Nov 2008 14:14:05 -0000 >@@ -23,7 +23,6 @@ > private static Test[] suites = new Test []{ > org.eclipse.emf.test.core.AllSuites.suite() > ,org.eclipse.emf.test.edit.AllSuites.suite() >- ,org.eclipse.emf.test.sdo.AllSuites.suite() > ,org.eclipse.emf.test.xml.AllSuites.suite() > }; > >Index: src/org/eclipse/emf/test/build/CheckPIITest.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.build/src/org/eclipse/emf/test/build/CheckPIITest.java,v >retrieving revision 1.3 >diff -u -r1.3 CheckPIITest.java >--- src/org/eclipse/emf/test/build/CheckPIITest.java 28 Dec 2006 06:58:13 -0000 1.3 >+++ src/org/eclipse/emf/test/build/CheckPIITest.java 2 Nov 2008 14:14:05 -0000 >@@ -413,7 +413,7 @@ > } > > public static final String[] BUILD_GENERATED_ZIP_FILES_PREFIX = { "emf-runtime", "emf-source", "emf-doc", "xsd-runtime", "xsd-source", >- "xsd-doc", "sdo-runtime", "sdo-source", "sdo-doc", "emf-sdo-xsd-SDK" }; // last one changed 041104 to fix absentee chkpii testing >+ "xsd-doc", "emf-xsd-SDK" }; // last one changed 041104 to fix absentee chkpii testing > > // must include non-shipping > // test plugins >Index: src/org/eclipse/emf/test/build/VersionAuditTest.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.build/src/org/eclipse/emf/test/build/VersionAuditTest.java,v >retrieving revision 1.5 >diff -u -r1.5 VersionAuditTest.java >--- src/org/eclipse/emf/test/build/VersionAuditTest.java 26 Mar 2008 03:50:56 -0000 1.5 >+++ src/org/eclipse/emf/test/build/VersionAuditTest.java 2 Nov 2008 14:14:05 -0000 >@@ -31,7 +31,6 @@ > > private static String[] URLs = { > "http://build.eclipse.org/modeling/emf/emf/versionaudit.php?branch=", >- "http://build.eclipse.org/modeling/emf/sdo/versionaudit.php?branch=", > "http://build.eclipse.org/modeling/mdt/xsd/versionaudit.php?branch=" > }; > private static String branch = ""; >@@ -43,7 +42,6 @@ > TestSuite ts = new TestSuite("EMF Plugin / Feature Version Auditing"); > //ts.addTest(new VersionAuditTest("testWhereAmI")); /* for debugging only */ > ts.addTest(new VersionAuditTest("testVersionEMF")); >- ts.addTest(new VersionAuditTest("testVersionSDO")); > ts.addTest(new VersionAuditTest("testVersionXSD")); > return ts; > } >@@ -80,11 +78,6 @@ > testVersion(URLs[0], branch); > } > >- public void testVersionSDO() throws Exception >- { >- testVersion(URLs[1], branch); >- } >- > public void testVersionXSD() throws Exception > { > testVersion(URLs[2], branch); >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/tests/org.eclipse.emf.test.build/META-INF/MANIFEST.MF,v >retrieving revision 1.11 >diff -u -r1.11 MANIFEST.MF >--- META-INF/MANIFEST.MF 1 Aug 2008 02:53:10 -0000 1.11 >+++ META-INF/MANIFEST.MF 2 Nov 2008 14:14:05 -0000 >@@ -14,8 +14,6 @@ > org.junit, > org.eclipse.emf.test.core, > org.eclipse.emf.test.edit, >- org.eclipse.emf.test.sdo, >- org.eclipse.emf.test.xml, >- org.eclipse.emf.test.performance >+ org.eclipse.emf.test.xml > Eclipse-LazyStart: true > Bundle-ActivationPolicy: lazy
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251402
: 116724 |
116799
|
119102
|
119103
|
119104