|
Added
Link Here
|
| 1 |
/** |
| 2 |
* <copyright> |
| 3 |
* </copyright> |
| 4 |
* |
| 5 |
* $Id$ |
| 6 |
*/ |
| 7 |
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl; |
| 8 |
|
| 9 |
import org.eclipse.emf.ecore.EAttribute; |
| 10 |
import org.eclipse.emf.ecore.EClass; |
| 11 |
import org.eclipse.emf.ecore.EPackage; |
| 12 |
import org.eclipse.emf.ecore.EReference; |
| 13 |
|
| 14 |
import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 15 |
|
| 16 |
import org.eclipse.emf.ecore.xml.type.XMLTypePackage; |
| 17 |
|
| 18 |
import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl; |
| 19 |
|
| 20 |
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage; |
| 21 |
|
| 22 |
import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl; |
| 23 |
|
| 24 |
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage; |
| 25 |
|
| 26 |
import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl; |
| 27 |
|
| 28 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category; |
| 29 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot; |
| 30 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name; |
| 31 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy; |
| 32 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory; |
| 33 |
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage; |
| 34 |
|
| 35 |
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage; |
| 36 |
|
| 37 |
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl; |
| 38 |
|
| 39 |
/** |
| 40 |
* <!-- begin-user-doc --> |
| 41 |
* An implementation of the model <b>Package</b>. |
| 42 |
* <!-- end-user-doc --> |
| 43 |
* @generated |
| 44 |
*/ |
| 45 |
public class TaxonomyPackageImpl extends EPackageImpl implements TaxonomyPackage { |
| 46 |
/** |
| 47 |
* <!-- begin-user-doc --> |
| 48 |
* <!-- end-user-doc --> |
| 49 |
* @generated |
| 50 |
*/ |
| 51 |
private EClass categoryEClass = null; |
| 52 |
|
| 53 |
/** |
| 54 |
* <!-- begin-user-doc --> |
| 55 |
* <!-- end-user-doc --> |
| 56 |
* @generated |
| 57 |
*/ |
| 58 |
private EClass documentRootEClass = null; |
| 59 |
|
| 60 |
/** |
| 61 |
* <!-- begin-user-doc --> |
| 62 |
* <!-- end-user-doc --> |
| 63 |
* @generated |
| 64 |
*/ |
| 65 |
private EClass nameEClass = null; |
| 66 |
|
| 67 |
/** |
| 68 |
* <!-- begin-user-doc --> |
| 69 |
* <!-- end-user-doc --> |
| 70 |
* @generated |
| 71 |
*/ |
| 72 |
private EClass taxonomyEClass = null; |
| 73 |
|
| 74 |
/** |
| 75 |
* Creates an instance of the model <b>Package</b>, registered with |
| 76 |
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 77 |
* package URI value. |
| 78 |
* <p>Note: the correct way to create the package is via the static |
| 79 |
* factory method {@link #init init()}, which also performs |
| 80 |
* initialization of the package, or returns the registered package, |
| 81 |
* if one already exists. |
| 82 |
* <!-- begin-user-doc --> |
| 83 |
* <!-- end-user-doc --> |
| 84 |
* @see org.eclipse.emf.ecore.EPackage.Registry |
| 85 |
* @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#eNS_URI |
| 86 |
* @see #init() |
| 87 |
* @generated |
| 88 |
*/ |
| 89 |
private TaxonomyPackageImpl() { |
| 90 |
super(eNS_URI, TaxonomyFactory.eINSTANCE); |
| 91 |
} |
| 92 |
|
| 93 |
/** |
| 94 |
* <!-- begin-user-doc --> |
| 95 |
* <!-- end-user-doc --> |
| 96 |
* @generated |
| 97 |
*/ |
| 98 |
private static boolean isInited = false; |
| 99 |
|
| 100 |
/** |
| 101 |
* Creates, registers, and initializes the <b>Package</b> for this |
| 102 |
* model, and for any others upon which it depends. Simple |
| 103 |
* dependencies are satisfied by calling this method on all |
| 104 |
* dependent packages before doing anything else. This method drives |
| 105 |
* initialization for interdependent packages directly, in parallel |
| 106 |
* with this package, itself. |
| 107 |
* <p>Of this package and its interdependencies, all packages which |
| 108 |
* have not yet been registered by their URI values are first created |
| 109 |
* and registered. The packages are then initialized in two steps: |
| 110 |
* meta-model objects for all of the packages are created before any |
| 111 |
* are initialized, since one package's meta-model objects may refer to |
| 112 |
* those of another. |
| 113 |
* <p>Invocation of this method will not affect any packages that have |
| 114 |
* already been initialized. |
| 115 |
* <!-- begin-user-doc --> |
| 116 |
* <!-- end-user-doc --> |
| 117 |
* @see #eNS_URI |
| 118 |
* @see #createPackageContents() |
| 119 |
* @see #initializePackageContents() |
| 120 |
* @generated |
| 121 |
*/ |
| 122 |
public static TaxonomyPackage init() { |
| 123 |
if (isInited) return (TaxonomyPackage)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI); |
| 124 |
|
| 125 |
// Obtain or create and register package |
| 126 |
TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TaxonomyPackageImpl()); |
| 127 |
|
| 128 |
isInited = true; |
| 129 |
|
| 130 |
// Initialize simple dependencies |
| 131 |
XMLTypePackageImpl.init(); |
| 132 |
|
| 133 |
// Obtain or create and register interdependencies |
| 134 |
RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE); |
| 135 |
RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE); |
| 136 |
UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE); |
| 137 |
|
| 138 |
// Create package meta-data objects |
| 139 |
theTaxonomyPackage.createPackageContents(); |
| 140 |
theRTIndexPackage.createPackageContents(); |
| 141 |
theRegistryPackage.createPackageContents(); |
| 142 |
theUDDIRegistryPackage.createPackageContents(); |
| 143 |
|
| 144 |
// Initialize created meta-data |
| 145 |
theTaxonomyPackage.initializePackageContents(); |
| 146 |
theRTIndexPackage.initializePackageContents(); |
| 147 |
theRegistryPackage.initializePackageContents(); |
| 148 |
theUDDIRegistryPackage.initializePackageContents(); |
| 149 |
|
| 150 |
// Mark meta-data to indicate it can't be changed |
| 151 |
theTaxonomyPackage.freeze(); |
| 152 |
|
| 153 |
return theTaxonomyPackage; |
| 154 |
} |
| 155 |
|
| 156 |
/** |
| 157 |
* <!-- begin-user-doc --> |
| 158 |
* <!-- end-user-doc --> |
| 159 |
* @generated |
| 160 |
*/ |
| 161 |
public EClass getCategory() { |
| 162 |
return categoryEClass; |
| 163 |
} |
| 164 |
|
| 165 |
/** |
| 166 |
* <!-- begin-user-doc --> |
| 167 |
* <!-- end-user-doc --> |
| 168 |
* @generated |
| 169 |
*/ |
| 170 |
public EReference getCategory_Nlname() { |
| 171 |
return (EReference)categoryEClass.getEStructuralFeatures().get(0); |
| 172 |
} |
| 173 |
|
| 174 |
/** |
| 175 |
* <!-- begin-user-doc --> |
| 176 |
* <!-- end-user-doc --> |
| 177 |
* @generated |
| 178 |
*/ |
| 179 |
public EReference getCategory_Category() { |
| 180 |
return (EReference)categoryEClass.getEStructuralFeatures().get(1); |
| 181 |
} |
| 182 |
|
| 183 |
/** |
| 184 |
* <!-- begin-user-doc --> |
| 185 |
* <!-- end-user-doc --> |
| 186 |
* @generated |
| 187 |
*/ |
| 188 |
public EAttribute getCategory_Code() { |
| 189 |
return (EAttribute)categoryEClass.getEStructuralFeatures().get(2); |
| 190 |
} |
| 191 |
|
| 192 |
/** |
| 193 |
* <!-- begin-user-doc --> |
| 194 |
* <!-- end-user-doc --> |
| 195 |
* @generated |
| 196 |
*/ |
| 197 |
public EAttribute getCategory_Name() { |
| 198 |
return (EAttribute)categoryEClass.getEStructuralFeatures().get(3); |
| 199 |
} |
| 200 |
|
| 201 |
/** |
| 202 |
* <!-- begin-user-doc --> |
| 203 |
* <!-- end-user-doc --> |
| 204 |
* @generated |
| 205 |
*/ |
| 206 |
public EClass getDocumentRoot() { |
| 207 |
return documentRootEClass; |
| 208 |
} |
| 209 |
|
| 210 |
/** |
| 211 |
* <!-- begin-user-doc --> |
| 212 |
* <!-- end-user-doc --> |
| 213 |
* @generated |
| 214 |
*/ |
| 215 |
public EAttribute getDocumentRoot_Mixed() { |
| 216 |
return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); |
| 217 |
} |
| 218 |
|
| 219 |
/** |
| 220 |
* <!-- begin-user-doc --> |
| 221 |
* <!-- end-user-doc --> |
| 222 |
* @generated |
| 223 |
*/ |
| 224 |
public EReference getDocumentRoot_XMLNSPrefixMap() { |
| 225 |
return (EReference)documentRootEClass.getEStructuralFeatures().get(1); |
| 226 |
} |
| 227 |
|
| 228 |
/** |
| 229 |
* <!-- begin-user-doc --> |
| 230 |
* <!-- end-user-doc --> |
| 231 |
* @generated |
| 232 |
*/ |
| 233 |
public EReference getDocumentRoot_XSISchemaLocation() { |
| 234 |
return (EReference)documentRootEClass.getEStructuralFeatures().get(2); |
| 235 |
} |
| 236 |
|
| 237 |
/** |
| 238 |
* <!-- begin-user-doc --> |
| 239 |
* <!-- end-user-doc --> |
| 240 |
* @generated |
| 241 |
*/ |
| 242 |
public EReference getDocumentRoot_Category() { |
| 243 |
return (EReference)documentRootEClass.getEStructuralFeatures().get(3); |
| 244 |
} |
| 245 |
|
| 246 |
/** |
| 247 |
* <!-- begin-user-doc --> |
| 248 |
* <!-- end-user-doc --> |
| 249 |
* @generated |
| 250 |
*/ |
| 251 |
public EReference getDocumentRoot_Name() { |
| 252 |
return (EReference)documentRootEClass.getEStructuralFeatures().get(4); |
| 253 |
} |
| 254 |
|
| 255 |
/** |
| 256 |
* <!-- begin-user-doc --> |
| 257 |
* <!-- end-user-doc --> |
| 258 |
* @generated |
| 259 |
*/ |
| 260 |
public EReference getDocumentRoot_Taxonomy() { |
| 261 |
return (EReference)documentRootEClass.getEStructuralFeatures().get(5); |
| 262 |
} |
| 263 |
|
| 264 |
/** |
| 265 |
* <!-- begin-user-doc --> |
| 266 |
* <!-- end-user-doc --> |
| 267 |
* @generated |
| 268 |
*/ |
| 269 |
public EClass getName_() { |
| 270 |
return nameEClass; |
| 271 |
} |
| 272 |
|
| 273 |
/** |
| 274 |
* <!-- begin-user-doc --> |
| 275 |
* <!-- end-user-doc --> |
| 276 |
* @generated |
| 277 |
*/ |
| 278 |
public EAttribute getName_Value() { |
| 279 |
return (EAttribute)nameEClass.getEStructuralFeatures().get(0); |
| 280 |
} |
| 281 |
|
| 282 |
/** |
| 283 |
* <!-- begin-user-doc --> |
| 284 |
* <!-- end-user-doc --> |
| 285 |
* @generated |
| 286 |
*/ |
| 287 |
public EAttribute getName_Lang() { |
| 288 |
return (EAttribute)nameEClass.getEStructuralFeatures().get(1); |
| 289 |
} |
| 290 |
|
| 291 |
/** |
| 292 |
* <!-- begin-user-doc --> |
| 293 |
* <!-- end-user-doc --> |
| 294 |
* @generated |
| 295 |
*/ |
| 296 |
public EClass getTaxonomy() { |
| 297 |
return taxonomyEClass; |
| 298 |
} |
| 299 |
|
| 300 |
/** |
| 301 |
* <!-- begin-user-doc --> |
| 302 |
* <!-- end-user-doc --> |
| 303 |
* @generated |
| 304 |
*/ |
| 305 |
public EReference getTaxonomy_Nlname() { |
| 306 |
return (EReference)taxonomyEClass.getEStructuralFeatures().get(0); |
| 307 |
} |
| 308 |
|
| 309 |
/** |
| 310 |
* <!-- begin-user-doc --> |
| 311 |
* <!-- end-user-doc --> |
| 312 |
* @generated |
| 313 |
*/ |
| 314 |
public EReference getTaxonomy_Category() { |
| 315 |
return (EReference)taxonomyEClass.getEStructuralFeatures().get(1); |
| 316 |
} |
| 317 |
|
| 318 |
/** |
| 319 |
* <!-- begin-user-doc --> |
| 320 |
* <!-- end-user-doc --> |
| 321 |
* @generated |
| 322 |
*/ |
| 323 |
public EAttribute getTaxonomy_Id() { |
| 324 |
return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(2); |
| 325 |
} |
| 326 |
|
| 327 |
/** |
| 328 |
* <!-- begin-user-doc --> |
| 329 |
* <!-- end-user-doc --> |
| 330 |
* @generated |
| 331 |
*/ |
| 332 |
public EAttribute getTaxonomy_Location() { |
| 333 |
return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(3); |
| 334 |
} |
| 335 |
|
| 336 |
/** |
| 337 |
* <!-- begin-user-doc --> |
| 338 |
* <!-- end-user-doc --> |
| 339 |
* @generated |
| 340 |
*/ |
| 341 |
public EAttribute getTaxonomy_Name() { |
| 342 |
return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(4); |
| 343 |
} |
| 344 |
|
| 345 |
/** |
| 346 |
* <!-- begin-user-doc --> |
| 347 |
* <!-- end-user-doc --> |
| 348 |
* @generated |
| 349 |
*/ |
| 350 |
public EAttribute getTaxonomy_Ref() { |
| 351 |
return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(5); |
| 352 |
} |
| 353 |
|
| 354 |
/** |
| 355 |
* <!-- begin-user-doc --> |
| 356 |
* <!-- end-user-doc --> |
| 357 |
* @generated |
| 358 |
*/ |
| 359 |
public TaxonomyFactory getTaxonomyFactory() { |
| 360 |
return (TaxonomyFactory)getEFactoryInstance(); |
| 361 |
} |
| 362 |
|
| 363 |
/** |
| 364 |
* <!-- begin-user-doc --> |
| 365 |
* <!-- end-user-doc --> |
| 366 |
* @generated |
| 367 |
*/ |
| 368 |
private boolean isCreated = false; |
| 369 |
|
| 370 |
/** |
| 371 |
* Creates the meta-model objects for the package. This method is |
| 372 |
* guarded to have no affect on any invocation but its first. |
| 373 |
* <!-- begin-user-doc --> |
| 374 |
* <!-- end-user-doc --> |
| 375 |
* @generated |
| 376 |
*/ |
| 377 |
public void createPackageContents() { |
| 378 |
if (isCreated) return; |
| 379 |
isCreated = true; |
| 380 |
|
| 381 |
// Create classes and their features |
| 382 |
categoryEClass = createEClass(CATEGORY); |
| 383 |
createEReference(categoryEClass, CATEGORY__NLNAME); |
| 384 |
createEReference(categoryEClass, CATEGORY__CATEGORY); |
| 385 |
createEAttribute(categoryEClass, CATEGORY__CODE); |
| 386 |
createEAttribute(categoryEClass, CATEGORY__NAME); |
| 387 |
|
| 388 |
documentRootEClass = createEClass(DOCUMENT_ROOT); |
| 389 |
createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); |
| 390 |
createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); |
| 391 |
createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); |
| 392 |
createEReference(documentRootEClass, DOCUMENT_ROOT__CATEGORY); |
| 393 |
createEReference(documentRootEClass, DOCUMENT_ROOT__NAME); |
| 394 |
createEReference(documentRootEClass, DOCUMENT_ROOT__TAXONOMY); |
| 395 |
|
| 396 |
nameEClass = createEClass(NAME); |
| 397 |
createEAttribute(nameEClass, NAME__VALUE); |
| 398 |
createEAttribute(nameEClass, NAME__LANG); |
| 399 |
|
| 400 |
taxonomyEClass = createEClass(TAXONOMY); |
| 401 |
createEReference(taxonomyEClass, TAXONOMY__NLNAME); |
| 402 |
createEReference(taxonomyEClass, TAXONOMY__CATEGORY); |
| 403 |
createEAttribute(taxonomyEClass, TAXONOMY__ID); |
| 404 |
createEAttribute(taxonomyEClass, TAXONOMY__LOCATION); |
| 405 |
createEAttribute(taxonomyEClass, TAXONOMY__NAME); |
| 406 |
createEAttribute(taxonomyEClass, TAXONOMY__REF); |
| 407 |
} |
| 408 |
|
| 409 |
/** |
| 410 |
* <!-- begin-user-doc --> |
| 411 |
* <!-- end-user-doc --> |
| 412 |
* @generated |
| 413 |
*/ |
| 414 |
private boolean isInitialized = false; |
| 415 |
|
| 416 |
/** |
| 417 |
* Complete the initialization of the package and its meta-model. This |
| 418 |
* method is guarded to have no affect on any invocation but its first. |
| 419 |
* <!-- begin-user-doc --> |
| 420 |
* <!-- end-user-doc --> |
| 421 |
* @generated |
| 422 |
*/ |
| 423 |
public void initializePackageContents() { |
| 424 |
if (isInitialized) return; |
| 425 |
isInitialized = true; |
| 426 |
|
| 427 |
// Initialize package |
| 428 |
setName(eNAME); |
| 429 |
setNsPrefix(eNS_PREFIX); |
| 430 |
setNsURI(eNS_URI); |
| 431 |
|
| 432 |
// Obtain other dependent packages |
| 433 |
XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); |
| 434 |
|
| 435 |
// Add supertypes to classes |
| 436 |
|
| 437 |
// Initialize classes and features; add operations and parameters |
| 438 |
initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 439 |
initEReference(getCategory_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 440 |
initEReference(getCategory_Category(), this.getCategory(), null, "category", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 441 |
initEAttribute(getCategory_Code(), theXMLTypePackage.getString(), "code", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 442 |
initEAttribute(getCategory_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 443 |
|
| 444 |
initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 445 |
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); |
| 446 |
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); |
| 447 |
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); |
| 448 |
initEReference(getDocumentRoot_Category(), this.getCategory(), null, "category", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
| 449 |
initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
| 450 |
initEReference(getDocumentRoot_Taxonomy(), this.getTaxonomy(), null, "taxonomy", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); |
| 451 |
|
| 452 |
initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 453 |
initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 454 |
initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 455 |
|
| 456 |
initEClass(taxonomyEClass, Taxonomy.class, "Taxonomy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 457 |
initEReference(getTaxonomy_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 458 |
initEReference(getTaxonomy_Category(), this.getCategory(), null, "category", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 459 |
initEAttribute(getTaxonomy_Id(), theXMLTypePackage.getAnyURI(), "id", null, 1, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 460 |
initEAttribute(getTaxonomy_Location(), theXMLTypePackage.getAnyURI(), "location", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 461 |
initEAttribute(getTaxonomy_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 462 |
initEAttribute(getTaxonomy_Ref(), theXMLTypePackage.getAnyURI(), "ref", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 463 |
|
| 464 |
// Create resource |
| 465 |
createResource(eNS_URI); |
| 466 |
|
| 467 |
// Create annotations |
| 468 |
// http:///org/eclipse/emf/ecore/util/ExtendedMetaData |
| 469 |
createExtendedMetaDataAnnotations(); |
| 470 |
} |
| 471 |
|
| 472 |
/** |
| 473 |
* Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. |
| 474 |
* <!-- begin-user-doc --> |
| 475 |
* <!-- end-user-doc --> |
| 476 |
* @generated |
| 477 |
*/ |
| 478 |
protected void createExtendedMetaDataAnnotations() { |
| 479 |
String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; |
| 480 |
addAnnotation |
| 481 |
(categoryEClass, |
| 482 |
source, |
| 483 |
new String[] { |
| 484 |
"name", "Category", |
| 485 |
"kind", "elementOnly" |
| 486 |
}); |
| 487 |
addAnnotation |
| 488 |
(getCategory_Nlname(), |
| 489 |
source, |
| 490 |
new String[] { |
| 491 |
"kind", "element", |
| 492 |
"name", "nlname" |
| 493 |
}); |
| 494 |
addAnnotation |
| 495 |
(getCategory_Category(), |
| 496 |
source, |
| 497 |
new String[] { |
| 498 |
"kind", "element", |
| 499 |
"name", "category" |
| 500 |
}); |
| 501 |
addAnnotation |
| 502 |
(getCategory_Code(), |
| 503 |
source, |
| 504 |
new String[] { |
| 505 |
"kind", "attribute", |
| 506 |
"name", "code" |
| 507 |
}); |
| 508 |
addAnnotation |
| 509 |
(getCategory_Name(), |
| 510 |
source, |
| 511 |
new String[] { |
| 512 |
"kind", "attribute", |
| 513 |
"name", "name" |
| 514 |
}); |
| 515 |
addAnnotation |
| 516 |
(documentRootEClass, |
| 517 |
source, |
| 518 |
new String[] { |
| 519 |
"name", "", |
| 520 |
"kind", "mixed" |
| 521 |
}); |
| 522 |
addAnnotation |
| 523 |
(getDocumentRoot_Mixed(), |
| 524 |
source, |
| 525 |
new String[] { |
| 526 |
"kind", "elementWildcard", |
| 527 |
"name", ":mixed" |
| 528 |
}); |
| 529 |
addAnnotation |
| 530 |
(getDocumentRoot_XMLNSPrefixMap(), |
| 531 |
source, |
| 532 |
new String[] { |
| 533 |
"kind", "attribute", |
| 534 |
"name", "xmlns:prefix" |
| 535 |
}); |
| 536 |
addAnnotation |
| 537 |
(getDocumentRoot_XSISchemaLocation(), |
| 538 |
source, |
| 539 |
new String[] { |
| 540 |
"kind", "attribute", |
| 541 |
"name", "xsi:schemaLocation" |
| 542 |
}); |
| 543 |
addAnnotation |
| 544 |
(getDocumentRoot_Category(), |
| 545 |
source, |
| 546 |
new String[] { |
| 547 |
"kind", "element", |
| 548 |
"name", "category", |
| 549 |
"namespace", "##targetNamespace" |
| 550 |
}); |
| 551 |
addAnnotation |
| 552 |
(getDocumentRoot_Name(), |
| 553 |
source, |
| 554 |
new String[] { |
| 555 |
"kind", "element", |
| 556 |
"name", "name", |
| 557 |
"namespace", "##targetNamespace" |
| 558 |
}); |
| 559 |
addAnnotation |
| 560 |
(getDocumentRoot_Taxonomy(), |
| 561 |
source, |
| 562 |
new String[] { |
| 563 |
"kind", "element", |
| 564 |
"name", "taxonomy", |
| 565 |
"namespace", "##targetNamespace" |
| 566 |
}); |
| 567 |
addAnnotation |
| 568 |
(nameEClass, |
| 569 |
source, |
| 570 |
new String[] { |
| 571 |
"name", "Name", |
| 572 |
"kind", "simple" |
| 573 |
}); |
| 574 |
addAnnotation |
| 575 |
(getName_Value(), |
| 576 |
source, |
| 577 |
new String[] { |
| 578 |
"name", ":0", |
| 579 |
"kind", "simple" |
| 580 |
}); |
| 581 |
addAnnotation |
| 582 |
(getName_Lang(), |
| 583 |
source, |
| 584 |
new String[] { |
| 585 |
"kind", "attribute", |
| 586 |
"name", "lang", |
| 587 |
"namespace", "http://www.w3.org/XML/1998/namespace" |
| 588 |
}); |
| 589 |
addAnnotation |
| 590 |
(taxonomyEClass, |
| 591 |
source, |
| 592 |
new String[] { |
| 593 |
"name", "Taxonomy", |
| 594 |
"kind", "elementOnly" |
| 595 |
}); |
| 596 |
addAnnotation |
| 597 |
(getTaxonomy_Nlname(), |
| 598 |
source, |
| 599 |
new String[] { |
| 600 |
"kind", "element", |
| 601 |
"name", "nlname" |
| 602 |
}); |
| 603 |
addAnnotation |
| 604 |
(getTaxonomy_Category(), |
| 605 |
source, |
| 606 |
new String[] { |
| 607 |
"kind", "element", |
| 608 |
"name", "category" |
| 609 |
}); |
| 610 |
addAnnotation |
| 611 |
(getTaxonomy_Id(), |
| 612 |
source, |
| 613 |
new String[] { |
| 614 |
"kind", "attribute", |
| 615 |
"name", "id" |
| 616 |
}); |
| 617 |
addAnnotation |
| 618 |
(getTaxonomy_Location(), |
| 619 |
source, |
| 620 |
new String[] { |
| 621 |
"kind", "attribute", |
| 622 |
"name", "location" |
| 623 |
}); |
| 624 |
addAnnotation |
| 625 |
(getTaxonomy_Name(), |
| 626 |
source, |
| 627 |
new String[] { |
| 628 |
"kind", "attribute", |
| 629 |
"name", "name" |
| 630 |
}); |
| 631 |
addAnnotation |
| 632 |
(getTaxonomy_Ref(), |
| 633 |
source, |
| 634 |
new String[] { |
| 635 |
"kind", "attribute", |
| 636 |
"name", "ref" |
| 637 |
}); |
| 638 |
} |
| 639 |
|
| 640 |
} //TaxonomyPackageImpl |