From 2ccb0e0ad850da6f64ab9bea42cd9994042c4b3e Mon Sep 17 00:00:00 2001
From: Lorenzo Bettini
* The following features are supported:
+ *
*
- *
* The following features are supported: + *
** The following features are supported: + *
*"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 Listnull
.
+ * @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: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are supported: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
*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: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
** The following features are implemented: + *
*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 EXTLibrarySwitchtarget
.
- *
+ * 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 EXTLibrarySwitchcaseXXX
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
- {
- ListcaseXXX
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