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 116799 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]
Updates to previous patch
251402.patch (text/plain), 461.92 KB, created by
Ed Merks
on 2008-11-03 06:40:00 EST
(
hide
)
Description:
Updates to previous patch
Filename:
MIME Type:
Creator:
Ed Merks
Created:
2008-11-03 06:40:00 EST
Size:
461.92 KB
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 3 Nov 2008 11:39:07 -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: 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/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/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: 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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: 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: 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 3 Nov 2008 11:39:08 -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/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/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: 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> >- >#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 3 Nov 2008 11:39:10 -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 3 Nov 2008 11:39:10 -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() > }; > >#P org.eclipse.emf.all-feature >Index: feature.xml >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/features/org.eclipse.emf.all-feature/feature.xml,v >retrieving revision 1.3 >diff -u -r1.3 feature.xml >--- feature.xml 29 Jul 2008 21:50:39 -0000 1.3 >+++ feature.xml 3 Nov 2008 11:39:10 -0000 >@@ -34,8 +34,6 @@ > > <includes id="org.eclipse.emf.sdk" version="0.0.0"/> > >- <includes id="org.eclipse.emf.ecore.sdo.sdk" version="0.0.0"/> >- > <includes id="org.eclipse.xsd.sdk" version="0.0.0"/> > > <includes id="org.eclipse.emf.examples" version="0.0.0"/>
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