setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); addETypeParameter(eeListEDataType, "E"); addETypeParameter(eJavaClassEDataType, "T"); addETypeParameter(eMapEDataType, "K"); addETypeParameter(eMapEDataType, "V"); addETypeParameter(eTreeIteratorEDataType, "E"); eAttributeEClass.getESuperTypes().add(this.getEStructuralFeature()); eAnnotationEClass.getESuperTypes().add(this.getEModelElement()); eClassEClass.getESuperTypes().add(this.getEClassifier()); eClassifierEClass.getESuperTypes().add(this.getENamedElement()); eDataTypeEClass.getESuperTypes().add(this.getEClassifier()); eEnumEClass.getESuperTypes().add(this.getEDataType()); eEnumLiteralEClass.getESuperTypes().add(this.getENamedElement()); eFactoryEClass.getESuperTypes().add(this.getEModelElement()); eNamedElementEClass.getESuperTypes().add(this.getEModelElement()); eOperationEClass.getESuperTypes().add(this.getETypedElement()); ePackageEClass.getESuperTypes().add(this.getENamedElement()); eParameterEClass.getESuperTypes().add(this.getETypedElement()); eReferenceEClass.getESuperTypes().add(this.getEStructuralFeature()); eStructuralFeatureEClass.getESuperTypes().add(this.getETypedElement()); eTypedElementEClass.getESuperTypes().add(this.getENamedElement()); eTypeParameterEClass.getESuperTypes().add(this.getENamedElement()); initEClass(eAttributeEClass, EAttribute.class, "EAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getEAttribute_ID(), this.getEBoolean(), "iD", null, 0, 1, EAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
EcorePackageImpl theEcorePackage = registeredEcorePackage instanceof EcorePackageImpl ? (EcorePackageImpl)registeredEcorePackage : new EcorePackageImpl(); theEcorePackage.createPackageContents(); theEcorePackage.initializePackageContents();
addAnnotation (eAttributeEClass, source, addAnnotation (eAnnotationEClass, source, addAnnotation (eClassEClass, source, addAnnotation (eClassifierEClass, source, addAnnotation (eEnumEClass, source, addAnnotation (eNamedElementEClass, source, addAnnotation (eOperationEClass, source, addAnnotation
eAttributeEClass = createEClass(EATTRIBUTE); createEAttribute(eAttributeEClass, EATTRIBUTE__ID); createEReference(eAttributeEClass, EATTRIBUTE__EATTRIBUTE_TYPE); eAnnotationEClass = createEClass(EANNOTATION); createEAttribute(eAnnotationEClass, EANNOTATION__SOURCE); createEReference(eAnnotationEClass, EANNOTATION__DETAILS); createEReference(eAnnotationEClass, EANNOTATION__EMODEL_ELEMENT); createEReference(eAnnotationEClass, EANNOTATION__CONTENTS); createEReference(eAnnotationEClass, EANNOTATION__REFERENCES); eClassEClass = createEClass(ECLASS); createEAttribute(eClassEClass, ECLASS__ABSTRACT); createEAttribute(eClassEClass, ECLASS__INTERFACE); createEReference(eClassEClass, ECLASS__ESUPER_TYPES); createEReference(eClassEClass, ECLASS__EOPERATIONS); createEReference(eClassEClass, ECLASS__EALL_ATTRIBUTES); createEReference(eClassEClass, ECLASS__EALL_REFERENCES); createEReference(eClassEClass, ECLASS__EREFERENCES); createEReference(eClassEClass, ECLASS__EATTRIBUTES); createEReference(eClassEClass, ECLASS__EALL_CONTAINMENTS); createEReference(eClassEClass, ECLASS__EALL_OPERATIONS); createEReference(eClassEClass, ECLASS__EALL_STRUCTURAL_FEATURES); createEReference(eClassEClass, ECLASS__EALL_SUPER_TYPES); createEReference(eClassEClass, ECLASS__EID_ATTRIBUTE); createEReference(eClassEClass, ECLASS__ESTRUCTURAL_FEATURES); createEReference(eClassEClass, ECLASS__EGENERIC_SUPER_TYPES); createEReference(eClassEClass, ECLASS__EALL_GENERIC_SUPER_TYPES); createEOperation(eClassEClass, ECLASS___IS_SUPER_TYPE_OF__ECLASS);
initEReference(getImplicitAllocation_Parent(), theEcorePackage.getEObject(), null, "parent", null, 1, 1, ImplicitAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getImplicitAllocation_Feature(), theEcorePackage.getEStructuralFeature(), null, "feature", null, 1, 1, ImplicitAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
public static void init() { if (initialized) return; // Initialize the Ecore package. org.eclipse.emf.ecore.impl.EcorePackageImpl.init(); J2EEInit.init(); // Initialize packages JaxrpcmapPackageImpl.init(); // Register resource factories for xml descriptors // Not calling JaxrpcmapResourceFactory.register() because it does nothing. Registration must be done for each filename as follows: // J2EEResourceFactoryRegistry.INSTANCE.registerLastFileSegment(filename, new JaxrpcmapResourceFactory(EMF2DOMRendererFactory.INSTANCE)); // where filename is a java.lang.String name of the mapping file //Register DTDs JaxrpcmapResourceFactory.registerDtds(); initialized = true; }
eAttributeEClass = createEClass(EATTRIBUTE); createEAttribute(eAttributeEClass, EATTRIBUTE__ID); createEReference(eAttributeEClass, EATTRIBUTE__EATTRIBUTE_TYPE); eAnnotationEClass = createEClass(EANNOTATION); createEAttribute(eAnnotationEClass, EANNOTATION__SOURCE); createEReference(eAnnotationEClass, EANNOTATION__DETAILS); createEReference(eAnnotationEClass, EANNOTATION__EMODEL_ELEMENT); createEReference(eAnnotationEClass, EANNOTATION__CONTENTS); createEReference(eAnnotationEClass, EANNOTATION__REFERENCES); eClassEClass = createEClass(ECLASS); createEAttribute(eClassEClass, ECLASS__ABSTRACT); createEAttribute(eClassEClass, ECLASS__INTERFACE); createEReference(eClassEClass, ECLASS__ESUPER_TYPES); createEReference(eClassEClass, ECLASS__EOPERATIONS); createEReference(eClassEClass, ECLASS__EALL_ATTRIBUTES); createEReference(eClassEClass, ECLASS__EALL_REFERENCES); createEReference(eClassEClass, ECLASS__EREFERENCES); createEReference(eClassEClass, ECLASS__EATTRIBUTES); createEReference(eClassEClass, ECLASS__EALL_CONTAINMENTS); createEReference(eClassEClass, ECLASS__EALL_OPERATIONS); createEReference(eClassEClass, ECLASS__EALL_STRUCTURAL_FEATURES); createEReference(eClassEClass, ECLASS__EALL_SUPER_TYPES); createEReference(eClassEClass, ECLASS__EID_ATTRIBUTE); createEReference(eClassEClass, ECLASS__ESTRUCTURAL_FEATURES); createEReference(eClassEClass, ECLASS__EGENERIC_SUPER_TYPES); createEReference(eClassEClass, ECLASS__EALL_GENERIC_SUPER_TYPES); createEOperation(eClassEClass, ECLASS___IS_SUPER_TYPE_OF__ECLASS);
EcorePackageImpl.init();
setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); addETypeParameter(eeListEDataType, "E"); addETypeParameter(eJavaClassEDataType, "T"); addETypeParameter(eMapEDataType, "K"); addETypeParameter(eMapEDataType, "V"); addETypeParameter(eTreeIteratorEDataType, "E"); eAttributeEClass.getESuperTypes().add(this.getEStructuralFeature()); eAnnotationEClass.getESuperTypes().add(this.getEModelElement()); eClassEClass.getESuperTypes().add(this.getEClassifier()); eClassifierEClass.getESuperTypes().add(this.getENamedElement()); eDataTypeEClass.getESuperTypes().add(this.getEClassifier()); eEnumEClass.getESuperTypes().add(this.getEDataType()); eEnumLiteralEClass.getESuperTypes().add(this.getENamedElement()); eFactoryEClass.getESuperTypes().add(this.getEModelElement()); eNamedElementEClass.getESuperTypes().add(this.getEModelElement()); eOperationEClass.getESuperTypes().add(this.getETypedElement()); ePackageEClass.getESuperTypes().add(this.getENamedElement()); eParameterEClass.getESuperTypes().add(this.getETypedElement()); eReferenceEClass.getESuperTypes().add(this.getEStructuralFeature()); eStructuralFeatureEClass.getESuperTypes().add(this.getETypedElement()); eTypedElementEClass.getESuperTypes().add(this.getENamedElement()); eTypeParameterEClass.getESuperTypes().add(this.getENamedElement()); initEClass(eAttributeEClass, EAttribute.class, "EAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getEAttribute_ID(), this.getEBoolean(), "iD", null, 0, 1, EAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
EcorePackageImpl theEcorePackage = (EcorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EcorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EcorePackageImpl()); theEcorePackage.createPackageContents(); theEcorePackage.initializePackageContents();
/** * @generated This field/method will be replaced during code generation. */ public static ModulemapPackage init() { // Initialize simple dependencies CommonPackageImpl.init(); JavaRefPackageImpl.init(); ApplicationPackageImpl.init(); EcorePackageImpl.init(); // Obtain or create and register package and interdependencies ModulemapPackageImpl theModulemapPackage = (ModulemapPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ModulemapPackageImpl()); // Step 1: create meta-model objects theModulemapPackage.createPackageContents(); // Step 2: complete initialization theModulemapPackage.initializePackageContents(); return theModulemapPackage; }
addAnnotation (eAttributeEClass, source, addAnnotation (eAnnotationEClass, source, addAnnotation (eClassEClass, source, addAnnotation (eClassifierEClass, source, addAnnotation (eEnumEClass, source, addAnnotation (eNamedElementEClass, source, addAnnotation (eOperationEClass, source, addAnnotation
addAnnotation (eBigDecimalEDataType, source, addAnnotation (eBigIntegerEDataType, source, addAnnotation (eBooleanEDataType, source, addAnnotation (eBooleanObjectEDataType, source, "name", "EBoolean:Object" }); addAnnotation (eByteEDataType, source, addAnnotation (eByteArrayEDataType, source, addAnnotation (eByteObjectEDataType, source,
addAnnotation (eBigDecimalEDataType, source, addAnnotation (eBigIntegerEDataType, source, addAnnotation (eBooleanEDataType, source, addAnnotation (eBooleanObjectEDataType, source, "name", "EBoolean:Object" }); addAnnotation (eByteEDataType, source, addAnnotation (eByteArrayEDataType, source, addAnnotation (eByteObjectEDataType, source,