diff options
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/LibraryPackageImpl.java')
-rwxr-xr-x | eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/LibraryPackageImpl.java | 838 |
1 files changed, 0 insertions, 838 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/LibraryPackageImpl.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/LibraryPackageImpl.java deleted file mode 100755 index 7f1046a35..000000000 --- a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/LibraryPackageImpl.java +++ /dev/null @@ -1,838 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: LibraryPackageImpl.java,v 1.9 2010/04/22 17:57:44 mtaal Exp $ - */ -package org.eclipse.emf.teneo.eclipselink.examples.library.impl; - -import java.util.Map; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -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.teneo.eclipselink.examples.library.AbstractTest; -import org.eclipse.emf.teneo.eclipselink.examples.library.Address; -import org.eclipse.emf.teneo.eclipselink.examples.library.Book; -import org.eclipse.emf.teneo.eclipselink.examples.library.BookCategory; -import org.eclipse.emf.teneo.eclipselink.examples.library.Cover; -import org.eclipse.emf.teneo.eclipselink.examples.library.Identifiable; -import org.eclipse.emf.teneo.eclipselink.examples.library.Library; -import org.eclipse.emf.teneo.eclipselink.examples.library.LibraryFactory; -import org.eclipse.emf.teneo.eclipselink.examples.library.LibraryPackage; -import org.eclipse.emf.teneo.eclipselink.examples.library.Publisher; -import org.eclipse.emf.teneo.eclipselink.examples.library.Style; -import org.eclipse.emf.teneo.eclipselink.examples.library.TWriterType; -import org.eclipse.emf.teneo.eclipselink.examples.library.Translator; -import org.eclipse.emf.teneo.eclipselink.examples.library.TypeWriter; -import org.eclipse.emf.teneo.eclipselink.examples.library.Writer; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> - * @generated - */ -public class LibraryPackageImpl extends EPackageImpl implements LibraryPackage { - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass bookEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass libraryEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass writerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass stringToBookMapEntryEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass addressEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass publisherEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass styleEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass bookStylesMapEntryEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass translatorEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass typeWriterEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass coverEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EClass identifiableEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass abstractTestEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EEnum bookCategoryEEnum = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - private EEnum tWriterTypeEEnum = 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 org.eclipse.emf.teneo.eclipselink.examples.library.LibraryPackage#eNS_URI - * @see #init() - * @generated - */ - private LibraryPackageImpl() { - super(eNS_URI, LibraryFactory.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 LibraryPackage#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 LibraryPackage init() { - if (isInited) return (LibraryPackage)EPackage.Registry.INSTANCE.getEPackage(LibraryPackage.eNS_URI); - - // Obtain or create and register package - LibraryPackageImpl theLibraryPackage = (LibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof LibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new LibraryPackageImpl()); - - isInited = true; - - // Create package meta-data objects - theLibraryPackage.createPackageContents(); - - // Initialize created meta-data - theLibraryPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theLibraryPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(LibraryPackage.eNS_URI, theLibraryPackage); - return theLibraryPackage; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getBook() { - return bookEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Title() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Pages() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_Category() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getBook_Author() { - return (EReference)bookEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getBook_Styles() { - return (EReference)bookEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getBook_Translator() { - return (EReference)bookEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getBook_Cover() { - return (EReference)bookEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBook_DerivedAttribute() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getLibrary() { - return libraryEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getLibrary_Name() { - return (EAttribute)libraryEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Writers() { - return (EReference)libraryEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getLibrary_Books() { - return (EReference)libraryEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getWriter() { - return writerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getWriter_Name() { - return (EAttribute)writerEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getWriter_Books() { - return (EReference)writerEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getWriter_Address() { - return (EReference)writerEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getWriter_Publishers() { - return (EReference)writerEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getWriter_Typewriters() { - return (EReference)writerEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getStringToBookMapEntry() { - return stringToBookMapEntryEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getStringToBookMapEntry_Key() { - return (EAttribute)stringToBookMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getStringToBookMapEntry_Value() { - return (EReference)stringToBookMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getAddress() { - return addressEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getAddress_Town() { - return (EAttribute)addressEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getPublisher() { - return publisherEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getPublisher_Name() { - return (EAttribute)publisherEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getPublisher_Writers() { - return (EReference)publisherEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getStyle() { - return styleEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getStyle_Name() { - return (EAttribute)styleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getBookStylesMapEntry() { - return bookStylesMapEntryEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getBookStylesMapEntry_Key() { - return (EAttribute)bookStylesMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getBookStylesMapEntry_Value() { - return (EReference)bookStylesMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getTranslator() { - return translatorEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getTranslator_Name() { - return (EAttribute)translatorEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getTranslator_Location() { - return (EAttribute)translatorEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EReference getTranslator_Address() { - return (EReference)translatorEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getTypeWriter() { - return typeWriterEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getTypeWriter_Maker() { - return (EAttribute)typeWriterEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getTypeWriter_Type() { - return (EAttribute)typeWriterEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getCover() { - return coverEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getCover_Colored() { - return (EAttribute)coverEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EClass getIdentifiable() { - return identifiableEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getIdentifiable_Id() { - return (EAttribute)identifiableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EAttribute getIdentifiable_Version() { - return (EAttribute)identifiableEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getAbstractTest() { - return abstractTestEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EEnum getBookCategory() { - return bookCategoryEEnum; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public EEnum getTWriterType() { - return tWriterTypeEEnum; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - public LibraryFactory getLibraryFactory() { - return (LibraryFactory)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 - bookEClass = createEClass(BOOK); - createEAttribute(bookEClass, BOOK__TITLE); - createEAttribute(bookEClass, BOOK__PAGES); - createEAttribute(bookEClass, BOOK__CATEGORY); - createEReference(bookEClass, BOOK__AUTHOR); - createEReference(bookEClass, BOOK__STYLES); - createEReference(bookEClass, BOOK__TRANSLATOR); - createEReference(bookEClass, BOOK__COVER); - createEAttribute(bookEClass, BOOK__DERIVED_ATTRIBUTE); - - libraryEClass = createEClass(LIBRARY); - createEAttribute(libraryEClass, LIBRARY__NAME); - createEReference(libraryEClass, LIBRARY__WRITERS); - createEReference(libraryEClass, LIBRARY__BOOKS); - - writerEClass = createEClass(WRITER); - createEAttribute(writerEClass, WRITER__NAME); - createEReference(writerEClass, WRITER__BOOKS); - createEReference(writerEClass, WRITER__ADDRESS); - createEReference(writerEClass, WRITER__PUBLISHERS); - createEReference(writerEClass, WRITER__TYPEWRITERS); - - stringToBookMapEntryEClass = createEClass(STRING_TO_BOOK_MAP_ENTRY); - createEAttribute(stringToBookMapEntryEClass, STRING_TO_BOOK_MAP_ENTRY__KEY); - createEReference(stringToBookMapEntryEClass, STRING_TO_BOOK_MAP_ENTRY__VALUE); - - addressEClass = createEClass(ADDRESS); - createEAttribute(addressEClass, ADDRESS__TOWN); - - publisherEClass = createEClass(PUBLISHER); - createEAttribute(publisherEClass, PUBLISHER__NAME); - createEReference(publisherEClass, PUBLISHER__WRITERS); - - styleEClass = createEClass(STYLE); - createEAttribute(styleEClass, STYLE__NAME); - - bookStylesMapEntryEClass = createEClass(BOOK_STYLES_MAP_ENTRY); - createEAttribute(bookStylesMapEntryEClass, BOOK_STYLES_MAP_ENTRY__KEY); - createEReference(bookStylesMapEntryEClass, BOOK_STYLES_MAP_ENTRY__VALUE); - - translatorEClass = createEClass(TRANSLATOR); - createEAttribute(translatorEClass, TRANSLATOR__NAME); - createEAttribute(translatorEClass, TRANSLATOR__LOCATION); - createEReference(translatorEClass, TRANSLATOR__ADDRESS); - - typeWriterEClass = createEClass(TYPE_WRITER); - createEAttribute(typeWriterEClass, TYPE_WRITER__MAKER); - createEAttribute(typeWriterEClass, TYPE_WRITER__TYPE); - - coverEClass = createEClass(COVER); - createEAttribute(coverEClass, COVER__COLORED); - - identifiableEClass = createEClass(IDENTIFIABLE); - createEAttribute(identifiableEClass, IDENTIFIABLE__ID); - createEAttribute(identifiableEClass, IDENTIFIABLE__VERSION); - - abstractTestEClass = createEClass(ABSTRACT_TEST); - - // Create enums - bookCategoryEEnum = createEEnum(BOOK_CATEGORY); - tWriterTypeEEnum = createEEnum(TWRITER_TYPE); - } - - /** - * <!-- 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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - bookEClass.getESuperTypes().add(this.getIdentifiable()); - libraryEClass.getESuperTypes().add(this.getIdentifiable()); - writerEClass.getESuperTypes().add(this.getIdentifiable()); - stringToBookMapEntryEClass.getESuperTypes().add(this.getIdentifiable()); - addressEClass.getESuperTypes().add(this.getIdentifiable()); - publisherEClass.getESuperTypes().add(this.getIdentifiable()); - styleEClass.getESuperTypes().add(this.getIdentifiable()); - bookStylesMapEntryEClass.getESuperTypes().add(this.getIdentifiable()); - translatorEClass.getESuperTypes().add(this.getIdentifiable()); - typeWriterEClass.getESuperTypes().add(this.getIdentifiable()); - coverEClass.getESuperTypes().add(this.getIdentifiable()); - - // Initialize classes and features; add operations and parameters - initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getBook_Title(), ecorePackage.getEString(), "title", "", 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getBook_Pages(), ecorePackage.getEInt(), "pages", "100", 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$ - initEAttribute(getBook_Category(), this.getBookCategory(), "category", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBook_Author(), this.getWriter(), this.getWriter_Books(), "author", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBook_Styles(), this.getBookStylesMapEntry(), null, "styles", null, 0, -1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBook_Translator(), this.getTranslator(), null, "translator", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBook_Cover(), this.getCover(), null, "cover", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getBook_DerivedAttribute(), ecorePackage.getEString(), "derivedAttribute", null, 0, 1, Book.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getLibrary_Writers(), this.getWriter(), null, "writers", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getLibrary_Books(), this.getStringToBookMapEntry(), null, "books", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getWriter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWriter_Books(), this.getBook(), this.getBook_Author(), "books", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWriter_Address(), this.getAddress(), null, "address", null, 0, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWriter_Publishers(), this.getPublisher(), this.getPublisher_Writers(), "publishers", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getWriter_Typewriters(), this.getTypeWriter(), null, "typewriters", null, 0, -1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(stringToBookMapEntryEClass, Map.Entry.class, "StringToBookMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getStringToBookMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getStringToBookMapEntry_Value(), this.getBook(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getAddress_Town(), ecorePackage.getEString(), "town", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(publisherEClass, Publisher.class, "Publisher", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getPublisher_Name(), ecorePackage.getEString(), "name", null, 0, 1, Publisher.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getPublisher_Writers(), this.getWriter(), this.getWriter_Publishers(), "writers", null, 0, -1, Publisher.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(styleEClass, Style.class, "Style", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getStyle_Name(), ecorePackage.getEString(), "name", null, 0, 1, Style.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(bookStylesMapEntryEClass, Map.Entry.class, "BookStylesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getBookStylesMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBookStylesMapEntry_Value(), this.getStyle(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(translatorEClass, Translator.class, "Translator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getTranslator_Name(), ecorePackage.getEString(), "name", null, 0, 1, Translator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getTranslator_Location(), ecorePackage.getEString(), "location", null, 0, 1, Translator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getTranslator_Address(), this.getAddress(), null, "address", null, 0, 1, Translator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(typeWriterEClass, TypeWriter.class, "TypeWriter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getTypeWriter_Maker(), ecorePackage.getEString(), "maker", null, 0, 1, TypeWriter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getTypeWriter_Type(), this.getTWriterType(), "type", null, 0, 1, TypeWriter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(coverEClass, Cover.class, "Cover", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getCover_Colored(), ecorePackage.getEBoolean(), "colored", null, 0, 1, Cover.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(identifiableEClass, Identifiable.class, "Identifiable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getIdentifiable_Id(), ecorePackage.getELong(), "id", null, 0, 1, Identifiable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getIdentifiable_Version(), ecorePackage.getELong(), "version", null, 0, 1, Identifiable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(abstractTestEClass, AbstractTest.class, "AbstractTest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - // Initialize enums and add enum literals - initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory"); //$NON-NLS-1$ - addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY); - addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION); - addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY); - - initEEnum(tWriterTypeEEnum, TWriterType.class, "TWriterType"); //$NON-NLS-1$ - addEEnumLiteral(tWriterTypeEEnum, TWriterType.TYPEWRITER); - addEEnumLiteral(tWriterTypeEEnum, TWriterType.COMPUTER); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // teneo.jpa - createTeneoAnnotations(); - // http://www.oracle.com/toplink/emf/2006/ContainerMapping - createContainerMappingAnnotations(); - } - - /** - * Initializes the annotations for <b>teneo.jpa</b>. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ - protected void createTeneoAnnotations() { - String source = "teneo.jpa"; //$NON-NLS-1$ - addAnnotation - (stringToBookMapEntryEClass, - source, - new String[] { - "value", "@Table(name=\"EMFLIB_LIBRARY_BOOK_MAP\")" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - }); - addAnnotation - (getPublisher_Writers(), - source, - new String[] { - "value", "@JoinTable(name=\"EMFLIB_PUBLISHER_WRITERS\")" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - }); - addAnnotation - (bookStylesMapEntryEClass, - source, - new String[] { - "value", "@Table(name=\"EMFLIB_BOOK_STYLE_MAP\")" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - }); - addAnnotation - (getTranslator_Address(), - source, - new String[] { - "value", "@Transient" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (identifiableEClass, - source, - new String[] { - "value", "@MappedSuperclass" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getIdentifiable_Id(), - source, - new String[] { - "value", "@Id\n@GeneratedValue" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getIdentifiable_Version(), - source, - new String[] { - "value", "@Version" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - - /** - * Initializes the annotations for <b>http://www.oracle.com/toplink/emf/2006/ContainerMapping</b>. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected void createContainerMappingAnnotations() { - String source = "http://www.oracle.com/toplink/emf/2006/ContainerMapping"; //$NON-NLS-1$ - addAnnotation - (addressEClass, - source, - new String[] { - "eContainingClassName", "Writer", //$NON-NLS-1$ //$NON-NLS-2$ - "eContainingClassPackageName", "library" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } - -} // LibraryPackageImpl |