/** */ package regression.test; 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.eclipse.emf.ecore.xml.type.XMLTypePackage; /** * <!-- 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 regression.test.TestFactory * @model kind="package" * @generated */ public class TestPackage extends EPackageImpl { /** * The package name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String eNAME = "test"; /** * The package namespace URI. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String eNS_URI = "regression.test.tool"; /** * The package namespace name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String eNS_PREFIX = "test"; /** * The singleton instance of the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final TestPackage eINSTANCE = regression.test.TestPackage.init(); /** * The meta object id for the '{@link regression.test.DocumentRoot <em>Document Root</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.DocumentRoot * @see regression.test.TestPackage#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>Output</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int DOCUMENT_ROOT__OUTPUT = 3; /** * 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 = 4; /** * The meta object id for the '{@link regression.test.Element <em>Element</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.Element * @see regression.test.TestPackage#getElement() * @generated */ public static final int ELEMENT = 1; /** * The feature id for the '<em><b>Element</b></em>' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__ELEMENT = 0; /** * The feature id for the '<em><b>Address</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__ADDRESS = 1; /** * The feature id for the '<em><b>Element Type</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__ELEMENT_TYPE = 2; /** * The feature id for the '<em><b>Generated By</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__GENERATED_BY = 3; /** * The feature id for the '<em><b>Informational</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__INFORMATIONAL = 4; /** * The feature id for the '<em><b>Name</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__NAME = 5; /** * The feature id for the '<em><b>Value</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__VALUE = 6; /** * The feature id for the '<em><b>Return Type</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT__RETURN_TYPE = 7; /** * The number of structural features of the '<em>Element</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int ELEMENT_FEATURE_COUNT = 8; /** * The meta object id for the '{@link regression.test.OutputType <em>Output Type</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.OutputType * @see regression.test.TestPackage#getOutputType() * @generated */ public static final int OUTPUT_TYPE = 2; /** * The feature id for the '<em><b>Initial Element</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int OUTPUT_TYPE__INITIAL_ELEMENT = 0; /** * The number of structural features of the '<em>Output Type</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ public static final int OUTPUT_TYPE_FEATURE_COUNT = 1; /** * The meta object id for the '{@link regression.test.ElementType <em>Element Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.ElementType * @see regression.test.TestPackage#getElementType() * @generated */ public static final int ELEMENT_TYPE = 3; /** * The meta object id for the '{@link regression.test.GeneratorType <em>Generator Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.GeneratorType * @see regression.test.TestPackage#getGeneratorType() * @generated */ public static final int GENERATOR_TYPE = 4; /** * The meta object id for the '<em>Element Type Object</em>' data type. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.ElementType * @see regression.test.TestPackage#getElementTypeObject() * @generated */ public static final int ELEMENT_TYPE_OBJECT = 5; /** * The meta object id for the '<em>Generator Type Object</em>' data type. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.GeneratorType * @see regression.test.TestPackage#getGeneratorTypeObject() * @generated */ public static final int GENERATOR_TYPE_OBJECT = 6; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentRootEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass elementEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass outputTypeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum elementTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum generatorTypeEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType elementTypeObjectEDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType generatorTypeObjectEDataType = 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 regression.test.TestPackage#eNS_URI * @see #init() * @generated */ private TestPackage() { super(eNS_URI, TestFactory.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 TestPackage#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 TestPackage init() { if (isInited) return (TestPackage)EPackage.Registry.INSTANCE.getEPackage(TestPackage.eNS_URI); // Obtain or create and register package TestPackage theTestPackage = (TestPackage)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TestPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TestPackage()); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Create package meta-data objects theTestPackage.createPackageContents(); // Initialize created meta-data theTestPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theTestPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(TestPackage.eNS_URI, theTestPackage); return theTestPackage; } /** * Returns the meta object for class '{@link regression.test.DocumentRoot <em>Document Root</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Document Root</em>'. * @see regression.test.DocumentRoot * @generated */ public EClass getDocumentRoot() { return documentRootEClass; } /** * Returns the meta object for the attribute list '{@link regression.test.DocumentRoot#getMixed <em>Mixed</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute list '<em>Mixed</em>'. * @see regression.test.DocumentRoot#getMixed() * @see #getDocumentRoot() * @generated */ public EAttribute getDocumentRoot_Mixed() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for the map '{@link regression.test.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 regression.test.DocumentRoot#getXMLNSPrefixMap() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_XMLNSPrefixMap() { return (EReference)documentRootEClass.getEStructuralFeatures().get(1); } /** * Returns the meta object for the map '{@link regression.test.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 regression.test.DocumentRoot#getXSISchemaLocation() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_XSISchemaLocation() { return (EReference)documentRootEClass.getEStructuralFeatures().get(2); } /** * Returns the meta object for the containment reference '{@link regression.test.DocumentRoot#getOutput <em>Output</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Output</em>'. * @see regression.test.DocumentRoot#getOutput() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_Output() { return (EReference)documentRootEClass.getEStructuralFeatures().get(3); } /** * Returns the meta object for class '{@link regression.test.Element <em>Element</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Element</em>'. * @see regression.test.Element * @generated */ public EClass getElement() { return elementEClass; } /** * Returns the meta object for the containment reference list '{@link regression.test.Element#getElement <em>Element</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Element</em>'. * @see regression.test.Element#getElement() * @see #getElement() * @generated */ public EReference getElement_Element() { return (EReference)elementEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getAddress <em>Address</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Address</em>'. * @see regression.test.Element#getAddress() * @see #getElement() * @generated */ public EAttribute getElement_Address() { return (EAttribute)elementEClass.getEStructuralFeatures().get(1); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getElementType <em>Element Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Element Type</em>'. * @see regression.test.Element#getElementType() * @see #getElement() * @generated */ public EAttribute getElement_ElementType() { return (EAttribute)elementEClass.getEStructuralFeatures().get(2); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getGeneratedBy <em>Generated By</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Generated By</em>'. * @see regression.test.Element#getGeneratedBy() * @see #getElement() * @generated */ public EAttribute getElement_GeneratedBy() { return (EAttribute)elementEClass.getEStructuralFeatures().get(3); } /** * Returns the meta object for the attribute '{@link regression.test.Element#isInformational <em>Informational</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Informational</em>'. * @see regression.test.Element#isInformational() * @see #getElement() * @generated */ public EAttribute getElement_Informational() { return (EAttribute)elementEClass.getEStructuralFeatures().get(4); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getName <em>Name</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Name</em>'. * @see regression.test.Element#getName() * @see #getElement() * @generated */ public EAttribute getElement_Name() { return (EAttribute)elementEClass.getEStructuralFeatures().get(5); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getValue <em>Value</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Value</em>'. * @see regression.test.Element#getValue() * @see #getElement() * @generated */ public EAttribute getElement_Value() { return (EAttribute)elementEClass.getEStructuralFeatures().get(6); } /** * Returns the meta object for the attribute '{@link regression.test.Element#getReturnType <em>Return Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Return Type</em>'. * @see regression.test.Element#getReturnType() * @see #getElement() * @generated */ public EAttribute getElement_ReturnType() { return (EAttribute)elementEClass.getEStructuralFeatures().get(7); } /** * Returns the meta object for class '{@link regression.test.OutputType <em>Output Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Output Type</em>'. * @see regression.test.OutputType * @generated */ public EClass getOutputType() { return outputTypeEClass; } /** * Returns the meta object for the containment reference '{@link regression.test.OutputType#getInitialElement <em>Initial Element</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Initial Element</em>'. * @see regression.test.OutputType#getInitialElement() * @see #getOutputType() * @generated */ public EReference getOutputType_InitialElement() { return (EReference)outputTypeEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for enum '{@link regression.test.ElementType <em>Element Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for enum '<em>Element Type</em>'. * @see regression.test.ElementType * @generated */ public EEnum getElementType() { return elementTypeEEnum; } /** * Returns the meta object for enum '{@link regression.test.GeneratorType <em>Generator Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for enum '<em>Generator Type</em>'. * @see regression.test.GeneratorType * @generated */ public EEnum getGeneratorType() { return generatorTypeEEnum; } /** * Returns the meta object for data type '{@link regression.test.ElementType <em>Element Type Object</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for data type '<em>Element Type Object</em>'. * @see regression.test.ElementType * @model instanceClass="regression.test.ElementType" * extendedMetaData="name='elementType:Object' baseType='elementType'" * @generated */ public EDataType getElementTypeObject() { return elementTypeObjectEDataType; } /** * Returns the meta object for data type '{@link regression.test.GeneratorType <em>Generator Type Object</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for data type '<em>Generator Type Object</em>'. * @see regression.test.GeneratorType * @model instanceClass="regression.test.GeneratorType" * extendedMetaData="name='generatorType:Object' baseType='generatorType'" * @generated */ public EDataType getGeneratorTypeObject() { return generatorTypeObjectEDataType; } /** * 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 TestFactory getTestFactory() { return (TestFactory)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); createEReference(documentRootEClass, DOCUMENT_ROOT__OUTPUT); elementEClass = createEClass(ELEMENT); createEReference(elementEClass, ELEMENT__ELEMENT); createEAttribute(elementEClass, ELEMENT__ADDRESS); createEAttribute(elementEClass, ELEMENT__ELEMENT_TYPE); createEAttribute(elementEClass, ELEMENT__GENERATED_BY); createEAttribute(elementEClass, ELEMENT__INFORMATIONAL); createEAttribute(elementEClass, ELEMENT__NAME); createEAttribute(elementEClass, ELEMENT__VALUE); createEAttribute(elementEClass, ELEMENT__RETURN_TYPE); outputTypeEClass = createEClass(OUTPUT_TYPE); createEReference(outputTypeEClass, OUTPUT_TYPE__INITIAL_ELEMENT); // Create enums elementTypeEEnum = createEEnum(ELEMENT_TYPE); generatorTypeEEnum = createEEnum(GENERATOR_TYPE); // Create data types elementTypeObjectEDataType = createEDataType(ELEMENT_TYPE_OBJECT); generatorTypeObjectEDataType = createEDataType(GENERATOR_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); initEReference(getDocumentRoot_Output(), this.getOutputType(), null, "output", null, 0, -2, null, 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); initEReference(getElement_Element(), this.getElement(), null, "element", null, 0, -1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_Address(), theXMLTypePackage.getString(), "address", null, 1, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_ElementType(), this.getElementType(), "elementType", "VALUE", 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_GeneratedBy(), this.getGeneratorType(), "generatedBy", "OBJECT", 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_Informational(), theXMLTypePackage.getBoolean(), "informational", "false", 0, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_Value(), theXMLTypePackage.getString(), "value", null, 1, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getElement_ReturnType(), theXMLTypePackage.getString(), "returnType", null, 1, 1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(outputTypeEClass, OutputType.class, "OutputType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getOutputType_InitialElement(), this.getElement(), null, "initialElement", null, 1, 1, OutputType.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(elementTypeEEnum, ElementType.class, "ElementType"); addEEnumLiteral(elementTypeEEnum, ElementType.VALUE); addEEnumLiteral(elementTypeEEnum, ElementType.REFERENCE); addEEnumLiteral(elementTypeEEnum, ElementType.NODE); initEEnum(generatorTypeEEnum, GeneratorType.class, "GeneratorType"); addEEnumLiteral(generatorTypeEEnum, GeneratorType.OBJECT); addEEnumLiteral(generatorTypeEEnum, GeneratorType.ARRAY); addEEnumLiteral(generatorTypeEEnum, GeneratorType.ITERABLE); addEEnumLiteral(generatorTypeEEnum, GeneratorType.MAP); addEEnumLiteral(generatorTypeEEnum, GeneratorType.FIELD); addEEnumLiteral(generatorTypeEEnum, GeneratorType.METHOD); // Initialize data types initEDataType(elementTypeObjectEDataType, ElementType.class, "ElementTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(generatorTypeObjectEDataType, GeneratorType.class, "GeneratorTypeObject", 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 (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_Output(), source, new String[] { "kind", "element", "name", "output", "namespace", "##targetNamespace" }); addAnnotation (elementEClass, source, new String[] { "name", "element", "kind", "elementOnly" }); addAnnotation (getElement_Element(), source, new String[] { "kind", "element", "name", "element", "namespace", "##targetNamespace" }); addAnnotation (getElement_Address(), source, new String[] { "kind", "attribute", "name", "address" }); addAnnotation (getElement_ElementType(), source, new String[] { "kind", "attribute", "name", "elementType" }); addAnnotation (getElement_GeneratedBy(), source, new String[] { "kind", "attribute", "name", "generatedBy" }); addAnnotation (getElement_Informational(), source, new String[] { "kind", "attribute", "name", "informational" }); addAnnotation (getElement_Name(), source, new String[] { "kind", "attribute", "name", "name" }); addAnnotation (getElement_Value(), source, new String[] { "kind", "attribute", "name", "value" }); addAnnotation (getElement_ReturnType(), source, new String[] { "kind", "attribute", "name", "returnType" }); addAnnotation (elementTypeEEnum, source, new String[] { "name", "elementType" }); addAnnotation (elementTypeObjectEDataType, source, new String[] { "name", "elementType:Object", "baseType", "elementType" }); addAnnotation (generatorTypeEEnum, source, new String[] { "name", "generatorType" }); addAnnotation (generatorTypeObjectEDataType, source, new String[] { "name", "generatorType:Object", "baseType", "generatorType" }); addAnnotation (outputTypeEClass, source, new String[] { "name", "output_._type", "kind", "elementOnly" }); addAnnotation (getOutputType_InitialElement(), source, new String[] { "kind", "element", "name", "initialElement", "namespace", "##targetNamespace" }); } /** * <!-- 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 regression.test.DocumentRoot <em>Document Root</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.DocumentRoot * @see regression.test.TestPackage#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>Output</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EReference DOCUMENT_ROOT__OUTPUT = eINSTANCE.getDocumentRoot_Output(); /** * The meta object literal for the '{@link regression.test.Element <em>Element</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.Element * @see regression.test.TestPackage#getElement() * @generated */ public static final EClass ELEMENT = eINSTANCE.getElement(); /** * The meta object literal for the '<em><b>Element</b></em>' containment reference list feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EReference ELEMENT__ELEMENT = eINSTANCE.getElement_Element(); /** * The meta object literal for the '<em><b>Address</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__ADDRESS = eINSTANCE.getElement_Address(); /** * The meta object literal for the '<em><b>Element Type</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__ELEMENT_TYPE = eINSTANCE.getElement_ElementType(); /** * The meta object literal for the '<em><b>Generated By</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__GENERATED_BY = eINSTANCE.getElement_GeneratedBy(); /** * The meta object literal for the '<em><b>Informational</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__INFORMATIONAL = eINSTANCE.getElement_Informational(); /** * The meta object literal for the '<em><b>Name</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__NAME = eINSTANCE.getElement_Name(); /** * The meta object literal for the '<em><b>Value</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__VALUE = eINSTANCE.getElement_Value(); /** * The meta object literal for the '<em><b>Return Type</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EAttribute ELEMENT__RETURN_TYPE = eINSTANCE.getElement_ReturnType(); /** * The meta object literal for the '{@link regression.test.OutputType <em>Output Type</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.OutputType * @see regression.test.TestPackage#getOutputType() * @generated */ public static final EClass OUTPUT_TYPE = eINSTANCE.getOutputType(); /** * The meta object literal for the '<em><b>Initial Element</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EReference OUTPUT_TYPE__INITIAL_ELEMENT = eINSTANCE.getOutputType_InitialElement(); /** * The meta object literal for the '{@link regression.test.ElementType <em>Element Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.ElementType * @see regression.test.TestPackage#getElementType() * @generated */ public static final EEnum ELEMENT_TYPE = eINSTANCE.getElementType(); /** * The meta object literal for the '{@link regression.test.GeneratorType <em>Generator Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.GeneratorType * @see regression.test.TestPackage#getGeneratorType() * @generated */ public static final EEnum GENERATOR_TYPE = eINSTANCE.getGeneratorType(); /** * The meta object literal for the '<em>Element Type Object</em>' data type. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.ElementType * @see regression.test.TestPackage#getElementTypeObject() * @generated */ public static final EDataType ELEMENT_TYPE_OBJECT = eINSTANCE.getElementTypeObject(); /** * The meta object literal for the '<em>Generator Type Object</em>' data type. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see regression.test.GeneratorType * @see regression.test.TestPackage#getGeneratorTypeObject() * @generated */ public static final EDataType GENERATOR_TYPE_OBJECT = eINSTANCE.getGeneratorTypeObject(); } } //TestPackage