Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Book.java200
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/BookCategory.java236
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyFactory.java64
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyPackage.java520
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Library.java94
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Writer.java77
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/BookImpl.java456
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyFactoryImpl.java197
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyPackageImpl.java521
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LibraryImpl.java258
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/WriterImpl.java236
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/package.jdo73
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore113
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd54
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyAdapterFactory.java160
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazySwitch.java172
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/BookValidator.java25
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/LibraryValidator.java26
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/WriterValidator.java24
23 files changed, 0 insertions, 3678 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Book.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Book.java
deleted file mode 100644
index 3ac3c925d..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Book.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Book.java,v 1.2 2006/09/21 00:56:52 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Book</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages <em>Pages</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory <em>Category</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor <em>Author</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBook()
- * @model extendedMetaData="name='Book' kind='elementOnly'"
- * @generated
- */
-public interface Book extends EObject {
- /**
- * Returns the value of the '<em><b>Title</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Title</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Title</em>' attribute.
- * @see #setTitle(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBook_Title()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='title'"
- * @generated
- */
- String getTitle();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getTitle <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Title</em>' attribute.
- * @see #getTitle()
- * @generated
- */
- void setTitle(String value);
-
- /**
- * Returns the value of the '<em><b>Pages</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Pages</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Pages</em>' attribute.
- * @see #isSetPages()
- * @see #unsetPages()
- * @see #setPages(int)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBook_Pages()
- * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
- * extendedMetaData="kind='element' name='pages'"
- * @generated
- */
- int getPages();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages <em>Pages</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Pages</em>' attribute.
- * @see #isSetPages()
- * @see #unsetPages()
- * @see #getPages()
- * @generated
- */
- void setPages(int value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages <em>Pages</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetPages()
- * @see #getPages()
- * @see #setPages(int)
- * @generated
- */
- void unsetPages();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages <em>Pages</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Pages</em>' attribute is set.
- * @see #unsetPages()
- * @see #getPages()
- * @see #setPages(int)
- * @generated
- */
- boolean isSetPages();
-
- /**
- * Returns the value of the '<em><b>Category</b></em>' attribute.
- * The default value is <code>"Mystery"</code>.
- * The literals are from the enumeration {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Category</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Category</em>' attribute.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see #isSetCategory()
- * @see #unsetCategory()
- * @see #setCategory(BookCategory)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBook_Category()
- * @model default="Mystery" unique="false" unsettable="true" required="true"
- * extendedMetaData="kind='element' name='category'"
- * @generated
- */
- BookCategory getCategory();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory <em>Category</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Category</em>' attribute.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see #isSetCategory()
- * @see #unsetCategory()
- * @see #getCategory()
- * @generated
- */
- void setCategory(BookCategory value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory <em>Category</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetCategory()
- * @see #getCategory()
- * @see #setCategory(BookCategory)
- * @generated
- */
- void unsetCategory();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory <em>Category</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>Category</em>' attribute is set.
- * @see #unsetCategory()
- * @see #getCategory()
- * @see #setCategory(BookCategory)
- * @generated
- */
- boolean isSetCategory();
-
- /**
- * Returns the value of the '<em><b>Author</b></em>' reference.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getBooks <em>Books</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Author</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Author</em>' reference.
- * @see #setAuthor(Writer)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBook_Author()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getBooks
- * @model opposite="books" required="true"
- * annotation="teneo.jpa appinfo='@ManyToOne(fetch=LAZY)'"
- * extendedMetaData="kind='element' name='author'"
- * @generated
- */
- Writer getAuthor();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor <em>Author</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Author</em>' reference.
- * @see #getAuthor()
- * @generated
- */
- void setAuthor(Writer value);
-
-} // Book
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/BookCategory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/BookCategory.java
deleted file mode 100644
index 02c8d6a63..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/BookCategory.java
+++ /dev/null
@@ -1,236 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookCategory.java,v 1.2 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Book Category</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getBookCategory()
- * @model
- * @generated
- */
-public enum BookCategory implements Enumerator
-{
- /**
- * The '<em><b>Mystery</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #MYSTERY
- * @generated
- * @ordered
- */
- MYSTERY_LITERAL(0, "Mystery", "Mystery"),
- /**
- * The '<em><b>Science Fiction</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #SCIENCE_FICTION
- * @generated
- * @ordered
- */
- SCIENCE_FICTION_LITERAL(1, "ScienceFiction", "ScienceFiction"),
- /**
- * The '<em><b>Biography</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #BIOGRAPHY
- * @generated
- * @ordered
- */
- BIOGRAPHY_LITERAL(2, "Biography", "Biography");
- /**
- * The '<em><b>Mystery</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Mystery</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #MYSTERY_LITERAL
- * @model name="Mystery"
- * @generated
- * @ordered
- */
- public static final int MYSTERY = 0;
-
- /**
- * The '<em><b>Science Fiction</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Science Fiction</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #SCIENCE_FICTION_LITERAL
- * @model name="ScienceFiction"
- * @generated
- * @ordered
- */
- public static final int SCIENCE_FICTION = 1;
-
- /**
- * The '<em><b>Biography</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Biography</b></em>' literal object isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #BIOGRAPHY_LITERAL
- * @model name="Biography"
- * @generated
- * @ordered
- */
- public static final int BIOGRAPHY = 2;
-
- /**
- * An array of all the '<em><b>Book Category</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static final BookCategory[] VALUES_ARRAY =
- new BookCategory[] {
- MYSTERY_LITERAL,
- SCIENCE_FICTION_LITERAL,
- BIOGRAPHY_LITERAL,
- };
-
- /**
- * A public read-only list of all the '<em><b>Book Category</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final List<BookCategory> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Book Category</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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 '<em><b>Book Category</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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 '<em><b>Book Category</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private BookCategory(int value, String name, String literal) {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getValue() {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral() {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- return literal;
- }
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyFactory.java
deleted file mode 100644
index caa62391c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyFactory.java,v 1.1 2006/07/11 16:57:06 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage
- * @generated
- */
-public interface LazyFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- LazyFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Book</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Book</em>'.
- * @generated
- */
- Book createBook();
-
- /**
- * Returns a new object of class '<em>Library</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Library</em>'.
- * @generated
- */
- Library createLibrary();
-
- /**
- * Returns a new object of class '<em>Writer</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Writer</em>'.
- * @generated
- */
- Writer createWriter();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- LazyPackage getLazyPackage();
-
-} //LazyFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyPackage.java
deleted file mode 100644
index b906866a6..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/LazyPackage.java
+++ /dev/null
@@ -1,520 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyPackage.java,v 1.1 2006/07/11 16:57:06 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyFactory
- * @model kind="package"
- * @generated
- */
-public interface LazyPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "lazy";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "lazy";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- LazyPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBook()
- * @generated
- */
- int BOOK = 0;
-
- /**
- * The feature id for the '<em><b>Title</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__TITLE = 0;
-
- /**
- * The feature id for the '<em><b>Pages</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__PAGES = 1;
-
- /**
- * The feature id for the '<em><b>Category</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__CATEGORY = 2;
-
- /**
- * The feature id for the '<em><b>Author</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__AUTHOR = 3;
-
- /**
- * The number of structural features of the '<em>Book</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl <em>Library</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getLibrary()
- * @generated
- */
- int LIBRARY = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LIBRARY__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Writers</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LIBRARY__WRITERS = 1;
-
- /**
- * The feature id for the '<em><b>Books</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LIBRARY__BOOKS = 2;
-
- /**
- * The number of structural features of the '<em>Library</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int LIBRARY_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl <em>Writer</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getWriter()
- * @generated
- */
- int WRITER = 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Books</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER__BOOKS = 1;
-
- /**
- * The number of structural features of the '<em>Writer</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int WRITER_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory <em>Book Category</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBookCategory()
- * @generated
- */
- int BOOK_CATEGORY = 3;
-
- /**
- * The meta object id for the '<em>Book Category Object</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBookCategoryObject()
- * @generated
- */
- int BOOK_CATEGORY_OBJECT = 4;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book <em>Book</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Book</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book
- * @generated
- */
- EClass getBook();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getTitle <em>Title</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Title</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getTitle()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Title();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages <em>Pages</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Pages</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getPages()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Pages();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory <em>Category</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Category</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getCategory()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Category();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor <em>Author</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Author</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor()
- * @see #getBook()
- * @generated
- */
- EReference getBook_Author();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library <em>Library</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Library</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library
- * @generated
- */
- EClass getLibrary();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getName()
- * @see #getLibrary()
- * @generated
- */
- EAttribute getLibrary_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getWriters <em>Writers</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Writers</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getWriters()
- * @see #getLibrary()
- * @generated
- */
- EReference getLibrary_Writers();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getBooks <em>Books</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Books</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getBooks()
- * @see #getLibrary()
- * @generated
- */
- EReference getLibrary_Books();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer <em>Writer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Writer</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer
- * @generated
- */
- EClass getWriter();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getName()
- * @see #getWriter()
- * @generated
- */
- EAttribute getWriter_Name();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getBooks <em>Books</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Books</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getBooks()
- * @see #getWriter()
- * @generated
- */
- EReference getWriter_Books();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory <em>Book Category</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for enum '<em>Book Category</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @generated
- */
- EEnum getBookCategory();
-
- /**
- * Returns the meta object for data type '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory <em>Book Category Object</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for data type '<em>Book Category Object</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @model instanceClass="org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory"
- * extendedMetaData="name='BookCategory:Object' baseType='BookCategory'"
- * @generated
- */
- EDataType getBookCategoryObject();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- LazyFactory getLazyFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBook()
- * @generated
- */
- EClass BOOK = eINSTANCE.getBook();
-
- /**
- * The meta object literal for the '<em><b>Title</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__TITLE = eINSTANCE.getBook_Title();
-
- /**
- * The meta object literal for the '<em><b>Pages</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__PAGES = eINSTANCE.getBook_Pages();
-
- /**
- * The meta object literal for the '<em><b>Category</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__CATEGORY = eINSTANCE.getBook_Category();
-
- /**
- * The meta object literal for the '<em><b>Author</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference BOOK__AUTHOR = eINSTANCE.getBook_Author();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl <em>Library</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getLibrary()
- * @generated
- */
- EClass LIBRARY = eINSTANCE.getLibrary();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute LIBRARY__NAME = eINSTANCE.getLibrary_Name();
-
- /**
- * The meta object literal for the '<em><b>Writers</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference LIBRARY__WRITERS = eINSTANCE.getLibrary_Writers();
-
- /**
- * The meta object literal for the '<em><b>Books</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference LIBRARY__BOOKS = eINSTANCE.getLibrary_Books();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl <em>Writer</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getWriter()
- * @generated
- */
- EClass WRITER = eINSTANCE.getWriter();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute WRITER__NAME = eINSTANCE.getWriter_Name();
-
- /**
- * The meta object literal for the '<em><b>Books</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference WRITER__BOOKS = eINSTANCE.getWriter_Books();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory <em>Book Category</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBookCategory()
- * @generated
- */
- EEnum BOOK_CATEGORY = eINSTANCE.getBookCategory();
-
- /**
- * The meta object literal for the '<em>Book Category Object</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LazyPackageImpl#getBookCategoryObject()
- * @generated
- */
- EDataType BOOK_CATEGORY_OBJECT = eINSTANCE.getBookCategoryObject();
-
- }
-
-} //LazyPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Library.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Library.java
deleted file mode 100644
index 378c8e852..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Library.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Library.java,v 1.3 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Library</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getWriters <em>Writers</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getBooks <em>Books</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getLibrary()
- * @model extendedMetaData="name='Library' kind='elementOnly'"
- * @generated
- */
-public interface Library extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getLibrary_Name()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='name'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Writers</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Writers</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Writers</em>' containment reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getLibrary_Writers()
- * @model type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer" containment="true"
- * annotation="teneo.jpa appinfo='@OneToMany(fetch=EAGER cascade=ALL targetEntity=\"Writer\")'"
- * extendedMetaData="kind='element' name='writers'"
- * @generated
- */
- EList<Writer> getWriters();
-
- /**
- * Returns the value of the '<em><b>Books</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Books</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Books</em>' containment reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getLibrary_Books()
- * @model type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book" containment="true"
- * annotation="teneo.jpa appinfo='@OneToMany(fetch=EAGER cascade=ALL targetEntity=\"Book\")'"
- * extendedMetaData="kind='element' name='books'"
- * @generated
- */
- EList<Book> getBooks();
-
-} // Library
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Writer.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Writer.java
deleted file mode 100644
index 522a72062..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/Writer.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Writer.java,v 1.3 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Writer</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getBooks <em>Books</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getWriter()
- * @model extendedMetaData="name='Writer' kind='elementOnly'"
- * @generated
- */
-public interface Writer extends EObject {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getWriter_Name()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='name'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Books</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book}.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor <em>Author</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Books</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Books</em>' reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#getWriter_Books()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book#getAuthor
- * @model type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book" opposite="author"
- * annotation="teneo.jpa appinfo='@OneToMany(cascade={MERGE,PERSIST} targetEntity=\"Book\" mappedBy=\"author\")'"
- * extendedMetaData="kind='element' name='books'"
- * @generated
- */
- EList<Book> getBooks();
-
-} // Writer
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/BookImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/BookImpl.java
deleted file mode 100644
index 106bea72e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/BookImpl.java
+++ /dev/null
@@ -1,456 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookImpl.java,v 1.3 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Book</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl#getPages <em>Pages</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl#getCategory <em>Category</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl#getAuthor <em>Author</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BookImpl extends EObjectImpl implements Book {
- /**
- * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTitle()
- * @generated
- * @ordered
- */
- protected static final String TITLE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTitle()
- * @generated
- * @ordered
- */
- protected String title = TITLE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPages() <em>Pages</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPages()
- * @generated
- * @ordered
- */
- protected static final int PAGES_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getPages() <em>Pages</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPages()
- * @generated
- * @ordered
- */
- protected int pages = PAGES_EDEFAULT;
-
- /**
- * This is true if the Pages attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean pagesESet = false;
-
- /**
- * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCategory()
- * @generated
- * @ordered
- */
- protected static final BookCategory CATEGORY_EDEFAULT = BookCategory.MYSTERY_LITERAL;
-
- /**
- * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCategory()
- * @generated
- * @ordered
- */
- protected BookCategory category = CATEGORY_EDEFAULT;
-
- /**
- * This is true if the Category attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean categoryESet = false;
-
- /**
- * The cached value of the '{@link #getAuthor() <em>Author</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthor()
- * @generated
- * @ordered
- */
- protected Writer author = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BookImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return LazyPackage.Literals.BOOK;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getTitle() {
- return title;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTitle(String newTitle) {
- String oldTitle = title;
- title = newTitle;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.BOOK__TITLE, oldTitle, title));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getPages() {
- return pages;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPages(int newPages) {
- int oldPages = pages;
- pages = newPages;
- boolean oldPagesESet = pagesESet;
- pagesESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.BOOK__PAGES, oldPages, pages, !oldPagesESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetPages() {
- int oldPages = pages;
- boolean oldPagesESet = pagesESet;
- pages = PAGES_EDEFAULT;
- pagesESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, LazyPackage.BOOK__PAGES, oldPages, PAGES_EDEFAULT, oldPagesESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetPages() {
- return pagesESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BookCategory getCategory() {
- return category;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setCategory(BookCategory newCategory) {
- BookCategory oldCategory = category;
- category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
- boolean oldCategoryESet = categoryESet;
- categoryESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.BOOK__CATEGORY, oldCategory, category, !oldCategoryESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetCategory() {
- BookCategory oldCategory = category;
- boolean oldCategoryESet = categoryESet;
- category = CATEGORY_EDEFAULT;
- categoryESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, LazyPackage.BOOK__CATEGORY, oldCategory, CATEGORY_EDEFAULT, oldCategoryESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetCategory() {
- return categoryESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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, LazyPackage.BOOK__AUTHOR, oldAuthor, author));
- }
- }
- return author;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer basicGetAuthor() {
- return author;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetAuthor(Writer newAuthor, NotificationChain msgs) {
- Writer oldAuthor = author;
- author = newAuthor;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LazyPackage.BOOK__AUTHOR, oldAuthor, newAuthor);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthor(Writer newAuthor) {
- if (newAuthor != author) {
- NotificationChain msgs = null;
- if (author != null)
- msgs = ((InternalEObject)author).eInverseRemove(this, LazyPackage.WRITER__BOOKS, Writer.class, msgs);
- if (newAuthor != null)
- msgs = ((InternalEObject)newAuthor).eInverseAdd(this, LazyPackage.WRITER__BOOKS, Writer.class, msgs);
- msgs = basicSetAuthor(newAuthor, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.BOOK__AUTHOR, newAuthor, newAuthor));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case LazyPackage.BOOK__AUTHOR:
- if (author != null)
- msgs = ((InternalEObject)author).eInverseRemove(this, LazyPackage.WRITER__BOOKS, Writer.class, msgs);
- return basicSetAuthor((Writer)otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case LazyPackage.BOOK__AUTHOR:
- return basicSetAuthor(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case LazyPackage.BOOK__TITLE:
- return getTitle();
- case LazyPackage.BOOK__PAGES:
- return new Integer(getPages());
- case LazyPackage.BOOK__CATEGORY:
- return getCategory();
- case LazyPackage.BOOK__AUTHOR:
- if (resolve) return getAuthor();
- return basicGetAuthor();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case LazyPackage.BOOK__TITLE:
- setTitle((String)newValue);
- return;
- case LazyPackage.BOOK__PAGES:
- setPages(((Integer)newValue).intValue());
- return;
- case LazyPackage.BOOK__CATEGORY:
- setCategory((BookCategory)newValue);
- return;
- case LazyPackage.BOOK__AUTHOR:
- setAuthor((Writer)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case LazyPackage.BOOK__TITLE:
- setTitle(TITLE_EDEFAULT);
- return;
- case LazyPackage.BOOK__PAGES:
- unsetPages();
- return;
- case LazyPackage.BOOK__CATEGORY:
- unsetCategory();
- return;
- case LazyPackage.BOOK__AUTHOR:
- setAuthor((Writer)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case LazyPackage.BOOK__TITLE:
- return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
- case LazyPackage.BOOK__PAGES:
- return isSetPages();
- case LazyPackage.BOOK__CATEGORY:
- return isSetCategory();
- case LazyPackage.BOOK__AUTHOR:
- return author != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (title: ");
- result.append(title);
- result.append(", pages: ");
- if (pagesESet) result.append(pages); else result.append("<unset>");
- result.append(", category: ");
- if (categoryESet) result.append(category); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //BookImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyFactoryImpl.java
deleted file mode 100644
index 3d3f46cd5..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyFactoryImpl.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyFactoryImpl.java,v 1.5 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.*;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LazyFactoryImpl extends EFactoryImpl implements LazyFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static LazyFactory init() {
- try {
- LazyFactory theLazyFactory = (LazyFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy");
- if (theLazyFactory != null) {
- return theLazyFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new LazyFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case LazyPackage.BOOK: return createBook();
- case LazyPackage.LIBRARY: return createLibrary();
- case LazyPackage.WRITER: return createWriter();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case LazyPackage.BOOK_CATEGORY:
- return createBookCategoryFromString(eDataType, initialValue);
- case LazyPackage.BOOK_CATEGORY_OBJECT:
- return createBookCategoryObjectFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case LazyPackage.BOOK_CATEGORY:
- return convertBookCategoryToString(eDataType, instanceValue);
- case LazyPackage.BOOK_CATEGORY_OBJECT:
- return convertBookCategoryObjectToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Book createBook() {
- BookImpl book = new BookImpl();
- return book;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Library createLibrary() {
- LibraryImpl library = new LibraryImpl();
- return library;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Writer createWriter() {
- WriterImpl writer = new WriterImpl();
- return writer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertBookCategoryToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BookCategory createBookCategoryObjectFromString(EDataType eDataType, String initialValue) {
- return createBookCategoryFromString(LazyPackage.Literals.BOOK_CATEGORY, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertBookCategoryObjectToString(EDataType eDataType, Object instanceValue) {
- return convertBookCategoryToString(LazyPackage.Literals.BOOK_CATEGORY, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyPackage getLazyPackage() {
- return (LazyPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static LazyPackage getPackage() {
- return LazyPackage.eINSTANCE;
- }
-
-} //LazyFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyPackageImpl.java
deleted file mode 100644
index de6d44444..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LazyPackageImpl.java
+++ /dev/null
@@ -1,521 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyPackageImpl.java,v 1.4 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class LazyPackageImpl extends EPackageImpl implements LazyPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass bookEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass libraryEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass writerEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EEnum bookCategoryEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EDataType bookCategoryObjectEDataType = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private LazyPackageImpl() {
- super(eNS_URI, LazyFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static LazyPackage init() {
- if (isInited) return (LazyPackage)EPackage.Registry.INSTANCE.getEPackage(LazyPackage.eNS_URI);
-
- // Obtain or create and register package
- LazyPackageImpl theLazyPackage = (LazyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LazyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LazyPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theLazyPackage.createPackageContents();
-
- // Initialize created meta-data
- theLazyPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theLazyPackage.freeze();
-
- return theLazyPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getBook() {
- return bookEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBook_Title() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBook_Pages() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBook_Category() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getBook_Author() {
- return (EReference)bookEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getLibrary() {
- return libraryEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getLibrary_Name() {
- return (EAttribute)libraryEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getLibrary_Writers() {
- return (EReference)libraryEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getLibrary_Books() {
- return (EReference)libraryEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getWriter() {
- return writerEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getWriter_Name() {
- return (EAttribute)writerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWriter_Books() {
- return (EReference)writerEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EEnum getBookCategory() {
- return bookCategoryEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EDataType getBookCategoryObject() {
- return bookCategoryObjectEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyFactory getLazyFactory() {
- return (LazyFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- bookEClass = createEClass(BOOK);
- createEAttribute(bookEClass, BOOK__TITLE);
- createEAttribute(bookEClass, BOOK__PAGES);
- createEAttribute(bookEClass, BOOK__CATEGORY);
- createEReference(bookEClass, BOOK__AUTHOR);
-
- libraryEClass = createEClass(LIBRARY);
- createEAttribute(libraryEClass, LIBRARY__NAME);
- createEReference(libraryEClass, LIBRARY__WRITERS);
- createEReference(libraryEClass, LIBRARY__BOOKS);
-
- writerEClass = createEClass(WRITER);
- createEAttribute(writerEClass, WRITER__NAME);
- createEReference(writerEClass, WRITER__BOOKS);
-
- // Create enums
- bookCategoryEEnum = createEEnum(BOOK_CATEGORY);
-
- // Create data types
- bookCategoryObjectEDataType = createEDataType(BOOK_CATEGORY_OBJECT);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(bookEClass, Book.class, "Book", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBook_Title(), theXMLTypePackage.getString(), "title", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBook_Pages(), theXMLTypePackage.getInt(), "pages", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBook_Category(), this.getBookCategory(), "category", "Mystery", 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- 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);
-
- initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getLibrary_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- 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);
- 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);
-
- initEClass(writerEClass, Writer.class, "Writer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getWriter_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Writer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- 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);
-
- // Initialize enums and add enum literals
- initEEnum(bookCategoryEEnum, BookCategory.class, "BookCategory");
- addEEnumLiteral(bookCategoryEEnum, BookCategory.MYSTERY_LITERAL);
- addEEnumLiteral(bookCategoryEEnum, BookCategory.SCIENCE_FICTION_LITERAL);
- addEEnumLiteral(bookCategoryEEnum, BookCategory.BIOGRAPHY_LITERAL);
-
- // Initialize data types
- initEDataType(bookCategoryObjectEDataType, BookCategory.class, "BookCategoryObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- // teneo.jpa
- createTeneoAnnotations();
- }
-
- /**
- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
- addAnnotation
- (bookEClass,
- source,
- new String[] {
- "name", "Book",
- "kind", "elementOnly"
- });
- addAnnotation
- (getBook_Title(),
- source,
- new String[] {
- "kind", "element",
- "name", "title"
- });
- addAnnotation
- (getBook_Pages(),
- source,
- new String[] {
- "kind", "element",
- "name", "pages"
- });
- addAnnotation
- (getBook_Category(),
- source,
- new String[] {
- "kind", "element",
- "name", "category"
- });
- addAnnotation
- (getBook_Author(),
- source,
- new String[] {
- "kind", "element",
- "name", "author"
- });
- addAnnotation
- (bookCategoryEEnum,
- source,
- new String[] {
- "name", "BookCategory"
- });
- addAnnotation
- (bookCategoryObjectEDataType,
- source,
- new String[] {
- "name", "BookCategory:Object",
- "baseType", "BookCategory"
- });
- addAnnotation
- (libraryEClass,
- source,
- new String[] {
- "name", "Library",
- "kind", "elementOnly"
- });
- addAnnotation
- (getLibrary_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getLibrary_Writers(),
- source,
- new String[] {
- "kind", "element",
- "name", "writers"
- });
- addAnnotation
- (getLibrary_Books(),
- source,
- new String[] {
- "kind", "element",
- "name", "books"
- });
- addAnnotation
- (writerEClass,
- source,
- new String[] {
- "name", "Writer",
- "kind", "elementOnly"
- });
- addAnnotation
- (getWriter_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getWriter_Books(),
- source,
- new String[] {
- "kind", "element",
- "name", "books"
- });
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (getBook_Author(),
- source,
- new String[] {
- "appinfo", "@ManyToOne(fetch=LAZY)"
- });
- addAnnotation
- (getLibrary_Writers(),
- source,
- new String[] {
- "appinfo", "@OneToMany(fetch=EAGER cascade=ALL targetEntity=\"Writer\")"
- });
- addAnnotation
- (getLibrary_Books(),
- source,
- new String[] {
- "appinfo", "@OneToMany(fetch=EAGER cascade=ALL targetEntity=\"Book\")"
- });
- addAnnotation
- (getWriter_Books(),
- source,
- new String[] {
- "appinfo", "@OneToMany(cascade={MERGE,PERSIST} targetEntity=\"Book\" mappedBy=\"author\")"
- });
- }
-
-} //LazyPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LibraryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LibraryImpl.java
deleted file mode 100644
index 54fa9bbe4..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/LibraryImpl.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryImpl.java,v 1.3 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Library</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl#getWriters <em>Writers</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl#getBooks <em>Books</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class LibraryImpl extends EObjectImpl implements Library {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getWriters() <em>Writers</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWriters()
- * @generated
- * @ordered
- */
- protected EList<Writer> writers = null;
-
- /**
- * The cached value of the '{@link #getBooks() <em>Books</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBooks()
- * @generated
- * @ordered
- */
- protected EList<Book> books = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LibraryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return LazyPackage.Literals.LIBRARY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.LIBRARY__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Writer> getWriters() {
- if (writers == null) {
- writers = new EObjectContainmentEList<Writer>(Writer.class, this, LazyPackage.LIBRARY__WRITERS);
- }
- return writers;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Book> getBooks() {
- if (books == null) {
- books = new EObjectContainmentEList<Book>(Book.class, this, LazyPackage.LIBRARY__BOOKS);
- }
- return books;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case LazyPackage.LIBRARY__WRITERS:
- return ((InternalEList<?>)getWriters()).basicRemove(otherEnd, msgs);
- case LazyPackage.LIBRARY__BOOKS:
- return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case LazyPackage.LIBRARY__NAME:
- return getName();
- case LazyPackage.LIBRARY__WRITERS:
- return getWriters();
- case LazyPackage.LIBRARY__BOOKS:
- return getBooks();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case LazyPackage.LIBRARY__NAME:
- setName((String)newValue);
- return;
- case LazyPackage.LIBRARY__WRITERS:
- getWriters().clear();
- getWriters().addAll((Collection<? extends Writer>)newValue);
- return;
- case LazyPackage.LIBRARY__BOOKS:
- getBooks().clear();
- getBooks().addAll((Collection<? extends Book>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case LazyPackage.LIBRARY__NAME:
- setName(NAME_EDEFAULT);
- return;
- case LazyPackage.LIBRARY__WRITERS:
- getWriters().clear();
- return;
- case LazyPackage.LIBRARY__BOOKS:
- getBooks().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case LazyPackage.LIBRARY__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case LazyPackage.LIBRARY__WRITERS:
- return writers != null && !writers.isEmpty();
- case LazyPackage.LIBRARY__BOOKS:
- return books != null && !books.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //LibraryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/WriterImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/WriterImpl.java
deleted file mode 100644
index 1f1829509..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/WriterImpl.java
+++ /dev/null
@@ -1,236 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterImpl.java,v 1.3 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Writer</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl#getBooks <em>Books</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class WriterImpl extends EObjectImpl implements Writer {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBooks() <em>Books</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBooks()
- * @generated
- * @ordered
- */
- protected EList<Book> books = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WriterImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return LazyPackage.Literals.WRITER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, LazyPackage.WRITER__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Book> getBooks() {
- if (books == null) {
- books = new EObjectWithInverseResolvingEList<Book>(Book.class, this, LazyPackage.WRITER__BOOKS, LazyPackage.BOOK__AUTHOR);
- }
- return books;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case LazyPackage.WRITER__BOOKS:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getBooks()).basicAdd(otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case LazyPackage.WRITER__BOOKS:
- return ((InternalEList<?>)getBooks()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case LazyPackage.WRITER__NAME:
- return getName();
- case LazyPackage.WRITER__BOOKS:
- return getBooks();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case LazyPackage.WRITER__NAME:
- setName((String)newValue);
- return;
- case LazyPackage.WRITER__BOOKS:
- getBooks().clear();
- getBooks().addAll((Collection<? extends Book>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case LazyPackage.WRITER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case LazyPackage.WRITER__BOOKS:
- getBooks().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case LazyPackage.WRITER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case LazyPackage.WRITER__BOOKS:
- return books != null && !books.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //WriterImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/package.jdo b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/package.jdo
deleted file mode 100644
index 8768916ab..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/impl/package.jdo
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">
-
-<jdo>
- <package name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl">
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="book" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="Book"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="title" persistence-modifier="persistent" null-value="exception"/>
- <field name="pages" persistence-modifier="persistent" null-value="exception"/>
- <field name="pagesESet" persistence-modifier="persistent"/>
- <field name="category" persistence-modifier="persistent" null-value="exception" embedded="true"/>
- <field name="categoryESet" persistence-modifier="persistent"/>
- <field name="author" persistence-modifier="persistent" delete-action="restrict" null-value="none">
- <foreign-key name="book_author"/>
- <column name="book_author_e_id" allows-null="true"/>
- <extension vendor-name="jpox" key="implementation-classes" value="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl"/>
- </field>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.LibraryImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="library" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="Library"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="writers" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl" dependent-element="true">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="false"/>
- </collection>
- <element>
- <column name="library_writers_e_id" allows-null="true"/>
- </element>
- <order column="LIBRARY_WRITERS_IDX"/>
- <foreign-key delete-action="cascade" update-action="cascade" name="library_writers"/>
- </field>
- <field name="books" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" dependent-element="true">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="false"/>
- </collection>
- <element>
- <column name="library_books_e_id" allows-null="true"/>
- </element>
- <order column="LIBRARY_BOOKS_IDX"/>
- <foreign-key delete-action="cascade" update-action="cascade" name="library_books"/>
- </field>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.WriterImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="writer" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="Writer"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="books" persistence-modifier="persistent" mapped-by="author" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.lazy.impl.BookImpl" dependent-element="false">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <order column="WRITER_BOOKS_IDX"/>
- <foreign-key delete-action="restrict" update-action="cascade"/>
- </field>
- </class>
- </package>
-</jdo> \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore
deleted file mode 100644
index 9d789c996..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.ecore
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="lazy"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy" nsPrefix="lazy">
- <eClassifiers xsi:type="ecore:EClass" name="Book">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Book"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="title"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int" unsettable="true">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="pages"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" unique="false"
- lowerBound="1" eType="#//BookCategory" defaultValueLiteral="Mystery" unsettable="true">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="category"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
- eType="#//Writer" eOpposite="#//Writer/books">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@ManyToOne(fetch=LAZY)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="author"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="BookCategory"/>
- </eAnnotations>
- <eLiterals name="Mystery"/>
- <eLiterals name="ScienceFiction" value="1"/>
- <eLiterals name="Biography" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="BookCategoryObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="BookCategory:Object"/>
- <details key="baseType" value="BookCategory"/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Library">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Library"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
- eType="#//Writer" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(fetch=EAGER cascade=ALL targetEntity=&quot;Writer&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="writers"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
- eType="#//Book" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(fetch=EAGER cascade=ALL targetEntity=&quot;Book&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="books"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Writer">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Writer"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
- eType="#//Book" eOpposite="#//Book/author">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(cascade={MERGE,PERSIST} targetEntity=&quot;Book&quot; mappedBy=&quot;author&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="books"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel
deleted file mode 100644
index f58de18ef..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.genmodel
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
- modelPluginID="org.eclipse.emf.teneo.samples" modelName="Lazy" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>lazy.xsd</foreignModel>
- <genPackages prefix="Lazy" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="lazy.ecore#/">
- <genEnums ecoreEnum="lazy.ecore#//BookCategory">
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/Mystery"/>
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/ScienceFiction"/>
- <genEnumLiterals ecoreEnumLiteral="lazy.ecore#//BookCategory/Biography"/>
- </genEnums>
- <genDataTypes ecoreDataType="lazy.ecore#//BookCategoryObject"/>
- <genClasses ecoreClass="lazy.ecore#//Book">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/title"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/pages"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Book/category"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference lazy.ecore#//Book/author"/>
- </genClasses>
- <genClasses ecoreClass="lazy.ecore#//Library">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Library/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference lazy.ecore#//Library/writers"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference lazy.ecore#//Library/books"/>
- </genClasses>
- <genClasses ecoreClass="lazy.ecore#//Writer">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute lazy.ecore#//Writer/name"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference lazy.ecore#//Writer/books"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd
deleted file mode 100644
index 12402d959..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/model/lazy.xsd
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:lib="http://www.eclipse.org/emf/teneo/samples/emf/annotations/lazy"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:complexType name="Book">
- <xsd:sequence>
- <xsd:element name="title" type="xsd:string"/>
- <xsd:element name="pages" type="xsd:int"/>
- <xsd:element name="category" type="lib:BookCategory"/>
- <xsd:element name="author" type="xsd:anyURI"
- ecore:reference="lib:Writer" ecore:opposite="books">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@ManyToOne(fetch=LAZY)</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="Writer">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element maxOccurs="unbounded" minOccurs="0" name="books"
- type="xsd:anyURI" ecore:reference="lib:Book" ecore:opposite="author">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(cascade={MERGE,PERSIST} targetEntity="Book" mappedBy="author")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="Library">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element maxOccurs="unbounded" minOccurs="0"
- name="writers" type="lib:Writer">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(fetch=EAGER cascade=ALL targetEntity="Writer")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element maxOccurs="unbounded" minOccurs="0"
- name="books" type="lib:Book">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@OneToMany(fetch=EAGER cascade=ALL targetEntity="Book")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:simpleType name="BookCategory">
- <xsd:restriction base="xsd:NCName">
- <xsd:enumeration value="Mystery"/>
- <xsd:enumeration value="ScienceFiction"/>
- <xsd:enumeration value="Biography"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyAdapterFactory.java
deleted file mode 100644
index b80a9caef..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyAdapterFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyAdapterFactory.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage
- * @generated
- */
-public class LazyAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static LazyPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = LazyPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @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;
- }
-
- /**
- * The switch the delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected LazySwitch<Adapter> modelSwitch =
- new LazySwitch<Adapter>() {
- @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 defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book <em>Book</em>}'.
- * <!-- begin-user-doc -->
- * 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.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book
- * @generated
- */
- public Adapter createBookAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library <em>Library</em>}'.
- * <!-- begin-user-doc -->
- * 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.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library
- * @generated
- */
- public Adapter createLibraryAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer <em>Writer</em>}'.
- * <!-- begin-user-doc -->
- * 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.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer
- * @generated
- */
- public Adapter createWriterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //LazyAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceFactoryImpl.java
deleted file mode 100644
index c7e37e0f2..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyResourceFactoryImpl.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.util.LazyResourceImpl
- * @generated
- */
-public class LazyResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new LazyResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- return result;
- }
-
-} //LazyResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceImpl.java
deleted file mode 100644
index 85116cf5d..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyResourceImpl.java,v 1.1 2006/07/11 16:56:57 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.util.LazyResourceFactoryImpl
- * @generated
- */
-public class LazyResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public LazyResourceImpl(URI uri) {
- super(uri);
- }
-
-} //LazyResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazySwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazySwitch.java
deleted file mode 100644
index 6de50710f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazySwitch.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazySwitch.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage
- * @generated
- */
-public class LazySwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static LazyPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazySwitch() {
- if (modelPackage == null) {
- modelPackage = LazyPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case LazyPackage.BOOK: {
- Book book = (Book)theEObject;
- T result = caseBook(book);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case LazyPackage.LIBRARY: {
- Library library = (Library)theEObject;
- T result = caseLibrary(library);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case LazyPackage.WRITER: {
- Writer writer = (Writer)theEObject;
- T result = caseWriter(writer);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Book</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Book</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBook(Book object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Library</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Library</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLibrary(Library object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Writer</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>Writer</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseWriter(Writer object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //LazySwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyXMLProcessor.java
deleted file mode 100644
index 99e44e149..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/util/LazyXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LazyXMLProcessor.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.LazyPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class LazyXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public LazyXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- LazyPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the LazyResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new LazyResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new LazyResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //LazyXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/BookValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/BookValidator.java
deleted file mode 100644
index c099b1463..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/BookValidator.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.validation;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.BookCategory;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface BookValidator {
- boolean validate();
-
- boolean validateTitle(String value);
- boolean validatePages(int value);
- boolean validateCategory(BookCategory value);
- boolean validateAuthor(Writer value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/LibraryValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/LibraryValidator.java
deleted file mode 100644
index ef6565bc8..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/LibraryValidator.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: LibraryValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.validation;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Library}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface LibraryValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateWriters(EList<Writer> value);
- boolean validateBooks(EList<Book> value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/WriterValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/WriterValidator.java
deleted file mode 100644
index c2cc98e91..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/lazy/validation/WriterValidator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WriterValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.lazy.validation;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.lazy.Book;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.lazy.Writer}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface WriterValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateBooks(EList<Book> value);
-}

Back to the top