/******************************************************************************* * 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.oasisopen.names.tc.opendocument.xmlns.config.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.ConfigFactory; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigItemMapEntryType; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigItemMapIndexedType; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigItemMapNamedType; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigItemSetType; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigItemType; import org.oasisopen.names.tc.opendocument.xmlns.config.ConfigPackage; import org.oasisopen.names.tc.opendocument.xmlns.config.DocumentRoot; import org.oasisopen.names.tc.opendocument.xmlns.config.TypeType; 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.XLinkPackage; import org.w3.xlink.impl.XLinkPackageImpl; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class ConfigPackageImpl extends EPackageImpl implements ConfigPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass configItemMapEntryTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass configItemMapIndexedTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass configItemMapNamedTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass configItemSetTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass configItemTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentRootEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum typeTypeEEnum = 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.oasisopen.names.tc.opendocument.xmlns.config.ConfigPackage#eNS_URI * @see #init() * @generated */ private ConfigPackageImpl() { super(eNS_URI, ConfigFactory.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 ConfigPackage init() { if (isInited) return (ConfigPackage)EPackage.Registry.INSTANCE.getEPackage(ConfigPackage.eNS_URI); // Obtain or create and register package ConfigPackageImpl theConfigPackage = (ConfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ConfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ConfigPackageImpl()); 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); XLinkPackageImpl theXLinkPackage = (XLinkPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(XLinkPackage.eNS_URI) instanceof XLinkPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(XLinkPackage.eNS_URI) : XLinkPackage.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); 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 theConfigPackage.createPackageContents(); theOfficePackage.createPackageContents(); theScriptPackage.createPackageContents(); theXLinkPackage.createPackageContents(); thePresentationPackage.createPackageContents(); theSvgPackage.createPackageContents(); theDr3dPackage.createPackageContents(); theFoPackage.createPackageContents(); theDatastylePackage.createPackageContents(); theAnimationPackage.createPackageContents(); theCompatiblePackage.createPackageContents(); theMetaPackage.createPackageContents(); theChartPackage.createPackageContents(); theDCPackage.createPackageContents(); theMathMLPackage.createPackageContents(); theXFormsPackage.createPackageContents(); // Initialize created meta-data theConfigPackage.initializePackageContents(); theOfficePackage.initializePackageContents(); theScriptPackage.initializePackageContents(); theXLinkPackage.initializePackageContents(); thePresentationPackage.initializePackageContents(); theSvgPackage.initializePackageContents(); theDr3dPackage.initializePackageContents(); theFoPackage.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 theConfigPackage.freeze(); return theConfigPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getConfigItemMapEntryType() { return configItemMapEntryTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemMapEntryType_Name() { return (EAttribute)configItemMapEntryTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getConfigItemMapIndexedType() { return configItemMapIndexedTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getConfigItemMapIndexedType_ConfigItemMapEntry() { return (EReference)configItemMapIndexedTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemMapIndexedType_Name() { return (EAttribute)configItemMapIndexedTypeEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getConfigItemMapNamedType() { return configItemMapNamedTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getConfigItemMapNamedType_ConfigItemMapEntry() { return (EReference)configItemMapNamedTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemMapNamedType_Name() { return (EAttribute)configItemMapNamedTypeEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getConfigItemSetType() { return configItemSetTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemSetType_Name() { return (EAttribute)configItemSetTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getConfigItemType() { return configItemTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemType_Mixed() { return (EAttribute)configItemTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemType_Name() { return (EAttribute)configItemTypeEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getConfigItemType_Type() { return (EAttribute)configItemTypeEClass.getEStructuralFeatures().get(2); } /** * <!-- 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 EReference getDocumentRoot_ConfigItem() { return (EReference)documentRootEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_ConfigItemMapEntry() { return (EReference)documentRootEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_ConfigItemMapIndexed() { return (EReference)documentRootEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_ConfigItemMapNamed() { return (EReference)documentRootEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_ConfigItemSet() { return (EReference)documentRootEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Name() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(8); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Type() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(9); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getTypeType() { return typeTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getTypeTypeObject() { return typeTypeObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConfigFactory getConfigFactory() { return (ConfigFactory)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 configItemMapEntryTypeEClass = createEClass(CONFIG_ITEM_MAP_ENTRY_TYPE); createEAttribute(configItemMapEntryTypeEClass, CONFIG_ITEM_MAP_ENTRY_TYPE__NAME); configItemMapIndexedTypeEClass = createEClass(CONFIG_ITEM_MAP_INDEXED_TYPE); createEReference(configItemMapIndexedTypeEClass, CONFIG_ITEM_MAP_INDEXED_TYPE__CONFIG_ITEM_MAP_ENTRY); createEAttribute(configItemMapIndexedTypeEClass, CONFIG_ITEM_MAP_INDEXED_TYPE__NAME); configItemMapNamedTypeEClass = createEClass(CONFIG_ITEM_MAP_NAMED_TYPE); createEReference(configItemMapNamedTypeEClass, CONFIG_ITEM_MAP_NAMED_TYPE__CONFIG_ITEM_MAP_ENTRY); createEAttribute(configItemMapNamedTypeEClass, CONFIG_ITEM_MAP_NAMED_TYPE__NAME); configItemSetTypeEClass = createEClass(CONFIG_ITEM_SET_TYPE); createEAttribute(configItemSetTypeEClass, CONFIG_ITEM_SET_TYPE__NAME); configItemTypeEClass = createEClass(CONFIG_ITEM_TYPE); createEAttribute(configItemTypeEClass, CONFIG_ITEM_TYPE__MIXED); createEAttribute(configItemTypeEClass, CONFIG_ITEM_TYPE__NAME); createEAttribute(configItemTypeEClass, CONFIG_ITEM_TYPE__TYPE); documentRootEClass = createEClass(DOCUMENT_ROOT); createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); createEReference(documentRootEClass, DOCUMENT_ROOT__CONFIG_ITEM); createEReference(documentRootEClass, DOCUMENT_ROOT__CONFIG_ITEM_MAP_ENTRY); createEReference(documentRootEClass, DOCUMENT_ROOT__CONFIG_ITEM_MAP_INDEXED); createEReference(documentRootEClass, DOCUMENT_ROOT__CONFIG_ITEM_MAP_NAMED); createEReference(documentRootEClass, DOCUMENT_ROOT__CONFIG_ITEM_SET); createEAttribute(documentRootEClass, DOCUMENT_ROOT__NAME); createEAttribute(documentRootEClass, DOCUMENT_ROOT__TYPE); // Create enums typeTypeEEnum = createEEnum(TYPE_TYPE); // Create data types 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 configItemMapEntryTypeEClass.getESuperTypes().add(theTextPackage.getConfigItems()); configItemSetTypeEClass.getESuperTypes().add(theTextPackage.getConfigItems()); // Initialize classes and features; add operations and parameters initEClass(configItemMapEntryTypeEClass, ConfigItemMapEntryType.class, "ConfigItemMapEntryType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getConfigItemMapEntryType_Name(), theTextPackage.getString(), "name", null, 0, 1, ConfigItemMapEntryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(configItemMapIndexedTypeEClass, ConfigItemMapIndexedType.class, "ConfigItemMapIndexedType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getConfigItemMapIndexedType_ConfigItemMapEntry(), this.getConfigItemMapEntryType(), null, "configItemMapEntry", null, 1, -1, ConfigItemMapIndexedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getConfigItemMapIndexedType_Name(), theTextPackage.getString(), "name", null, 1, 1, ConfigItemMapIndexedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(configItemMapNamedTypeEClass, ConfigItemMapNamedType.class, "ConfigItemMapNamedType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getConfigItemMapNamedType_ConfigItemMapEntry(), this.getConfigItemMapEntryType(), null, "configItemMapEntry", null, 1, -1, ConfigItemMapNamedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getConfigItemMapNamedType_Name(), theTextPackage.getString(), "name", null, 1, 1, ConfigItemMapNamedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(configItemSetTypeEClass, ConfigItemSetType.class, "ConfigItemSetType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getConfigItemSetType_Name(), theTextPackage.getString(), "name", null, 1, 1, ConfigItemSetType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(configItemTypeEClass, ConfigItemType.class, "ConfigItemType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getConfigItemType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, ConfigItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getConfigItemType_Name(), theTextPackage.getString(), "name", null, 1, 1, ConfigItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getConfigItemType_Type(), this.getTypeType(), "type", null, 1, 1, ConfigItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_ConfigItem(), this.getConfigItemType(), null, "configItem", 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_ConfigItemMapEntry(), this.getConfigItemMapEntryType(), null, "configItemMapEntry", 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_ConfigItemMapIndexed(), this.getConfigItemMapIndexedType(), null, "configItemMapIndexed", 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_ConfigItemMapNamed(), this.getConfigItemMapNamedType(), null, "configItemMapNamed", 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_ConfigItemSet(), this.getConfigItemSetType(), null, "configItemSet", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEAttribute(getDocumentRoot_Name(), theTextPackage.getString(), "name", 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(typeTypeEEnum, TypeType.class, "TypeType"); addEEnumLiteral(typeTypeEEnum, TypeType.BOOLEAN); addEEnumLiteral(typeTypeEEnum, TypeType.SHORT); addEEnumLiteral(typeTypeEEnum, TypeType.INT); addEEnumLiteral(typeTypeEEnum, TypeType.LONG); addEEnumLiteral(typeTypeEEnum, TypeType.DOUBLE); addEEnumLiteral(typeTypeEEnum, TypeType.STRING); addEEnumLiteral(typeTypeEEnum, TypeType.DATETIME); addEEnumLiteral(typeTypeEEnum, TypeType.BASE64_BINARY); // Initialize data types 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 (configItemMapEntryTypeEClass, source, new String[] { "name", "config-item-map-entry_._type", "kind", "elementOnly" }); addAnnotation (getConfigItemMapEntryType_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (configItemMapIndexedTypeEClass, source, new String[] { "name", "config-item-map-indexed_._type", "kind", "elementOnly" }); addAnnotation (getConfigItemMapIndexedType_ConfigItemMapEntry(), source, new String[] { "kind", "element", "name", "config-item-map-entry", "namespace", "##targetNamespace" }); addAnnotation (getConfigItemMapIndexedType_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (configItemMapNamedTypeEClass, source, new String[] { "name", "config-item-map-named_._type", "kind", "elementOnly" }); addAnnotation (getConfigItemMapNamedType_ConfigItemMapEntry(), source, new String[] { "kind", "element", "name", "config-item-map-entry", "namespace", "##targetNamespace" }); addAnnotation (getConfigItemMapNamedType_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (configItemSetTypeEClass, source, new String[] { "name", "config-item-set_._type", "kind", "elementOnly" }); addAnnotation (getConfigItemSetType_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (configItemTypeEClass, source, new String[] { "name", "config-item_._type", "kind", "mixed" }); addAnnotation (getConfigItemType_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getConfigItemType_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (getConfigItemType_Type(), source, new String[] { "kind", "attribute", "name", "type", "namespace", "##targetNamespace" }); 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_ConfigItem(), source, new String[] { "kind", "element", "name", "config-item", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_ConfigItemMapEntry(), source, new String[] { "kind", "element", "name", "config-item-map-entry", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_ConfigItemMapIndexed(), source, new String[] { "kind", "element", "name", "config-item-map-indexed", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_ConfigItemMapNamed(), source, new String[] { "kind", "element", "name", "config-item-map-named", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_ConfigItemSet(), source, new String[] { "kind", "element", "name", "config-item-set", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_Name(), source, new String[] { "kind", "attribute", "name", "name", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_Type(), source, new String[] { "kind", "attribute", "name", "type", "namespace", "##targetNamespace" }); } } //ConfigPackageImpl