From 2ccb0e0ad850da6f64ab9bea42cd9994042c4b3e Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Fri, 23 Dec 2016 11:47:48 +0100 Subject: [PATCH] regenerated example library model code The ecore and the genmodel have been updated so that they respect the generated Java code (which had previsously been refactored through jdt) Change-Id: I52dbc1f10b628d93b3d9e950c8f5c14da7ff0138 --- .../model/extlibrary.ecore | 2 +- .../model/extlibrary.genmodel | 23 +- .../parsley/examples/library/Addressable.java | 30 +- .../examples/library/AudioVisualItem.java | 86 +- .../emf/parsley/examples/library/Book.java | 164 +- .../examples/library/BookCategory.java | 274 +-- .../parsley/examples/library/BookOnTape.java | 58 +- .../parsley/examples/library/Borrower.java | 22 +- .../examples/library/EXTLibraryFactory.java | 98 +- .../examples/library/EXTLibraryPackage.java | 2060 ++++++++--------- .../parsley/examples/library/Employee.java | 30 +- .../emf/parsley/examples/library/Item.java | 30 +- .../parsley/examples/library/Lendable.java | 50 +- .../emf/parsley/examples/library/Library.java | 186 +- .../parsley/examples/library/Periodical.java | 58 +- .../emf/parsley/examples/library/Person.java | 58 +- .../examples/library/VideoCassette.java | 18 +- .../emf/parsley/examples/library/Writer.java | 50 +- .../library/impl/AudioVisualItemImpl.java | 320 ++- .../examples/library/impl/BookImpl.java | 534 +++-- .../examples/library/impl/BookOnTapeImpl.java | 258 +-- .../examples/library/impl/BorrowerImpl.java | 171 +- .../library/impl/CirculatingItemImpl.java | 313 ++- .../library/impl/EXTLibraryFactoryImpl.java | 262 +-- .../library/impl/EXTLibraryPackageImpl.java | 1048 +++++---- .../examples/library/impl/EmployeeImpl.java | 170 +- .../examples/library/impl/ItemImpl.java | 174 +- .../examples/library/impl/LibraryImpl.java | 742 +++--- .../examples/library/impl/PeriodicalImpl.java | 248 +- .../examples/library/impl/PersonImpl.java | 320 ++- .../library/impl/VideoCassetteImpl.java | 133 +- .../examples/library/impl/WriterImpl.java | 203 +- .../util/EXTLibraryAdapterFactory.java | 455 ++-- .../library/util/EXTLibrarySwitch.java | 605 +++-- 34 files changed, 4553 insertions(+), 4700 deletions(-) diff --git a/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.ecore b/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.ecore index 296606786..1a9d471af 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.ecore +++ b/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.ecore @@ -1,6 +1,6 @@ diff --git a/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.genmodel b/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.genmodel index 56a4df772..eb57a6bcb 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.genmodel +++ b/examples/org.eclipse.emf.parsley.examples.library/model/extlibrary.genmodel @@ -1,6 +1,5 @@ - extlibrary.ecore - + - + @@ -46,30 +45,30 @@ - + - + - + - + - + - + - + diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Addressable.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Addressable.java index 93e608779..82516b8f2 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Addressable.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Addressable.java @@ -27,10 +27,10 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Addressable#getAddress Address}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAddressable() * @model interface="true" abstract="true" @@ -39,25 +39,25 @@ public interface Addressable extends EObject { /** - * Returns the value of the 'Address' attribute. - * + * Returns the value of the 'Address' attribute. + * * - * @return the value of the 'Address' attribute. - * @see #setAddress(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAddressable_Address() - * @model - * @generated - */ + * @return the value of the 'Address' attribute. + * @see #setAddress(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAddressable_Address() + * @model + * @generated + */ String getAddress(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Addressable#getAddress Address}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Addressable#getAddress Address}' attribute. + * * - * @param value the new value of the 'Address' attribute. - * @see #getAddress() - * @generated - */ + * @param value the new value of the 'Address' attribute. + * @see #getAddress() + * @generated + */ void setAddress(String value); } // Addressable diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/AudioVisualItem.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/AudioVisualItem.java index 0968d62f8..0ae48deab 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/AudioVisualItem.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/AudioVisualItem.java @@ -24,12 +24,12 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength Minutes Length}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged Damaged}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem() * @model abstract="true" @@ -38,69 +38,69 @@ public interface AudioVisualItem extends CirculatingItem { /** - * Returns the value of the 'Title' attribute. - * + * Returns the value of the 'Title' attribute. + * * - * @return the value of the 'Title' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_Title() - * @model - * @generated - */ + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_Title() + * @model + * @generated + */ String getTitle(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle Title}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle Title}' attribute. + * * - * @param value the new value of the 'Title' attribute. - * @see #getTitle() - * @generated - */ + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ void setTitle(String value); /** - * Returns the value of the 'Minutes Length' attribute. - * + * Returns the value of the 'Minutes Length' attribute. + * * - * @return the value of the 'Minutes Length' attribute. - * @see #setMinutesLength(int) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_MinutesLength() - * @model required="true" - * @generated - */ + * @return the value of the 'Minutes Length' attribute. + * @see #setMinutesLength(int) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_MinutesLength() + * @model required="true" + * @generated + */ int getMinutesLength(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength Minutes Length}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength Minutes Length}' attribute. + * * - * @param value the new value of the 'Minutes Length' attribute. - * @see #getMinutesLength() - * @generated - */ + * @param value the new value of the 'Minutes Length' attribute. + * @see #getMinutesLength() + * @generated + */ void setMinutesLength(int value); /** - * Returns the value of the 'Damaged' attribute. - * + * Returns the value of the 'Damaged' attribute. + * * - * @return the value of the 'Damaged' attribute. - * @see #setDamaged(boolean) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_Damaged() - * @model - * @generated - */ + * @return the value of the 'Damaged' attribute. + * @see #setDamaged(boolean) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getAudioVisualItem_Damaged() + * @model + * @generated + */ boolean isDamaged(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged Damaged}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged Damaged}' attribute. + * * - * @param value the new value of the 'Damaged' attribute. - * @see #isDamaged() - * @generated - */ + * @param value the new value of the 'Damaged' attribute. + * @see #isDamaged() + * @generated + */ void setDamaged(boolean value); } // AudioVisualItem diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Book.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Book.java index 712bf134a..381a27306 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Book.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Book.java @@ -24,13 +24,13 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Book#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Book#getPages Pages}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook() * @model @@ -39,124 +39,124 @@ public interface Book extends CirculatingItem { /** - * Returns the value of the 'Title' attribute. - * + * Returns the value of the 'Title' attribute. + * * - * @return the value of the 'Title' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Title() - * @model - * @generated - */ + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Title() + * @model + * @generated + */ String getTitle(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getTitle Title}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getTitle Title}' attribute. + * * - * @param value the new value of the 'Title' attribute. - * @see #getTitle() - * @generated - */ + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ void setTitle(String value); /** - * Returns the value of the 'Pages' attribute. - * The default value is "100". - * + * Returns the value of the 'Pages' attribute. + * The default value is "100". + * * - * @return the value of the 'Pages' attribute. - * @see #setPages(int) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Pages() - * @model default="100" - * @generated - */ + * @return the value of the 'Pages' attribute. + * @see #setPages(int) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Pages() + * @model default="100" + * @generated + */ int getPages(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getPages Pages}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getPages Pages}' attribute. + * * - * @param value the new value of the 'Pages' attribute. - * @see #getPages() - * @generated - */ + * @param value the new value of the 'Pages' attribute. + * @see #getPages() + * @generated + */ void setPages(int value); /** - * Returns the value of the 'Category' attribute. - * The literals are from the enumeration {@link org.eclipse.emf.parsley.examples.library.BookCategory}. - * + * Returns the value of the 'Category' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.parsley.examples.library.BookCategory}. + * * - * @return the value of the 'Category' attribute. - * @see org.eclipse.emf.parsley.examples.library.BookCategory - * @see #isSetCategory() - * @see #unsetCategory() - * @see #setCategory(BookCategory) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Category() - * @model unsettable="true" - * @generated - */ + * @return the value of the 'Category' attribute. + * @see org.eclipse.emf.parsley.examples.library.BookCategory + * @see #isSetCategory() + * @see #unsetCategory() + * @see #setCategory(BookCategory) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Category() + * @model unsettable="true" + * @generated + */ BookCategory getCategory(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute. + * * - * @param value the new value of the 'Category' attribute. - * @see org.eclipse.emf.parsley.examples.library.BookCategory - * @see #isSetCategory() - * @see #unsetCategory() - * @see #getCategory() - * @generated - */ + * @param value the new value of the 'Category' attribute. + * @see org.eclipse.emf.parsley.examples.library.BookCategory + * @see #isSetCategory() + * @see #unsetCategory() + * @see #getCategory() + * @generated + */ void setCategory(BookCategory value); /** - * Unsets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute. + * * - * @see #isSetCategory() - * @see #getCategory() - * @see #setCategory(BookCategory) - * @generated - */ + * @see #isSetCategory() + * @see #getCategory() + * @see #setCategory(BookCategory) + * @generated + */ void unsetCategory(); /** - * Returns whether the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}' attribute is set. + * * - * @return whether the value of the 'Category' attribute is set. - * @see #unsetCategory() - * @see #getCategory() - * @see #setCategory(BookCategory) - * @generated - */ + * @return whether the value of the 'Category' attribute is set. + * @see #unsetCategory() + * @see #getCategory() + * @see #setCategory(BookCategory) + * @generated + */ boolean isSetCategory(); /** - * Returns the value of the 'Author' reference. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Writer#getBooks Books}'. - * + * Returns the value of the 'Author' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Writer#getBooks Books}'. + * * - * @return the value of the 'Author' reference. - * @see #setAuthor(Writer) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Author() - * @see org.eclipse.emf.parsley.examples.library.Writer#getBooks - * @model opposite="books" required="true" - * @generated - */ + * @return the value of the 'Author' reference. + * @see #setAuthor(Writer) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBook_Author() + * @see org.eclipse.emf.parsley.examples.library.Writer#getBooks + * @model opposite="books" required="true" + * @generated + */ Writer getAuthor(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}' reference. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}' reference. + * * - * @param value the new value of the 'Author' reference. - * @see #getAuthor() - * @generated - */ + * @param value the new value of the 'Author' reference. + * @see #getAuthor() + * @generated + */ void setAuthor(Writer value); } // Book diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookCategory.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookCategory.java index 2c0f758eb..df31ac34a 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookCategory.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookCategory.java @@ -36,215 +36,215 @@ public enum BookCategory implements Enumerator { /** - * The 'Mystery' literal object. - * + * The 'Mystery' literal object. + * * - * @see #MYSTERY - * @generated - * @ordered - */ + * @see #MYSTERY + * @generated + * @ordered + */ MYSTERY_LITERAL(0, "Mystery", "Mystery"), /** - * The 'Science Fiction' literal object. - * + * The 'Science Fiction' literal object. + * * - * @see #SCIENCE_FICTION - * @generated - * @ordered - */ + * @see #SCIENCE_FICTION + * @generated + * @ordered + */ SCIENCE_FICTION_LITERAL(1, "ScienceFiction", "ScienceFiction"), /** - * The 'Biography' literal object. - * + * The 'Biography' literal object. + * * - * @see #BIOGRAPHY - * @generated - * @ordered - */ + * @see #BIOGRAPHY + * @generated + * @ordered + */ BIOGRAPHY_LITERAL(2, "Biography", "Biography"); /** - * The 'Mystery' literal value. - * + * The 'Mystery' literal value. + * * - * @see #MYSTERY_LITERAL - * @model name="Mystery" - * @generated - * @ordered - */ + * @see #MYSTERY_LITERAL + * @model name="Mystery" + * @generated + * @ordered + */ public static final int MYSTERY = 0; /** - * The 'Science Fiction' literal value. - * + * The 'Science Fiction' literal value. + * * - * @see #SCIENCE_FICTION_LITERAL - * @model name="ScienceFiction" - * @generated - * @ordered - */ + * @see #SCIENCE_FICTION_LITERAL + * @model name="ScienceFiction" + * @generated + * @ordered + */ public static final int SCIENCE_FICTION = 1; /** - * The 'Biography' literal value. - * + * The 'Biography' literal value. + * * - * @see #BIOGRAPHY_LITERAL - * @model name="Biography" - * @generated - * @ordered - */ + * @see #BIOGRAPHY_LITERAL + * @model name="Biography" + * @generated + * @ordered + */ public static final int BIOGRAPHY = 2; /** - * An array of all the 'Book Category' enumerators. - * + * An array of all the 'Book Category' enumerators. + * * - * @generated - */ + * @generated + */ private static final BookCategory[] VALUES_ARRAY = - new BookCategory[] - { - MYSTERY_LITERAL, - SCIENCE_FICTION_LITERAL, - BIOGRAPHY_LITERAL, - }; + new BookCategory[] { + MYSTERY_LITERAL, + SCIENCE_FICTION_LITERAL, + BIOGRAPHY_LITERAL, + }; /** - * A public read-only list of all the 'Book Category' enumerators. - * + * A public read-only list of all the 'Book Category' enumerators. + * * - * @generated - */ + * @generated + */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** - * Returns the 'Book Category' literal with the specified literal value. - * + * Returns the 'Book Category' literal with the specified literal value. + * * - * @generated - */ + * @param literal the literal. + * @return the matching enumerator or null. + * @generated + */ public static BookCategory get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - BookCategory result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Book Category' literal with the specified name. - * - * - * @generated - */ + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BookCategory result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Book Category' literal with the specified name. + * + * + * @param name the name. + * @return the matching enumerator or null. + * @generated + */ public static BookCategory getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - BookCategory result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Book Category' literal with the specified integer value. - * - * - * @generated - */ + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BookCategory result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Book Category' literal with the specified integer value. + * + * + * @param value the integer value. + * @return the matching enumerator or null. + * @generated + */ public static BookCategory get(int value) { - switch (value) - { - case MYSTERY: return MYSTERY_LITERAL; - case SCIENCE_FICTION: return SCIENCE_FICTION_LITERAL; - case BIOGRAPHY: return BIOGRAPHY_LITERAL; - } - return null; - } + switch (value) { + case MYSTERY: return MYSTERY_LITERAL; + case SCIENCE_FICTION: return SCIENCE_FICTION_LITERAL; + case BIOGRAPHY: return BIOGRAPHY_LITERAL; + } + return null; + } /** - * + * * - * @generated - */ + * @generated + */ private final int value; /** - * + * * - * @generated - */ + * @generated + */ private final String name; /** - * + * * - * @generated - */ + * @generated + */ private final String literal; /** - * Only this class can construct instances. - * + * Only this class can construct instances. + * * - * @generated - */ + * @generated + */ private BookCategory(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } + this.value = value; + this.name = name; + this.literal = literal; + } /** - * + * * - * @generated - */ + * @generated + */ public int getValue() { - return value; - } + return value; + } /** - * + * * - * @generated - */ + * @generated + */ public String getName() { - return name; - } + return name; + } /** - * + * * - * @generated - */ + * @generated + */ public String getLiteral() { - return literal; - } + return literal; + } /** - * Returns the literal value of the enumerator, which is its string representation. - * + * Returns the literal value of the enumerator, which is its string representation. + * * - * @generated - */ + * @generated + */ @Override public String toString() { - return literal; - } + return literal; + } } diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookOnTape.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookOnTape.java index 2a81bd8ef..8744b4539 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookOnTape.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/BookOnTape.java @@ -24,11 +24,11 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.BookOnTape#getReader Reader}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor Author}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBookOnTape() * @model @@ -37,47 +37,47 @@ public interface BookOnTape extends AudioVisualItem { /** - * Returns the value of the 'Reader' reference. - * + * Returns the value of the 'Reader' reference. + * * - * @return the value of the 'Reader' reference. - * @see #setReader(Person) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBookOnTape_Reader() - * @model - * @generated - */ + * @return the value of the 'Reader' reference. + * @see #setReader(Person) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBookOnTape_Reader() + * @model + * @generated + */ Person getReader(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getReader Reader}' reference. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getReader Reader}' reference. + * * - * @param value the new value of the 'Reader' reference. - * @see #getReader() - * @generated - */ + * @param value the new value of the 'Reader' reference. + * @see #getReader() + * @generated + */ void setReader(Person value); /** - * Returns the value of the 'Author' reference. - * + * Returns the value of the 'Author' reference. + * * - * @return the value of the 'Author' reference. - * @see #setAuthor(Writer) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBookOnTape_Author() - * @model - * @generated - */ + * @return the value of the 'Author' reference. + * @see #setAuthor(Writer) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBookOnTape_Author() + * @model + * @generated + */ Writer getAuthor(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor Author}' reference. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor Author}' reference. + * * - * @param value the new value of the 'Author' reference. - * @see #getAuthor() - * @generated - */ + * @param value the new value of the 'Author' reference. + * @see #getAuthor() + * @generated + */ void setAuthor(Writer value); } // BookOnTape diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Borrower.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Borrower.java index 5bb68acb6..56ce57b9d 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Borrower.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Borrower.java @@ -27,10 +27,10 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed Borrowed}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBorrower() * @model @@ -39,17 +39,17 @@ public interface Borrower extends Person { /** - * Returns the value of the 'Borrowed' reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Lendable}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers Borrowers}'. - * + * Returns the value of the 'Borrowed' reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Lendable}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers Borrowers}'. + * * - * @return the value of the 'Borrowed' reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBorrower_Borrowed() - * @see org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers - * @model opposite="borrowers" - * @generated - */ + * @return the value of the 'Borrowed' reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getBorrower_Borrowed() + * @see org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers + * @model opposite="borrowers" + * @generated + */ EList getBorrowed(); } // Borrower diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryFactory.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryFactory.java index 5e12f6e8a..8fcb5975e 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryFactory.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryFactory.java @@ -31,92 +31,92 @@ public interface EXTLibraryFactory extends EFactory { /** - * The singleton instance of the factory. - * + * The singleton instance of the factory. + * * - * @generated - */ + * @generated + */ EXTLibraryFactory eINSTANCE = org.eclipse.emf.parsley.examples.library.impl.EXTLibraryFactoryImpl.init(); /** - * Returns a new object of class 'Book'. - * + * Returns a new object of class 'Book'. + * * - * @return a new object of class 'Book'. - * @generated - */ + * @return a new object of class 'Book'. + * @generated + */ Book createBook(); /** - * Returns a new object of class 'Library'. - * + * Returns a new object of class 'Library'. + * * - * @return a new object of class 'Library'. - * @generated - */ + * @return a new object of class 'Library'. + * @generated + */ Library createLibrary(); /** - * Returns a new object of class 'Writer'. - * + * Returns a new object of class 'Writer'. + * * - * @return a new object of class 'Writer'. - * @generated - */ + * @return a new object of class 'Writer'. + * @generated + */ Writer createWriter(); /** - * Returns a new object of class 'Book On Tape'. - * + * Returns a new object of class 'Book On Tape'. + * * - * @return a new object of class 'Book On Tape'. - * @generated - */ + * @return a new object of class 'Book On Tape'. + * @generated + */ BookOnTape createBookOnTape(); /** - * Returns a new object of class 'Video Cassette'. - * + * Returns a new object of class 'Video Cassette'. + * * - * @return a new object of class 'Video Cassette'. - * @generated - */ + * @return a new object of class 'Video Cassette'. + * @generated + */ VideoCassette createVideoCassette(); /** - * Returns a new object of class 'Borrower'. - * + * Returns a new object of class 'Borrower'. + * * - * @return a new object of class 'Borrower'. - * @generated - */ + * @return a new object of class 'Borrower'. + * @generated + */ Borrower createBorrower(); /** - * Returns a new object of class 'Person'. - * + * Returns a new object of class 'Person'. + * * - * @return a new object of class 'Person'. - * @generated - */ + * @return a new object of class 'Person'. + * @generated + */ Person createPerson(); /** - * Returns a new object of class 'Employee'. - * + * Returns a new object of class 'Employee'. + * * - * @return a new object of class 'Employee'. - * @generated - */ + * @return a new object of class 'Employee'. + * @generated + */ Employee createEmployee(); /** - * Returns the package supported by this factory. - * + * Returns the package supported by this factory. + * * - * @return the package supported by this factory. - * @generated - */ + * @return the package supported by this factory. + * @generated + */ EXTLibraryPackage getEXTLibraryPackage(); } //EXTLibraryFactory diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryPackage.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryPackage.java index 73be1f8b3..085356281 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryPackage.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/EXTLibraryPackage.java @@ -42,1400 +42,1400 @@ public interface EXTLibraryPackage extends EPackage { /** - * The package name. - * + * The package name. + * * - * @generated - */ - String eNAME = "extlibrary"; //$NON-NLS-1$ + * @generated + */ + String eNAME = "library"; //$NON-NLS-1$ /** - * The package namespace URI. - * + * The package namespace URI. + * * - * @generated - */ + * @generated + */ String eNS_URI = "http:///org/eclipse/emf/parsley/examples/library/extlibrary.ecore/0.1.0"; //$NON-NLS-1$ /** - * The package namespace name. - * + * The package namespace name. + * * - * @generated - */ + * @generated + */ String eNS_PREFIX = "extlib"; //$NON-NLS-1$ /** - * The package content type ID. - * + * The package content type ID. + * * @since 2.4 * - * @generated - */ + * @generated + */ String eCONTENT_TYPE = "emfParsleyLibrary"; //$NON-NLS-1$ /** - * The singleton instance of the package. - * + * The singleton instance of the package. + * * - * @generated - */ + * @generated + */ EXTLibraryPackage eINSTANCE = org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl.init(); /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.ItemImpl Item}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.ItemImpl Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.ItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.ItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getItem() + * @generated + */ int ITEM = 3; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int ITEM__PUBLICATION_DATE = 0; /** - * The number of structural features of the 'Item' class. - * + * The number of structural features of the 'Item' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int ITEM_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl Circulating Item}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl Circulating Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getCirculatingItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getCirculatingItem() + * @generated + */ int CIRCULATING_ITEM = 5; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int CIRCULATING_ITEM__PUBLICATION_DATE = ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int CIRCULATING_ITEM__COPIES = ITEM_FEATURE_COUNT + 0; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int CIRCULATING_ITEM__BORROWERS = ITEM_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Circulating Item' class. - * + * The number of structural features of the 'Circulating Item' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int CIRCULATING_ITEM_FEATURE_COUNT = ITEM_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookImpl Book}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookImpl Book}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BookImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBook() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BookImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBook() + * @generated + */ int BOOK = 0; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__PUBLICATION_DATE = CIRCULATING_ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__COPIES = CIRCULATING_ITEM__COPIES; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__BORROWERS = CIRCULATING_ITEM__BORROWERS; /** - * The feature id for the 'Title' attribute. - * + * The feature id for the 'Title' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__TITLE = CIRCULATING_ITEM_FEATURE_COUNT + 0; /** - * The feature id for the 'Pages' attribute. - * + * The feature id for the 'Pages' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__PAGES = CIRCULATING_ITEM_FEATURE_COUNT + 1; /** - * The feature id for the 'Category' attribute. - * + * The feature id for the 'Category' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__CATEGORY = CIRCULATING_ITEM_FEATURE_COUNT + 2; /** - * The feature id for the 'Author' reference. - * + * The feature id for the 'Author' reference. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK__AUTHOR = CIRCULATING_ITEM_FEATURE_COUNT + 3; /** - * The number of structural features of the 'Book' class. - * + * The number of structural features of the 'Book' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_FEATURE_COUNT = CIRCULATING_ITEM_FEATURE_COUNT + 4; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.Addressable - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAddressable() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.Addressable + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAddressable() + * @generated + */ int ADDRESSABLE = 13; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int ADDRESSABLE__ADDRESS = 0; /** - * The number of structural features of the 'Addressable' class. - * + * The number of structural features of the 'Addressable' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int ADDRESSABLE_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl Library}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl Library}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.LibraryImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLibrary() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.LibraryImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLibrary() + * @generated + */ int LIBRARY = 1; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__ADDRESS = ADDRESSABLE__ADDRESS; /** - * The feature id for the 'Name' attribute. - * + * The feature id for the 'Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__NAME = ADDRESSABLE_FEATURE_COUNT + 0; /** - * The feature id for the 'Writers' containment reference list. - * + * The feature id for the 'Writers' containment reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__WRITERS = ADDRESSABLE_FEATURE_COUNT + 1; /** - * The feature id for the 'Employees' containment reference list. - * + * The feature id for the 'Employees' containment reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__EMPLOYEES = ADDRESSABLE_FEATURE_COUNT + 2; /** - * The feature id for the 'Borrowers' containment reference list. - * + * The feature id for the 'Borrowers' containment reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__BORROWERS = ADDRESSABLE_FEATURE_COUNT + 3; /** - * The feature id for the 'Stock' containment reference list. - * + * The feature id for the 'Stock' containment reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__STOCK = ADDRESSABLE_FEATURE_COUNT + 4; /** - * The feature id for the 'Books' reference list. - * + * The feature id for the 'Books' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__BOOKS = ADDRESSABLE_FEATURE_COUNT + 5; /** - * The feature id for the 'Branches' containment reference list. - * + * The feature id for the 'Branches' containment reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__BRANCHES = ADDRESSABLE_FEATURE_COUNT + 6; /** - * The feature id for the 'Parent Branch' container reference. - * + * The feature id for the 'Parent Branch' container reference. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__PARENT_BRANCH = ADDRESSABLE_FEATURE_COUNT + 7; /** - * The feature id for the 'People' attribute list. - * + * The feature id for the 'People' attribute list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY__PEOPLE = ADDRESSABLE_FEATURE_COUNT + 8; /** - * The number of structural features of the 'Library' class. - * + * The number of structural features of the 'Library' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LIBRARY_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 9; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl Person}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl Person}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.PersonImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPerson() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.PersonImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPerson() + * @generated + */ int PERSON = 11; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERSON__ADDRESS = ADDRESSABLE__ADDRESS; /** - * The feature id for the 'First Name' attribute. - * + * The feature id for the 'First Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERSON__FIRST_NAME = ADDRESSABLE_FEATURE_COUNT + 0; /** - * The feature id for the 'Last Name' attribute. - * + * The feature id for the 'Last Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERSON__LAST_NAME = ADDRESSABLE_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Person' class. - * + * The number of structural features of the 'Person' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERSON_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl Writer}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl Writer}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.WriterImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getWriter() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.WriterImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getWriter() + * @generated + */ int WRITER = 2; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER__ADDRESS = PERSON__ADDRESS; /** - * The feature id for the 'First Name' attribute. - * + * The feature id for the 'First Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER__FIRST_NAME = PERSON__FIRST_NAME; /** - * The feature id for the 'Last Name' attribute. - * + * The feature id for the 'Last Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER__LAST_NAME = PERSON__LAST_NAME; /** - * The feature id for the 'Name' attribute. - * + * The feature id for the 'Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER__NAME = PERSON_FEATURE_COUNT + 0; /** - * The feature id for the 'Books' reference list. - * + * The feature id for the 'Books' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER__BOOKS = PERSON_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Writer' class. - * + * The number of structural features of the 'Writer' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int WRITER_FEATURE_COUNT = PERSON_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.Lendable - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLendable() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.Lendable + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLendable() + * @generated + */ int LENDABLE = 4; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LENDABLE__COPIES = 0; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LENDABLE__BORROWERS = 1; /** - * The number of structural features of the 'Lendable' class. - * + * The number of structural features of the 'Lendable' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int LENDABLE_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl Periodical}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl Periodical}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPeriodical() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPeriodical() + * @generated + */ int PERIODICAL = 6; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERIODICAL__PUBLICATION_DATE = ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Title' attribute. - * + * The feature id for the 'Title' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERIODICAL__TITLE = ITEM_FEATURE_COUNT + 0; /** - * The feature id for the 'Issues Per Year' attribute. - * + * The feature id for the 'Issues Per Year' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERIODICAL__ISSUES_PER_YEAR = ITEM_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Periodical' class. - * + * The number of structural features of the 'Periodical' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PERIODICAL_FEATURE_COUNT = ITEM_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl Audio Visual Item}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl Audio Visual Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAudioVisualItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAudioVisualItem() + * @generated + */ int AUDIO_VISUAL_ITEM = 7; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__PUBLICATION_DATE = CIRCULATING_ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__COPIES = CIRCULATING_ITEM__COPIES; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__BORROWERS = CIRCULATING_ITEM__BORROWERS; /** - * The feature id for the 'Title' attribute. - * + * The feature id for the 'Title' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__TITLE = CIRCULATING_ITEM_FEATURE_COUNT + 0; /** - * The feature id for the 'Minutes Length' attribute. - * + * The feature id for the 'Minutes Length' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__MINUTES_LENGTH = CIRCULATING_ITEM_FEATURE_COUNT + 1; /** - * The feature id for the 'Damaged' attribute. - * + * The feature id for the 'Damaged' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM__DAMAGED = CIRCULATING_ITEM_FEATURE_COUNT + 2; /** - * The number of structural features of the 'Audio Visual Item' class. - * + * The number of structural features of the 'Audio Visual Item' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int AUDIO_VISUAL_ITEM_FEATURE_COUNT = CIRCULATING_ITEM_FEATURE_COUNT + 3; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl Book On Tape}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl Book On Tape}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookOnTape() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookOnTape() + * @generated + */ int BOOK_ON_TAPE = 8; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__PUBLICATION_DATE = AUDIO_VISUAL_ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__COPIES = AUDIO_VISUAL_ITEM__COPIES; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__BORROWERS = AUDIO_VISUAL_ITEM__BORROWERS; /** - * The feature id for the 'Title' attribute. - * + * The feature id for the 'Title' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__TITLE = AUDIO_VISUAL_ITEM__TITLE; /** - * The feature id for the 'Minutes Length' attribute. - * + * The feature id for the 'Minutes Length' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__MINUTES_LENGTH = AUDIO_VISUAL_ITEM__MINUTES_LENGTH; /** - * The feature id for the 'Damaged' attribute. - * + * The feature id for the 'Damaged' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__DAMAGED = AUDIO_VISUAL_ITEM__DAMAGED; /** - * The feature id for the 'Reader' reference. - * + * The feature id for the 'Reader' reference. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__READER = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 0; /** - * The feature id for the 'Author' reference. - * + * The feature id for the 'Author' reference. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE__AUTHOR = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Book On Tape' class. - * + * The number of structural features of the 'Book On Tape' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BOOK_ON_TAPE_FEATURE_COUNT = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl Video Cassette}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl Video Cassette}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getVideoCassette() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getVideoCassette() + * @generated + */ int VIDEO_CASSETTE = 9; /** - * The feature id for the 'Publication Date' attribute. - * + * The feature id for the 'Publication Date' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__PUBLICATION_DATE = AUDIO_VISUAL_ITEM__PUBLICATION_DATE; /** - * The feature id for the 'Copies' attribute. - * + * The feature id for the 'Copies' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__COPIES = AUDIO_VISUAL_ITEM__COPIES; /** - * The feature id for the 'Borrowers' reference list. - * + * The feature id for the 'Borrowers' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__BORROWERS = AUDIO_VISUAL_ITEM__BORROWERS; /** - * The feature id for the 'Title' attribute. - * + * The feature id for the 'Title' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__TITLE = AUDIO_VISUAL_ITEM__TITLE; /** - * The feature id for the 'Minutes Length' attribute. - * + * The feature id for the 'Minutes Length' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__MINUTES_LENGTH = AUDIO_VISUAL_ITEM__MINUTES_LENGTH; /** - * The feature id for the 'Damaged' attribute. - * + * The feature id for the 'Damaged' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__DAMAGED = AUDIO_VISUAL_ITEM__DAMAGED; /** - * The feature id for the 'Cast' reference list. - * + * The feature id for the 'Cast' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE__CAST = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Video Cassette' class. - * + * The number of structural features of the 'Video Cassette' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int VIDEO_CASSETTE_FEATURE_COUNT = AUDIO_VISUAL_ITEM_FEATURE_COUNT + 1; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl Borrower}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl Borrower}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBorrower() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBorrower() + * @generated + */ int BORROWER = 10; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BORROWER__ADDRESS = PERSON__ADDRESS; /** - * The feature id for the 'First Name' attribute. - * + * The feature id for the 'First Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BORROWER__FIRST_NAME = PERSON__FIRST_NAME; /** - * The feature id for the 'Last Name' attribute. - * + * The feature id for the 'Last Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BORROWER__LAST_NAME = PERSON__LAST_NAME; /** - * The feature id for the 'Borrowed' reference list. - * + * The feature id for the 'Borrowed' reference list. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BORROWER__BORROWED = PERSON_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Borrower' class. - * + * The number of structural features of the 'Borrower' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int BORROWER_FEATURE_COUNT = PERSON_FEATURE_COUNT + 1; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl Employee}' class. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl Employee}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getEmployee() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getEmployee() + * @generated + */ int EMPLOYEE = 12; /** - * The feature id for the 'Address' attribute. - * + * The feature id for the 'Address' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int EMPLOYEE__ADDRESS = PERSON__ADDRESS; /** - * The feature id for the 'First Name' attribute. - * + * The feature id for the 'First Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int EMPLOYEE__FIRST_NAME = PERSON__FIRST_NAME; /** - * The feature id for the 'Last Name' attribute. - * + * The feature id for the 'Last Name' attribute. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int EMPLOYEE__LAST_NAME = PERSON__LAST_NAME; /** - * The feature id for the 'Manager' reference. - * + * The feature id for the 'Manager' reference. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int EMPLOYEE__MANAGER = PERSON_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Employee' class. - * + * The number of structural features of the 'Employee' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int EMPLOYEE_FEATURE_COUNT = PERSON_FEATURE_COUNT + 1; /** - * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}' enum. - * + * The meta object id for the '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}' enum. + * * - * @see org.eclipse.emf.parsley.examples.library.BookCategory - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookCategory() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.BookCategory + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookCategory() + * @generated + */ int BOOK_CATEGORY = 14; /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Book Book}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Book Book}'. + * * - * @return the meta object for class 'Book'. - * @see org.eclipse.emf.parsley.examples.library.Book - * @generated - */ + * @return the meta object for class 'Book'. + * @see org.eclipse.emf.parsley.examples.library.Book + * @generated + */ EClass getBook(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getTitle Title}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getTitle Title}'. + * * - * @return the meta object for the attribute 'Title'. - * @see org.eclipse.emf.parsley.examples.library.Book#getTitle() - * @see #getBook() - * @generated - */ + * @return the meta object for the attribute 'Title'. + * @see org.eclipse.emf.parsley.examples.library.Book#getTitle() + * @see #getBook() + * @generated + */ EAttribute getBook_Title(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getPages Pages}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getPages Pages}'. + * * - * @return the meta object for the attribute 'Pages'. - * @see org.eclipse.emf.parsley.examples.library.Book#getPages() - * @see #getBook() - * @generated - */ + * @return the meta object for the attribute 'Pages'. + * @see org.eclipse.emf.parsley.examples.library.Book#getPages() + * @see #getBook() + * @generated + */ EAttribute getBook_Pages(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Book#getCategory Category}'. + * * - * @return the meta object for the attribute 'Category'. - * @see org.eclipse.emf.parsley.examples.library.Book#getCategory() - * @see #getBook() - * @generated - */ + * @return the meta object for the attribute 'Category'. + * @see org.eclipse.emf.parsley.examples.library.Book#getCategory() + * @see #getBook() + * @generated + */ EAttribute getBook_Category(); /** - * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}'. - * + * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}'. + * * - * @return the meta object for the reference 'Author'. - * @see org.eclipse.emf.parsley.examples.library.Book#getAuthor() - * @see #getBook() - * @generated - */ + * @return the meta object for the reference 'Author'. + * @see org.eclipse.emf.parsley.examples.library.Book#getAuthor() + * @see #getBook() + * @generated + */ EReference getBook_Author(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Library Library}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Library Library}'. + * * - * @return the meta object for class 'Library'. - * @see org.eclipse.emf.parsley.examples.library.Library - * @generated - */ + * @return the meta object for class 'Library'. + * @see org.eclipse.emf.parsley.examples.library.Library + * @generated + */ EClass getLibrary(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Library#getName Name}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Library#getName Name}'. + * * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.emf.parsley.examples.library.Library#getName() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.emf.parsley.examples.library.Library#getName() + * @see #getLibrary() + * @generated + */ EAttribute getLibrary_Name(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getWriters Writers}'. - * + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getWriters Writers}'. + * * - * @return the meta object for the containment reference list 'Writers'. - * @see org.eclipse.emf.parsley.examples.library.Library#getWriters() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the containment reference list 'Writers'. + * @see org.eclipse.emf.parsley.examples.library.Library#getWriters() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Writers(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getEmployees Employees}'. - * + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getEmployees Employees}'. + * * - * @return the meta object for the containment reference list 'Employees'. - * @see org.eclipse.emf.parsley.examples.library.Library#getEmployees() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the containment reference list 'Employees'. + * @see org.eclipse.emf.parsley.examples.library.Library#getEmployees() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Employees(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBorrowers Borrowers}'. - * + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBorrowers Borrowers}'. + * * - * @return the meta object for the containment reference list 'Borrowers'. - * @see org.eclipse.emf.parsley.examples.library.Library#getBorrowers() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the containment reference list 'Borrowers'. + * @see org.eclipse.emf.parsley.examples.library.Library#getBorrowers() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Borrowers(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getStock Stock}'. - * + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getStock Stock}'. + * * - * @return the meta object for the containment reference list 'Stock'. - * @see org.eclipse.emf.parsley.examples.library.Library#getStock() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the containment reference list 'Stock'. + * @see org.eclipse.emf.parsley.examples.library.Library#getStock() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Stock(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBooks Books}'. - * + * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBooks Books}'. + * * - * @return the meta object for the reference list 'Books'. - * @see org.eclipse.emf.parsley.examples.library.Library#getBooks() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the reference list 'Books'. + * @see org.eclipse.emf.parsley.examples.library.Library#getBooks() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Books(); /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBranches Branches}'. - * + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.parsley.examples.library.Library#getBranches Branches}'. + * * - * @return the meta object for the containment reference list 'Branches'. - * @see org.eclipse.emf.parsley.examples.library.Library#getBranches() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the containment reference list 'Branches'. + * @see org.eclipse.emf.parsley.examples.library.Library#getBranches() + * @see #getLibrary() + * @generated + */ EReference getLibrary_Branches(); /** - * Returns the meta object for the container reference '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}'. - * + * Returns the meta object for the container reference '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}'. + * * - * @return the meta object for the container reference 'Parent Branch'. - * @see org.eclipse.emf.parsley.examples.library.Library#getParentBranch() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the container reference 'Parent Branch'. + * @see org.eclipse.emf.parsley.examples.library.Library#getParentBranch() + * @see #getLibrary() + * @generated + */ EReference getLibrary_ParentBranch(); /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.parsley.examples.library.Library#getPeople People}'. - * + * Returns the meta object for the attribute list '{@link org.eclipse.emf.parsley.examples.library.Library#getPeople People}'. + * * - * @return the meta object for the attribute list 'People'. - * @see org.eclipse.emf.parsley.examples.library.Library#getPeople() - * @see #getLibrary() - * @generated - */ + * @return the meta object for the attribute list 'People'. + * @see org.eclipse.emf.parsley.examples.library.Library#getPeople() + * @see #getLibrary() + * @generated + */ EAttribute getLibrary_People(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Writer Writer}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Writer Writer}'. + * * - * @return the meta object for class 'Writer'. - * @see org.eclipse.emf.parsley.examples.library.Writer - * @generated - */ + * @return the meta object for class 'Writer'. + * @see org.eclipse.emf.parsley.examples.library.Writer + * @generated + */ EClass getWriter(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Writer#getName Name}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Writer#getName Name}'. + * * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.emf.parsley.examples.library.Writer#getName() - * @see #getWriter() - * @generated - */ + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.emf.parsley.examples.library.Writer#getName() + * @see #getWriter() + * @generated + */ EAttribute getWriter_Name(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Writer#getBooks Books}'. - * + * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Writer#getBooks Books}'. + * * - * @return the meta object for the reference list 'Books'. - * @see org.eclipse.emf.parsley.examples.library.Writer#getBooks() - * @see #getWriter() - * @generated - */ + * @return the meta object for the reference list 'Books'. + * @see org.eclipse.emf.parsley.examples.library.Writer#getBooks() + * @see #getWriter() + * @generated + */ EReference getWriter_Books(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Item Item}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Item Item}'. + * * - * @return the meta object for class 'Item'. - * @see org.eclipse.emf.parsley.examples.library.Item - * @generated - */ + * @return the meta object for class 'Item'. + * @see org.eclipse.emf.parsley.examples.library.Item + * @generated + */ EClass getItem(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Item#getPublicationDate Publication Date}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Item#getPublicationDate Publication Date}'. + * * - * @return the meta object for the attribute 'Publication Date'. - * @see org.eclipse.emf.parsley.examples.library.Item#getPublicationDate() - * @see #getItem() - * @generated - */ + * @return the meta object for the attribute 'Publication Date'. + * @see org.eclipse.emf.parsley.examples.library.Item#getPublicationDate() + * @see #getItem() + * @generated + */ EAttribute getItem_PublicationDate(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}'. + * * - * @return the meta object for class 'Lendable'. - * @see org.eclipse.emf.parsley.examples.library.Lendable - * @generated - */ + * @return the meta object for class 'Lendable'. + * @see org.eclipse.emf.parsley.examples.library.Lendable + * @generated + */ EClass getLendable(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Lendable#getCopies Copies}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Lendable#getCopies Copies}'. + * * - * @return the meta object for the attribute 'Copies'. - * @see org.eclipse.emf.parsley.examples.library.Lendable#getCopies() - * @see #getLendable() - * @generated - */ + * @return the meta object for the attribute 'Copies'. + * @see org.eclipse.emf.parsley.examples.library.Lendable#getCopies() + * @see #getLendable() + * @generated + */ EAttribute getLendable_Copies(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers Borrowers}'. - * + * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers Borrowers}'. + * * - * @return the meta object for the reference list 'Borrowers'. - * @see org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers() - * @see #getLendable() - * @generated - */ + * @return the meta object for the reference list 'Borrowers'. + * @see org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers() + * @see #getLendable() + * @generated + */ EReference getLendable_Borrowers(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.CirculatingItem Circulating Item}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.CirculatingItem Circulating Item}'. + * * - * @return the meta object for class 'Circulating Item'. - * @see org.eclipse.emf.parsley.examples.library.CirculatingItem - * @generated - */ + * @return the meta object for class 'Circulating Item'. + * @see org.eclipse.emf.parsley.examples.library.CirculatingItem + * @generated + */ EClass getCirculatingItem(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Periodical Periodical}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Periodical Periodical}'. + * * - * @return the meta object for class 'Periodical'. - * @see org.eclipse.emf.parsley.examples.library.Periodical - * @generated - */ + * @return the meta object for class 'Periodical'. + * @see org.eclipse.emf.parsley.examples.library.Periodical + * @generated + */ EClass getPeriodical(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Periodical#getTitle Title}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Periodical#getTitle Title}'. + * * - * @return the meta object for the attribute 'Title'. - * @see org.eclipse.emf.parsley.examples.library.Periodical#getTitle() - * @see #getPeriodical() - * @generated - */ + * @return the meta object for the attribute 'Title'. + * @see org.eclipse.emf.parsley.examples.library.Periodical#getTitle() + * @see #getPeriodical() + * @generated + */ EAttribute getPeriodical_Title(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear Issues Per Year}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear Issues Per Year}'. + * * - * @return the meta object for the attribute 'Issues Per Year'. - * @see org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear() - * @see #getPeriodical() - * @generated - */ + * @return the meta object for the attribute 'Issues Per Year'. + * @see org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear() + * @see #getPeriodical() + * @generated + */ EAttribute getPeriodical_IssuesPerYear(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem Audio Visual Item}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem Audio Visual Item}'. + * * - * @return the meta object for class 'Audio Visual Item'. - * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem - * @generated - */ + * @return the meta object for class 'Audio Visual Item'. + * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem + * @generated + */ EClass getAudioVisualItem(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle Title}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle Title}'. + * * - * @return the meta object for the attribute 'Title'. - * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle() - * @see #getAudioVisualItem() - * @generated - */ + * @return the meta object for the attribute 'Title'. + * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#getTitle() + * @see #getAudioVisualItem() + * @generated + */ EAttribute getAudioVisualItem_Title(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength Minutes Length}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength Minutes Length}'. + * * - * @return the meta object for the attribute 'Minutes Length'. - * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength() - * @see #getAudioVisualItem() - * @generated - */ + * @return the meta object for the attribute 'Minutes Length'. + * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#getMinutesLength() + * @see #getAudioVisualItem() + * @generated + */ EAttribute getAudioVisualItem_MinutesLength(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged Damaged}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged Damaged}'. + * * - * @return the meta object for the attribute 'Damaged'. - * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged() - * @see #getAudioVisualItem() - * @generated - */ + * @return the meta object for the attribute 'Damaged'. + * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem#isDamaged() + * @see #getAudioVisualItem() + * @generated + */ EAttribute getAudioVisualItem_Damaged(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.BookOnTape Book On Tape}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.BookOnTape Book On Tape}'. + * * - * @return the meta object for class 'Book On Tape'. - * @see org.eclipse.emf.parsley.examples.library.BookOnTape - * @generated - */ + * @return the meta object for class 'Book On Tape'. + * @see org.eclipse.emf.parsley.examples.library.BookOnTape + * @generated + */ EClass getBookOnTape(); /** - * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getReader Reader}'. - * + * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getReader Reader}'. + * * - * @return the meta object for the reference 'Reader'. - * @see org.eclipse.emf.parsley.examples.library.BookOnTape#getReader() - * @see #getBookOnTape() - * @generated - */ + * @return the meta object for the reference 'Reader'. + * @see org.eclipse.emf.parsley.examples.library.BookOnTape#getReader() + * @see #getBookOnTape() + * @generated + */ EReference getBookOnTape_Reader(); /** - * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor Author}'. - * + * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor Author}'. + * * - * @return the meta object for the reference 'Author'. - * @see org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor() - * @see #getBookOnTape() - * @generated - */ + * @return the meta object for the reference 'Author'. + * @see org.eclipse.emf.parsley.examples.library.BookOnTape#getAuthor() + * @see #getBookOnTape() + * @generated + */ EReference getBookOnTape_Author(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.VideoCassette Video Cassette}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.VideoCassette Video Cassette}'. + * * - * @return the meta object for class 'Video Cassette'. - * @see org.eclipse.emf.parsley.examples.library.VideoCassette - * @generated - */ + * @return the meta object for class 'Video Cassette'. + * @see org.eclipse.emf.parsley.examples.library.VideoCassette + * @generated + */ EClass getVideoCassette(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.VideoCassette#getCast Cast}'. - * + * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.VideoCassette#getCast Cast}'. + * * - * @return the meta object for the reference list 'Cast'. - * @see org.eclipse.emf.parsley.examples.library.VideoCassette#getCast() - * @see #getVideoCassette() - * @generated - */ + * @return the meta object for the reference list 'Cast'. + * @see org.eclipse.emf.parsley.examples.library.VideoCassette#getCast() + * @see #getVideoCassette() + * @generated + */ EReference getVideoCassette_Cast(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Borrower Borrower}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Borrower Borrower}'. + * * - * @return the meta object for class 'Borrower'. - * @see org.eclipse.emf.parsley.examples.library.Borrower - * @generated - */ + * @return the meta object for class 'Borrower'. + * @see org.eclipse.emf.parsley.examples.library.Borrower + * @generated + */ EClass getBorrower(); /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed Borrowed}'. - * + * Returns the meta object for the reference list '{@link org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed Borrowed}'. + * * - * @return the meta object for the reference list 'Borrowed'. - * @see org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed() - * @see #getBorrower() - * @generated - */ + * @return the meta object for the reference list 'Borrowed'. + * @see org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed() + * @see #getBorrower() + * @generated + */ EReference getBorrower_Borrowed(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Person Person}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Person Person}'. + * * - * @return the meta object for class 'Person'. - * @see org.eclipse.emf.parsley.examples.library.Person - * @generated - */ + * @return the meta object for class 'Person'. + * @see org.eclipse.emf.parsley.examples.library.Person + * @generated + */ EClass getPerson(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Person#getFirstName First Name}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Person#getFirstName First Name}'. + * * - * @return the meta object for the attribute 'First Name'. - * @see org.eclipse.emf.parsley.examples.library.Person#getFirstName() - * @see #getPerson() - * @generated - */ + * @return the meta object for the attribute 'First Name'. + * @see org.eclipse.emf.parsley.examples.library.Person#getFirstName() + * @see #getPerson() + * @generated + */ EAttribute getPerson_FirstName(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Person#getLastName Last Name}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Person#getLastName Last Name}'. + * * - * @return the meta object for the attribute 'Last Name'. - * @see org.eclipse.emf.parsley.examples.library.Person#getLastName() - * @see #getPerson() - * @generated - */ + * @return the meta object for the attribute 'Last Name'. + * @see org.eclipse.emf.parsley.examples.library.Person#getLastName() + * @see #getPerson() + * @generated + */ EAttribute getPerson_LastName(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Employee Employee}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Employee Employee}'. + * * - * @return the meta object for class 'Employee'. - * @see org.eclipse.emf.parsley.examples.library.Employee - * @generated - */ + * @return the meta object for class 'Employee'. + * @see org.eclipse.emf.parsley.examples.library.Employee + * @generated + */ EClass getEmployee(); /** - * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.Employee#getManager Manager}'. - * + * Returns the meta object for the reference '{@link org.eclipse.emf.parsley.examples.library.Employee#getManager Manager}'. + * * - * @return the meta object for the reference 'Manager'. - * @see org.eclipse.emf.parsley.examples.library.Employee#getManager() - * @see #getEmployee() - * @generated - */ + * @return the meta object for the reference 'Manager'. + * @see org.eclipse.emf.parsley.examples.library.Employee#getManager() + * @see #getEmployee() + * @generated + */ EReference getEmployee_Manager(); /** - * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}'. + * * - * @return the meta object for class 'Addressable'. - * @see org.eclipse.emf.parsley.examples.library.Addressable - * @generated - */ + * @return the meta object for class 'Addressable'. + * @see org.eclipse.emf.parsley.examples.library.Addressable + * @generated + */ EClass getAddressable(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Addressable#getAddress Address}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.parsley.examples.library.Addressable#getAddress Address}'. + * * - * @return the meta object for the attribute 'Address'. - * @see org.eclipse.emf.parsley.examples.library.Addressable#getAddress() - * @see #getAddressable() - * @generated - */ + * @return the meta object for the attribute 'Address'. + * @see org.eclipse.emf.parsley.examples.library.Addressable#getAddress() + * @see #getAddressable() + * @generated + */ EAttribute getAddressable_Address(); /** - * Returns the meta object for enum '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}'. - * + * Returns the meta object for enum '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}'. + * * - * @return the meta object for enum 'Book Category'. - * @see org.eclipse.emf.parsley.examples.library.BookCategory - * @generated - */ + * @return the meta object for enum 'Book Category'. + * @see org.eclipse.emf.parsley.examples.library.BookCategory + * @generated + */ EEnum getBookCategory(); /** - * Returns the factory that creates the instances of the model. - * + * Returns the factory that creates the instances of the model. + * * - * @return the factory that creates the instances of the model. - * @generated - */ + * @return the factory that creates the instances of the model. + * @generated + */ EXTLibraryFactory getEXTLibraryFactory(); /** - * + * * Defines literals for the meta objects that represent *
    *
  • each class,
  • @@ -1444,406 +1444,406 @@ public interface EXTLibraryPackage extends EPackage *
  • and each data type
  • *
* - * @generated - */ + * @generated + */ interface Literals { /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookImpl Book}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookImpl Book}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BookImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBook() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BookImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBook() + * @generated + */ EClass BOOK = eINSTANCE.getBook(); /** - * The meta object literal for the 'Title' attribute feature. - * + * The meta object literal for the 'Title' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute BOOK__TITLE = eINSTANCE.getBook_Title(); /** - * The meta object literal for the 'Pages' attribute feature. - * + * The meta object literal for the 'Pages' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages(); /** - * The meta object literal for the 'Category' attribute feature. - * + * The meta object literal for the 'Category' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category(); /** - * The meta object literal for the 'Author' reference feature. - * + * The meta object literal for the 'Author' reference feature. + * * - * @generated - */ + * @generated + */ EReference BOOK__AUTHOR = eINSTANCE.getBook_Author(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl Library}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl Library}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.LibraryImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLibrary() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.LibraryImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLibrary() + * @generated + */ EClass LIBRARY = eINSTANCE.getLibrary(); /** - * The meta object literal for the 'Name' attribute feature. - * + * The meta object literal for the 'Name' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name(); /** - * The meta object literal for the 'Writers' containment reference list feature. - * + * The meta object literal for the 'Writers' containment reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers(); /** - * The meta object literal for the 'Employees' containment reference list feature. - * + * The meta object literal for the 'Employees' containment reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__EMPLOYEES = eINSTANCE.getLibrary_Employees(); /** - * The meta object literal for the 'Borrowers' containment reference list feature. - * + * The meta object literal for the 'Borrowers' containment reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__BORROWERS = eINSTANCE.getLibrary_Borrowers(); /** - * The meta object literal for the 'Stock' containment reference list feature. - * + * The meta object literal for the 'Stock' containment reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__STOCK = eINSTANCE.getLibrary_Stock(); /** - * The meta object literal for the 'Books' reference list feature. - * + * The meta object literal for the 'Books' reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books(); /** - * The meta object literal for the 'Branches' containment reference list feature. - * + * The meta object literal for the 'Branches' containment reference list feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__BRANCHES = eINSTANCE.getLibrary_Branches(); /** - * The meta object literal for the 'Parent Branch' container reference feature. - * + * The meta object literal for the 'Parent Branch' container reference feature. + * * - * @generated - */ + * @generated + */ EReference LIBRARY__PARENT_BRANCH = eINSTANCE.getLibrary_ParentBranch(); /** - * The meta object literal for the 'People' attribute list feature. - * + * The meta object literal for the 'People' attribute list feature. + * * - * @generated - */ + * @generated + */ EAttribute LIBRARY__PEOPLE = eINSTANCE.getLibrary_People(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl Writer}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl Writer}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.WriterImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getWriter() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.WriterImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getWriter() + * @generated + */ EClass WRITER = eINSTANCE.getWriter(); /** - * The meta object literal for the 'Name' attribute feature. - * + * The meta object literal for the 'Name' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute WRITER__NAME = eINSTANCE.getWriter_Name(); /** - * The meta object literal for the 'Books' reference list feature. - * + * The meta object literal for the 'Books' reference list feature. + * * - * @generated - */ + * @generated + */ EReference WRITER__BOOKS = eINSTANCE.getWriter_Books(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.ItemImpl Item}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.ItemImpl Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.ItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.ItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getItem() + * @generated + */ EClass ITEM = eINSTANCE.getItem(); /** - * The meta object literal for the 'Publication Date' attribute feature. - * + * The meta object literal for the 'Publication Date' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute ITEM__PUBLICATION_DATE = eINSTANCE.getItem_PublicationDate(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.Lendable - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLendable() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.Lendable + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getLendable() + * @generated + */ EClass LENDABLE = eINSTANCE.getLendable(); /** - * The meta object literal for the 'Copies' attribute feature. - * + * The meta object literal for the 'Copies' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute LENDABLE__COPIES = eINSTANCE.getLendable_Copies(); /** - * The meta object literal for the 'Borrowers' reference list feature. - * + * The meta object literal for the 'Borrowers' reference list feature. + * * - * @generated - */ + * @generated + */ EReference LENDABLE__BORROWERS = eINSTANCE.getLendable_Borrowers(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl Circulating Item}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl Circulating Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getCirculatingItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getCirculatingItem() + * @generated + */ EClass CIRCULATING_ITEM = eINSTANCE.getCirculatingItem(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl Periodical}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl Periodical}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPeriodical() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPeriodical() + * @generated + */ EClass PERIODICAL = eINSTANCE.getPeriodical(); /** - * The meta object literal for the 'Title' attribute feature. - * + * The meta object literal for the 'Title' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute PERIODICAL__TITLE = eINSTANCE.getPeriodical_Title(); /** - * The meta object literal for the 'Issues Per Year' attribute feature. - * + * The meta object literal for the 'Issues Per Year' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute PERIODICAL__ISSUES_PER_YEAR = eINSTANCE.getPeriodical_IssuesPerYear(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl Audio Visual Item}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl Audio Visual Item}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAudioVisualItem() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAudioVisualItem() + * @generated + */ EClass AUDIO_VISUAL_ITEM = eINSTANCE.getAudioVisualItem(); /** - * The meta object literal for the 'Title' attribute feature. - * + * The meta object literal for the 'Title' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute AUDIO_VISUAL_ITEM__TITLE = eINSTANCE.getAudioVisualItem_Title(); /** - * The meta object literal for the 'Minutes Length' attribute feature. - * + * The meta object literal for the 'Minutes Length' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute AUDIO_VISUAL_ITEM__MINUTES_LENGTH = eINSTANCE.getAudioVisualItem_MinutesLength(); /** - * The meta object literal for the 'Damaged' attribute feature. - * + * The meta object literal for the 'Damaged' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute AUDIO_VISUAL_ITEM__DAMAGED = eINSTANCE.getAudioVisualItem_Damaged(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl Book On Tape}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl Book On Tape}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookOnTape() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookOnTape() + * @generated + */ EClass BOOK_ON_TAPE = eINSTANCE.getBookOnTape(); /** - * The meta object literal for the 'Reader' reference feature. - * + * The meta object literal for the 'Reader' reference feature. + * * - * @generated - */ + * @generated + */ EReference BOOK_ON_TAPE__READER = eINSTANCE.getBookOnTape_Reader(); /** - * The meta object literal for the 'Author' reference feature. - * + * The meta object literal for the 'Author' reference feature. + * * - * @generated - */ + * @generated + */ EReference BOOK_ON_TAPE__AUTHOR = eINSTANCE.getBookOnTape_Author(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl Video Cassette}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl Video Cassette}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getVideoCassette() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getVideoCassette() + * @generated + */ EClass VIDEO_CASSETTE = eINSTANCE.getVideoCassette(); /** - * The meta object literal for the 'Cast' reference list feature. - * + * The meta object literal for the 'Cast' reference list feature. + * * - * @generated - */ + * @generated + */ EReference VIDEO_CASSETTE__CAST = eINSTANCE.getVideoCassette_Cast(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl Borrower}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl Borrower}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBorrower() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBorrower() + * @generated + */ EClass BORROWER = eINSTANCE.getBorrower(); /** - * The meta object literal for the 'Borrowed' reference list feature. - * + * The meta object literal for the 'Borrowed' reference list feature. + * * - * @generated - */ + * @generated + */ EReference BORROWER__BORROWED = eINSTANCE.getBorrower_Borrowed(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl Person}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl Person}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.PersonImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPerson() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.PersonImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getPerson() + * @generated + */ EClass PERSON = eINSTANCE.getPerson(); /** - * The meta object literal for the 'First Name' attribute feature. - * + * The meta object literal for the 'First Name' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute PERSON__FIRST_NAME = eINSTANCE.getPerson_FirstName(); /** - * The meta object literal for the 'Last Name' attribute feature. - * + * The meta object literal for the 'Last Name' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute PERSON__LAST_NAME = eINSTANCE.getPerson_LastName(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl Employee}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl Employee}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getEmployee() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getEmployee() + * @generated + */ EClass EMPLOYEE = eINSTANCE.getEmployee(); /** - * The meta object literal for the 'Manager' reference feature. - * + * The meta object literal for the 'Manager' reference feature. + * * - * @generated - */ + * @generated + */ EReference EMPLOYEE__MANAGER = eINSTANCE.getEmployee_Manager(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}' class. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}' class. + * * - * @see org.eclipse.emf.parsley.examples.library.Addressable - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAddressable() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.Addressable + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getAddressable() + * @generated + */ EClass ADDRESSABLE = eINSTANCE.getAddressable(); /** - * The meta object literal for the 'Address' attribute feature. - * + * The meta object literal for the 'Address' attribute feature. + * * - * @generated - */ + * @generated + */ EAttribute ADDRESSABLE__ADDRESS = eINSTANCE.getAddressable_Address(); /** - * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}' enum. - * + * The meta object literal for the '{@link org.eclipse.emf.parsley.examples.library.BookCategory Book Category}' enum. + * * - * @see org.eclipse.emf.parsley.examples.library.BookCategory - * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookCategory() - * @generated - */ + * @see org.eclipse.emf.parsley.examples.library.BookCategory + * @see org.eclipse.emf.parsley.examples.library.impl.EXTLibraryPackageImpl#getBookCategory() + * @generated + */ EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory(); } diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Employee.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Employee.java index 58edbd34f..0f29dac8f 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Employee.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Employee.java @@ -24,10 +24,10 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Employee#getManager Manager}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getEmployee() * @model @@ -36,25 +36,25 @@ public interface Employee extends Person { /** - * Returns the value of the 'Manager' reference. - * + * Returns the value of the 'Manager' reference. + * * - * @return the value of the 'Manager' reference. - * @see #setManager(Employee) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getEmployee_Manager() - * @model - * @generated - */ + * @return the value of the 'Manager' reference. + * @see #setManager(Employee) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getEmployee_Manager() + * @model + * @generated + */ Employee getManager(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Employee#getManager Manager}' reference. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Employee#getManager Manager}' reference. + * * - * @param value the new value of the 'Manager' reference. - * @see #getManager() - * @generated - */ + * @param value the new value of the 'Manager' reference. + * @see #getManager() + * @generated + */ void setManager(Employee value); } // Employee diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Item.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Item.java index 0e5b4e66b..81ca5548c 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Item.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Item.java @@ -29,10 +29,10 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Item#getPublicationDate Publication Date}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getItem() * @model abstract="true" @@ -41,25 +41,25 @@ public interface Item extends EObject { /** - * Returns the value of the 'Publication Date' attribute. - * + * Returns the value of the 'Publication Date' attribute. + * * - * @return the value of the 'Publication Date' attribute. - * @see #setPublicationDate(Date) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getItem_PublicationDate() - * @model - * @generated - */ + * @return the value of the 'Publication Date' attribute. + * @see #setPublicationDate(Date) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getItem_PublicationDate() + * @model + * @generated + */ Date getPublicationDate(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Item#getPublicationDate Publication Date}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Item#getPublicationDate Publication Date}' attribute. + * * - * @param value the new value of the 'Publication Date' attribute. - * @see #getPublicationDate() - * @generated - */ + * @param value the new value of the 'Publication Date' attribute. + * @see #getPublicationDate() + * @generated + */ void setPublicationDate(Date value); } // Item diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Lendable.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Lendable.java index 3c0371ddd..b146f367a 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Lendable.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Lendable.java @@ -29,11 +29,11 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Lendable#getCopies Copies}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Lendable#getBorrowers Borrowers}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLendable() * @model interface="true" abstract="true" @@ -42,39 +42,39 @@ public interface Lendable extends EObject { /** - * Returns the value of the 'Copies' attribute. - * + * Returns the value of the 'Copies' attribute. + * * - * @return the value of the 'Copies' attribute. - * @see #setCopies(int) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLendable_Copies() - * @model required="true" - * @generated - */ + * @return the value of the 'Copies' attribute. + * @see #setCopies(int) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLendable_Copies() + * @model required="true" + * @generated + */ int getCopies(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Lendable#getCopies Copies}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Lendable#getCopies Copies}' attribute. + * * - * @param value the new value of the 'Copies' attribute. - * @see #getCopies() - * @generated - */ + * @param value the new value of the 'Copies' attribute. + * @see #getCopies() + * @generated + */ void setCopies(int value); /** - * Returns the value of the 'Borrowers' reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Borrower}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed Borrowed}'. - * + * Returns the value of the 'Borrowers' reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Borrower}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed Borrowed}'. + * * - * @return the value of the 'Borrowers' reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLendable_Borrowers() - * @see org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed - * @model opposite="borrowed" ordered="false" - * @generated - */ + * @return the value of the 'Borrowers' reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLendable_Borrowers() + * @see org.eclipse.emf.parsley.examples.library.Borrower#getBorrowed + * @model opposite="borrowed" ordered="false" + * @generated + */ EList getBorrowers(); } // Lendable diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Library.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Library.java index a0390a20b..1d576a77a 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Library.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Library.java @@ -29,6 +29,7 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Library#getName Name}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Library#getWriters Writers}
  • @@ -40,7 +41,6 @@ *
  • {@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Library#getPeople People}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary() * @model @@ -49,139 +49,139 @@ public interface Library extends Addressable { /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. + * * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Name() - * @model - * @generated - */ + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Name() + * @model + * @generated + */ String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Library#getName Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Library#getName Name}' attribute. + * * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ void setName(String value); /** - * Returns the value of the 'Writers' containment reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Writer}. - * + * Returns the value of the 'Writers' containment reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Writer}. + * * - * @return the value of the 'Writers' containment reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Writers() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * @generated - */ + * @return the value of the 'Writers' containment reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Writers() + * @model containment="true" transient="true" volatile="true" derived="true" + * extendedMetaData="group='#people'" + * @generated + */ EList getWriters(); /** - * Returns the value of the 'Employees' containment reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Employee}. - * + * Returns the value of the 'Employees' containment reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Employee}. + * * - * @return the value of the 'Employees' containment reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Employees() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * @generated - */ + * @return the value of the 'Employees' containment reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Employees() + * @model containment="true" transient="true" volatile="true" derived="true" + * extendedMetaData="group='#people'" + * @generated + */ EList getEmployees(); /** - * Returns the value of the 'Borrowers' containment reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Borrower}. - * + * Returns the value of the 'Borrowers' containment reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Borrower}. + * * - * @return the value of the 'Borrowers' containment reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Borrowers() - * @model containment="true" transient="true" volatile="true" derived="true" - * extendedMetaData="group='#people'" - * @generated - */ + * @return the value of the 'Borrowers' containment reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Borrowers() + * @model containment="true" transient="true" volatile="true" derived="true" + * extendedMetaData="group='#people'" + * @generated + */ EList getBorrowers(); /** - * Returns the value of the 'Stock' containment reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Item}. - * + * Returns the value of the 'Stock' containment reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Item}. + * * - * @return the value of the 'Stock' containment reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Stock() - * @model containment="true" ordered="false" - * @generated - */ + * @return the value of the 'Stock' containment reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Stock() + * @model containment="true" ordered="false" + * @generated + */ EList getStock(); /** - * Returns the value of the 'Books' reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Book}. - * + * Returns the value of the 'Books' reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Book}. + * * - * @return the value of the 'Books' reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Books() - * @model transient="true" derived="true" ordered="false" - * @generated - */ + * @return the value of the 'Books' reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Books() + * @model transient="true" derived="true" ordered="false" + * @generated + */ EList getBooks(); /** - * Returns the value of the 'Branches' containment reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Library}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}'. - * + * Returns the value of the 'Branches' containment reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Library}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}'. + * * - * @return the value of the 'Branches' containment reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Branches() - * @see org.eclipse.emf.parsley.examples.library.Library#getParentBranch - * @model opposite="parentBranch" containment="true" resolveProxies="true" - * @generated - */ + * @return the value of the 'Branches' containment reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_Branches() + * @see org.eclipse.emf.parsley.examples.library.Library#getParentBranch + * @model opposite="parentBranch" containment="true" resolveProxies="true" + * @generated + */ EList getBranches(); /** - * Returns the value of the 'Parent Branch' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Library#getBranches Branches}'. - * + * Returns the value of the 'Parent Branch' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Library#getBranches Branches}'. + * * - * @return the value of the 'Parent Branch' container reference. - * @see #setParentBranch(Library) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_ParentBranch() - * @see org.eclipse.emf.parsley.examples.library.Library#getBranches - * @model opposite="branches" transient="false" - * @generated - */ + * @return the value of the 'Parent Branch' container reference. + * @see #setParentBranch(Library) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_ParentBranch() + * @see org.eclipse.emf.parsley.examples.library.Library#getBranches + * @model opposite="branches" transient="false" + * @generated + */ Library getParentBranch(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}' container reference. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Library#getParentBranch Parent Branch}' container reference. + * * - * @param value the new value of the 'Parent Branch' container reference. - * @see #getParentBranch() - * @generated - */ + * @param value the new value of the 'Parent Branch' container reference. + * @see #getParentBranch() + * @generated + */ void setParentBranch(Library value); /** - * Returns the value of the 'People' attribute list. - * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. - * + * Returns the value of the 'People' attribute list. + * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. + * * - * @return the value of the 'People' attribute list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_People() - * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" - * extendedMetaData="kind='group'" - * @generated - */ + * @return the value of the 'People' attribute list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getLibrary_People() + * @model dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" + * extendedMetaData="kind='group'" + * @generated + */ FeatureMap getPeople(); } // Library diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Periodical.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Periodical.java index 041e0c1a8..71e9d44a2 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Periodical.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Periodical.java @@ -24,11 +24,11 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Periodical#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear Issues Per Year}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPeriodical() * @model abstract="true" @@ -37,47 +37,47 @@ public interface Periodical extends Item { /** - * Returns the value of the 'Title' attribute. - * + * Returns the value of the 'Title' attribute. + * * - * @return the value of the 'Title' attribute. - * @see #setTitle(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPeriodical_Title() - * @model - * @generated - */ + * @return the value of the 'Title' attribute. + * @see #setTitle(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPeriodical_Title() + * @model + * @generated + */ String getTitle(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Periodical#getTitle Title}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Periodical#getTitle Title}' attribute. + * * - * @param value the new value of the 'Title' attribute. - * @see #getTitle() - * @generated - */ + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ void setTitle(String value); /** - * Returns the value of the 'Issues Per Year' attribute. - * + * Returns the value of the 'Issues Per Year' attribute. + * * - * @return the value of the 'Issues Per Year' attribute. - * @see #setIssuesPerYear(int) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPeriodical_IssuesPerYear() - * @model required="true" - * @generated - */ + * @return the value of the 'Issues Per Year' attribute. + * @see #setIssuesPerYear(int) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPeriodical_IssuesPerYear() + * @model required="true" + * @generated + */ int getIssuesPerYear(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear Issues Per Year}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Periodical#getIssuesPerYear Issues Per Year}' attribute. + * * - * @param value the new value of the 'Issues Per Year' attribute. - * @see #getIssuesPerYear() - * @generated - */ + * @param value the new value of the 'Issues Per Year' attribute. + * @see #getIssuesPerYear() + * @generated + */ void setIssuesPerYear(int value); } // Periodical diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Person.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Person.java index db396507a..f3bfc41f9 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Person.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Person.java @@ -24,11 +24,11 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Person#getFirstName First Name}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Person#getLastName Last Name}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPerson() * @model @@ -37,47 +37,47 @@ public interface Person extends Addressable { /** - * Returns the value of the 'First Name' attribute. - * + * Returns the value of the 'First Name' attribute. + * * - * @return the value of the 'First Name' attribute. - * @see #setFirstName(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPerson_FirstName() - * @model required="true" - * @generated - */ + * @return the value of the 'First Name' attribute. + * @see #setFirstName(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPerson_FirstName() + * @model required="true" + * @generated + */ String getFirstName(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Person#getFirstName First Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Person#getFirstName First Name}' attribute. + * * - * @param value the new value of the 'First Name' attribute. - * @see #getFirstName() - * @generated - */ + * @param value the new value of the 'First Name' attribute. + * @see #getFirstName() + * @generated + */ void setFirstName(String value); /** - * Returns the value of the 'Last Name' attribute. - * + * Returns the value of the 'Last Name' attribute. + * * - * @return the value of the 'Last Name' attribute. - * @see #setLastName(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPerson_LastName() - * @model required="true" - * @generated - */ + * @return the value of the 'Last Name' attribute. + * @see #setLastName(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getPerson_LastName() + * @model required="true" + * @generated + */ String getLastName(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Person#getLastName Last Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Person#getLastName Last Name}' attribute. + * * - * @param value the new value of the 'Last Name' attribute. - * @see #getLastName() - * @generated - */ + * @param value the new value of the 'Last Name' attribute. + * @see #getLastName() + * @generated + */ void setLastName(String value); } // Person diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/VideoCassette.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/VideoCassette.java index 4134e8e4b..6ddbba825 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/VideoCassette.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/VideoCassette.java @@ -27,10 +27,10 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.VideoCassette#getCast Cast}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getVideoCassette() * @model @@ -39,15 +39,15 @@ public interface VideoCassette extends AudioVisualItem { /** - * Returns the value of the 'Cast' reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Person}. - * + * Returns the value of the 'Cast' reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Person}. + * * - * @return the value of the 'Cast' reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getVideoCassette_Cast() - * @model - * @generated - */ + * @return the value of the 'Cast' reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getVideoCassette_Cast() + * @model + * @generated + */ EList getCast(); } // VideoCassette diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Writer.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Writer.java index b25b24f2f..63d7d4f98 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Writer.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/Writer.java @@ -27,11 +27,11 @@ * *

* The following features are supported: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.Writer#getName Name}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.Writer#getBooks Books}
  • *
- *

* * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getWriter() * @model @@ -40,39 +40,39 @@ public interface Writer extends Person { /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. + * * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getWriter_Name() - * @model transient="true" volatile="true" - * @generated - */ + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getWriter_Name() + * @model transient="true" volatile="true" + * @generated + */ String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Writer#getName Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.parsley.examples.library.Writer#getName Name}' attribute. + * * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ void setName(String value); /** - * Returns the value of the 'Books' reference list. - * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Book}. - * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}'. - * + * Returns the value of the 'Books' reference list. + * The list contents are of type {@link org.eclipse.emf.parsley.examples.library.Book}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.parsley.examples.library.Book#getAuthor Author}'. + * * - * @return the value of the 'Books' reference list. - * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getWriter_Books() - * @see org.eclipse.emf.parsley.examples.library.Book#getAuthor - * @model opposite="author" - * @generated - */ + * @return the value of the 'Books' reference list. + * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage#getWriter_Books() + * @see org.eclipse.emf.parsley.examples.library.Book#getAuthor + * @model opposite="author" + * @generated + */ EList getBooks(); } // Writer diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/AudioVisualItemImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/AudioVisualItemImpl.java index 5e4cd3d74..5ff71845b 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/AudioVisualItemImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/AudioVisualItemImpl.java @@ -33,272 +33,268 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl#getMinutesLength Minutes Length}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.AudioVisualItemImpl#isDamaged Damaged}
  • *
- *

* * @generated */ public abstract class AudioVisualItemImpl extends CirculatingItemImpl implements AudioVisualItem { /** - * The default value of the '{@link #getTitle() Title}' attribute. - * + * The default value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected static final String TITLE_EDEFAULT = null; /** - * The cached value of the '{@link #getTitle() Title}' attribute. - * + * The cached value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected String title = TITLE_EDEFAULT; /** - * The default value of the '{@link #getMinutesLength() Minutes Length}' attribute. - * + * The default value of the '{@link #getMinutesLength() Minutes Length}' attribute. + * * - * @see #getMinutesLength() - * @generated - * @ordered - */ + * @see #getMinutesLength() + * @generated + * @ordered + */ protected static final int MINUTES_LENGTH_EDEFAULT = 0; /** - * The cached value of the '{@link #getMinutesLength() Minutes Length}' attribute. - * + * The cached value of the '{@link #getMinutesLength() Minutes Length}' attribute. + * * - * @see #getMinutesLength() - * @generated - * @ordered - */ + * @see #getMinutesLength() + * @generated + * @ordered + */ protected int minutesLength = MINUTES_LENGTH_EDEFAULT; /** - * The default value of the '{@link #isDamaged() Damaged}' attribute. - * + * The default value of the '{@link #isDamaged() Damaged}' attribute. + * * - * @see #isDamaged() - * @generated - * @ordered - */ + * @see #isDamaged() + * @generated + * @ordered + */ protected static final boolean DAMAGED_EDEFAULT = false; /** - * The flag representing the value of the '{@link #isDamaged() Damaged}' attribute. - * + * The flag representing the value of the '{@link #isDamaged() Damaged}' attribute. + * * - * @see #isDamaged() - * @generated - * @ordered - */ + * @see #isDamaged() + * @generated + * @ordered + */ protected static final int DAMAGED_EFLAG = 1 << 8; /** - * + * * - * @generated - */ + * @generated + */ protected AudioVisualItemImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.AUDIO_VISUAL_ITEM; - } + return EXTLibraryPackage.Literals.AUDIO_VISUAL_ITEM; + } /** - * + * * - * @generated - */ + * @generated + */ public String getTitle() { - return title; - } + return title; + } /** - * + * * - * @generated - */ + * @generated + */ public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE, oldTitle, title)); - } + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE, oldTitle, title)); + } /** - * + * * - * @generated - */ + * @generated + */ public int getMinutesLength() { - return minutesLength; - } + return minutesLength; + } /** - * + * * - * @generated - */ + * @generated + */ public void setMinutesLength(int newMinutesLength) { - int oldMinutesLength = minutesLength; - minutesLength = newMinutesLength; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH, oldMinutesLength, minutesLength)); - } + int oldMinutesLength = minutesLength; + minutesLength = newMinutesLength; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH, oldMinutesLength, minutesLength)); + } /** - * + * * - * @generated - */ + * @generated + */ public boolean isDamaged() { - return (eFlags & DAMAGED_EFLAG) != 0; - } + return (eFlags & DAMAGED_EFLAG) != 0; + } /** - * + * * - * @generated - */ + * @generated + */ public void setDamaged(boolean newDamaged) { - boolean oldDamaged = (eFlags & DAMAGED_EFLAG) != 0; - if (newDamaged) eFlags |= DAMAGED_EFLAG; else eFlags &= ~DAMAGED_EFLAG; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED, oldDamaged, newDamaged)); - } + boolean oldDamaged = (eFlags & DAMAGED_EFLAG) != 0; + if (newDamaged) eFlags |= DAMAGED_EFLAG; else eFlags &= ~DAMAGED_EFLAG; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED, oldDamaged, newDamaged)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - return getTitle(); - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - return getMinutesLength(); - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - return isDamaged(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: + return getTitle(); + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: + return getMinutesLength(); + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: + return isDamaged(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - setTitle((String)newValue); - return; - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - setMinutesLength((Integer)newValue); - return; - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - setDamaged((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: + setTitle((String)newValue); + return; + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: + setMinutesLength((Integer)newValue); + return; + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: + setDamaged((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - setMinutesLength(MINUTES_LENGTH_EDEFAULT); - return; - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - setDamaged(DAMAGED_EDEFAULT); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: + setMinutesLength(MINUTES_LENGTH_EDEFAULT); + return; + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: + setDamaged(DAMAGED_EDEFAULT); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: - return minutesLength != MINUTES_LENGTH_EDEFAULT; - case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: - return ((eFlags & DAMAGED_EFLAG) != 0) != DAMAGED_EDEFAULT; - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__MINUTES_LENGTH: + return minutesLength != MINUTES_LENGTH_EDEFAULT; + case EXTLibraryPackage.AUDIO_VISUAL_ITEM__DAMAGED: + return ((eFlags & DAMAGED_EFLAG) != 0) != DAMAGED_EDEFAULT; + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); + if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); //$NON-NLS-1$ - result.append(title); - result.append(", minutesLength: "); //$NON-NLS-1$ - result.append(minutesLength); - result.append(", damaged: "); //$NON-NLS-1$ - result.append((eFlags & DAMAGED_EFLAG) != 0); - result.append(')'); - return result.toString(); - } + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (title: "); //$NON-NLS-1$ + result.append(title); + result.append(", minutesLength: "); //$NON-NLS-1$ + result.append(minutesLength); + result.append(", damaged: "); //$NON-NLS-1$ + result.append((eFlags & DAMAGED_EFLAG) != 0); + result.append(')'); + return result.toString(); + } } //AudioVisualItemImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookImpl.java index b686a3058..3d66d4937 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookImpl.java @@ -38,432 +38,422 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookImpl#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookImpl#getPages Pages}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookImpl#getCategory Category}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookImpl#getAuthor Author}
  • *
- *

* * @generated */ public class BookImpl extends CirculatingItemImpl implements Book { /** - * The default value of the '{@link #getTitle() Title}' attribute. - * + * The default value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected static final String TITLE_EDEFAULT = null; /** - * The cached value of the '{@link #getTitle() Title}' attribute. - * + * The cached value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected String title = TITLE_EDEFAULT; /** - * The default value of the '{@link #getPages() Pages}' attribute. - * + * The default value of the '{@link #getPages() Pages}' attribute. + * * - * @see #getPages() - * @generated - * @ordered - */ + * @see #getPages() + * @generated + * @ordered + */ protected static final int PAGES_EDEFAULT = 100; /** - * The cached value of the '{@link #getPages() Pages}' attribute. - * + * The cached value of the '{@link #getPages() Pages}' attribute. + * * - * @see #getPages() - * @generated - * @ordered - */ + * @see #getPages() + * @generated + * @ordered + */ protected int pages = PAGES_EDEFAULT; /** - * The default value of the '{@link #getCategory() Category}' attribute. - * + * The default value of the '{@link #getCategory() Category}' attribute. + * * - * @see #getCategory() - * @generated - * @ordered - */ + * @see #getCategory() + * @generated + * @ordered + */ protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY_LITERAL; /** - * The cached value of the '{@link #getCategory() Category}' attribute. - * + * The cached value of the '{@link #getCategory() Category}' attribute. + * * - * @see #getCategory() - * @generated - * @ordered - */ + * @see #getCategory() + * @generated + * @ordered + */ protected BookCategory category = CATEGORY_EDEFAULT; /** - * The flag representing whether the Category attribute has been set. - * + * The flag representing whether the Category attribute has been set. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ protected static final int CATEGORY_ESETFLAG = 1 << 8; /** - * The cached value of the '{@link #getAuthor() Author}' reference. - * + * The cached value of the '{@link #getAuthor() Author}' reference. + * * - * @see #getAuthor() - * @generated - * @ordered - */ + * @see #getAuthor() + * @generated + * @ordered + */ protected Writer author; /** - * + * * - * @generated - */ + * @generated + */ protected BookImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.BOOK; - } + return EXTLibraryPackage.Literals.BOOK; + } /** - * + * * - * @generated - */ + * @generated + */ public String getTitle() { - return title; - } + return title; + } /** - * + * * - * @generated - */ + * @generated + */ public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__TITLE, oldTitle, title)); - } + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__TITLE, oldTitle, title)); + } /** - * + * * - * @generated - */ + * @generated + */ public int getPages() { - return pages; - } + return pages; + } /** - * + * * - * @generated - */ + * @generated + */ public void setPages(int newPages) { - int oldPages = pages; - pages = newPages; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__PAGES, oldPages, pages)); - } + int oldPages = pages; + pages = newPages; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__PAGES, oldPages, pages)); + } /** - * + * * - * @generated - */ + * @generated + */ public BookCategory getCategory() { - return category; - } + return category; + } /** - * + * * - * @generated - */ + * @generated + */ public void setCategory(BookCategory newCategory) { - BookCategory oldCategory = category; - category = newCategory == null ? CATEGORY_EDEFAULT : newCategory; - boolean oldCategoryESet = (eFlags & CATEGORY_ESETFLAG) != 0; - eFlags |= CATEGORY_ESETFLAG; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__CATEGORY, oldCategory, category, !oldCategoryESet)); - } + BookCategory oldCategory = category; + category = newCategory == null ? CATEGORY_EDEFAULT : newCategory; + boolean oldCategoryESet = (eFlags & CATEGORY_ESETFLAG) != 0; + eFlags |= CATEGORY_ESETFLAG; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__CATEGORY, oldCategory, category, !oldCategoryESet)); + } /** - * + * * - * @generated - */ + * @generated + */ public void unsetCategory() { - BookCategory oldCategory = category; - boolean oldCategoryESet = (eFlags & CATEGORY_ESETFLAG) != 0; - category = CATEGORY_EDEFAULT; - eFlags &= ~CATEGORY_ESETFLAG; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, EXTLibraryPackage.BOOK__CATEGORY, oldCategory, CATEGORY_EDEFAULT, oldCategoryESet)); - } + BookCategory oldCategory = category; + boolean oldCategoryESet = (eFlags & CATEGORY_ESETFLAG) != 0; + category = CATEGORY_EDEFAULT; + eFlags &= ~CATEGORY_ESETFLAG; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, EXTLibraryPackage.BOOK__CATEGORY, oldCategory, CATEGORY_EDEFAULT, oldCategoryESet)); + } /** - * + * * - * @generated - */ + * @generated + */ public boolean isSetCategory() { - return (eFlags & CATEGORY_ESETFLAG) != 0; - } + return (eFlags & CATEGORY_ESETFLAG) != 0; + } /** - * + * * - * @generated - */ + * @generated + */ public Writer getAuthor() { - if (author != null && author.eIsProxy()) - { - InternalEObject oldAuthor = (InternalEObject)author; - author = (Writer)eResolveProxy(oldAuthor); - if (author != oldAuthor) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK__AUTHOR, oldAuthor, author)); - } - } - return author; - } + if (author != null && author.eIsProxy()) { + InternalEObject oldAuthor = (InternalEObject)author; + author = (Writer)eResolveProxy(oldAuthor); + if (author != oldAuthor) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK__AUTHOR, oldAuthor, author)); + } + } + return author; + } /** - * + * * - * @generated - */ + * @generated + */ public Writer basicGetAuthor() { - return author; - } + return author; + } /** - * + * * - * @generated - */ + * @generated + */ public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs) { - Writer oldAuthor = author; - author = newAuthor; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__AUTHOR, oldAuthor, newAuthor); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } + Writer oldAuthor = author; + author = newAuthor; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__AUTHOR, oldAuthor, newAuthor); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } /** - * + * * - * @generated - */ + * @generated + */ public void setAuthor(Writer newAuthor) { - if (newAuthor != author) - { - NotificationChain msgs = null; - if (author != null) - msgs = ((InternalEObject)author).eInverseRemove(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); - if (newAuthor != null) - msgs = ((InternalEObject)newAuthor).eInverseAdd(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); - msgs = basicSetAuthor(newAuthor, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__AUTHOR, newAuthor, newAuthor)); - } + if (newAuthor != author) { + NotificationChain msgs = null; + if (author != null) + msgs = ((InternalEObject)author).eInverseRemove(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); + if (newAuthor != null) + msgs = ((InternalEObject)newAuthor).eInverseAdd(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); + msgs = basicSetAuthor(newAuthor, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK__AUTHOR, newAuthor, newAuthor)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__AUTHOR: - if (author != null) - msgs = ((InternalEObject)author).eInverseRemove(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); - return basicSetAuthor((Writer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__AUTHOR: + if (author != null) + msgs = ((InternalEObject)author).eInverseRemove(this, EXTLibraryPackage.WRITER__BOOKS, Writer.class, msgs); + return basicSetAuthor((Writer)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__AUTHOR: - return basicSetAuthor(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__AUTHOR: + return basicSetAuthor(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__TITLE: - return getTitle(); - case EXTLibraryPackage.BOOK__PAGES: - return getPages(); - case EXTLibraryPackage.BOOK__CATEGORY: - return getCategory(); - case EXTLibraryPackage.BOOK__AUTHOR: - if (resolve) return getAuthor(); - return basicGetAuthor(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__TITLE: + return getTitle(); + case EXTLibraryPackage.BOOK__PAGES: + return getPages(); + case EXTLibraryPackage.BOOK__CATEGORY: + return getCategory(); + case EXTLibraryPackage.BOOK__AUTHOR: + if (resolve) return getAuthor(); + return basicGetAuthor(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__TITLE: - setTitle((String)newValue); - return; - case EXTLibraryPackage.BOOK__PAGES: - setPages((Integer)newValue); - return; - case EXTLibraryPackage.BOOK__CATEGORY: - setCategory((BookCategory)newValue); - return; - case EXTLibraryPackage.BOOK__AUTHOR: - setAuthor((Writer)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__TITLE: + setTitle((String)newValue); + return; + case EXTLibraryPackage.BOOK__PAGES: + setPages((Integer)newValue); + return; + case EXTLibraryPackage.BOOK__CATEGORY: + setCategory((BookCategory)newValue); + return; + case EXTLibraryPackage.BOOK__AUTHOR: + setAuthor((Writer)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case EXTLibraryPackage.BOOK__PAGES: - setPages(PAGES_EDEFAULT); - return; - case EXTLibraryPackage.BOOK__CATEGORY: - unsetCategory(); - return; - case EXTLibraryPackage.BOOK__AUTHOR: - setAuthor((Writer)null); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case EXTLibraryPackage.BOOK__PAGES: + setPages(PAGES_EDEFAULT); + return; + case EXTLibraryPackage.BOOK__CATEGORY: + unsetCategory(); + return; + case EXTLibraryPackage.BOOK__AUTHOR: + setAuthor((Writer)null); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BOOK__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case EXTLibraryPackage.BOOK__PAGES: - return pages != PAGES_EDEFAULT; - case EXTLibraryPackage.BOOK__CATEGORY: - return isSetCategory(); - case EXTLibraryPackage.BOOK__AUTHOR: - return author != null; - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BOOK__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case EXTLibraryPackage.BOOK__PAGES: + return pages != PAGES_EDEFAULT; + case EXTLibraryPackage.BOOK__CATEGORY: + return isSetCategory(); + case EXTLibraryPackage.BOOK__AUTHOR: + return author != null; + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); //$NON-NLS-1$ - result.append(title); - result.append(", pages: "); //$NON-NLS-1$ - result.append(pages); - result.append(", category: "); //$NON-NLS-1$ - if ((eFlags & CATEGORY_ESETFLAG) != 0) result.append(category); else result.append(""); //$NON-NLS-1$ - result.append(')'); - return result.toString(); - } + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (title: "); //$NON-NLS-1$ + result.append(title); + result.append(", pages: "); //$NON-NLS-1$ + result.append(pages); + result.append(", category: "); //$NON-NLS-1$ + if ((eFlags & CATEGORY_ESETFLAG) != 0) result.append(category); else result.append(""); //$NON-NLS-1$ + result.append(')'); + return result.toString(); + } } //BookImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookOnTapeImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookOnTapeImpl.java index 01323a587..7ab43ebee 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookOnTapeImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BookOnTapeImpl.java @@ -37,219 +37,211 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl#getReader Reader}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BookOnTapeImpl#getAuthor Author}
  • *
- *

* * @generated */ public class BookOnTapeImpl extends AudioVisualItemImpl implements BookOnTape { /** - * The cached value of the '{@link #getReader() Reader}' reference. - * + * The cached value of the '{@link #getReader() Reader}' reference. + * * - * @see #getReader() - * @generated - * @ordered - */ + * @see #getReader() + * @generated + * @ordered + */ protected Person reader; /** - * The cached value of the '{@link #getAuthor() Author}' reference. - * + * The cached value of the '{@link #getAuthor() Author}' reference. + * * - * @see #getAuthor() - * @generated - * @ordered - */ + * @see #getAuthor() + * @generated + * @ordered + */ protected Writer author; /** - * + * * - * @generated - */ + * @generated + */ protected BookOnTapeImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.BOOK_ON_TAPE; - } + return EXTLibraryPackage.Literals.BOOK_ON_TAPE; + } /** - * + * * - * @generated - */ + * @generated + */ public Person getReader() { - if (reader != null && reader.eIsProxy()) - { - InternalEObject oldReader = (InternalEObject)reader; - reader = (Person)eResolveProxy(oldReader); - if (reader != oldReader) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); - } - } - return reader; - } + if (reader != null && reader.eIsProxy()) { + InternalEObject oldReader = (InternalEObject)reader; + reader = (Person)eResolveProxy(oldReader); + if (reader != oldReader) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); + } + } + return reader; + } /** - * + * * - * @generated - */ + * @generated + */ public Person basicGetReader() { - return reader; - } + return reader; + } /** - * + * * - * @generated - */ + * @generated + */ public void setReader(Person newReader) { - Person oldReader = reader; - reader = newReader; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); - } + Person oldReader = reader; + reader = newReader; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK_ON_TAPE__READER, oldReader, reader)); + } /** - * + * * - * @generated - */ + * @generated + */ public Writer getAuthor() { - if (author != null && author.eIsProxy()) - { - InternalEObject oldAuthor = (InternalEObject)author; - author = (Writer)eResolveProxy(oldAuthor); - if (author != oldAuthor) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR, oldAuthor, author)); - } - } - return author; - } + if (author != null && author.eIsProxy()) { + InternalEObject oldAuthor = (InternalEObject)author; + author = (Writer)eResolveProxy(oldAuthor); + if (author != oldAuthor) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR, oldAuthor, author)); + } + } + return author; + } /** - * + * * - * @generated - */ + * @generated + */ public Writer basicGetAuthor() { - return author; - } + return author; + } /** - * + * * - * @generated - */ + * @generated + */ public void setAuthor(Writer newAuthor) { - Writer oldAuthor = author; - author = newAuthor; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR, oldAuthor, author)); - } + Writer oldAuthor = author; + author = newAuthor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR, oldAuthor, author)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.BOOK_ON_TAPE__READER: - if (resolve) return getReader(); - return basicGetReader(); - case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: - if (resolve) return getAuthor(); - return basicGetAuthor(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.BOOK_ON_TAPE__READER: + if (resolve) return getReader(); + return basicGetReader(); + case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: + if (resolve) return getAuthor(); + return basicGetAuthor(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.BOOK_ON_TAPE__READER: - setReader((Person)newValue); - return; - case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: - setAuthor((Writer)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.BOOK_ON_TAPE__READER: + setReader((Person)newValue); + return; + case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: + setAuthor((Writer)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BOOK_ON_TAPE__READER: - setReader((Person)null); - return; - case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: - setAuthor((Writer)null); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BOOK_ON_TAPE__READER: + setReader((Person)null); + return; + case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: + setAuthor((Writer)null); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BOOK_ON_TAPE__READER: - return reader != null; - case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: - return author != null; - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BOOK_ON_TAPE__READER: + return reader != null; + case EXTLibraryPackage.BOOK_ON_TAPE__AUTHOR: + return author != null; + } + return super.eIsSet(featureID); + } } //BookOnTapeImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BorrowerImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BorrowerImpl.java index 96036ebb8..eafc40c50 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BorrowerImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/BorrowerImpl.java @@ -41,159 +41,152 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.BorrowerImpl#getBorrowed Borrowed}
  • *
- *

* * @generated */ public class BorrowerImpl extends PersonImpl implements Borrower { /** - * The cached value of the '{@link #getBorrowed() Borrowed}' reference list. - * + * The cached value of the '{@link #getBorrowed() Borrowed}' reference list. + * * - * @see #getBorrowed() - * @generated - * @ordered - */ + * @see #getBorrowed() + * @generated + * @ordered + */ protected EList borrowed; /** - * + * * - * @generated - */ + * @generated + */ protected BorrowerImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.BORROWER; - } + return EXTLibraryPackage.Literals.BORROWER; + } /** - * + * * - * @generated - */ + * @generated + */ public EList getBorrowed() { - if (borrowed == null) - { - borrowed = new EObjectWithInverseResolvingEList.ManyInverse(Lendable.class, this, EXTLibraryPackage.BORROWER__BORROWED, EXTLibraryPackage.LENDABLE__BORROWERS); - } - return borrowed; - } + if (borrowed == null) { + borrowed = new EObjectWithInverseResolvingEList.ManyInverse(Lendable.class, this, EXTLibraryPackage.BORROWER__BORROWED, EXTLibraryPackage.LENDABLE__BORROWERS); + } + return borrowed; + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - return ((InternalEList)(InternalEList)getBorrowed()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + return ((InternalEList)(InternalEList)getBorrowed()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - return ((InternalEList)getBorrowed()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + return ((InternalEList)getBorrowed()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - return getBorrowed(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + return getBorrowed(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - getBorrowed().clear(); - getBorrowed().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + getBorrowed().clear(); + getBorrowed().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - getBorrowed().clear(); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + getBorrowed().clear(); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.BORROWER__BORROWED: - return borrowed != null && !borrowed.isEmpty(); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.BORROWER__BORROWED: + return borrowed != null && !borrowed.isEmpty(); + } + return super.eIsSet(featureID); + } } //BorrowerImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/CirculatingItemImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/CirculatingItemImpl.java index 8092cc11e..b7eb4e0b3 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/CirculatingItemImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/CirculatingItemImpl.java @@ -44,270 +44,259 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl#getCopies Copies}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.CirculatingItemImpl#getBorrowers Borrowers}
  • *
- *

* * @generated */ public abstract class CirculatingItemImpl extends ItemImpl implements CirculatingItem { /** - * The default value of the '{@link #getCopies() Copies}' attribute. - * + * The default value of the '{@link #getCopies() Copies}' attribute. + * * - * @see #getCopies() - * @generated - * @ordered - */ + * @see #getCopies() + * @generated + * @ordered + */ protected static final int COPIES_EDEFAULT = 0; /** - * The cached value of the '{@link #getCopies() Copies}' attribute. - * + * The cached value of the '{@link #getCopies() Copies}' attribute. + * * - * @see #getCopies() - * @generated - * @ordered - */ + * @see #getCopies() + * @generated + * @ordered + */ protected int copies = COPIES_EDEFAULT; /** - * The cached value of the '{@link #getBorrowers() Borrowers}' reference list. - * + * The cached value of the '{@link #getBorrowers() Borrowers}' reference list. + * * - * @see #getBorrowers() - * @generated - * @ordered - */ + * @see #getBorrowers() + * @generated + * @ordered + */ protected EList borrowers; /** - * + * * - * @generated - */ + * @generated + */ protected CirculatingItemImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.CIRCULATING_ITEM; - } + return EXTLibraryPackage.Literals.CIRCULATING_ITEM; + } /** - * + * * - * @generated - */ + * @generated + */ public int getCopies() { - return copies; - } + return copies; + } /** - * + * * - * @generated - */ + * @generated + */ public void setCopies(int newCopies) { - int oldCopies = copies; - copies = newCopies; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.CIRCULATING_ITEM__COPIES, oldCopies, copies)); - } + int oldCopies = copies; + copies = newCopies; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.CIRCULATING_ITEM__COPIES, oldCopies, copies)); + } /** - * + * * - * @generated - */ + * @generated + */ public EList getBorrowers() { - if (borrowers == null) - { - borrowers = new EObjectWithInverseResolvingEList.ManyInverse(Borrower.class, this, EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS, EXTLibraryPackage.BORROWER__BORROWED); - } - return borrowers; - } + if (borrowers == null) { + borrowers = new EObjectWithInverseResolvingEList.ManyInverse(Borrower.class, this, EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS, EXTLibraryPackage.BORROWER__BORROWED); + } + return borrowers; + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - return ((InternalEList)(InternalEList)getBorrowers()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + return ((InternalEList)(InternalEList)getBorrowers()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - return ((InternalEList)getBorrowers()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + return ((InternalEList)getBorrowers()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: - return getCopies(); - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - return getBorrowers(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: + return getCopies(); + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + return getBorrowers(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: - setCopies((Integer)newValue); - return; - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - getBorrowers().clear(); - getBorrowers().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: + setCopies((Integer)newValue); + return; + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + getBorrowers().clear(); + getBorrowers().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: - setCopies(COPIES_EDEFAULT); - return; - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - getBorrowers().clear(); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: + setCopies(COPIES_EDEFAULT); + return; + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + getBorrowers().clear(); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: - return copies != COPIES_EDEFAULT; - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: - return borrowers != null && !borrowers.isEmpty(); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: + return copies != COPIES_EDEFAULT; + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: + return borrowers != null && !borrowers.isEmpty(); + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { - if (baseClass == Lendable.class) - { - switch (derivedFeatureID) - { - case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: return EXTLibraryPackage.LENDABLE__COPIES; - case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: return EXTLibraryPackage.LENDABLE__BORROWERS; - default: return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } + if (baseClass == Lendable.class) { + switch (derivedFeatureID) { + case EXTLibraryPackage.CIRCULATING_ITEM__COPIES: return EXTLibraryPackage.LENDABLE__COPIES; + case EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS: return EXTLibraryPackage.LENDABLE__BORROWERS; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { - if (baseClass == Lendable.class) - { - switch (baseFeatureID) - { - case EXTLibraryPackage.LENDABLE__COPIES: return EXTLibraryPackage.CIRCULATING_ITEM__COPIES; - case EXTLibraryPackage.LENDABLE__BORROWERS: return EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS; - default: return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } + if (baseClass == Lendable.class) { + switch (baseFeatureID) { + case EXTLibraryPackage.LENDABLE__COPIES: return EXTLibraryPackage.CIRCULATING_ITEM__COPIES; + case EXTLibraryPackage.LENDABLE__BORROWERS: return EXTLibraryPackage.CIRCULATING_ITEM__BORROWERS; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); + if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (copies: "); //$NON-NLS-1$ - result.append(copies); - result.append(')'); - return result.toString(); - } + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (copies: "); //$NON-NLS-1$ + result.append(copies); + result.append(')'); + return result.toString(); + } } //CirculatingItemImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryFactoryImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryFactoryImpl.java index c0888fcb7..e4f7a5334 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryFactoryImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryFactoryImpl.java @@ -40,226 +40,220 @@ public class EXTLibraryFactoryImpl extends EFactoryImpl implements EXTLibraryFactory { /** - * Creates the default factory implementation. - * + * Creates the default factory implementation. + * * - * @generated - */ + * @generated + */ public static EXTLibraryFactory init() { - try - { - EXTLibraryFactory theEXTLibraryFactory = (EXTLibraryFactory)EPackage.Registry.INSTANCE.getEFactory("http:///org/eclipse/emf/parsley/examples/library/extlibrary.ecore/0.1.0"); //$NON-NLS-1$ - if (theEXTLibraryFactory != null) - { - return theEXTLibraryFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new EXTLibraryFactoryImpl(); - } + try { + EXTLibraryFactory theEXTLibraryFactory = (EXTLibraryFactory)EPackage.Registry.INSTANCE.getEFactory(EXTLibraryPackage.eNS_URI); + if (theEXTLibraryFactory != null) { + return theEXTLibraryFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new EXTLibraryFactoryImpl(); + } /** - * Creates an instance of the factory. - * + * Creates an instance of the factory. + * * - * @generated - */ + * @generated + */ public EXTLibraryFactoryImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) - { - case EXTLibraryPackage.BOOK: return createBook(); - case EXTLibraryPackage.LIBRARY: return createLibrary(); - case EXTLibraryPackage.WRITER: return createWriter(); - case EXTLibraryPackage.BOOK_ON_TAPE: return createBookOnTape(); - case EXTLibraryPackage.VIDEO_CASSETTE: return createVideoCassette(); - case EXTLibraryPackage.BORROWER: return createBorrower(); - case EXTLibraryPackage.PERSON: return createPerson(); - case EXTLibraryPackage.EMPLOYEE: return createEmployee(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } + switch (eClass.getClassifierID()) { + case EXTLibraryPackage.BOOK: return createBook(); + case EXTLibraryPackage.LIBRARY: return createLibrary(); + case EXTLibraryPackage.WRITER: return createWriter(); + case EXTLibraryPackage.BOOK_ON_TAPE: return createBookOnTape(); + case EXTLibraryPackage.VIDEO_CASSETTE: return createVideoCassette(); + case EXTLibraryPackage.BORROWER: return createBorrower(); + case EXTLibraryPackage.PERSON: return createPerson(); + case EXTLibraryPackage.EMPLOYEE: return createEmployee(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object createFromString(EDataType eDataType, String initialValue) { - switch (eDataType.getClassifierID()) - { - case EXTLibraryPackage.BOOK_CATEGORY: - return createBookCategoryFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } + switch (eDataType.getClassifierID()) { + case EXTLibraryPackage.BOOK_CATEGORY: + return createBookCategoryFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String convertToString(EDataType eDataType, Object instanceValue) { - switch (eDataType.getClassifierID()) - { - case EXTLibraryPackage.BOOK_CATEGORY: - return convertBookCategoryToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } + switch (eDataType.getClassifierID()) { + case EXTLibraryPackage.BOOK_CATEGORY: + return convertBookCategoryToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } /** - * + * * - * @generated - */ + * @generated + */ public Book createBook() { - BookImpl book = new BookImpl(); - return book; - } + BookImpl book = new BookImpl(); + return book; + } /** - * + * * - * @generated - */ + * @generated + */ public Library createLibrary() { - LibraryImpl library = new LibraryImpl(); - return library; - } + LibraryImpl library = new LibraryImpl(); + return library; + } /** - * + * * - * @generated - */ + * @generated + */ public Writer createWriter() { - WriterImpl writer = new WriterImpl(); - return writer; - } + WriterImpl writer = new WriterImpl(); + return writer; + } /** - * + * * - * @generated - */ + * @generated + */ public BookOnTape createBookOnTape() { - BookOnTapeImpl bookOnTape = new BookOnTapeImpl(); - return bookOnTape; - } + BookOnTapeImpl bookOnTape = new BookOnTapeImpl(); + return bookOnTape; + } /** - * + * * - * @generated - */ + * @generated + */ public VideoCassette createVideoCassette() { - VideoCassetteImpl videoCassette = new VideoCassetteImpl(); - return videoCassette; - } + VideoCassetteImpl videoCassette = new VideoCassetteImpl(); + return videoCassette; + } /** - * + * * - * @generated - */ + * @generated + */ public Borrower createBorrower() { - BorrowerImpl borrower = new BorrowerImpl(); - return borrower; - } + BorrowerImpl borrower = new BorrowerImpl(); + return borrower; + } /** - * + * * - * @generated - */ + * @generated + */ public Person createPerson() { - PersonImpl person = new PersonImpl(); - return person; - } + PersonImpl person = new PersonImpl(); + return person; + } /** - * + * * - * @generated - */ + * @generated + */ public Employee createEmployee() { - EmployeeImpl employee = new EmployeeImpl(); - return employee; - } + EmployeeImpl employee = new EmployeeImpl(); + return employee; + } /** - * + * * - * @generated - */ + * @generated + */ public BookCategory createBookCategoryFromString(EDataType eDataType, String initialValue) { - BookCategory result = BookCategory.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - return result; - } + BookCategory result = BookCategory.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + return result; + } /** - * + * * - * @generated - */ + * @generated + */ public String convertBookCategoryToString(EDataType eDataType, Object instanceValue) { - return instanceValue == null ? null : instanceValue.toString(); - } + return instanceValue == null ? null : instanceValue.toString(); + } /** - * + * * - * @generated - */ + * @generated + */ public EXTLibraryPackage getEXTLibraryPackage() { - return (EXTLibraryPackage)getEPackage(); - } + return (EXTLibraryPackage)getEPackage(); + } /** - * + * * - * @deprecated - * @generated - */ + * @deprecated + * @generated + */ @Deprecated public static EXTLibraryPackage getPackage() { - return EXTLibraryPackage.eINSTANCE; - } + return EXTLibraryPackage.eINSTANCE; + } } //EXTLibraryFactoryImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryPackageImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryPackageImpl.java index e38d1f19c..bb755cf95 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryPackageImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EXTLibraryPackageImpl.java @@ -54,879 +54,875 @@ public class EXTLibraryPackageImpl extends EPackageImpl implements EXTLibraryPackage { /** - * + * * - * @generated - */ + * @generated + */ private EClass bookEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass libraryEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass writerEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass itemEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass lendableEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass circulatingItemEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass periodicalEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass audioVisualItemEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass bookOnTapeEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass videoCassetteEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass borrowerEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass personEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass employeeEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EClass addressableEClass = null; /** - * + * * - * @generated - */ + * @generated + */ private EEnum bookCategoryEEnum = null; /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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.eclipse.emf.parsley.examples.library.EXTLibraryPackage#eNS_URI - * @see #init() - * @generated - */ + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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.eclipse.emf.parsley.examples.library.EXTLibraryPackage#eNS_URI + * @see #init() + * @generated + */ private EXTLibraryPackageImpl() { - super(eNS_URI, EXTLibraryFactory.eINSTANCE); - } + super(eNS_URI, EXTLibraryFactory.eINSTANCE); + } /** - * + * * - * @generated - */ + * @generated + */ private static boolean isInited = false; /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link EXTLibraryPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link EXTLibraryPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ public static EXTLibraryPackage init() { - if (isInited) return (EXTLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(EXTLibraryPackage.eNS_URI); + if (isInited) return (EXTLibraryPackage)EPackage.Registry.INSTANCE.getEPackage(EXTLibraryPackage.eNS_URI); - // Obtain or create and register package - EXTLibraryPackageImpl theEXTLibraryPackage = (EXTLibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EXTLibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EXTLibraryPackageImpl()); + // Obtain or create and register package + EXTLibraryPackageImpl theEXTLibraryPackage = (EXTLibraryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EXTLibraryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EXTLibraryPackageImpl()); - isInited = true; + isInited = true; - // Create package meta-data objects - theEXTLibraryPackage.createPackageContents(); + // Create package meta-data objects + theEXTLibraryPackage.createPackageContents(); - // Initialize created meta-data - theEXTLibraryPackage.initializePackageContents(); + // Initialize created meta-data + theEXTLibraryPackage.initializePackageContents(); - // Mark meta-data to indicate it can't be changed - theEXTLibraryPackage.freeze(); + // Mark meta-data to indicate it can't be changed + theEXTLibraryPackage.freeze(); - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(EXTLibraryPackage.eNS_URI, theEXTLibraryPackage); - return theEXTLibraryPackage; - } + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(EXTLibraryPackage.eNS_URI, theEXTLibraryPackage); + return theEXTLibraryPackage; + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getBook() { - return bookEClass; - } + return bookEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getBook_Title() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)bookEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getBook_Pages() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(1); - } + return (EAttribute)bookEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getBook_Category() { - return (EAttribute)bookEClass.getEStructuralFeatures().get(2); - } + return (EAttribute)bookEClass.getEStructuralFeatures().get(2); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getBook_Author() { - return (EReference)bookEClass.getEStructuralFeatures().get(3); - } + return (EReference)bookEClass.getEStructuralFeatures().get(3); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getLibrary() { - return libraryEClass; - } + return libraryEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getLibrary_Name() { - return (EAttribute)libraryEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)libraryEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Writers() { - return (EReference)libraryEClass.getEStructuralFeatures().get(1); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Employees() { - return (EReference)libraryEClass.getEStructuralFeatures().get(2); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(2); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Borrowers() { - return (EReference)libraryEClass.getEStructuralFeatures().get(3); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(3); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Stock() { - return (EReference)libraryEClass.getEStructuralFeatures().get(4); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(4); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Books() { - return (EReference)libraryEClass.getEStructuralFeatures().get(5); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(5); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_Branches() { - return (EReference)libraryEClass.getEStructuralFeatures().get(6); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(6); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLibrary_ParentBranch() { - return (EReference)libraryEClass.getEStructuralFeatures().get(7); - } + return (EReference)libraryEClass.getEStructuralFeatures().get(7); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getLibrary_People() { - return (EAttribute)libraryEClass.getEStructuralFeatures().get(8); - } + return (EAttribute)libraryEClass.getEStructuralFeatures().get(8); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getWriter() { - return writerEClass; - } + return writerEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getWriter_Name() { - return (EAttribute)writerEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)writerEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getWriter_Books() { - return (EReference)writerEClass.getEStructuralFeatures().get(1); - } + return (EReference)writerEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getItem() { - return itemEClass; - } + return itemEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getItem_PublicationDate() { - return (EAttribute)itemEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)itemEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getLendable() { - return lendableEClass; - } + return lendableEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getLendable_Copies() { - return (EAttribute)lendableEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)lendableEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getLendable_Borrowers() { - return (EReference)lendableEClass.getEStructuralFeatures().get(1); - } + return (EReference)lendableEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getCirculatingItem() { - return circulatingItemEClass; - } + return circulatingItemEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getPeriodical() { - return periodicalEClass; - } + return periodicalEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getPeriodical_Title() { - return (EAttribute)periodicalEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)periodicalEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getPeriodical_IssuesPerYear() { - return (EAttribute)periodicalEClass.getEStructuralFeatures().get(1); - } + return (EAttribute)periodicalEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getAudioVisualItem() { - return audioVisualItemEClass; - } + return audioVisualItemEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getAudioVisualItem_Title() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getAudioVisualItem_MinutesLength() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(1); - } + return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getAudioVisualItem_Damaged() { - return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(2); - } + return (EAttribute)audioVisualItemEClass.getEStructuralFeatures().get(2); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getBookOnTape() { - return bookOnTapeEClass; - } + return bookOnTapeEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getBookOnTape_Reader() { - return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(0); - } + return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getBookOnTape_Author() { - return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(1); - } + return (EReference)bookOnTapeEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getVideoCassette() { - return videoCassetteEClass; - } + return videoCassetteEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getVideoCassette_Cast() { - return (EReference)videoCassetteEClass.getEStructuralFeatures().get(0); - } + return (EReference)videoCassetteEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getBorrower() { - return borrowerEClass; - } + return borrowerEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getBorrower_Borrowed() { - return (EReference)borrowerEClass.getEStructuralFeatures().get(0); - } + return (EReference)borrowerEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getPerson() { - return personEClass; - } + return personEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getPerson_FirstName() { - return (EAttribute)personEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)personEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getPerson_LastName() { - return (EAttribute)personEClass.getEStructuralFeatures().get(1); - } + return (EAttribute)personEClass.getEStructuralFeatures().get(1); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getEmployee() { - return employeeEClass; - } + return employeeEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EReference getEmployee_Manager() { - return (EReference)employeeEClass.getEStructuralFeatures().get(0); - } + return (EReference)employeeEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EClass getAddressable() { - return addressableEClass; - } + return addressableEClass; + } /** - * + * * - * @generated - */ + * @generated + */ public EAttribute getAddressable_Address() { - return (EAttribute)addressableEClass.getEStructuralFeatures().get(0); - } + return (EAttribute)addressableEClass.getEStructuralFeatures().get(0); + } /** - * + * * - * @generated - */ + * @generated + */ public EEnum getBookCategory() { - return bookCategoryEEnum; - } + return bookCategoryEEnum; + } /** - * + * * - * @generated - */ + * @generated + */ public EXTLibraryFactory getEXTLibraryFactory() { - return (EXTLibraryFactory)getEFactoryInstance(); - } + return (EXTLibraryFactory)getEFactoryInstance(); + } /** - * + * * - * @generated - */ + * @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. - * + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * * - * @generated - */ + * @generated + */ public void createPackageContents() { - if (isCreated) return; - isCreated = true; + 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); + // Create classes and their features + bookEClass = createEClass(BOOK); + createEAttribute(bookEClass, BOOK__TITLE); + createEAttribute(bookEClass, BOOK__PAGES); + createEAttribute(bookEClass, BOOK__CATEGORY); + createEReference(bookEClass, BOOK__AUTHOR); - libraryEClass = createEClass(LIBRARY); - createEAttribute(libraryEClass, LIBRARY__NAME); - createEReference(libraryEClass, LIBRARY__WRITERS); - createEReference(libraryEClass, LIBRARY__EMPLOYEES); - createEReference(libraryEClass, LIBRARY__BORROWERS); - createEReference(libraryEClass, LIBRARY__STOCK); - createEReference(libraryEClass, LIBRARY__BOOKS); - createEReference(libraryEClass, LIBRARY__BRANCHES); - createEReference(libraryEClass, LIBRARY__PARENT_BRANCH); - createEAttribute(libraryEClass, LIBRARY__PEOPLE); + libraryEClass = createEClass(LIBRARY); + createEAttribute(libraryEClass, LIBRARY__NAME); + createEReference(libraryEClass, LIBRARY__WRITERS); + createEReference(libraryEClass, LIBRARY__EMPLOYEES); + createEReference(libraryEClass, LIBRARY__BORROWERS); + createEReference(libraryEClass, LIBRARY__STOCK); + createEReference(libraryEClass, LIBRARY__BOOKS); + createEReference(libraryEClass, LIBRARY__BRANCHES); + createEReference(libraryEClass, LIBRARY__PARENT_BRANCH); + createEAttribute(libraryEClass, LIBRARY__PEOPLE); - writerEClass = createEClass(WRITER); - createEAttribute(writerEClass, WRITER__NAME); - createEReference(writerEClass, WRITER__BOOKS); + writerEClass = createEClass(WRITER); + createEAttribute(writerEClass, WRITER__NAME); + createEReference(writerEClass, WRITER__BOOKS); - itemEClass = createEClass(ITEM); - createEAttribute(itemEClass, ITEM__PUBLICATION_DATE); + itemEClass = createEClass(ITEM); + createEAttribute(itemEClass, ITEM__PUBLICATION_DATE); - lendableEClass = createEClass(LENDABLE); - createEAttribute(lendableEClass, LENDABLE__COPIES); - createEReference(lendableEClass, LENDABLE__BORROWERS); + lendableEClass = createEClass(LENDABLE); + createEAttribute(lendableEClass, LENDABLE__COPIES); + createEReference(lendableEClass, LENDABLE__BORROWERS); - circulatingItemEClass = createEClass(CIRCULATING_ITEM); + circulatingItemEClass = createEClass(CIRCULATING_ITEM); - periodicalEClass = createEClass(PERIODICAL); - createEAttribute(periodicalEClass, PERIODICAL__TITLE); - createEAttribute(periodicalEClass, PERIODICAL__ISSUES_PER_YEAR); + periodicalEClass = createEClass(PERIODICAL); + createEAttribute(periodicalEClass, PERIODICAL__TITLE); + createEAttribute(periodicalEClass, PERIODICAL__ISSUES_PER_YEAR); - audioVisualItemEClass = createEClass(AUDIO_VISUAL_ITEM); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__TITLE); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__MINUTES_LENGTH); - createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__DAMAGED); + audioVisualItemEClass = createEClass(AUDIO_VISUAL_ITEM); + createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__TITLE); + createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__MINUTES_LENGTH); + createEAttribute(audioVisualItemEClass, AUDIO_VISUAL_ITEM__DAMAGED); - bookOnTapeEClass = createEClass(BOOK_ON_TAPE); - createEReference(bookOnTapeEClass, BOOK_ON_TAPE__READER); - createEReference(bookOnTapeEClass, BOOK_ON_TAPE__AUTHOR); + bookOnTapeEClass = createEClass(BOOK_ON_TAPE); + createEReference(bookOnTapeEClass, BOOK_ON_TAPE__READER); + createEReference(bookOnTapeEClass, BOOK_ON_TAPE__AUTHOR); - videoCassetteEClass = createEClass(VIDEO_CASSETTE); - createEReference(videoCassetteEClass, VIDEO_CASSETTE__CAST); + videoCassetteEClass = createEClass(VIDEO_CASSETTE); + createEReference(videoCassetteEClass, VIDEO_CASSETTE__CAST); - borrowerEClass = createEClass(BORROWER); - createEReference(borrowerEClass, BORROWER__BORROWED); + borrowerEClass = createEClass(BORROWER); + createEReference(borrowerEClass, BORROWER__BORROWED); - personEClass = createEClass(PERSON); - createEAttribute(personEClass, PERSON__FIRST_NAME); - createEAttribute(personEClass, PERSON__LAST_NAME); + personEClass = createEClass(PERSON); + createEAttribute(personEClass, PERSON__FIRST_NAME); + createEAttribute(personEClass, PERSON__LAST_NAME); - employeeEClass = createEClass(EMPLOYEE); - createEReference(employeeEClass, EMPLOYEE__MANAGER); + employeeEClass = createEClass(EMPLOYEE); + createEReference(employeeEClass, EMPLOYEE__MANAGER); - addressableEClass = createEClass(ADDRESSABLE); - createEAttribute(addressableEClass, ADDRESSABLE__ADDRESS); + addressableEClass = createEClass(ADDRESSABLE); + createEAttribute(addressableEClass, ADDRESSABLE__ADDRESS); - // Create enums - bookCategoryEEnum = createEEnum(BOOK_CATEGORY); - } + // Create enums + bookCategoryEEnum = createEEnum(BOOK_CATEGORY); + } /** - * + * * - * @generated - */ + * @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. - * + * 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 - */ + * @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.getCirculatingItem()); - libraryEClass.getESuperTypes().add(this.getAddressable()); - writerEClass.getESuperTypes().add(this.getPerson()); - circulatingItemEClass.getESuperTypes().add(this.getItem()); - circulatingItemEClass.getESuperTypes().add(this.getLendable()); - periodicalEClass.getESuperTypes().add(this.getItem()); - audioVisualItemEClass.getESuperTypes().add(this.getCirculatingItem()); - bookOnTapeEClass.getESuperTypes().add(this.getAudioVisualItem()); - videoCassetteEClass.getESuperTypes().add(this.getAudioVisualItem()); - borrowerEClass.getESuperTypes().add(this.getPerson()); - personEClass.getESuperTypes().add(this.getAddressable()); - employeeEClass.getESuperTypes().add(this.getPerson()); - - // 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", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - 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$ - - 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_Employees(), this.getEmployee(), null, "employees", 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_Borrowers(), this.getBorrower(), null, "borrowers", 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_Stock(), this.getItem(), null, "stock", 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.getBook(), 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$ - initEReference(getLibrary_Branches(), this.getLibrary(), this.getLibrary_ParentBranch(), "branches", 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_ParentBranch(), this.getLibrary(), this.getLibrary_Branches(), "parentBranch", 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$ - initEAttribute(getLibrary_People(), ecorePackage.getEFeatureMapEntry(), "people", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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$ - - initEClass(itemEClass, Item.class, "Item", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getItem_PublicationDate(), ecorePackage.getEDate(), "publicationDate", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(lendableEClass, Lendable.class, "Lendable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getLendable_Copies(), ecorePackage.getEInt(), "copies", null, 1, 1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getLendable_Borrowers(), this.getBorrower(), this.getBorrower_Borrowed(), "borrowers", null, 0, -1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ - - initEClass(circulatingItemEClass, CirculatingItem.class, "CirculatingItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - - initEClass(periodicalEClass, Periodical.class, "Periodical", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getPeriodical_Title(), ecorePackage.getEString(), "title", null, 0, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getPeriodical_IssuesPerYear(), ecorePackage.getEInt(), "issuesPerYear", null, 1, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(audioVisualItemEClass, AudioVisualItem.class, "AudioVisualItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getAudioVisualItem_Title(), ecorePackage.getEString(), "title", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getAudioVisualItem_MinutesLength(), ecorePackage.getEInt(), "minutesLength", null, 1, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getAudioVisualItem_Damaged(), ecorePackage.getEBoolean(), "damaged", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(bookOnTapeEClass, BookOnTape.class, "BookOnTape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getBookOnTape_Reader(), this.getPerson(), null, "reader", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEReference(getBookOnTape_Author(), this.getWriter(), null, "author", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(videoCassetteEClass, VideoCassette.class, "VideoCassette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getVideoCassette_Cast(), this.getPerson(), null, "cast", null, 0, -1, VideoCassette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(borrowerEClass, Borrower.class, "Borrower", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getBorrower_Borrowed(), this.getLendable(), this.getLendable_Borrowers(), "borrowed", null, 0, -1, Borrower.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(personEClass, Person.class, "Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getPerson_FirstName(), ecorePackage.getEString(), "firstName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - initEAttribute(getPerson_LastName(), ecorePackage.getEString(), "lastName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(employeeEClass, Employee.class, "Employee", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getEmployee_Manager(), this.getEmployee(), null, "manager", null, 0, 1, Employee.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - initEClass(addressableEClass, Addressable.class, "Addressable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getAddressable_Address(), ecorePackage.getEString(), "address", null, 0, 1, Addressable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ - - // Initialize enums and add enum literals - initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory"); //$NON-NLS-1$ - addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY_LITERAL); - addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION_LITERAL); - addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY_LITERAL); - - // 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 - */ + 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.getCirculatingItem()); + libraryEClass.getESuperTypes().add(this.getAddressable()); + writerEClass.getESuperTypes().add(this.getPerson()); + circulatingItemEClass.getESuperTypes().add(this.getItem()); + circulatingItemEClass.getESuperTypes().add(this.getLendable()); + periodicalEClass.getESuperTypes().add(this.getItem()); + audioVisualItemEClass.getESuperTypes().add(this.getCirculatingItem()); + bookOnTapeEClass.getESuperTypes().add(this.getAudioVisualItem()); + videoCassetteEClass.getESuperTypes().add(this.getAudioVisualItem()); + borrowerEClass.getESuperTypes().add(this.getPerson()); + personEClass.getESuperTypes().add(this.getAddressable()); + employeeEClass.getESuperTypes().add(this.getPerson()); + + // 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", null, 0, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + 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$ + + 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_Employees(), this.getEmployee(), null, "employees", 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_Borrowers(), this.getBorrower(), null, "borrowers", 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_Stock(), this.getItem(), null, "stock", 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.getBook(), 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$ + initEReference(getLibrary_Branches(), this.getLibrary(), this.getLibrary_ParentBranch(), "branches", 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_ParentBranch(), this.getLibrary(), this.getLibrary_Branches(), "parentBranch", 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$ + initEAttribute(getLibrary_People(), ecorePackage.getEFeatureMapEntry(), "people", null, 0, -1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, 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$ + + initEClass(itemEClass, Item.class, "Item", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getItem_PublicationDate(), ecorePackage.getEDate(), "publicationDate", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(lendableEClass, Lendable.class, "Lendable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getLendable_Copies(), ecorePackage.getEInt(), "copies", null, 1, 1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getLendable_Borrowers(), this.getBorrower(), this.getBorrower_Borrowed(), "borrowers", null, 0, -1, Lendable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); //$NON-NLS-1$ + + initEClass(circulatingItemEClass, CirculatingItem.class, "CirculatingItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + + initEClass(periodicalEClass, Periodical.class, "Periodical", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getPeriodical_Title(), ecorePackage.getEString(), "title", null, 0, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getPeriodical_IssuesPerYear(), ecorePackage.getEInt(), "issuesPerYear", null, 1, 1, Periodical.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(audioVisualItemEClass, AudioVisualItem.class, "AudioVisualItem", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getAudioVisualItem_Title(), ecorePackage.getEString(), "title", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getAudioVisualItem_MinutesLength(), ecorePackage.getEInt(), "minutesLength", null, 1, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getAudioVisualItem_Damaged(), ecorePackage.getEBoolean(), "damaged", null, 0, 1, AudioVisualItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(bookOnTapeEClass, BookOnTape.class, "BookOnTape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getBookOnTape_Reader(), this.getPerson(), null, "reader", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEReference(getBookOnTape_Author(), this.getWriter(), null, "author", null, 0, 1, BookOnTape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(videoCassetteEClass, VideoCassette.class, "VideoCassette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getVideoCassette_Cast(), this.getPerson(), null, "cast", null, 0, -1, VideoCassette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(borrowerEClass, Borrower.class, "Borrower", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getBorrower_Borrowed(), this.getLendable(), this.getLendable_Borrowers(), "borrowed", null, 0, -1, Borrower.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(personEClass, Person.class, "Person", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getPerson_FirstName(), ecorePackage.getEString(), "firstName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + initEAttribute(getPerson_LastName(), ecorePackage.getEString(), "lastName", null, 1, 1, Person.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(employeeEClass, Employee.class, "Employee", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEReference(getEmployee_Manager(), this.getEmployee(), null, "manager", null, 0, 1, Employee.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + initEClass(addressableEClass, Addressable.class, "Addressable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getAddressable_Address(), ecorePackage.getEString(), "address", null, 0, 1, Addressable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$ + + // Initialize enums and add enum literals + initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory"); //$NON-NLS-1$ + addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY_LITERAL); + addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION_LITERAL); + addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY_LITERAL); + + // 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"; //$NON-NLS-1$ - addAnnotation - (getLibrary_Writers(), - source, - new String[] - { - "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLibrary_Employees(), - source, - new String[] - { - "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLibrary_Borrowers(), - source, - new String[] - { - "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ - }); - addAnnotation - (getLibrary_People(), - source, - new String[] - { - "kind", "group" //$NON-NLS-1$ //$NON-NLS-2$ - }); - } + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ + addAnnotation + (getLibrary_Writers(), + source, + new String[] { + "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation + (getLibrary_Employees(), + source, + new String[] { + "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation + (getLibrary_Borrowers(), + source, + new String[] { + "group", "#people" //$NON-NLS-1$ //$NON-NLS-2$ + }); + addAnnotation + (getLibrary_People(), + source, + new String[] { + "kind", "group" //$NON-NLS-1$ //$NON-NLS-2$ + }); + } } //EXTLibraryPackageImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EmployeeImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EmployeeImpl.java index e25482409..a3fbee215 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EmployeeImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/EmployeeImpl.java @@ -35,154 +35,148 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.EmployeeImpl#getManager Manager}
  • *
- *

* * @generated */ public class EmployeeImpl extends PersonImpl implements Employee { /** - * The cached value of the '{@link #getManager() Manager}' reference. - * + * The cached value of the '{@link #getManager() Manager}' reference. + * * - * @see #getManager() - * @generated - * @ordered - */ + * @see #getManager() + * @generated + * @ordered + */ protected Employee manager; /** - * + * * - * @generated - */ + * @generated + */ protected EmployeeImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.EMPLOYEE; - } + return EXTLibraryPackage.Literals.EMPLOYEE; + } /** - * + * * - * @generated - */ + * @generated + */ public Employee getManager() { - if (manager != null && manager.eIsProxy()) - { - InternalEObject oldManager = (InternalEObject)manager; - manager = (Employee)eResolveProxy(oldManager); - if (manager != oldManager) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); - } - } - return manager; - } + if (manager != null && manager.eIsProxy()) { + InternalEObject oldManager = (InternalEObject)manager; + manager = (Employee)eResolveProxy(oldManager); + if (manager != oldManager) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, EXTLibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); + } + } + return manager; + } /** - * + * * - * @generated - */ + * @generated + */ public Employee basicGetManager() { - return manager; - } + return manager; + } /** - * + * * - * @generated - */ + * @generated + */ public void setManager(Employee newManager) { - Employee oldManager = manager; - manager = newManager; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); - } + Employee oldManager = manager; + manager = newManager; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.EMPLOYEE__MANAGER, oldManager, manager)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.EMPLOYEE__MANAGER: - if (resolve) return getManager(); - return basicGetManager(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.EMPLOYEE__MANAGER: + if (resolve) return getManager(); + return basicGetManager(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.EMPLOYEE__MANAGER: - setManager((Employee)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.EMPLOYEE__MANAGER: + setManager((Employee)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.EMPLOYEE__MANAGER: - setManager((Employee)null); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.EMPLOYEE__MANAGER: + setManager((Employee)null); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.EMPLOYEE__MANAGER: - return manager != null; - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.EMPLOYEE__MANAGER: + return manager != null; + } + return super.eIsSet(featureID); + } } //EmployeeImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/ItemImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/ItemImpl.java index 390ea9032..923637686 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/ItemImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/ItemImpl.java @@ -36,160 +36,156 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.ItemImpl#getPublicationDate Publication Date}
  • *
- *

* * @generated */ public abstract class ItemImpl extends EObjectImpl implements Item { /** - * The default value of the '{@link #getPublicationDate() Publication Date}' attribute. - * + * The default value of the '{@link #getPublicationDate() Publication Date}' attribute. + * * - * @see #getPublicationDate() - * @generated - * @ordered - */ + * @see #getPublicationDate() + * @generated + * @ordered + */ protected static final Date PUBLICATION_DATE_EDEFAULT = null; /** - * The cached value of the '{@link #getPublicationDate() Publication Date}' attribute. - * + * The cached value of the '{@link #getPublicationDate() Publication Date}' attribute. + * * - * @see #getPublicationDate() - * @generated - * @ordered - */ + * @see #getPublicationDate() + * @generated + * @ordered + */ protected Date publicationDate = PUBLICATION_DATE_EDEFAULT; /** - * + * * - * @generated - */ + * @generated + */ protected ItemImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.ITEM; - } + return EXTLibraryPackage.Literals.ITEM; + } /** - * + * * - * @generated - */ + * @generated + */ public Date getPublicationDate() { - return publicationDate; - } + return publicationDate; + } /** - * + * * - * @generated - */ + * @generated + */ public void setPublicationDate(Date newPublicationDate) { - Date oldPublicationDate = publicationDate; - publicationDate = newPublicationDate; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.ITEM__PUBLICATION_DATE, oldPublicationDate, publicationDate)); - } + Date oldPublicationDate = publicationDate; + publicationDate = newPublicationDate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.ITEM__PUBLICATION_DATE, oldPublicationDate, publicationDate)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.ITEM__PUBLICATION_DATE: - return getPublicationDate(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.ITEM__PUBLICATION_DATE: + return getPublicationDate(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.ITEM__PUBLICATION_DATE: - setPublicationDate((Date)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.ITEM__PUBLICATION_DATE: + setPublicationDate((Date)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.ITEM__PUBLICATION_DATE: - setPublicationDate(PUBLICATION_DATE_EDEFAULT); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.ITEM__PUBLICATION_DATE: + setPublicationDate(PUBLICATION_DATE_EDEFAULT); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.ITEM__PUBLICATION_DATE: - return PUBLICATION_DATE_EDEFAULT == null ? publicationDate != null : !PUBLICATION_DATE_EDEFAULT.equals(publicationDate); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.ITEM__PUBLICATION_DATE: + return PUBLICATION_DATE_EDEFAULT == null ? publicationDate != null : !PUBLICATION_DATE_EDEFAULT.equals(publicationDate); + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (publicationDate: "); //$NON-NLS-1$ - result.append(publicationDate); - result.append(')'); - return result.toString(); - } + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (publicationDate: "); //$NON-NLS-1$ + result.append(publicationDate); + result.append(')'); + return result.toString(); + } } //ItemImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/LibraryImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/LibraryImpl.java index 98ffe6874..2a9c0eeeb 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/LibraryImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/LibraryImpl.java @@ -51,6 +51,7 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl#getAddress Address}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl#getName Name}
  • @@ -63,188 +64,187 @@ *
  • {@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl#getParentBranch Parent Branch}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.LibraryImpl#getPeople People}
  • *
- *

* * @generated */ public class LibraryImpl extends EObjectImpl implements Library { /** - * The default value of the '{@link #getAddress() Address}' attribute. - * + * The default value of the '{@link #getAddress() Address}' attribute. + * * - * @see #getAddress() - * @generated - * @ordered - */ + * @see #getAddress() + * @generated + * @ordered + */ protected static final String ADDRESS_EDEFAULT = null; /** - * The cached value of the '{@link #getAddress() Address}' attribute. - * + * The cached value of the '{@link #getAddress() Address}' attribute. + * * - * @see #getAddress() - * @generated - * @ordered - */ + * @see #getAddress() + * @generated + * @ordered + */ protected String address = ADDRESS_EDEFAULT; /** - * The default value of the '{@link #getName() Name}' attribute. - * + * The default value of the '{@link #getName() Name}' attribute. + * * - * @see #getName() - * @generated - * @ordered - */ + * @see #getName() + * @generated + * @ordered + */ protected static final String NAME_EDEFAULT = null; /** - * The cached value of the '{@link #getName() Name}' attribute. - * + * The cached value of the '{@link #getName() Name}' attribute. + * * - * @see #getName() - * @generated - * @ordered - */ + * @see #getName() + * @generated + * @ordered + */ protected String name = NAME_EDEFAULT; /** - * The cached value of the '{@link #getStock() Stock}' containment reference list. - * + * The cached value of the '{@link #getStock() Stock}' containment reference list. + * * - * @see #getStock() - * @generated - * @ordered - */ + * @see #getStock() + * @generated + * @ordered + */ protected EList stock; /** - * The cached value of the '{@link #getBooks() Books}' reference list. - * + * The cached value of the '{@link #getBooks() Books}' reference list. + * * - * @see #getBooks() - * @generated - * @ordered - */ + * @see #getBooks() + * @generated + * @ordered + */ protected EList books; /** - * The cached value of the '{@link #getBranches() Branches}' containment reference list. - * + * The cached value of the '{@link #getBranches() Branches}' containment reference list. + * * - * @see #getBranches() - * @generated - * @ordered - */ + * @see #getBranches() + * @generated + * @ordered + */ protected EList branches; /** - * The cached value of the '{@link #getPeople() People}' attribute list. - * + * The cached value of the '{@link #getPeople() People}' attribute list. + * * - * @see #getPeople() - * @generated - * @ordered - */ + * @see #getPeople() + * @generated + * @ordered + */ protected FeatureMap people; /** - * + * * - * @generated - */ + * @generated + */ protected LibraryImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.LIBRARY; - } + return EXTLibraryPackage.Literals.LIBRARY; + } /** - * + * * - * @generated - */ + * @generated + */ public String getAddress() { - return address; - } + return address; + } /** - * + * * - * @generated - */ + * @generated + */ public void setAddress(String newAddress) { - String oldAddress = address; - address = newAddress; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__ADDRESS, oldAddress, address)); - } + String oldAddress = address; + address = newAddress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__ADDRESS, oldAddress, address)); + } /** - * + * * - * @generated - */ + * @generated + */ public String getName() { - return name; - } + return name; + } /** - * + * * - * @generated - */ + * @generated + */ public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__NAME, oldName, name)); - } + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__NAME, oldName, name)); + } /** - * + * * - * @generated - */ + * @generated + */ public EList getWriters() { - return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__WRITERS); - } + return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__WRITERS); + } /** - * + * * - * @generated - */ + * @generated + */ public EList getEmployees() { - return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__EMPLOYEES); - } + return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__EMPLOYEES); + } /** - * + * * - * @generated - */ + * @generated + */ public EList getBorrowers() { - return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__BORROWERS); - } + return getPeople().list(EXTLibraryPackage.Literals.LIBRARY__BORROWERS); + } /** * @@ -340,338 +340,328 @@ protected void didSet(int index, Book newObject, Book oldObject) } /** - * + * * - * @generated - */ + * @generated + */ public EList getBranches() { - if (branches == null) - { - branches = new EObjectContainmentWithInverseEList.Resolving(Library.class, this, EXTLibraryPackage.LIBRARY__BRANCHES, EXTLibraryPackage.LIBRARY__PARENT_BRANCH); - } - return branches; - } + if (branches == null) { + branches = new EObjectContainmentWithInverseEList.Resolving(Library.class, this, EXTLibraryPackage.LIBRARY__BRANCHES, EXTLibraryPackage.LIBRARY__PARENT_BRANCH); + } + return branches; + } /** - * + * * - * @generated - */ + * @generated + */ public Library getParentBranch() { - if (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH) return null; - return (Library)eContainer(); - } + if (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH) return null; + return (Library)eContainer(); + } /** - * + * * - * @generated - */ + * @generated + */ public Library basicGetParentBranch() { - if (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH) return null; - return (Library)eInternalContainer(); - } + if (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH) return null; + return (Library)eInternalContainer(); + } /** - * + * * - * @generated - */ + * @generated + */ public NotificationChain basicSetParentBranch(Library newParentBranch, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject)newParentBranch, EXTLibraryPackage.LIBRARY__PARENT_BRANCH, msgs); - return msgs; - } + msgs = eBasicSetContainer((InternalEObject)newParentBranch, EXTLibraryPackage.LIBRARY__PARENT_BRANCH, msgs); + return msgs; + } /** - * + * * - * @generated - */ + * @generated + */ public void setParentBranch(Library newParentBranch) { - if (newParentBranch != eInternalContainer() || (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH && newParentBranch != null)) - { - if (EcoreUtil.isAncestor(this, newParentBranch)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newParentBranch != null) - msgs = ((InternalEObject)newParentBranch).eInverseAdd(this, EXTLibraryPackage.LIBRARY__BRANCHES, Library.class, msgs); - msgs = basicSetParentBranch(newParentBranch, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__PARENT_BRANCH, newParentBranch, newParentBranch)); - } - - /** - * - * - * @generated - */ + if (newParentBranch != eInternalContainer() || (eContainerFeatureID() != EXTLibraryPackage.LIBRARY__PARENT_BRANCH && newParentBranch != null)) { + if (EcoreUtil.isAncestor(this, newParentBranch)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newParentBranch != null) + msgs = ((InternalEObject)newParentBranch).eInverseAdd(this, EXTLibraryPackage.LIBRARY__BRANCHES, Library.class, msgs); + msgs = basicSetParentBranch(newParentBranch, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.LIBRARY__PARENT_BRANCH, newParentBranch, newParentBranch)); + } + + /** + * + * + * @generated + */ public FeatureMap getPeople() { - if (people == null) - { - people = new BasicFeatureMap(this, EXTLibraryPackage.LIBRARY__PEOPLE); - } - return people; - } + if (people == null) { + people = new BasicFeatureMap(this, EXTLibraryPackage.LIBRARY__PEOPLE); + } + return people; + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__BRANCHES: - return ((InternalEList)(InternalEList)getBranches()).basicAdd(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParentBranch((Library)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__BRANCHES: + return ((InternalEList)(InternalEList)getBranches()).basicAdd(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetParentBranch((Library)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__WRITERS: - return ((InternalEList)getWriters()).basicRemove(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__EMPLOYEES: - return ((InternalEList)getEmployees()).basicRemove(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__BORROWERS: - return ((InternalEList)getBorrowers()).basicRemove(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__STOCK: - return ((InternalEList)getStock()).basicRemove(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__BRANCHES: - return ((InternalEList)getBranches()).basicRemove(otherEnd, msgs); - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - return basicSetParentBranch(null, msgs); - case EXTLibraryPackage.LIBRARY__PEOPLE: - return ((InternalEList)getPeople()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__WRITERS: + return ((InternalEList)getWriters()).basicRemove(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__EMPLOYEES: + return ((InternalEList)getEmployees()).basicRemove(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__BORROWERS: + return ((InternalEList)getBorrowers()).basicRemove(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__STOCK: + return ((InternalEList)getStock()).basicRemove(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__BRANCHES: + return ((InternalEList)getBranches()).basicRemove(otherEnd, msgs); + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + return basicSetParentBranch(null, msgs); + case EXTLibraryPackage.LIBRARY__PEOPLE: + return ((InternalEList)getPeople()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) - { - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - return eInternalContainer().eInverseRemove(this, EXTLibraryPackage.LIBRARY__BRANCHES, Library.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } + switch (eContainerFeatureID()) { + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + return eInternalContainer().eInverseRemove(this, EXTLibraryPackage.LIBRARY__BRANCHES, Library.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__ADDRESS: - return getAddress(); - case EXTLibraryPackage.LIBRARY__NAME: - return getName(); - case EXTLibraryPackage.LIBRARY__WRITERS: - return getWriters(); - case EXTLibraryPackage.LIBRARY__EMPLOYEES: - return getEmployees(); - case EXTLibraryPackage.LIBRARY__BORROWERS: - return getBorrowers(); - case EXTLibraryPackage.LIBRARY__STOCK: - return getStock(); - case EXTLibraryPackage.LIBRARY__BOOKS: - return getBooks(); - case EXTLibraryPackage.LIBRARY__BRANCHES: - return getBranches(); - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - if (resolve) return getParentBranch(); - return basicGetParentBranch(); - case EXTLibraryPackage.LIBRARY__PEOPLE: - if (coreType) return getPeople(); - return ((FeatureMap.Internal)getPeople()).getWrapper(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__ADDRESS: + return getAddress(); + case EXTLibraryPackage.LIBRARY__NAME: + return getName(); + case EXTLibraryPackage.LIBRARY__WRITERS: + return getWriters(); + case EXTLibraryPackage.LIBRARY__EMPLOYEES: + return getEmployees(); + case EXTLibraryPackage.LIBRARY__BORROWERS: + return getBorrowers(); + case EXTLibraryPackage.LIBRARY__STOCK: + return getStock(); + case EXTLibraryPackage.LIBRARY__BOOKS: + return getBooks(); + case EXTLibraryPackage.LIBRARY__BRANCHES: + return getBranches(); + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + if (resolve) return getParentBranch(); + return basicGetParentBranch(); + case EXTLibraryPackage.LIBRARY__PEOPLE: + if (coreType) return getPeople(); + return ((FeatureMap.Internal)getPeople()).getWrapper(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__ADDRESS: - setAddress((String)newValue); - return; - case EXTLibraryPackage.LIBRARY__NAME: - setName((String)newValue); - return; - case EXTLibraryPackage.LIBRARY__WRITERS: - getWriters().clear(); - getWriters().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__EMPLOYEES: - getEmployees().clear(); - getEmployees().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__BORROWERS: - getBorrowers().clear(); - getBorrowers().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__STOCK: - getStock().clear(); - getStock().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__BOOKS: - getBooks().clear(); - getBooks().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__BRANCHES: - getBranches().clear(); - getBranches().addAll((Collection)newValue); - return; - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - setParentBranch((Library)newValue); - return; - case EXTLibraryPackage.LIBRARY__PEOPLE: - ((FeatureMap.Internal)getPeople()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__ADDRESS: + setAddress((String)newValue); + return; + case EXTLibraryPackage.LIBRARY__NAME: + setName((String)newValue); + return; + case EXTLibraryPackage.LIBRARY__WRITERS: + getWriters().clear(); + getWriters().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__EMPLOYEES: + getEmployees().clear(); + getEmployees().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__BORROWERS: + getBorrowers().clear(); + getBorrowers().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__STOCK: + getStock().clear(); + getStock().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__BOOKS: + getBooks().clear(); + getBooks().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__BRANCHES: + getBranches().clear(); + getBranches().addAll((Collection)newValue); + return; + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + setParentBranch((Library)newValue); + return; + case EXTLibraryPackage.LIBRARY__PEOPLE: + ((FeatureMap.Internal)getPeople()).set(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__ADDRESS: - setAddress(ADDRESS_EDEFAULT); - return; - case EXTLibraryPackage.LIBRARY__NAME: - setName(NAME_EDEFAULT); - return; - case EXTLibraryPackage.LIBRARY__WRITERS: - getWriters().clear(); - return; - case EXTLibraryPackage.LIBRARY__EMPLOYEES: - getEmployees().clear(); - return; - case EXTLibraryPackage.LIBRARY__BORROWERS: - getBorrowers().clear(); - return; - case EXTLibraryPackage.LIBRARY__STOCK: - getStock().clear(); - return; - case EXTLibraryPackage.LIBRARY__BOOKS: - getBooks().clear(); - return; - case EXTLibraryPackage.LIBRARY__BRANCHES: - getBranches().clear(); - return; - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - setParentBranch((Library)null); - return; - case EXTLibraryPackage.LIBRARY__PEOPLE: - getPeople().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__ADDRESS: + setAddress(ADDRESS_EDEFAULT); + return; + case EXTLibraryPackage.LIBRARY__NAME: + setName(NAME_EDEFAULT); + return; + case EXTLibraryPackage.LIBRARY__WRITERS: + getWriters().clear(); + return; + case EXTLibraryPackage.LIBRARY__EMPLOYEES: + getEmployees().clear(); + return; + case EXTLibraryPackage.LIBRARY__BORROWERS: + getBorrowers().clear(); + return; + case EXTLibraryPackage.LIBRARY__STOCK: + getStock().clear(); + return; + case EXTLibraryPackage.LIBRARY__BOOKS: + getBooks().clear(); + return; + case EXTLibraryPackage.LIBRARY__BRANCHES: + getBranches().clear(); + return; + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + setParentBranch((Library)null); + return; + case EXTLibraryPackage.LIBRARY__PEOPLE: + getPeople().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.LIBRARY__ADDRESS: - return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); - case EXTLibraryPackage.LIBRARY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case EXTLibraryPackage.LIBRARY__WRITERS: - return !getWriters().isEmpty(); - case EXTLibraryPackage.LIBRARY__EMPLOYEES: - return !getEmployees().isEmpty(); - case EXTLibraryPackage.LIBRARY__BORROWERS: - return !getBorrowers().isEmpty(); - case EXTLibraryPackage.LIBRARY__STOCK: - return stock != null && !stock.isEmpty(); - case EXTLibraryPackage.LIBRARY__BOOKS: - return books != null && !books.isEmpty(); - case EXTLibraryPackage.LIBRARY__BRANCHES: - return branches != null && !branches.isEmpty(); - case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: - return basicGetParentBranch() != null; - case EXTLibraryPackage.LIBRARY__PEOPLE: - return people != null && !people.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ + switch (featureID) { + case EXTLibraryPackage.LIBRARY__ADDRESS: + return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); + case EXTLibraryPackage.LIBRARY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case EXTLibraryPackage.LIBRARY__WRITERS: + return !getWriters().isEmpty(); + case EXTLibraryPackage.LIBRARY__EMPLOYEES: + return !getEmployees().isEmpty(); + case EXTLibraryPackage.LIBRARY__BORROWERS: + return !getBorrowers().isEmpty(); + case EXTLibraryPackage.LIBRARY__STOCK: + return stock != null && !stock.isEmpty(); + case EXTLibraryPackage.LIBRARY__BOOKS: + return books != null && !books.isEmpty(); + case EXTLibraryPackage.LIBRARY__BRANCHES: + return branches != null && !branches.isEmpty(); + case EXTLibraryPackage.LIBRARY__PARENT_BRANCH: + return basicGetParentBranch() != null; + case EXTLibraryPackage.LIBRARY__PEOPLE: + return people != null && !people.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (address: "); //$NON-NLS-1$ - result.append(address); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", people: "); //$NON-NLS-1$ - result.append(people); - result.append(')'); - return result.toString(); - } + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (address: "); //$NON-NLS-1$ + result.append(address); + result.append(", name: "); //$NON-NLS-1$ + result.append(name); + result.append(", people: "); //$NON-NLS-1$ + result.append(people); + result.append(')'); + return result.toString(); + } } //LibraryImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PeriodicalImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PeriodicalImpl.java index 6e12c736d..e6807e497 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PeriodicalImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PeriodicalImpl.java @@ -33,216 +33,212 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl#getTitle Title}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.PeriodicalImpl#getIssuesPerYear Issues Per Year}
  • *
- *

* * @generated */ public abstract class PeriodicalImpl extends ItemImpl implements Periodical { /** - * The default value of the '{@link #getTitle() Title}' attribute. - * + * The default value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected static final String TITLE_EDEFAULT = null; /** - * The cached value of the '{@link #getTitle() Title}' attribute. - * + * The cached value of the '{@link #getTitle() Title}' attribute. + * * - * @see #getTitle() - * @generated - * @ordered - */ + * @see #getTitle() + * @generated + * @ordered + */ protected String title = TITLE_EDEFAULT; /** - * The default value of the '{@link #getIssuesPerYear() Issues Per Year}' attribute. - * + * The default value of the '{@link #getIssuesPerYear() Issues Per Year}' attribute. + * * - * @see #getIssuesPerYear() - * @generated - * @ordered - */ + * @see #getIssuesPerYear() + * @generated + * @ordered + */ protected static final int ISSUES_PER_YEAR_EDEFAULT = 0; /** - * The cached value of the '{@link #getIssuesPerYear() Issues Per Year}' attribute. - * + * The cached value of the '{@link #getIssuesPerYear() Issues Per Year}' attribute. + * * - * @see #getIssuesPerYear() - * @generated - * @ordered - */ + * @see #getIssuesPerYear() + * @generated + * @ordered + */ protected int issuesPerYear = ISSUES_PER_YEAR_EDEFAULT; /** - * + * * - * @generated - */ + * @generated + */ protected PeriodicalImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.PERIODICAL; - } + return EXTLibraryPackage.Literals.PERIODICAL; + } /** - * + * * - * @generated - */ + * @generated + */ public String getTitle() { - return title; - } + return title; + } /** - * + * * - * @generated - */ + * @generated + */ public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERIODICAL__TITLE, oldTitle, title)); - } + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERIODICAL__TITLE, oldTitle, title)); + } /** - * + * * - * @generated - */ + * @generated + */ public int getIssuesPerYear() { - return issuesPerYear; - } + return issuesPerYear; + } /** - * + * * - * @generated - */ + * @generated + */ public void setIssuesPerYear(int newIssuesPerYear) { - int oldIssuesPerYear = issuesPerYear; - issuesPerYear = newIssuesPerYear; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR, oldIssuesPerYear, issuesPerYear)); - } + int oldIssuesPerYear = issuesPerYear; + issuesPerYear = newIssuesPerYear; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR, oldIssuesPerYear, issuesPerYear)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.PERIODICAL__TITLE: - return getTitle(); - case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - return getIssuesPerYear(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.PERIODICAL__TITLE: + return getTitle(); + case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: + return getIssuesPerYear(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.PERIODICAL__TITLE: - setTitle((String)newValue); - return; - case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - setIssuesPerYear((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.PERIODICAL__TITLE: + setTitle((String)newValue); + return; + case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: + setIssuesPerYear((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.PERIODICAL__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - setIssuesPerYear(ISSUES_PER_YEAR_EDEFAULT); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.PERIODICAL__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: + setIssuesPerYear(ISSUES_PER_YEAR_EDEFAULT); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.PERIODICAL__TITLE: - return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); - case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: - return issuesPerYear != ISSUES_PER_YEAR_EDEFAULT; - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.PERIODICAL__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case EXTLibraryPackage.PERIODICAL__ISSUES_PER_YEAR: + return issuesPerYear != ISSUES_PER_YEAR_EDEFAULT; + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (title: "); //$NON-NLS-1$ - result.append(title); - result.append(", issuesPerYear: "); //$NON-NLS-1$ - result.append(issuesPerYear); - result.append(')'); - return result.toString(); - } + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (title: "); //$NON-NLS-1$ + result.append(title); + result.append(", issuesPerYear: "); //$NON-NLS-1$ + result.append(issuesPerYear); + result.append(')'); + return result.toString(); + } } //PeriodicalImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PersonImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PersonImpl.java index 7ac01ca0e..4b03914a3 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PersonImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/PersonImpl.java @@ -34,272 +34,268 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl#getAddress Address}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl#getFirstName First Name}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.PersonImpl#getLastName Last Name}
  • *
- *

* * @generated */ public class PersonImpl extends EObjectImpl implements Person { /** - * The default value of the '{@link #getAddress() Address}' attribute. - * + * The default value of the '{@link #getAddress() Address}' attribute. + * * - * @see #getAddress() - * @generated - * @ordered - */ + * @see #getAddress() + * @generated + * @ordered + */ protected static final String ADDRESS_EDEFAULT = null; /** - * The cached value of the '{@link #getAddress() Address}' attribute. - * + * The cached value of the '{@link #getAddress() Address}' attribute. + * * - * @see #getAddress() - * @generated - * @ordered - */ + * @see #getAddress() + * @generated + * @ordered + */ protected String address = ADDRESS_EDEFAULT; /** - * The default value of the '{@link #getFirstName() First Name}' attribute. - * + * The default value of the '{@link #getFirstName() First Name}' attribute. + * * - * @see #getFirstName() - * @generated - * @ordered - */ + * @see #getFirstName() + * @generated + * @ordered + */ protected static final String FIRST_NAME_EDEFAULT = null; /** - * The cached value of the '{@link #getFirstName() First Name}' attribute. - * + * The cached value of the '{@link #getFirstName() First Name}' attribute. + * * - * @see #getFirstName() - * @generated - * @ordered - */ + * @see #getFirstName() + * @generated + * @ordered + */ protected String firstName = FIRST_NAME_EDEFAULT; /** - * The default value of the '{@link #getLastName() Last Name}' attribute. - * + * The default value of the '{@link #getLastName() Last Name}' attribute. + * * - * @see #getLastName() - * @generated - * @ordered - */ + * @see #getLastName() + * @generated + * @ordered + */ protected static final String LAST_NAME_EDEFAULT = null; /** - * The cached value of the '{@link #getLastName() Last Name}' attribute. - * + * The cached value of the '{@link #getLastName() Last Name}' attribute. + * * - * @see #getLastName() - * @generated - * @ordered - */ + * @see #getLastName() + * @generated + * @ordered + */ protected String lastName = LAST_NAME_EDEFAULT; /** - * + * * - * @generated - */ + * @generated + */ protected PersonImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.PERSON; - } + return EXTLibraryPackage.Literals.PERSON; + } /** - * + * * - * @generated - */ + * @generated + */ public String getAddress() { - return address; - } + return address; + } /** - * + * * - * @generated - */ + * @generated + */ public void setAddress(String newAddress) { - String oldAddress = address; - address = newAddress; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__ADDRESS, oldAddress, address)); - } + String oldAddress = address; + address = newAddress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__ADDRESS, oldAddress, address)); + } /** - * + * * - * @generated - */ + * @generated + */ public String getFirstName() { - return firstName; - } + return firstName; + } /** - * + * * - * @generated - */ + * @generated + */ public void setFirstName(String newFirstName) { - String oldFirstName = firstName; - firstName = newFirstName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__FIRST_NAME, oldFirstName, firstName)); - } + String oldFirstName = firstName; + firstName = newFirstName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__FIRST_NAME, oldFirstName, firstName)); + } /** - * + * * - * @generated - */ + * @generated + */ public String getLastName() { - return lastName; - } + return lastName; + } /** - * + * * - * @generated - */ + * @generated + */ public void setLastName(String newLastName) { - String oldLastName = lastName; - lastName = newLastName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__LAST_NAME, oldLastName, lastName)); - } + String oldLastName = lastName; + lastName = newLastName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EXTLibraryPackage.PERSON__LAST_NAME, oldLastName, lastName)); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.PERSON__ADDRESS: - return getAddress(); - case EXTLibraryPackage.PERSON__FIRST_NAME: - return getFirstName(); - case EXTLibraryPackage.PERSON__LAST_NAME: - return getLastName(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.PERSON__ADDRESS: + return getAddress(); + case EXTLibraryPackage.PERSON__FIRST_NAME: + return getFirstName(); + case EXTLibraryPackage.PERSON__LAST_NAME: + return getLastName(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.PERSON__ADDRESS: - setAddress((String)newValue); - return; - case EXTLibraryPackage.PERSON__FIRST_NAME: - setFirstName((String)newValue); - return; - case EXTLibraryPackage.PERSON__LAST_NAME: - setLastName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.PERSON__ADDRESS: + setAddress((String)newValue); + return; + case EXTLibraryPackage.PERSON__FIRST_NAME: + setFirstName((String)newValue); + return; + case EXTLibraryPackage.PERSON__LAST_NAME: + setLastName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.PERSON__ADDRESS: - setAddress(ADDRESS_EDEFAULT); - return; - case EXTLibraryPackage.PERSON__FIRST_NAME: - setFirstName(FIRST_NAME_EDEFAULT); - return; - case EXTLibraryPackage.PERSON__LAST_NAME: - setLastName(LAST_NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.PERSON__ADDRESS: + setAddress(ADDRESS_EDEFAULT); + return; + case EXTLibraryPackage.PERSON__FIRST_NAME: + setFirstName(FIRST_NAME_EDEFAULT); + return; + case EXTLibraryPackage.PERSON__LAST_NAME: + setLastName(LAST_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.PERSON__ADDRESS: - return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); - case EXTLibraryPackage.PERSON__FIRST_NAME: - return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName); - case EXTLibraryPackage.PERSON__LAST_NAME: - return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.PERSON__ADDRESS: + return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address); + case EXTLibraryPackage.PERSON__FIRST_NAME: + return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName); + case EXTLibraryPackage.PERSON__LAST_NAME: + return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName); + } + return super.eIsSet(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public String toString() { - if (eIsProxy()) return super.toString(); + if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (address: "); //$NON-NLS-1$ - result.append(address); - result.append(", firstName: "); //$NON-NLS-1$ - result.append(firstName); - result.append(", lastName: "); //$NON-NLS-1$ - result.append(lastName); - result.append(')'); - return result.toString(); - } + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (address: "); //$NON-NLS-1$ + result.append(address); + result.append(", firstName: "); //$NON-NLS-1$ + result.append(firstName); + result.append(", lastName: "); //$NON-NLS-1$ + result.append(lastName); + result.append(')'); + return result.toString(); + } } //PersonImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/VideoCassetteImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/VideoCassetteImpl.java index fe49ec6be..9f8e5e977 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/VideoCassetteImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/VideoCassetteImpl.java @@ -35,126 +35,121 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.VideoCassetteImpl#getCast Cast}
  • *
- *

* * @generated */ public class VideoCassetteImpl extends AudioVisualItemImpl implements VideoCassette { /** - * The cached value of the '{@link #getCast() Cast}' reference list. - * + * The cached value of the '{@link #getCast() Cast}' reference list. + * * - * @see #getCast() - * @generated - * @ordered - */ + * @see #getCast() + * @generated + * @ordered + */ protected EList cast; /** - * + * * - * @generated - */ + * @generated + */ protected VideoCassetteImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.VIDEO_CASSETTE; - } + return EXTLibraryPackage.Literals.VIDEO_CASSETTE; + } /** - * + * * - * @generated - */ + * @generated + */ public EList getCast() { - if (cast == null) - { - cast = new EObjectResolvingEList(Person.class, this, EXTLibraryPackage.VIDEO_CASSETTE__CAST); - } - return cast; - } + if (cast == null) { + cast = new EObjectResolvingEList(Person.class, this, EXTLibraryPackage.VIDEO_CASSETTE__CAST); + } + return cast; + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.VIDEO_CASSETTE__CAST: - return getCast(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.VIDEO_CASSETTE__CAST: + return getCast(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.VIDEO_CASSETTE__CAST: - getCast().clear(); - getCast().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.VIDEO_CASSETTE__CAST: + getCast().clear(); + getCast().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.VIDEO_CASSETTE__CAST: - getCast().clear(); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.VIDEO_CASSETTE__CAST: + getCast().clear(); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.VIDEO_CASSETTE__CAST: - return cast != null && !cast.isEmpty(); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.VIDEO_CASSETTE__CAST: + return cast != null && !cast.isEmpty(); + } + return super.eIsSet(featureID); + } } //VideoCassetteImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/WriterImpl.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/WriterImpl.java index 1f419e3b9..15cdce828 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/WriterImpl.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/impl/WriterImpl.java @@ -41,56 +41,56 @@ * *

* The following features are implemented: + *

*
    *
  • {@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl#getName Name}
  • *
  • {@link org.eclipse.emf.parsley.examples.library.impl.WriterImpl#getBooks Books}
  • *
- *

* * @generated */ public class WriterImpl extends PersonImpl implements Writer { /** - * The default value of the '{@link #getName() Name}' attribute. - * + * The default value of the '{@link #getName() Name}' attribute. + * * - * @see #getName() - * @generated - * @ordered - */ + * @see #getName() + * @generated + * @ordered + */ protected static final String NAME_EDEFAULT = null; /** - * The cached value of the '{@link #getBooks() Books}' reference list. - * + * The cached value of the '{@link #getBooks() Books}' reference list. + * * - * @see #getBooks() - * @generated - * @ordered - */ + * @see #getBooks() + * @generated + * @ordered + */ protected EList books; /** - * + * * - * @generated - */ + * @generated + */ protected WriterImpl() { - super(); - } + super(); + } /** - * + * * - * @generated - */ + * @generated + */ @Override protected EClass eStaticClass() { - return EXTLibraryPackage.Literals.WRITER; - } + return EXTLibraryPackage.Literals.WRITER; + } /** * @@ -158,128 +158,121 @@ public void setName(String newName) } /** - * + * * - * @generated - */ + * @generated + */ public EList getBooks() { - if (books == null) - { - books = new EObjectWithInverseResolvingEList(Book.class, this, EXTLibraryPackage.WRITER__BOOKS, EXTLibraryPackage.BOOK__AUTHOR); - } - return books; - } + if (books == null) { + books = new EObjectWithInverseResolvingEList(Book.class, this, EXTLibraryPackage.WRITER__BOOKS, EXTLibraryPackage.BOOK__AUTHOR); + } + return books; + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__BOOKS: - return ((InternalEList)(InternalEList)getBooks()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__BOOKS: + return ((InternalEList)(InternalEList)getBooks()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__BOOKS: - return ((InternalEList)getBooks()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__BOOKS: + return ((InternalEList)getBooks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__NAME: - return getName(); - case EXTLibraryPackage.WRITER__BOOKS: - return getBooks(); - } - return super.eGet(featureID, resolve, coreType); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__NAME: + return getName(); + case EXTLibraryPackage.WRITER__BOOKS: + return getBooks(); + } + return super.eGet(featureID, resolve, coreType); + } /** - * + * * - * @generated - */ + * @generated + */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__NAME: - setName((String)newValue); - return; - case EXTLibraryPackage.WRITER__BOOKS: - getBooks().clear(); - getBooks().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__NAME: + setName((String)newValue); + return; + case EXTLibraryPackage.WRITER__BOOKS: + getBooks().clear(); + getBooks().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public void eUnset(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__NAME: - setName(NAME_EDEFAULT); - return; - case EXTLibraryPackage.WRITER__BOOKS: - getBooks().clear(); - return; - } - super.eUnset(featureID); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__NAME: + setName(NAME_EDEFAULT); + return; + case EXTLibraryPackage.WRITER__BOOKS: + getBooks().clear(); + return; + } + super.eUnset(featureID); + } /** - * + * * - * @generated - */ + * @generated + */ @Override public boolean eIsSet(int featureID) { - switch (featureID) - { - case EXTLibraryPackage.WRITER__NAME: - return NAME_EDEFAULT == null ? getName() != null : !NAME_EDEFAULT.equals(getName()); - case EXTLibraryPackage.WRITER__BOOKS: - return books != null && !books.isEmpty(); - } - return super.eIsSet(featureID); - } + switch (featureID) { + case EXTLibraryPackage.WRITER__NAME: + return NAME_EDEFAULT == null ? getName() != null : !NAME_EDEFAULT.equals(getName()); + case EXTLibraryPackage.WRITER__BOOKS: + return books != null && !books.isEmpty(); + } + return super.eIsSet(featureID); + } } //WriterImpl diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibraryAdapterFactory.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibraryAdapterFactory.java index aa8e32806..495285b57 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibraryAdapterFactory.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibraryAdapterFactory.java @@ -39,371 +39,352 @@ public class EXTLibraryAdapterFactory extends AdapterFactoryImpl { /** - * The cached model package. - * + * The cached model package. + * * - * @generated - */ + * @generated + */ protected static EXTLibraryPackage modelPackage; /** - * Creates an instance of the adapter factory. - * + * Creates an instance of the adapter factory. + * * - * @generated - */ + * @generated + */ public EXTLibraryAdapterFactory() { - if (modelPackage == null) - { - modelPackage = EXTLibraryPackage.eINSTANCE; - } - } + if (modelPackage == null) { + modelPackage = EXTLibraryPackage.eINSTANCE; + } + } /** - * Returns whether this factory is applicable for the type of the object. - * + * Returns whether this factory is applicable for the type of the object. + * * This implementation returns true if the object is either the model's package or is an instance object of the model. * - * @return whether this factory is applicable for the type of the object. - * @generated - */ + * @return whether this factory is applicable for the type of the object. + * @generated + */ @Override public boolean isFactoryForType(Object object) { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } /** - * The switch that delegates to the createXXX methods. - * + * The switch that delegates to the createXXX methods. + * * - * @generated - */ + * @generated + */ protected EXTLibrarySwitch modelSwitch = - new EXTLibrarySwitch() - { - @Override - public Adapter caseBook(Book object) - { - return createBookAdapter(); - } - @Override - public Adapter caseLibrary(Library object) - { - return createLibraryAdapter(); - } - @Override - public Adapter caseWriter(Writer object) - { - return createWriterAdapter(); - } - @Override - public Adapter caseItem(Item object) - { - return createItemAdapter(); - } - @Override - public Adapter caseLendable(Lendable object) - { - return createLendableAdapter(); - } - @Override - public Adapter caseCirculatingItem(CirculatingItem object) - { - return createCirculatingItemAdapter(); - } - @Override - public Adapter casePeriodical(Periodical object) - { - return createPeriodicalAdapter(); - } - @Override - public Adapter caseAudioVisualItem(AudioVisualItem object) - { - return createAudioVisualItemAdapter(); - } - @Override - public Adapter caseBookOnTape(BookOnTape object) - { - return createBookOnTapeAdapter(); - } - @Override - public Adapter caseVideoCassette(VideoCassette object) - { - return createVideoCassetteAdapter(); - } - @Override - public Adapter caseBorrower(Borrower object) - { - return createBorrowerAdapter(); - } - @Override - public Adapter casePerson(Person object) - { - return createPersonAdapter(); - } - @Override - public Adapter caseEmployee(Employee object) - { - return createEmployeeAdapter(); - } - @Override - public Adapter caseAddressable(Addressable object) - { - return createAddressableAdapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; + new EXTLibrarySwitch() { + @Override + public Adapter caseBook(Book object) { + return createBookAdapter(); + } + @Override + public Adapter caseLibrary(Library object) { + return createLibraryAdapter(); + } + @Override + public Adapter caseWriter(Writer object) { + return createWriterAdapter(); + } + @Override + public Adapter caseItem(Item object) { + return createItemAdapter(); + } + @Override + public Adapter caseLendable(Lendable object) { + return createLendableAdapter(); + } + @Override + public Adapter caseCirculatingItem(CirculatingItem object) { + return createCirculatingItemAdapter(); + } + @Override + public Adapter casePeriodical(Periodical object) { + return createPeriodicalAdapter(); + } + @Override + public Adapter caseAudioVisualItem(AudioVisualItem object) { + return createAudioVisualItemAdapter(); + } + @Override + public Adapter caseBookOnTape(BookOnTape object) { + return createBookOnTapeAdapter(); + } + @Override + public Adapter caseVideoCassette(VideoCassette object) { + return createVideoCassetteAdapter(); + } + @Override + public Adapter caseBorrower(Borrower object) { + return createBorrowerAdapter(); + } + @Override + public Adapter casePerson(Person object) { + return createPersonAdapter(); + } + @Override + public Adapter caseEmployee(Employee object) { + return createEmployeeAdapter(); + } + @Override + public Adapter caseAddressable(Addressable object) { + return createAddressableAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** - * Creates an adapter for the target. - * + * Creates an adapter for the target. + * * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ @Override public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject)target); - } + return modelSwitch.doSwitch((EObject)target); + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Book Book}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Book Book}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Book - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Book + * @generated + */ public Adapter createBookAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Library Library}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Library Library}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Library - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Library + * @generated + */ public Adapter createLibraryAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Writer Writer}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Writer Writer}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Writer - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Writer + * @generated + */ public Adapter createWriterAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Item Item}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Item Item}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Item - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Item + * @generated + */ public Adapter createItemAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Lendable Lendable}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Lendable - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Lendable + * @generated + */ public Adapter createLendableAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.CirculatingItem Circulating Item}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.CirculatingItem Circulating Item}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.CirculatingItem - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.CirculatingItem + * @generated + */ public Adapter createCirculatingItemAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Periodical Periodical}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Periodical Periodical}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Periodical - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Periodical + * @generated + */ public Adapter createPeriodicalAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem Audio Visual Item}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.AudioVisualItem Audio Visual Item}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.AudioVisualItem + * @generated + */ public Adapter createAudioVisualItemAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.BookOnTape Book On Tape}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.BookOnTape Book On Tape}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.BookOnTape - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.BookOnTape + * @generated + */ public Adapter createBookOnTapeAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.VideoCassette Video Cassette}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.VideoCassette Video Cassette}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.VideoCassette - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.VideoCassette + * @generated + */ public Adapter createVideoCassetteAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Borrower Borrower}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Borrower Borrower}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Borrower - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Borrower + * @generated + */ public Adapter createBorrowerAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Person Person}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Person Person}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Person - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Person + * @generated + */ public Adapter createPersonAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Employee Employee}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Employee Employee}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Employee - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Employee + * @generated + */ public Adapter createEmployeeAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}'. - * + * Creates a new adapter for an object of class '{@link org.eclipse.emf.parsley.examples.library.Addressable Addressable}'. + * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * - * @return the new adapter. - * @see org.eclipse.emf.parsley.examples.library.Addressable - * @generated - */ + * @return the new adapter. + * @see org.eclipse.emf.parsley.examples.library.Addressable + * @generated + */ public Adapter createAddressableAdapter() { - return null; - } + return null; + } /** - * Creates a new adapter for the default case. - * + * Creates a new adapter for the default case. + * * This default implementation returns null. * - * @return the new adapter. - * @generated - */ + * @return the new adapter. + * @generated + */ public Adapter createEObjectAdapter() { - return null; - } + return null; + } } //EXTLibraryAdapterFactory diff --git a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibrarySwitch.java b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibrarySwitch.java index a2e458006..0aba5668b 100644 --- a/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibrarySwitch.java +++ b/examples/org.eclipse.emf.parsley.examples.library/src/org/eclipse/emf/parsley/examples/library/util/EXTLibrarySwitch.java @@ -18,10 +18,9 @@ -import java.util.List; - -import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; import org.eclipse.emf.parsley.examples.library.*; @@ -39,440 +38,404 @@ * @see org.eclipse.emf.parsley.examples.library.EXTLibraryPackage * @generated */ -public class EXTLibrarySwitch { +public class EXTLibrarySwitch extends Switch { /** - * The cached model package - * + * The cached model package + * * - * @generated - */ + * @generated + */ protected static EXTLibraryPackage modelPackage; /** - * Creates an instance of the switch. - * + * Creates an instance of the switch. + * * - * @generated - */ + * @generated + */ public EXTLibrarySwitch() { - if (modelPackage == null) - { - modelPackage = EXTLibraryPackage.eINSTANCE; - } - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) - { - return doSwitch(theEObject.eClass(), theEObject); - } + if (modelPackage == null) { + modelPackage = EXTLibraryPackage.eINSTANCE; + } + } /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) - { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) - { - case EXTLibraryPackage.BOOK: - { - Book book = (Book)theEObject; - T result = caseBook(book); - if (result == null) result = caseCirculatingItem(book); - if (result == null) result = caseItem(book); - if (result == null) result = caseLendable(book); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.LIBRARY: - { - Library library = (Library)theEObject; - T result = caseLibrary(library); - if (result == null) result = caseAddressable(library); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.WRITER: - { - Writer writer = (Writer)theEObject; - T result = caseWriter(writer); - if (result == null) result = casePerson(writer); - if (result == null) result = caseAddressable(writer); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.ITEM: - { - Item item = (Item)theEObject; - T result = caseItem(item); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.LENDABLE: - { - Lendable lendable = (Lendable)theEObject; - T result = caseLendable(lendable); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.CIRCULATING_ITEM: - { - CirculatingItem circulatingItem = (CirculatingItem)theEObject; - T result = caseCirculatingItem(circulatingItem); - if (result == null) result = caseItem(circulatingItem); - if (result == null) result = caseLendable(circulatingItem); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.PERIODICAL: - { - Periodical periodical = (Periodical)theEObject; - T result = casePeriodical(periodical); - if (result == null) result = caseItem(periodical); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.AUDIO_VISUAL_ITEM: - { - AudioVisualItem audioVisualItem = (AudioVisualItem)theEObject; - T result = caseAudioVisualItem(audioVisualItem); - if (result == null) result = caseCirculatingItem(audioVisualItem); - if (result == null) result = caseItem(audioVisualItem); - if (result == null) result = caseLendable(audioVisualItem); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.BOOK_ON_TAPE: - { - BookOnTape bookOnTape = (BookOnTape)theEObject; - T result = caseBookOnTape(bookOnTape); - if (result == null) result = caseAudioVisualItem(bookOnTape); - if (result == null) result = caseCirculatingItem(bookOnTape); - if (result == null) result = caseItem(bookOnTape); - if (result == null) result = caseLendable(bookOnTape); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.VIDEO_CASSETTE: - { - VideoCassette videoCassette = (VideoCassette)theEObject; - T result = caseVideoCassette(videoCassette); - if (result == null) result = caseAudioVisualItem(videoCassette); - if (result == null) result = caseCirculatingItem(videoCassette); - if (result == null) result = caseItem(videoCassette); - if (result == null) result = caseLendable(videoCassette); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.BORROWER: - { - Borrower borrower = (Borrower)theEObject; - T result = caseBorrower(borrower); - if (result == null) result = casePerson(borrower); - if (result == null) result = caseAddressable(borrower); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.PERSON: - { - Person person = (Person)theEObject; - T result = casePerson(person); - if (result == null) result = caseAddressable(person); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.EMPLOYEE: - { - Employee employee = (Employee)theEObject; - T result = caseEmployee(employee); - if (result == null) result = casePerson(employee); - if (result == null) result = caseAddressable(employee); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EXTLibraryPackage.ADDRESSABLE: - { - Addressable addressable = (Addressable)theEObject; - T result = caseAddressable(addressable); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } + switch (classifierID) { + case EXTLibraryPackage.BOOK: { + Book book = (Book)theEObject; + T result = caseBook(book); + if (result == null) result = caseCirculatingItem(book); + if (result == null) result = caseItem(book); + if (result == null) result = caseLendable(book); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.LIBRARY: { + Library library = (Library)theEObject; + T result = caseLibrary(library); + if (result == null) result = caseAddressable(library); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.WRITER: { + Writer writer = (Writer)theEObject; + T result = caseWriter(writer); + if (result == null) result = casePerson(writer); + if (result == null) result = caseAddressable(writer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.ITEM: { + Item item = (Item)theEObject; + T result = caseItem(item); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.LENDABLE: { + Lendable lendable = (Lendable)theEObject; + T result = caseLendable(lendable); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.CIRCULATING_ITEM: { + CirculatingItem circulatingItem = (CirculatingItem)theEObject; + T result = caseCirculatingItem(circulatingItem); + if (result == null) result = caseItem(circulatingItem); + if (result == null) result = caseLendable(circulatingItem); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.PERIODICAL: { + Periodical periodical = (Periodical)theEObject; + T result = casePeriodical(periodical); + if (result == null) result = caseItem(periodical); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.AUDIO_VISUAL_ITEM: { + AudioVisualItem audioVisualItem = (AudioVisualItem)theEObject; + T result = caseAudioVisualItem(audioVisualItem); + if (result == null) result = caseCirculatingItem(audioVisualItem); + if (result == null) result = caseItem(audioVisualItem); + if (result == null) result = caseLendable(audioVisualItem); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.BOOK_ON_TAPE: { + BookOnTape bookOnTape = (BookOnTape)theEObject; + T result = caseBookOnTape(bookOnTape); + if (result == null) result = caseAudioVisualItem(bookOnTape); + if (result == null) result = caseCirculatingItem(bookOnTape); + if (result == null) result = caseItem(bookOnTape); + if (result == null) result = caseLendable(bookOnTape); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.VIDEO_CASSETTE: { + VideoCassette videoCassette = (VideoCassette)theEObject; + T result = caseVideoCassette(videoCassette); + if (result == null) result = caseAudioVisualItem(videoCassette); + if (result == null) result = caseCirculatingItem(videoCassette); + if (result == null) result = caseItem(videoCassette); + if (result == null) result = caseLendable(videoCassette); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.BORROWER: { + Borrower borrower = (Borrower)theEObject; + T result = caseBorrower(borrower); + if (result == null) result = casePerson(borrower); + if (result == null) result = caseAddressable(borrower); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.PERSON: { + Person person = (Person)theEObject; + T result = casePerson(person); + if (result == null) result = caseAddressable(person); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.EMPLOYEE: { + Employee employee = (Employee)theEObject; + T result = caseEmployee(employee); + if (result == null) result = casePerson(employee); + if (result == null) result = caseAddressable(employee); + if (result == null) result = defaultCase(theEObject); + return result; + } + case EXTLibraryPackage.ADDRESSABLE: { + Addressable addressable = (Addressable)theEObject; + T result = caseAddressable(addressable); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } /** - * Returns the result of interpreting the object as an instance of 'Book'. - * + * Returns the result of interpreting the object as an instance of 'Book'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Book'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Book'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseBook(Book object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Library'. - * + * Returns the result of interpreting the object as an instance of 'Library'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Library'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Library'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseLibrary(Library object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Writer'. - * + * Returns the result of interpreting the object as an instance of 'Writer'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Writer'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Writer'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseWriter(Writer object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Item'. - * + * Returns the result of interpreting the object as an instance of 'Item'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Item'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Item'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseItem(Item object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Lendable'. - * + * Returns the result of interpreting the object as an instance of 'Lendable'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Lendable'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Lendable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseLendable(Lendable object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Circulating Item'. - * + * Returns the result of interpreting the object as an instance of 'Circulating Item'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Circulating Item'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Circulating Item'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseCirculatingItem(CirculatingItem object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Periodical'. - * + * Returns the result of interpreting the object as an instance of 'Periodical'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Periodical'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Periodical'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T casePeriodical(Periodical object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Audio Visual Item'. - * + * Returns the result of interpreting the object as an instance of 'Audio Visual Item'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Audio Visual Item'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Audio Visual Item'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseAudioVisualItem(AudioVisualItem object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Book On Tape'. - * + * Returns the result of interpreting the object as an instance of 'Book On Tape'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Book On Tape'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Book On Tape'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseBookOnTape(BookOnTape object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Video Cassette'. - * + * Returns the result of interpreting the object as an instance of 'Video Cassette'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Video Cassette'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Video Cassette'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseVideoCassette(VideoCassette object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Borrower'. - * + * Returns the result of interpreting the object as an instance of 'Borrower'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Borrower'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Borrower'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseBorrower(Borrower object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Person'. - * + * Returns the result of interpreting the object as an instance of 'Person'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Person'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Person'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T casePerson(Person object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Employee'. - * + * Returns the result of interpreting the object as an instance of 'Employee'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Employee'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Employee'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseEmployee(Employee object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'Addressable'. - * + * Returns the result of interpreting the object as an instance of 'Addressable'. + * * This implementation returns null; * returning a non-null result will terminate the switch. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Addressable'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Addressable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ public T caseAddressable(Addressable object) { - return null; - } + return null; + } /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * + * Returns the result of interpreting the object as an instance of 'EObject'. + * * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { - return null; - } + return null; + } } //EXTLibrarySwitch