/**
*
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. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.example.creditscore.doclit.DoclitPackage#eNS_URI * @see #init() * @generated */ private DoclitPackage() { super(eNS_URI, ((EFactory)DoclitFactory.INSTANCE)); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package 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. *
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. *
Invocation of this method will not affect any packages that have * already been initialized. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static DoclitPackage init() { if (isInited) return (DoclitPackage)EPackage.Registry.INSTANCE.getEPackage(DoclitPackage.eNS_URI); // Obtain or create and register package DoclitPackage theDoclitPackage = (DoclitPackage)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof DoclitPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new DoclitPackage()); isInited = true; // Initialize simple dependencies SDOPackageImpl.eINSTANCE.eClass(); ModelPackageImpl.eINSTANCE.eClass(); // Create package meta-data objects theDoclitPackage.createPackageContents(); // Initialize created meta-data theDoclitPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theDoclitPackage.freeze(); return theDoclitPackage; } /** * Returns the meta object for class '{@link org.example.creditscore.doclit.CreditReport Credit Report}'. * * * @return the meta object for class 'Credit Report'. * @see org.example.creditscore.doclit.CreditReport * @generated */ public EClass getCreditReport() { return creditReportEClass; } /** * Returns the meta object for the attribute '{@link org.example.creditscore.doclit.CreditReport#getScore Score}'. * * * @return the meta object for the attribute 'Score'. * @see org.example.creditscore.doclit.CreditReport#getScore() * @see #getCreditReport() * @generated */ public EAttribute getCreditReport_Score() { return (EAttribute)creditReportEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for class '{@link org.example.creditscore.doclit.Customer Customer}'. * * * @return the meta object for class 'Customer'. * @see org.example.creditscore.doclit.Customer * @generated */ public EClass getCustomer() { return customerEClass; } /** * Returns the meta object for the attribute '{@link org.example.creditscore.doclit.Customer#getSsn Ssn}'. * * * @return the meta object for the attribute 'Ssn'. * @see org.example.creditscore.doclit.Customer#getSsn() * @see #getCustomer() * @generated */ public EAttribute getCustomer_Ssn() { return (EAttribute)customerEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for the attribute '{@link org.example.creditscore.doclit.Customer#getFirstName First Name}'. * * * @return the meta object for the attribute 'First Name'. * @see org.example.creditscore.doclit.Customer#getFirstName() * @see #getCustomer() * @generated */ public EAttribute getCustomer_FirstName() { return (EAttribute)customerEClass.getEStructuralFeatures().get(1); } /** * Returns the meta object for the attribute '{@link org.example.creditscore.doclit.Customer#getLastName Last Name}'. * * * @return the meta object for the attribute 'Last Name'. * @see org.example.creditscore.doclit.Customer#getLastName() * @see #getCustomer() * @generated */ public EAttribute getCustomer_LastName() { return (EAttribute)customerEClass.getEStructuralFeatures().get(2); } /** * Returns the meta object for class '{@link org.eclipse.emf.ecore.EObject Document Root}'. * * * @return the meta object for class 'Document Root'. * @see org.eclipse.emf.ecore.EObject * @generated */ public EClass getDocumentRoot() { return documentRootEClass; } /** * Returns the meta object for the attribute list '{@link org.eclipse.emf.ecore.EObject#getMixed Mixed}'. * * * @return the meta object for the attribute list 'Mixed'. * @see org.eclipse.emf.ecore.EObject#getMixed() * @see #getDocumentRoot() * @generated */ public EAttribute getDocumentRoot_Mixed() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); } /** * Returns the meta object for the map '{@link org.eclipse.emf.ecore.EObject#getXMLNSPrefixMap XMLNS Prefix Map}'. * * * @return the meta object for the map 'XMLNS Prefix Map'. * @see org.eclipse.emf.ecore.EObject#getXMLNSPrefixMap() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_XMLNSPrefixMap() { return (EReference)documentRootEClass.getEStructuralFeatures().get(1); } /** * Returns the meta object for the map '{@link org.eclipse.emf.ecore.EObject#getXSISchemaLocation XSI Schema Location}'. * * * @return the meta object for the map 'XSI Schema Location'. * @see org.eclipse.emf.ecore.EObject#getXSISchemaLocation() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_XSISchemaLocation() { return (EReference)documentRootEClass.getEStructuralFeatures().get(2); } /** * Returns the meta object for the containment reference '{@link org.eclipse.emf.ecore.EObject#getGetCreditScoreRequest Get Credit Score Request}'. * * * @return the meta object for the containment reference 'Get Credit Score Request'. * @see org.eclipse.emf.ecore.EObject#getGetCreditScoreRequest() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_GetCreditScoreRequest() { return (EReference)documentRootEClass.getEStructuralFeatures().get(3); } /** * Returns the meta object for the containment reference '{@link org.eclipse.emf.ecore.EObject#getGetCreditScoreResponse Get Credit Score Response}'. * * * @return the meta object for the containment reference 'Get Credit Score Response'. * @see org.eclipse.emf.ecore.EObject#getGetCreditScoreResponse() * @see #getDocumentRoot() * @generated */ public EReference getDocumentRoot_GetCreditScoreResponse() { return (EReference)documentRootEClass.getEStructuralFeatures().get(4); } /** * Returns the factory that creates the instances of the model. * * * @return the factory that creates the instances of the model. * @generated */ public DoclitFactory getDoclitFactory() { return (DoclitFactory)getEFactoryInstance(); } /** * * * @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. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features creditReportEClass = createEClass(CREDIT_REPORT); createEAttribute(creditReportEClass, CREDIT_REPORT__SCORE); customerEClass = createEClass(CUSTOMER); createEAttribute(customerEClass, CUSTOMER__SSN); createEAttribute(customerEClass, CUSTOMER__FIRST_NAME); createEAttribute(customerEClass, CUSTOMER__LAST_NAME); 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__GET_CREDIT_SCORE_REQUEST); createEReference(documentRootEClass, DOCUMENT_ROOT__GET_CREDIT_SCORE_RESPONSE); } /** * * * @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. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages ModelPackageImpl theModelPackageImpl = (ModelPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ModelPackageImpl.eNS_URI); // Add supertypes to classes // Initialize classes and features; add operations and parameters initEClass(creditReportEClass, CreditReport.class, "CreditReport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCreditReport_Score(), theModelPackageImpl.getInt(), "score", null, 1, 1, CreditReport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(customerEClass, Customer.class, "Customer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCustomer_Ssn(), theModelPackageImpl.getString(), "ssn", null, 1, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCustomer_FirstName(), theModelPackageImpl.getString(), "firstName", null, 1, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCustomer_LastName(), theModelPackageImpl.getString(), "lastName", null, 1, 1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(documentRootEClass, null, "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_GetCreditScoreRequest(), this.getCustomer(), null, "getCreditScoreRequest", 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_GetCreditScoreResponse(), this.getCreditReport(), null, "getCreditScoreResponse", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } /** * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. * * * @generated */ protected void createExtendedMetaDataAnnotations() { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; addAnnotation (creditReportEClass, source, new String[] { "name", "CreditReport", "kind", "elementOnly" }); addAnnotation (getCreditReport_Score(), source, new String[] { "kind", "element", "name", "score" }); addAnnotation (customerEClass, source, new String[] { "name", "Customer", "kind", "elementOnly" }); addAnnotation (getCustomer_Ssn(), source, new String[] { "kind", "element", "name", "ssn" }); addAnnotation (getCustomer_FirstName(), source, new String[] { "kind", "element", "name", "firstName" }); addAnnotation (getCustomer_LastName(), source, new String[] { "kind", "element", "name", "lastName" }); 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_GetCreditScoreRequest(), source, new String[] { "kind", "element", "name", "getCreditScoreRequest", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_GetCreditScoreResponse(), source, new String[] { "kind", "element", "name", "getCreditScoreResponse", "namespace", "##targetNamespace" }); } /** * * Defines literals for the meta objects that represent *