35 * <!-- begin-user-doc --> |
35 * <!-- begin-user-doc --> |
36 * An implementation of the model <b>Package</b>. |
36 * An implementation of the model <b>Package</b>. |
37 * <!-- end-user-doc --> |
37 * <!-- end-user-doc --> |
38 * @generated |
38 * @generated |
39 */ |
39 */ |
40 public class PIConfigPackageImpl extends EPackageImpl implements PIConfigPackage { |
40 public final class PIConfigPackageImpl extends EPackageImpl implements PIConfigPackage { |
41 /** |
41 /** |
42 * <!-- begin-user-doc --> |
42 * <!-- begin-user-doc --> |
43 * <!-- end-user-doc --> |
43 * <!-- end-user-doc --> |
44 * @generated |
44 * @generated |
45 */ |
45 */ |
75 * initialization of the package, or returns the registered package, |
75 * initialization of the package, or returns the registered package, |
76 * if one already exists. |
76 * if one already exists. |
77 * <!-- begin-user-doc --> |
77 * <!-- begin-user-doc --> |
78 * <!-- end-user-doc --> |
78 * <!-- end-user-doc --> |
79 * @see org.eclipse.emf.ecore.EPackage.Registry |
79 * @see org.eclipse.emf.ecore.EPackage.Registry |
80 * @see com.nokia.carbide.cpp.pi.util.config.gen.PIConfig.PIConfigPackage#eNS_URI |
80 * @see com.nokia.carbide.cpp.pi.util.config.gen.PIConfig.PIConfigPackage#E_NS_URI |
81 * @see #init() |
81 * @see #init() |
82 * @generated |
82 * @generated |
83 */ |
83 */ |
84 private PIConfigPackageImpl() { |
84 private PIConfigPackageImpl() { |
85 super(eNS_URI, PIConfigFactory.eINSTANCE); |
85 super(E_NS_URI, PIConfigFactory.E_INSTANCE); |
86 } |
86 } |
87 |
87 |
88 /** |
88 /** |
89 * <!-- begin-user-doc --> |
89 * <!-- begin-user-doc --> |
90 * <!-- end-user-doc --> |
90 * <!-- end-user-doc --> |
107 * those of another. |
107 * those of another. |
108 * <p>Invocation of this method will not affect any packages that have |
108 * <p>Invocation of this method will not affect any packages that have |
109 * already been initialized. |
109 * already been initialized. |
110 * <!-- begin-user-doc --> |
110 * <!-- begin-user-doc --> |
111 * <!-- end-user-doc --> |
111 * <!-- end-user-doc --> |
112 * @see #eNS_URI |
112 * @see #E_NS_URI |
113 * @see #createPackageContents() |
113 * @see #createPackageContents() |
114 * @see #initializePackageContents() |
114 * @see #initializePackageContents() |
115 * @generated |
115 * @generated |
116 */ |
116 */ |
117 public static PIConfigPackage init() { |
117 public static PIConfigPackage init() { |
118 if (isInited) return (PIConfigPackage)EPackage.Registry.INSTANCE.getEPackage(PIConfigPackage.eNS_URI); |
118 if (isInited) return (PIConfigPackage)EPackage.Registry.INSTANCE.getEPackage(PIConfigPackage.E_NS_URI); |
119 |
119 |
120 // Obtain or create and register package |
120 // Obtain or create and register package |
121 PIConfigPackageImpl thePIConfigPackage = (PIConfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PIConfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PIConfigPackageImpl()); |
121 PIConfigPackageImpl thePIConfigPackage = (PIConfigPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(E_NS_URI) instanceof PIConfigPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(E_NS_URI) : new PIConfigPackageImpl()); |
122 |
122 |
123 isInited = true; |
123 isInited = true; |
124 |
124 |
125 // Initialize simple dependencies |
125 // Initialize simple dependencies |
126 XMLTypePackage.eINSTANCE.eClass(); |
126 XMLTypePackage.eINSTANCE.eClass(); |
337 public void initializePackageContents() { |
337 public void initializePackageContents() { |
338 if (isInitialized) return; |
338 if (isInitialized) return; |
339 isInitialized = true; |
339 isInitialized = true; |
340 |
340 |
341 // Initialize package |
341 // Initialize package |
342 setName(eNAME); |
342 setName(E_NAME); |
343 setNsPrefix(eNS_PREFIX); |
343 setNsPrefix(E_NS_PREFIX); |
344 setNsURI(eNS_URI); |
344 setNsURI(E_NS_URI); |
345 |
345 |
346 // Obtain other dependent packages |
346 // Obtain other dependent packages |
347 XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); |
347 XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); |
348 |
348 |
349 // Create type parameters |
349 // Create type parameters |
371 initEAttribute(getMappingType_EnumString(), theXMLTypePackage.getString(), "enumString", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
371 initEAttribute(getMappingType_EnumString(), theXMLTypePackage.getString(), "enumString", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
372 initEAttribute(getMappingType_KeyCode(), theXMLTypePackage.getUnsignedInt(), "keyCode", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
372 initEAttribute(getMappingType_KeyCode(), theXMLTypePackage.getUnsignedInt(), "keyCode", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
373 initEAttribute(getMappingType_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
373 initEAttribute(getMappingType_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, MappingType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
374 |
374 |
375 // Create resource |
375 // Create resource |
376 createResource(eNS_URI); |
376 createResource(E_NS_URI); |
377 |
377 |
378 // Create annotations |
378 // Create annotations |
379 // http:///org/eclipse/emf/ecore/util/ExtendedMetaData |
379 // http:///org/eclipse/emf/ecore/util/ExtendedMetaData |
380 createExtendedMetaDataAnnotations(); |
380 createExtendedMetaDataAnnotations(); |
381 } |
381 } |