/******************************************************************************* * Copyright (c) 2006-2012 * Software Technology Group, Dresden University of Technology * DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026 * * 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: * Software Technology Group - TU Dresden, Germany; * DevBoost GmbH - Berlin, Germany * - initial API and implementation ******************************************************************************/ /** * <copyright> * </copyright> * * $Id$ */ package org.w3.xlink.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.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.animation.AnimationPackage; import org.oasisopen.names.tc.opendocument.xmlns.animation.impl.AnimationPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.chart.ChartPackage; import org.oasisopen.names.tc.opendocument.xmlns.chart.impl.ChartPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigPackage; import org.oasisopen.names.tc.opendocument.xmlns.config.impl.ConfigPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.datastyle.DatastylePackage; import org.oasisopen.names.tc.opendocument.xmlns.datastyle.impl.DatastylePackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.dr3d.Dr3dPackage; import org.oasisopen.names.tc.opendocument.xmlns.dr3d.impl.Dr3dPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.drawing.DrawingPackage; import org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.DrawingPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.fo.FoPackage; import org.oasisopen.names.tc.opendocument.xmlns.fo.impl.FoPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.form.FormPackage; import org.oasisopen.names.tc.opendocument.xmlns.form.impl.FormPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.meta.MetaPackage; import org.oasisopen.names.tc.opendocument.xmlns.meta.impl.MetaPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.office.OfficePackage; import org.oasisopen.names.tc.opendocument.xmlns.office.impl.OfficePackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.presentation.PresentationPackage; import org.oasisopen.names.tc.opendocument.xmlns.presentation.impl.PresentationPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.script.ScriptPackage; import org.oasisopen.names.tc.opendocument.xmlns.script.impl.ScriptPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.smil.CompatiblePackage; import org.oasisopen.names.tc.opendocument.xmlns.smil.impl.CompatiblePackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.style.StylePackage; import org.oasisopen.names.tc.opendocument.xmlns.style.impl.StylePackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.svg.SvgPackage; import org.oasisopen.names.tc.opendocument.xmlns.svg.impl.SvgPackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.table.TablePackage; import org.oasisopen.names.tc.opendocument.xmlns.table.impl.TablePackageImpl; import org.oasisopen.names.tc.opendocument.xmlns.text.TextPackage; import org.oasisopen.names.tc.opendocument.xmlns.text.impl.TextPackageImpl; import org.purl.dc.elements.dc.DCPackage; import org.purl.dc.elements.dc.impl.DCPackageImpl; import org.w3.math.ml.mathml.MathMLPackage; import org.w3.math.ml.mathml.impl.MathMLPackageImpl; import org.w3.xforms.XFormsPackage; import org.w3.xforms.impl.XFormsPackageImpl; import org.w3.xlink.ActuateType; import org.w3.xlink.ActuateType1; import org.w3.xlink.DocumentRoot; import org.w3.xlink.ShowType; import org.w3.xlink.ShowType1; import org.w3.xlink.ShowType2; import org.w3.xlink.TypeType; import org.w3.xlink.XLinkFactory; import org.w3.xlink.XLinkPackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class XLinkPackageImpl extends EPackageImpl implements XLinkPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentRootEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum actuateTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum actuateType1EEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum showTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum showType1EEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum showType2EEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum typeTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType actuateTypeObjectEDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType actuateTypeObject1EDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType showTypeObjectEDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType showTypeObject1EDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType showTypeObject2EDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType typeTypeObjectEDataType = 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.w3.xlink.XLinkPackage#eNS_URI * @see #init() * @generated */ private XLinkPackageImpl() { super(eNS_URI, XLinkFactory.eINSTANCE); } /** * <!-- 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 XLinkPackage init() { if (isInited) return (XLinkPackage)EPackage.Registry.INSTANCE.getEPackage(XLinkPackage.eNS_URI); // Obtain or create and register package XLinkPackageImpl theXLinkPackage = (XLinkPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof XLinkPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new XLinkPackageImpl()); isInited = true; // Obtain or create and register interdependencies DrawingPackageImpl theDrawingPackage = (DrawingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DrawingPackage.eNS_URI) instanceof DrawingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DrawingPackage.eNS_URI) : DrawingPackage.eINSTANCE); TextPackageImpl theTextPackage = (TextPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TextPackage.eNS_URI) instanceof TextPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TextPackage.eNS_URI) : TextPackage.eINSTANCE); OfficePackageImpl theOfficePackage = (OfficePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OfficePackage.eNS_URI) instanceof OfficePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OfficePackage.eNS_URI) : OfficePackage.eINSTANCE); ScriptPackageImpl theScriptPackage = (ScriptPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ScriptPackage.eNS_URI) instanceof ScriptPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ScriptPackage.eNS_URI) : ScriptPackage.eINSTANCE); PresentationPackageImpl thePresentationPackage = (PresentationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PresentationPackage.eNS_URI) instanceof PresentationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PresentationPackage.eNS_URI) : PresentationPackage.eINSTANCE); SvgPackageImpl theSvgPackage = (SvgPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SvgPackage.eNS_URI) instanceof SvgPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SvgPackage.eNS_URI) : SvgPackage.eINSTANCE); Dr3dPackageImpl theDr3dPackage = (Dr3dPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Dr3dPackage.eNS_URI) instanceof Dr3dPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Dr3dPackage.eNS_URI) : Dr3dPackage.eINSTANCE); StylePackageImpl theStylePackage = (StylePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StylePackage.eNS_URI) instanceof StylePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StylePackage.eNS_URI) : StylePackage.eINSTANCE); FormPackageImpl theFormPackage = (FormPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FormPackage.eNS_URI) instanceof FormPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FormPackage.eNS_URI) : FormPackage.eINSTANCE); TablePackageImpl theTablePackage = (TablePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TablePackage.eNS_URI) instanceof TablePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TablePackage.eNS_URI) : TablePackage.eINSTANCE); FoPackageImpl theFoPackage = (FoPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FoPackage.eNS_URI) instanceof FoPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FoPackage.eNS_URI) : FoPackage.eINSTANCE); ConfigPackageImpl theConfigPackage = (ConfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConfigPackage.eNS_URI) instanceof ConfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConfigPackage.eNS_URI) : ConfigPackage.eINSTANCE); DatastylePackageImpl theDatastylePackage = (DatastylePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DatastylePackage.eNS_URI) instanceof DatastylePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DatastylePackage.eNS_URI) : DatastylePackage.eINSTANCE); AnimationPackageImpl theAnimationPackage = (AnimationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AnimationPackage.eNS_URI) instanceof AnimationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AnimationPackage.eNS_URI) : AnimationPackage.eINSTANCE); CompatiblePackageImpl theCompatiblePackage = (CompatiblePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompatiblePackage.eNS_URI) instanceof CompatiblePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompatiblePackage.eNS_URI) : CompatiblePackage.eINSTANCE); MetaPackageImpl theMetaPackage = (MetaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MetaPackage.eNS_URI) instanceof MetaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MetaPackage.eNS_URI) : MetaPackage.eINSTANCE); ChartPackageImpl theChartPackage = (ChartPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ChartPackage.eNS_URI) instanceof ChartPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ChartPackage.eNS_URI) : ChartPackage.eINSTANCE); DCPackageImpl theDCPackage = (DCPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DCPackage.eNS_URI) instanceof DCPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DCPackage.eNS_URI) : DCPackage.eINSTANCE); MathMLPackageImpl theMathMLPackage = (MathMLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MathMLPackage.eNS_URI) instanceof MathMLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MathMLPackage.eNS_URI) : MathMLPackage.eINSTANCE); XFormsPackageImpl theXFormsPackage = (XFormsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XFormsPackage.eNS_URI) instanceof XFormsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XFormsPackage.eNS_URI) : XFormsPackage.eINSTANCE); // Load packages theDrawingPackage.loadPackage(); theTextPackage.loadPackage(); theStylePackage.loadPackage(); theFormPackage.loadPackage(); theTablePackage.loadPackage(); // Create package meta-data objects theXLinkPackage.createPackageContents(); theOfficePackage.createPackageContents(); theScriptPackage.createPackageContents(); thePresentationPackage.createPackageContents(); theSvgPackage.createPackageContents(); theDr3dPackage.createPackageContents(); theFoPackage.createPackageContents(); theConfigPackage.createPackageContents(); theDatastylePackage.createPackageContents(); theAnimationPackage.createPackageContents(); theCompatiblePackage.createPackageContents(); theMetaPackage.createPackageContents(); theChartPackage.createPackageContents(); theDCPackage.createPackageContents(); theMathMLPackage.createPackageContents(); theXFormsPackage.createPackageContents(); // Initialize created meta-data theXLinkPackage.initializePackageContents(); theOfficePackage.initializePackageContents(); theScriptPackage.initializePackageContents(); thePresentationPackage.initializePackageContents(); theSvgPackage.initializePackageContents(); theDr3dPackage.initializePackageContents(); theFoPackage.initializePackageContents(); theConfigPackage.initializePackageContents(); theDatastylePackage.initializePackageContents(); theAnimationPackage.initializePackageContents(); theCompatiblePackage.initializePackageContents(); theMetaPackage.initializePackageContents(); theChartPackage.initializePackageContents(); theDCPackage.initializePackageContents(); theMathMLPackage.initializePackageContents(); theXFormsPackage.initializePackageContents(); // Fix loaded packages theDrawingPackage.fixPackageContents(); theTextPackage.fixPackageContents(); theStylePackage.fixPackageContents(); theFormPackage.fixPackageContents(); theTablePackage.fixPackageContents(); // Mark meta-data to indicate it can't be changed theXLinkPackage.freeze(); return theXLinkPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getDocumentRoot() { return documentRootEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Mixed() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XMLNSPrefixMap() { return (EReference)documentRootEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XSISchemaLocation() { return (EReference)documentRootEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Href() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Title() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Type() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getActuateType() { return actuateTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getActuateType1() { return actuateType1EEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getShowType() { return showTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getShowType1() { return showType1EEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getShowType2() { return showType2EEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getTypeType() { return typeTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getActuateTypeObject() { return actuateTypeObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getActuateTypeObject1() { return actuateTypeObject1EDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getShowTypeObject() { return showTypeObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getShowTypeObject1() { return showTypeObject1EDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getShowTypeObject2() { return showTypeObject2EDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getTypeTypeObject() { return typeTypeObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XLinkFactory getXLinkFactory() { return (XLinkFactory)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__HREF); createEAttribute(documentRootEClass, DOCUMENT_ROOT__TITLE); createEAttribute(documentRootEClass, DOCUMENT_ROOT__TYPE); // Create enums actuateTypeEEnum = createEEnum(ACTUATE_TYPE); actuateType1EEnum = createEEnum(ACTUATE_TYPE1); showTypeEEnum = createEEnum(SHOW_TYPE); showType1EEnum = createEEnum(SHOW_TYPE1); showType2EEnum = createEEnum(SHOW_TYPE2); typeTypeEEnum = createEEnum(TYPE_TYPE); // Create data types actuateTypeObjectEDataType = createEDataType(ACTUATE_TYPE_OBJECT); actuateTypeObject1EDataType = createEDataType(ACTUATE_TYPE_OBJECT1); showTypeObjectEDataType = createEDataType(SHOW_TYPE_OBJECT); showTypeObject1EDataType = createEDataType(SHOW_TYPE_OBJECT1); showTypeObject2EDataType = createEDataType(SHOW_TYPE_OBJECT2); typeTypeObjectEDataType = createEDataType(TYPE_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 TextPackage theTextPackage = (TextPackage)EPackage.Registry.INSTANCE.getEPackage(TextPackage.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_Href(), theTextPackage.getAnyURI(), "href", null, 0, 1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDocumentRoot_Title(), theTextPackage.getString(), "title", null, 0, 1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDocumentRoot_Type(), this.getTypeType(), "type", null, 0, 1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(actuateTypeEEnum, ActuateType.class, "ActuateType"); addEEnumLiteral(actuateTypeEEnum, ActuateType.ON_LOAD); initEEnum(actuateType1EEnum, ActuateType1.class, "ActuateType1"); addEEnumLiteral(actuateType1EEnum, ActuateType1.ON_REQUEST); initEEnum(showTypeEEnum, ShowType.class, "ShowType"); addEEnumLiteral(showTypeEEnum, ShowType.REPLACE); initEEnum(showType1EEnum, ShowType1.class, "ShowType1"); addEEnumLiteral(showType1EEnum, ShowType1.EMBED); initEEnum(showType2EEnum, ShowType2.class, "ShowType2"); addEEnumLiteral(showType2EEnum, ShowType2.NEW); addEEnumLiteral(showType2EEnum, ShowType2.REPLACE); initEEnum(typeTypeEEnum, TypeType.class, "TypeType"); addEEnumLiteral(typeTypeEEnum, TypeType.SIMPLE); // Initialize data types initEDataType(actuateTypeObjectEDataType, ActuateType.class, "ActuateTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(actuateTypeObject1EDataType, ActuateType1.class, "ActuateTypeObject1", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(showTypeObjectEDataType, ShowType1.class, "ShowTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(showTypeObject1EDataType, ShowType.class, "ShowTypeObject1", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(showTypeObject2EDataType, ShowType2.class, "ShowTypeObject2", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(typeTypeObjectEDataType, TypeType.class, "TypeTypeObject", 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 (actuateTypeEEnum, source, new String[] { "name", "actuate_._type" }); addAnnotation (actuateType1EEnum, source, new String[] { "name", "actuate_._1_._type" }); addAnnotation (actuateTypeObjectEDataType, source, new String[] { "name", "actuate_._type:Object", "baseType", "actuate_._type" }); addAnnotation (actuateTypeObject1EDataType, source, new String[] { "name", "actuate_._1_._type:Object", "baseType", "actuate_._1_._type" }); addAnnotation (showTypeEEnum, source, new String[] { "name", "show_._type" }); addAnnotation (showType1EEnum, source, new String[] { "name", "show_._1_._type" }); addAnnotation (showType2EEnum, source, new String[] { "name", "show_._2_._type" }); addAnnotation (showTypeObjectEDataType, source, new String[] { "name", "show_._1_._type:Object", "baseType", "show_._1_._type" }); addAnnotation (showTypeObject1EDataType, source, new String[] { "name", "show_._type:Object", "baseType", "show_._type" }); addAnnotation (showTypeObject2EDataType, source, new String[] { "name", "show_._2_._type:Object", "baseType", "show_._2_._type" }); addAnnotation (typeTypeEEnum, source, new String[] { "name", "type_._type" }); addAnnotation (typeTypeObjectEDataType, source, new String[] { "name", "type_._type:Object", "baseType", "type_._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_Href(), source, new String[] { "kind", "attribute", "name", "href", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_Title(), source, new String[] { "kind", "attribute", "name", "title", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_Type(), source, new String[] { "kind", "attribute", "name", "type", "namespace", "##targetNamespace" }); } } //XLinkPackageImpl