/** * <copyright> * </copyright> * * $Id$ */ package orgomg.cwm.resource.xml.impl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; 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 orgomg.cwm.analysis.businessnomenclature.BusinessnomenclaturePackage; import orgomg.cwm.analysis.businessnomenclature.impl.BusinessnomenclaturePackageImpl; import orgomg.cwm.analysis.informationvisualization.InformationvisualizationPackage; import orgomg.cwm.analysis.informationvisualization.impl.InformationvisualizationPackageImpl; import orgomg.cwm.analysis.olap.OlapPackage; import orgomg.cwm.analysis.olap.impl.OlapPackageImpl; import orgomg.cwm.analysis.transformation.TransformationPackage; import orgomg.cwm.analysis.transformation.impl.TransformationPackageImpl; import orgomg.cwm.foundation.businessinformation.BusinessinformationPackage; import orgomg.cwm.foundation.businessinformation.impl.BusinessinformationPackageImpl; import orgomg.cwm.foundation.datatypes.DatatypesPackage; import orgomg.cwm.foundation.datatypes.impl.DatatypesPackageImpl; import orgomg.cwm.foundation.expressions.ExpressionsPackage; import orgomg.cwm.foundation.expressions.impl.ExpressionsPackageImpl; import orgomg.cwm.foundation.keysindexes.KeysindexesPackage; import orgomg.cwm.foundation.keysindexes.impl.KeysindexesPackageImpl; import orgomg.cwm.foundation.softwaredeployment.SoftwaredeploymentPackage; import orgomg.cwm.foundation.softwaredeployment.impl.SoftwaredeploymentPackageImpl; import orgomg.cwm.foundation.typemapping.TypemappingPackage; import orgomg.cwm.foundation.typemapping.impl.TypemappingPackageImpl; import orgomg.cwm.management.warehouseoperation.WarehouseoperationPackage; import orgomg.cwm.management.warehouseoperation.impl.WarehouseoperationPackageImpl; import orgomg.cwm.management.warehouseprocess.WarehouseprocessPackage; import orgomg.cwm.management.warehouseprocess.datatype.DatatypePackage; import orgomg.cwm.management.warehouseprocess.datatype.impl.DatatypePackageImpl; import orgomg.cwm.management.warehouseprocess.events.EventsPackage; import orgomg.cwm.management.warehouseprocess.events.impl.EventsPackageImpl; import orgomg.cwm.management.warehouseprocess.impl.WarehouseprocessPackageImpl; import orgomg.cwm.objectmodel.behavioral.BehavioralPackage; import orgomg.cwm.objectmodel.behavioral.impl.BehavioralPackageImpl; import orgomg.cwm.objectmodel.core.CorePackage; import orgomg.cwm.objectmodel.core.impl.CorePackageImpl; import orgomg.cwm.objectmodel.instance.InstancePackage; import orgomg.cwm.objectmodel.instance.impl.InstancePackageImpl; import orgomg.cwm.objectmodel.relationships.RelationshipsPackage; import orgomg.cwm.objectmodel.relationships.impl.RelationshipsPackageImpl; import orgomg.cwm.resource.multidimensional.MultidimensionalPackage; import orgomg.cwm.resource.multidimensional.impl.MultidimensionalPackageImpl; import orgomg.cwm.resource.record.RecordPackage; import orgomg.cwm.resource.record.impl.RecordPackageImpl; import orgomg.cwm.resource.relational.RelationalPackage; import orgomg.cwm.resource.relational.enumerations.EnumerationsPackage; import orgomg.cwm.resource.relational.enumerations.impl.EnumerationsPackageImpl; import orgomg.cwm.resource.relational.impl.RelationalPackageImpl; import orgomg.cwm.resource.xml.Attribute; import orgomg.cwm.resource.xml.AttributeDefault; import orgomg.cwm.resource.xml.Content; import orgomg.cwm.resource.xml.ContentType; import orgomg.cwm.resource.xml.Document; import orgomg.cwm.resource.xml.Element; import orgomg.cwm.resource.xml.ElementContent; import orgomg.cwm.resource.xml.ElementOrderType; import orgomg.cwm.resource.xml.ElementType; import orgomg.cwm.resource.xml.ElementTypeReference; import orgomg.cwm.resource.xml.MixedContent; import orgomg.cwm.resource.xml.OccurrenceType; import orgomg.cwm.resource.xml.Schema; import orgomg.cwm.resource.xml.Text; import orgomg.cwm.resource.xml.XmlFactory; import orgomg.cwm.resource.xml.XmlPackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class XmlPackageImpl extends EPackageImpl implements XmlPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass schemaEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass elementTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass attributeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass contentEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass elementContentEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass mixedContentEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass elementTypeReferenceEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass textEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass elementEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum attributeDefaultEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum contentTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum occurrenceTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum elementOrderTypeEEnum = 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 orgomg.cwm.resource.xml.XmlPackage#eNS_URI * @see #init() * @generated */ private XmlPackageImpl() { super(eNS_URI, XmlFactory.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. * * <p>This method is used to initialize {@link XmlPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static XmlPackage init() { if (isInited) return (XmlPackage)EPackage.Registry.INSTANCE.getEPackage(XmlPackage.eNS_URI); // Obtain or create and register package XmlPackageImpl theXmlPackage = (XmlPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof XmlPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new XmlPackageImpl()); isInited = true; // Obtain or create and register interdependencies CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); BehavioralPackageImpl theBehavioralPackage = (BehavioralPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BehavioralPackage.eNS_URI) instanceof BehavioralPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BehavioralPackage.eNS_URI) : BehavioralPackage.eINSTANCE); RelationshipsPackageImpl theRelationshipsPackage = (RelationshipsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RelationshipsPackage.eNS_URI) instanceof RelationshipsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RelationshipsPackage.eNS_URI) : RelationshipsPackage.eINSTANCE); InstancePackageImpl theInstancePackage = (InstancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InstancePackage.eNS_URI) instanceof InstancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InstancePackage.eNS_URI) : InstancePackage.eINSTANCE); BusinessinformationPackageImpl theBusinessinformationPackage = (BusinessinformationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BusinessinformationPackage.eNS_URI) instanceof BusinessinformationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BusinessinformationPackage.eNS_URI) : BusinessinformationPackage.eINSTANCE); DatatypesPackageImpl theDatatypesPackage = (DatatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) instanceof DatatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) : DatatypesPackage.eINSTANCE); ExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI) instanceof ExpressionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI) : ExpressionsPackage.eINSTANCE); KeysindexesPackageImpl theKeysindexesPackage = (KeysindexesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(KeysindexesPackage.eNS_URI) instanceof KeysindexesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(KeysindexesPackage.eNS_URI) : KeysindexesPackage.eINSTANCE); SoftwaredeploymentPackageImpl theSoftwaredeploymentPackage = (SoftwaredeploymentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SoftwaredeploymentPackage.eNS_URI) instanceof SoftwaredeploymentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SoftwaredeploymentPackage.eNS_URI) : SoftwaredeploymentPackage.eINSTANCE); TypemappingPackageImpl theTypemappingPackage = (TypemappingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TypemappingPackage.eNS_URI) instanceof TypemappingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TypemappingPackage.eNS_URI) : TypemappingPackage.eINSTANCE); RelationalPackageImpl theRelationalPackage = (RelationalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RelationalPackage.eNS_URI) instanceof RelationalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RelationalPackage.eNS_URI) : RelationalPackage.eINSTANCE); EnumerationsPackageImpl theEnumerationsPackage = (EnumerationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EnumerationsPackage.eNS_URI) instanceof EnumerationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EnumerationsPackage.eNS_URI) : EnumerationsPackage.eINSTANCE); RecordPackageImpl theRecordPackage = (RecordPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RecordPackage.eNS_URI) instanceof RecordPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RecordPackage.eNS_URI) : RecordPackage.eINSTANCE); MultidimensionalPackageImpl theMultidimensionalPackage = (MultidimensionalPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MultidimensionalPackage.eNS_URI) instanceof MultidimensionalPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MultidimensionalPackage.eNS_URI) : MultidimensionalPackage.eINSTANCE); TransformationPackageImpl theTransformationPackage = (TransformationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TransformationPackage.eNS_URI) instanceof TransformationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TransformationPackage.eNS_URI) : TransformationPackage.eINSTANCE); OlapPackageImpl theOlapPackage = (OlapPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OlapPackage.eNS_URI) instanceof OlapPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OlapPackage.eNS_URI) : OlapPackage.eINSTANCE); InformationvisualizationPackageImpl theInformationvisualizationPackage = (InformationvisualizationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InformationvisualizationPackage.eNS_URI) instanceof InformationvisualizationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InformationvisualizationPackage.eNS_URI) : InformationvisualizationPackage.eINSTANCE); BusinessnomenclaturePackageImpl theBusinessnomenclaturePackage = (BusinessnomenclaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BusinessnomenclaturePackage.eNS_URI) instanceof BusinessnomenclaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BusinessnomenclaturePackage.eNS_URI) : BusinessnomenclaturePackage.eINSTANCE); WarehouseprocessPackageImpl theWarehouseprocessPackage = (WarehouseprocessPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WarehouseprocessPackage.eNS_URI) instanceof WarehouseprocessPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WarehouseprocessPackage.eNS_URI) : WarehouseprocessPackage.eINSTANCE); DatatypePackageImpl theDatatypePackage = (DatatypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DatatypePackage.eNS_URI) instanceof DatatypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DatatypePackage.eNS_URI) : DatatypePackage.eINSTANCE); EventsPackageImpl theEventsPackage = (EventsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) instanceof EventsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) : EventsPackage.eINSTANCE); WarehouseoperationPackageImpl theWarehouseoperationPackage = (WarehouseoperationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WarehouseoperationPackage.eNS_URI) instanceof WarehouseoperationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WarehouseoperationPackage.eNS_URI) : WarehouseoperationPackage.eINSTANCE); // Create package meta-data objects theXmlPackage.createPackageContents(); theCorePackage.createPackageContents(); theBehavioralPackage.createPackageContents(); theRelationshipsPackage.createPackageContents(); theInstancePackage.createPackageContents(); theBusinessinformationPackage.createPackageContents(); theDatatypesPackage.createPackageContents(); theExpressionsPackage.createPackageContents(); theKeysindexesPackage.createPackageContents(); theSoftwaredeploymentPackage.createPackageContents(); theTypemappingPackage.createPackageContents(); theRelationalPackage.createPackageContents(); theEnumerationsPackage.createPackageContents(); theRecordPackage.createPackageContents(); theMultidimensionalPackage.createPackageContents(); theTransformationPackage.createPackageContents(); theOlapPackage.createPackageContents(); theInformationvisualizationPackage.createPackageContents(); theBusinessnomenclaturePackage.createPackageContents(); theWarehouseprocessPackage.createPackageContents(); theDatatypePackage.createPackageContents(); theEventsPackage.createPackageContents(); theWarehouseoperationPackage.createPackageContents(); // Initialize created meta-data theXmlPackage.initializePackageContents(); theCorePackage.initializePackageContents(); theBehavioralPackage.initializePackageContents(); theRelationshipsPackage.initializePackageContents(); theInstancePackage.initializePackageContents(); theBusinessinformationPackage.initializePackageContents(); theDatatypesPackage.initializePackageContents(); theExpressionsPackage.initializePackageContents(); theKeysindexesPackage.initializePackageContents(); theSoftwaredeploymentPackage.initializePackageContents(); theTypemappingPackage.initializePackageContents(); theRelationalPackage.initializePackageContents(); theEnumerationsPackage.initializePackageContents(); theRecordPackage.initializePackageContents(); theMultidimensionalPackage.initializePackageContents(); theTransformationPackage.initializePackageContents(); theOlapPackage.initializePackageContents(); theInformationvisualizationPackage.initializePackageContents(); theBusinessnomenclaturePackage.initializePackageContents(); theWarehouseprocessPackage.initializePackageContents(); theDatatypePackage.initializePackageContents(); theEventsPackage.initializePackageContents(); theWarehouseoperationPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theXmlPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(XmlPackage.eNS_URI, theXmlPackage); return theXmlPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getSchema() { return schemaEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSchema_Version() { return (EAttribute)schemaEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getSchema_XmlNamespace() { return (EAttribute)schemaEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getElementType() { return elementTypeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getElementType_Content() { return (EReference)elementTypeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getAttribute() { return attributeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getAttribute_DefaultKind() { return (EAttribute)attributeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getContent() { return contentEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getContent_Type() { return (EAttribute)contentEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getContent_Occurrence() { return (EAttribute)contentEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getContent_ElementType() { return (EReference)contentEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getContent_OwnedElementType() { return (EReference)contentEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getElementContent() { return elementContentEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getElementContent_Order() { return (EAttribute)elementContentEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getElementContent_OwnerContent() { return (EReference)elementContentEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getElementContent_OwnedContent() { return (EReference)elementContentEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getMixedContent() { return mixedContentEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getMixedContent_Text() { return (EReference)mixedContentEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getElementTypeReference() { return elementTypeReferenceEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getElementTypeReference_Occurrence() { return (EAttribute)elementTypeReferenceEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getElementTypeReference_OwnerContent() { return (EReference)elementTypeReferenceEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getText() { return textEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getText_OwnerContent() { return (EReference)textEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getElement() { return elementEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getDocument() { return documentEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getAttributeDefault() { return attributeDefaultEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getContentType() { return contentTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getOccurrenceType() { return occurrenceTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getElementOrderType() { return elementOrderTypeEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XmlFactory getXmlFactory() { return (XmlFactory)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 schemaEClass = createEClass(SCHEMA); createEAttribute(schemaEClass, SCHEMA__VERSION); createEAttribute(schemaEClass, SCHEMA__XML_NAMESPACE); elementTypeEClass = createEClass(ELEMENT_TYPE); createEReference(elementTypeEClass, ELEMENT_TYPE__CONTENT); attributeEClass = createEClass(ATTRIBUTE); createEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_KIND); contentEClass = createEClass(CONTENT); createEAttribute(contentEClass, CONTENT__TYPE); createEAttribute(contentEClass, CONTENT__OCCURRENCE); createEReference(contentEClass, CONTENT__ELEMENT_TYPE); createEReference(contentEClass, CONTENT__OWNED_ELEMENT_TYPE); elementContentEClass = createEClass(ELEMENT_CONTENT); createEAttribute(elementContentEClass, ELEMENT_CONTENT__ORDER); createEReference(elementContentEClass, ELEMENT_CONTENT__OWNER_CONTENT); createEReference(elementContentEClass, ELEMENT_CONTENT__OWNED_CONTENT); mixedContentEClass = createEClass(MIXED_CONTENT); createEReference(mixedContentEClass, MIXED_CONTENT__TEXT); elementTypeReferenceEClass = createEClass(ELEMENT_TYPE_REFERENCE); createEAttribute(elementTypeReferenceEClass, ELEMENT_TYPE_REFERENCE__OCCURRENCE); createEReference(elementTypeReferenceEClass, ELEMENT_TYPE_REFERENCE__OWNER_CONTENT); textEClass = createEClass(TEXT); createEReference(textEClass, TEXT__OWNER_CONTENT); elementEClass = createEClass(ELEMENT); documentEClass = createEClass(DOCUMENT); // Create enums attributeDefaultEEnum = createEEnum(ATTRIBUTE_DEFAULT); contentTypeEEnum = createEEnum(CONTENT_TYPE); occurrenceTypeEEnum = createEEnum(OCCURRENCE_TYPE); elementOrderTypeEEnum = createEEnum(ELEMENT_ORDER_TYPE); } /** * <!-- 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 CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); InstancePackage theInstancePackage = (InstancePackage)EPackage.Registry.INSTANCE.getEPackage(InstancePackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes schemaEClass.getESuperTypes().add(theCorePackage.getPackage()); elementTypeEClass.getESuperTypes().add(theCorePackage.getClass_()); attributeEClass.getESuperTypes().add(theCorePackage.getAttribute()); contentEClass.getESuperTypes().add(theCorePackage.getModelElement()); elementContentEClass.getESuperTypes().add(this.getContent()); mixedContentEClass.getESuperTypes().add(this.getContent()); elementTypeReferenceEClass.getESuperTypes().add(theCorePackage.getAttribute()); textEClass.getESuperTypes().add(theCorePackage.getAttribute()); elementEClass.getESuperTypes().add(theInstancePackage.getObject()); documentEClass.getESuperTypes().add(theInstancePackage.getExtent()); // Initialize classes and features; add operations and parameters initEClass(schemaEClass, Schema.class, "Schema", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSchema_Version(), theCorePackage.getString(), "version", null, 0, 1, Schema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSchema_XmlNamespace(), theCorePackage.getString(), "xmlNamespace", null, 0, 1, Schema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(elementTypeEClass, ElementType.class, "ElementType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getElementType_Content(), this.getContent(), this.getContent_ElementType(), "content", null, 0, 1, ElementType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(attributeEClass, Attribute.class, "Attribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getAttribute_DefaultKind(), this.getAttributeDefault(), "defaultKind", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(contentEClass, Content.class, "Content", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getContent_Type(), this.getContentType(), "type", null, 0, 1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getContent_Occurrence(), this.getOccurrenceType(), "occurrence", null, 0, 1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getContent_ElementType(), this.getElementType(), this.getElementType_Content(), "elementType", null, 0, -1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getContent_OwnedElementType(), this.getElementTypeReference(), this.getElementTypeReference_OwnerContent(), "ownedElementType", null, 0, -1, Content.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(elementContentEClass, ElementContent.class, "ElementContent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getElementContent_Order(), this.getElementOrderType(), "order", null, 0, 1, ElementContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getElementContent_OwnerContent(), this.getElementContent(), this.getElementContent_OwnedContent(), "ownerContent", null, 0, -1, ElementContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getElementContent_OwnedContent(), this.getElementContent(), this.getElementContent_OwnerContent(), "ownedContent", null, 0, -1, ElementContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(mixedContentEClass, MixedContent.class, "MixedContent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getMixedContent_Text(), this.getText(), this.getText_OwnerContent(), "text", null, 1, 1, MixedContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(elementTypeReferenceEClass, ElementTypeReference.class, "ElementTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getElementTypeReference_Occurrence(), this.getOccurrenceType(), "occurrence", null, 0, 1, ElementTypeReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getElementTypeReference_OwnerContent(), this.getContent(), this.getContent_OwnedElementType(), "ownerContent", null, 0, -1, ElementTypeReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(textEClass, Text.class, "Text", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getText_OwnerContent(), this.getMixedContent(), this.getMixedContent_Text(), "ownerContent", null, 1, 1, Text.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(elementEClass, Element.class, "Element", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(documentEClass, Document.class, "Document", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); // Initialize enums and add enum literals initEEnum(attributeDefaultEEnum, AttributeDefault.class, "AttributeDefault"); addEEnumLiteral(attributeDefaultEEnum, AttributeDefault.XML_REQUIRED); addEEnumLiteral(attributeDefaultEEnum, AttributeDefault.XML_IMPLIED); addEEnumLiteral(attributeDefaultEEnum, AttributeDefault.XML_DEFAULT); addEEnumLiteral(attributeDefaultEEnum, AttributeDefault.XML_FIXED); initEEnum(contentTypeEEnum, ContentType.class, "ContentType"); addEEnumLiteral(contentTypeEEnum, ContentType.XML_EMPTY); addEEnumLiteral(contentTypeEEnum, ContentType.XML_ANY); addEEnumLiteral(contentTypeEEnum, ContentType.XML_MIXED); addEEnumLiteral(contentTypeEEnum, ContentType.XML_ELEMENT); initEEnum(occurrenceTypeEEnum, OccurrenceType.class, "OccurrenceType"); addEEnumLiteral(occurrenceTypeEEnum, OccurrenceType.XML_ONE); addEEnumLiteral(occurrenceTypeEEnum, OccurrenceType.XML_ZERO_OR_ONE); addEEnumLiteral(occurrenceTypeEEnum, OccurrenceType.XML_ZERO_OR_MORE); addEEnumLiteral(occurrenceTypeEEnum, OccurrenceType.XML_ONE_OR_MORE); initEEnum(elementOrderTypeEEnum, ElementOrderType.class, "ElementOrderType"); addEEnumLiteral(elementOrderTypeEEnum, ElementOrderType.XML_CHOICE); addEEnumLiteral(elementOrderTypeEEnum, ElementOrderType.XML_SEQUENCE); // Create resource createResource(eNS_URI); } } //XmlPackageImpl