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/edatatypeColumn')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/Book.java170
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnFactory.java46
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnPackage.java366
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/BookImpl.java365
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnFactoryImpl.java219
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnPackageImpl.java427
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/package.jdo27
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatypeColumn.ecore80
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.genmodel21
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.xsd45
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnAdapterFactory.java124
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnSwitch.java130
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/validation/BookValidator.java24
16 files changed, 0 insertions, 2184 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/Book.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/Book.java
deleted file mode 100644
index b25d6d1ae..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/Book.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Book.java,v 1.1 2006/09/06 21:58:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn;
-
-import java.math.BigDecimal;
-
-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.edatatypeColumn.Book#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getPages <em>Pages</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getWeight <em>Weight</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getAuthor <em>Author</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnPackage#getBook()
- * @model annotation="teneo.jpa appinfo='@Table(name=\"mybooktable\")'"
- * 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.edatatypeColumn.EdatatypeColumnPackage#getBook_Title()
- * @model unique="false" dataType="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.TitleType" required="true"
- * annotation="teneo.jpa appinfo='@Column(name=\"titel\" unique=\"true\" length=\"25\")'"
- * extendedMetaData="kind='element' name='title'"
- * @generated
- */
- String getTitle();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.EdatatypeColumnPackage#getBook_Pages()
- * @model unique="false" unsettable="true" dataType="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.PagesType" required="true"
- * extendedMetaData="kind='element' name='pages'"
- * @generated
- */
- int getPages();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.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.edatatypeColumn.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>Weight</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Weight</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Weight</em>' attribute.
- * @see #setWeight(BigDecimal)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnPackage#getBook_Weight()
- * @model unique="false" dataType="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.WeightType" required="true"
- * extendedMetaData="kind='element' name='weight'"
- * @generated
- */
- BigDecimal getWeight();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getWeight <em>Weight</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Weight</em>' attribute.
- * @see #getWeight()
- * @generated
- */
- void setWeight(BigDecimal value);
-
- /**
- * Returns the value of the '<em><b>Author</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Author</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Author</em>' attribute.
- * @see #setAuthor(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnPackage#getBook_Author()
- * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='author'"
- * @generated
- */
- String getAuthor();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getAuthor <em>Author</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Author</em>' attribute.
- * @see #getAuthor()
- * @generated
- */
- void setAuthor(String value);
-
-} // Book \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnFactory.java
deleted file mode 100644
index e68c27c95..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnFactory.java,v 1.1 2006/09/06 21:58:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn;
-
-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.edatatypeColumn.EdatatypeColumnPackage
- * @generated
- */
-public interface EdatatypeColumnFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EdatatypeColumnFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnFactoryImpl.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 the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- EdatatypeColumnPackage getEdatatypeColumnPackage();
-
-} //EdatatypeColumnFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnPackage.java
deleted file mode 100644
index e64cd8b7a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/EdatatypeColumnPackage.java
+++ /dev/null
@@ -1,366 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnPackage.java,v 1.1 2006/09/06 21:58:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-
-/**
- * <!-- 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.edatatypeColumn.EdatatypeColumnFactory
- * @model kind="package"
- * @generated
- */
-public interface EdatatypeColumnPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "edatatypeColumn";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "edatatypeColumn";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EdatatypeColumnPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#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>Weight</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BOOK__WEIGHT = 2;
-
- /**
- * The feature id for the '<em><b>Author</b></em>' attribute.
- * <!-- 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 '<em>Pages Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getPagesType()
- * @generated
- */
- int PAGES_TYPE = 1;
-
- /**
- * The meta object id for the '<em>Pages Type Object</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.lang.Integer
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getPagesTypeObject()
- * @generated
- */
- int PAGES_TYPE_OBJECT = 2;
-
- /**
- * The meta object id for the '<em>Title Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.lang.String
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getTitleType()
- * @generated
- */
- int TITLE_TYPE = 3;
-
- /**
- * The meta object id for the '<em>Weight Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.math.BigDecimal
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getWeightType()
- * @generated
- */
- int WEIGHT_TYPE = 4;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.Book
- * @generated
- */
- EClass getBook();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.Book#getTitle()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Title();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.Book#getPages()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Pages();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getWeight <em>Weight</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Weight</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getWeight()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Weight();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getAuthor <em>Author</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Author</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book#getAuthor()
- * @see #getBook()
- * @generated
- */
- EAttribute getBook_Author();
-
- /**
- * Returns the meta object for data type '<em>Pages Type</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for data type '<em>Pages Type</em>'.
- * @model instanceClass="int"
- * annotation="teneo.jpa appinfo='@Column(updatable=\"false\" insertable=\"false\")'"
- * extendedMetaData="name='PagesType' baseType='http://www.eclipse.org/emf/2003/XMLType#int'"
- * @generated
- */
- EDataType getPagesType();
-
- /**
- * Returns the meta object for data type '{@link java.lang.Integer <em>Pages Type Object</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for data type '<em>Pages Type Object</em>'.
- * @see java.lang.Integer
- * @model instanceClass="java.lang.Integer"
- * extendedMetaData="name='PagesType:Object' baseType='PagesType'"
- * @generated
- */
- EDataType getPagesTypeObject();
-
- /**
- * Returns the meta object for data type '{@link java.lang.String <em>Title Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for data type '<em>Title Type</em>'.
- * @see java.lang.String
- * @model instanceClass="java.lang.String"
- * annotation="teneo.jpa appinfo='@Column(name=\"mytitle\" unique=\"false\" length=\"50\")'"
- * extendedMetaData="name='TitleType' baseType='http://www.eclipse.org/emf/2003/XMLType#string'"
- * @generated
- */
- EDataType getTitleType();
-
- /**
- * Returns the meta object for data type '{@link java.math.BigDecimal <em>Weight Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for data type '<em>Weight Type</em>'.
- * @see java.math.BigDecimal
- * @model instanceClass="java.math.BigDecimal"
- * annotation="teneo.jpa appinfo='@Column(name=\"gewicht\" nullable=\"true\" precision=\"5\" scale=\"2\")'"
- * extendedMetaData="name='WeightType' baseType='http://www.eclipse.org/emf/2003/XMLType#decimal'"
- * @generated
- */
- EDataType getWeightType();
-
- /**
- * 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
- */
- EdatatypeColumnFactory getEdatatypeColumnFactory();
-
- /**
- * <!-- 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.edatatypeColumn.impl.BookImpl <em>Book</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#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>Weight</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__WEIGHT = eINSTANCE.getBook_Weight();
-
- /**
- * The meta object literal for the '<em><b>Author</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BOOK__AUTHOR = eINSTANCE.getBook_Author();
-
- /**
- * The meta object literal for the '<em>Pages Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getPagesType()
- * @generated
- */
- EDataType PAGES_TYPE = eINSTANCE.getPagesType();
-
- /**
- * The meta object literal for the '<em>Pages Type Object</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.lang.Integer
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getPagesTypeObject()
- * @generated
- */
- EDataType PAGES_TYPE_OBJECT = eINSTANCE.getPagesTypeObject();
-
- /**
- * The meta object literal for the '<em>Title Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.lang.String
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getTitleType()
- * @generated
- */
- EDataType TITLE_TYPE = eINSTANCE.getTitleType();
-
- /**
- * The meta object literal for the '<em>Weight Type</em>' data type.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see java.math.BigDecimal
- * @see org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.EdatatypeColumnPackageImpl#getWeightType()
- * @generated
- */
- EDataType WEIGHT_TYPE = eINSTANCE.getWeightType();
-
- }
-
-} //EdatatypeColumnPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/BookImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/BookImpl.java
deleted file mode 100644
index 60aeab10b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/BookImpl.java
+++ /dev/null
@@ -1,365 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookImpl.java,v 1.2 2007/02/08 23:09:27 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl;
-
-import java.math.BigDecimal;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnPackage;
-
-/**
- * <!-- 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.edatatypeColumn.impl.BookImpl#getTitle <em>Title</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl#getPages <em>Pages</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl#getWeight <em>Weight</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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 #getWeight() <em>Weight</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWeight()
- * @generated
- * @ordered
- */
- protected static final BigDecimal WEIGHT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getWeight() <em>Weight</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWeight()
- * @generated
- * @ordered
- */
- protected BigDecimal weight = WEIGHT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAuthor() <em>Author</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthor()
- * @generated
- * @ordered
- */
- protected static final String AUTHOR_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAuthor() <em>Author</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAuthor()
- * @generated
- * @ordered
- */
- protected String author = AUTHOR_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BookImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return EdatatypeColumnPackage.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, EdatatypeColumnPackage.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, EdatatypeColumnPackage.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, EdatatypeColumnPackage.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 BigDecimal getWeight() {
- return weight;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setWeight(BigDecimal newWeight) {
- BigDecimal oldWeight = weight;
- weight = newWeight;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdatatypeColumnPackage.BOOK__WEIGHT, oldWeight, weight));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAuthor() {
- return author;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAuthor(String newAuthor) {
- String oldAuthor = author;
- author = newAuthor;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdatatypeColumnPackage.BOOK__AUTHOR, oldAuthor, author));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case EdatatypeColumnPackage.BOOK__TITLE:
- return getTitle();
- case EdatatypeColumnPackage.BOOK__PAGES:
- return new Integer(getPages());
- case EdatatypeColumnPackage.BOOK__WEIGHT:
- return getWeight();
- case EdatatypeColumnPackage.BOOK__AUTHOR:
- return getAuthor();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case EdatatypeColumnPackage.BOOK__TITLE:
- setTitle((String)newValue);
- return;
- case EdatatypeColumnPackage.BOOK__PAGES:
- setPages(((Integer)newValue).intValue());
- return;
- case EdatatypeColumnPackage.BOOK__WEIGHT:
- setWeight((BigDecimal)newValue);
- return;
- case EdatatypeColumnPackage.BOOK__AUTHOR:
- setAuthor((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case EdatatypeColumnPackage.BOOK__TITLE:
- setTitle(TITLE_EDEFAULT);
- return;
- case EdatatypeColumnPackage.BOOK__PAGES:
- unsetPages();
- return;
- case EdatatypeColumnPackage.BOOK__WEIGHT:
- setWeight(WEIGHT_EDEFAULT);
- return;
- case EdatatypeColumnPackage.BOOK__AUTHOR:
- setAuthor(AUTHOR_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case EdatatypeColumnPackage.BOOK__TITLE:
- return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
- case EdatatypeColumnPackage.BOOK__PAGES:
- return isSetPages();
- case EdatatypeColumnPackage.BOOK__WEIGHT:
- return WEIGHT_EDEFAULT == null ? weight != null : !WEIGHT_EDEFAULT.equals(weight);
- case EdatatypeColumnPackage.BOOK__AUTHOR:
- return AUTHOR_EDEFAULT == null ? author != null : !AUTHOR_EDEFAULT.equals(author);
- }
- 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(", weight: ");
- result.append(weight);
- result.append(", author: ");
- result.append(author);
- result.append(')');
- return result.toString();
- }
-
-} //BookImpl \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnFactoryImpl.java
deleted file mode 100644
index 9b1bfdbc4..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnFactoryImpl.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnFactoryImpl.java,v 1.2 2007/02/08 23:09:27 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl;
-
-import java.math.BigDecimal;
-
-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.ecore.xml.type.XMLTypeFactory;
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdatatypeColumnFactoryImpl extends EFactoryImpl implements EdatatypeColumnFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static EdatatypeColumnFactory init() {
- try {
- EdatatypeColumnFactory theEdatatypeColumnFactory = (EdatatypeColumnFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column");
- if (theEdatatypeColumnFactory != null) {
- return theEdatatypeColumnFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new EdatatypeColumnFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case EdatatypeColumnPackage.BOOK: return createBook();
- 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 EdatatypeColumnPackage.PAGES_TYPE:
- return createPagesTypeFromString(eDataType, initialValue);
- case EdatatypeColumnPackage.PAGES_TYPE_OBJECT:
- return createPagesTypeObjectFromString(eDataType, initialValue);
- case EdatatypeColumnPackage.TITLE_TYPE:
- return createTitleTypeFromString(eDataType, initialValue);
- case EdatatypeColumnPackage.WEIGHT_TYPE:
- return createWeightTypeFromString(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 EdatatypeColumnPackage.PAGES_TYPE:
- return convertPagesTypeToString(eDataType, instanceValue);
- case EdatatypeColumnPackage.PAGES_TYPE_OBJECT:
- return convertPagesTypeObjectToString(eDataType, instanceValue);
- case EdatatypeColumnPackage.TITLE_TYPE:
- return convertTitleTypeToString(eDataType, instanceValue);
- case EdatatypeColumnPackage.WEIGHT_TYPE:
- return convertWeightTypeToString(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 Integer createPagesTypeFromString(EDataType eDataType, String initialValue) {
- return (Integer)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.INT, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertPagesTypeToString(EDataType eDataType, Object instanceValue) {
- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.INT, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Integer createPagesTypeObjectFromString(EDataType eDataType, String initialValue) {
- return createPagesTypeFromString(EdatatypeColumnPackage.Literals.PAGES_TYPE, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertPagesTypeObjectToString(EDataType eDataType, Object instanceValue) {
- return convertPagesTypeToString(EdatatypeColumnPackage.Literals.PAGES_TYPE, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String createTitleTypeFromString(EDataType eDataType, String initialValue) {
- return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertTitleTypeToString(EDataType eDataType, Object instanceValue) {
- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BigDecimal createWeightTypeFromString(EDataType eDataType, String initialValue) {
- return (BigDecimal)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DECIMAL, initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertWeightTypeToString(EDataType eDataType, Object instanceValue) {
- return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.DECIMAL, instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnPackage getEdatatypeColumnPackage() {
- return (EdatatypeColumnPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static EdatatypeColumnPackage getPackage() {
- return EdatatypeColumnPackage.eINSTANCE;
- }
-
-} //EdatatypeColumnFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnPackageImpl.java
deleted file mode 100644
index ca8c92d25..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/EdatatypeColumnPackageImpl.java
+++ /dev/null
@@ -1,427 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnPackageImpl.java,v 1.2 2007/02/08 23:09:27 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl;
-
-import java.math.BigDecimal;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.Book;
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.EdatatypeColumnPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdatatypeColumnPackageImpl extends EPackageImpl implements EdatatypeColumnPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass bookEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EDataType pagesTypeEDataType = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EDataType pagesTypeObjectEDataType = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EDataType titleTypeEDataType = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EDataType weightTypeEDataType = 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.edatatypeColumn.EdatatypeColumnPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private EdatatypeColumnPackageImpl() {
- super(eNS_URI, EdatatypeColumnFactory.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 EdatatypeColumnPackage init() {
- if (isInited) return (EdatatypeColumnPackage)EPackage.Registry.INSTANCE.getEPackage(EdatatypeColumnPackage.eNS_URI);
-
- // Obtain or create and register package
- EdatatypeColumnPackageImpl theEdatatypeColumnPackage = (EdatatypeColumnPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EdatatypeColumnPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EdatatypeColumnPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theEdatatypeColumnPackage.createPackageContents();
-
- // Initialize created meta-data
- theEdatatypeColumnPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theEdatatypeColumnPackage.freeze();
-
- return theEdatatypeColumnPackage;
- }
-
- /**
- * <!-- 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_Weight() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBook_Author() {
- return (EAttribute)bookEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EDataType getPagesType() {
- return pagesTypeEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EDataType getPagesTypeObject() {
- return pagesTypeObjectEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EDataType getTitleType() {
- return titleTypeEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EDataType getWeightType() {
- return weightTypeEDataType;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnFactory getEdatatypeColumnFactory() {
- return (EdatatypeColumnFactory)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__WEIGHT);
- createEAttribute(bookEClass, BOOK__AUTHOR);
-
- // Create data types
- pagesTypeEDataType = createEDataType(PAGES_TYPE);
- pagesTypeObjectEDataType = createEDataType(PAGES_TYPE_OBJECT);
- titleTypeEDataType = createEDataType(TITLE_TYPE);
- weightTypeEDataType = createEDataType(WEIGHT_TYPE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // 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(), this.getTitleType(), "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(), this.getPagesType(), "pages", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBook_Weight(), this.getWeightType(), "weight", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getBook_Author(), theXMLTypePackage.getString(), "author", null, 1, 1, Book.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize data types
- initEDataType(pagesTypeEDataType, int.class, "PagesType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- initEDataType(pagesTypeObjectEDataType, Integer.class, "PagesTypeObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- initEDataType(titleTypeEDataType, String.class, "TitleType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
- initEDataType(weightTypeEDataType, BigDecimal.class, "WeightType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // teneo.jpa
- createTeneoAnnotations();
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (bookEClass,
- source,
- new String[] {
- "appinfo", "@Table(name=\"mybooktable\")"
- });
- addAnnotation
- (getBook_Title(),
- source,
- new String[] {
- "appinfo", "@Column(name=\"titel\" unique=\"true\" length=\"25\")"
- });
- addAnnotation
- (pagesTypeEDataType,
- source,
- new String[] {
- "appinfo", "@Column(updatable=\"false\" insertable=\"false\")"
- });
- addAnnotation
- (titleTypeEDataType,
- source,
- new String[] {
- "appinfo", "@Column(name=\"mytitle\" unique=\"false\" length=\"50\")"
- });
- addAnnotation
- (weightTypeEDataType,
- source,
- new String[] {
- "appinfo", "@Column(name=\"gewicht\" nullable=\"true\" precision=\"5\" scale=\"2\")"
- });
- }
-
- /**
- * 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_Weight(),
- source,
- new String[] {
- "kind", "element",
- "name", "weight"
- });
- addAnnotation
- (getBook_Author(),
- source,
- new String[] {
- "kind", "element",
- "name", "author"
- });
- addAnnotation
- (pagesTypeEDataType,
- source,
- new String[] {
- "name", "PagesType",
- "baseType", "http://www.eclipse.org/emf/2003/XMLType#int"
- });
- addAnnotation
- (pagesTypeObjectEDataType,
- source,
- new String[] {
- "name", "PagesType:Object",
- "baseType", "PagesType"
- });
- addAnnotation
- (titleTypeEDataType,
- source,
- new String[] {
- "name", "TitleType",
- "baseType", "http://www.eclipse.org/emf/2003/XMLType#string"
- });
- addAnnotation
- (weightTypeEDataType,
- source,
- new String[] {
- "name", "WeightType",
- "baseType", "http://www.eclipse.org/emf/2003/XMLType#decimal"
- });
- }
-
-} //EdatatypeColumnPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/package.jdo b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/package.jdo
deleted file mode 100644
index ac64b4d2a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/impl/package.jdo
+++ /dev/null
@@ -1,27 +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.edatatypeColumn.impl">
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.impl.BookImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="mybooktable" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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="none">
- <column name="titel" allows-null="true" length="25"/>
- <unique>
- <column name="titel" allows-null="true" length="25"/>
- </unique>
- </field>
- <field name="pages" persistence-modifier="none"/>
- <field name="weight" persistence-modifier="persistent" null-value="none" embedded="true">
- <column name="gewicht" allows-null="true" length="5" scale="2"/>
- </field>
- <field name="author" persistence-modifier="persistent" null-value="exception"/>
- </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/edatatypeColumn/model/edatatypeColumn.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatypeColumn.ecore
deleted file mode 100644
index 9a9907e02..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatypeColumn.ecore
+++ /dev/null
@@ -1,80 +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="edatatypeColumn"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column"
- nsPrefix="edatatypeColumn">
- <eClassifiers xsi:type="ecore:EClass" name="Book">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Table(name=&quot;mybooktable&quot;)"/>
- </eAnnotations>
- <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="#//TitleType">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Column(name=&quot;titel&quot; unique=&quot;true&quot; length=&quot;25&quot;)"/>
- </eAnnotations>
- <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="#//PagesType" 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="weight" unique="false"
- lowerBound="1" eType="#//WeightType">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="weight"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="author" 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="author"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="PagesType" instanceClassName="int">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Column(updatable=&quot;false&quot; insertable=&quot;false&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="PagesType"/>
- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#int"/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="PagesTypeObject" instanceClassName="java.lang.Integer">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="PagesType:Object"/>
- <details key="baseType" value="PagesType"/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="TitleType" instanceClassName="java.lang.String">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Column(name=&quot;mytitle&quot; unique=&quot;false&quot; length=&quot;50&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="TitleType"/>
- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/>
- </eAnnotations>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EDataType" name="WeightType" instanceClassName="java.math.BigDecimal">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Column(name=&quot;gewicht&quot; nullable=&quot;true&quot; precision=&quot;5&quot; scale=&quot;2&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="WeightType"/>
- <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#decimal"/>
- </eAnnotations>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.genmodel
deleted file mode 100644
index c7753f484..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.genmodel
+++ /dev/null
@@ -1,21 +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="Edatatype_column" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>edatatype_column.xsd</foreignModel>
- <genPackages prefix="EdatatypeColumn" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="edatatypeColumn.ecore#/">
- <genDataTypes ecoreDataType="edatatypeColumn.ecore#//PagesType"/>
- <genDataTypes ecoreDataType="edatatypeColumn.ecore#//PagesTypeObject"/>
- <genDataTypes ecoreDataType="edatatypeColumn.ecore#//TitleType"/>
- <genDataTypes ecoreDataType="edatatypeColumn.ecore#//WeightType"/>
- <genClasses ecoreClass="edatatypeColumn.ecore#//Book">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute edatatypeColumn.ecore#//Book/title"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute edatatypeColumn.ecore#//Book/pages"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute edatatypeColumn.ecore#//Book/weight"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute edatatypeColumn.ecore#//Book/author"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.xsd
deleted file mode 100644
index e74e3edf5..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/model/edatatype_column.xsd
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns="http://www.eclipse.org/emf/teneo/samples/emf/annotations/edatatype_column"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:complexType name="Book">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Table(name="mybooktable")</xsd:appinfo>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="title" type="TitleType">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Column(name="titel" unique="true" length="25")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="pages" type="PagesType"/>
- <xsd:element name="weight" type="WeightType"/>
- <xsd:element name="author" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:simpleType name="TitleType">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Column(name="mytitle" unique="false" length="50")</xsd:appinfo>
- </xsd:annotation>
- <xsd:restriction base="xsd:string">
- </xsd:restriction>
- </xsd:simpleType>
-
- <xsd:simpleType name="PagesType">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Column(updatable="false" insertable="false")</xsd:appinfo>
- </xsd:annotation>
- <xsd:restriction base="xsd:int">
- </xsd:restriction>
- </xsd:simpleType>
-
- <xsd:simpleType name="WeightType">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Column(name="gewicht" nullable="true" precision="5" scale="2")</xsd:appinfo>
- </xsd:annotation>
- <xsd:restriction base="xsd:decimal">
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnAdapterFactory.java
deleted file mode 100644
index 295d609c5..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnAdapterFactory.java
+++ /dev/null
@@ -1,124 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnAdapterFactory.java,v 1.2 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.*;
-
-/**
- * <!-- 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.edatatypeColumn.EdatatypeColumnPackage
- * @generated
- */
-public class EdatatypeColumnAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static EdatatypeColumnPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = EdatatypeColumnPackage.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 EdatatypeColumnSwitch<Adapter> modelSwitch =
- new EdatatypeColumnSwitch<Adapter>() {
- @Override
- public Adapter caseBook(Book object) {
- return createBookAdapter();
- }
- @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.edatatypeColumn.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.edatatypeColumn.Book
- * @generated
- */
- public Adapter createBookAdapter() {
- 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;
- }
-
-} //EdatatypeColumnAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceFactoryImpl.java
deleted file mode 100644
index 7d6a97464..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnResourceFactoryImpl.java,v 1.2 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.util.EdatatypeColumnResourceImpl
- * @generated
- */
-public class EdatatypeColumnResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new EdatatypeColumnResourceImpl(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;
- }
-
-} //EdatatypeColumnResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceImpl.java
deleted file mode 100644
index d4beb7995..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnResourceImpl.java,v 1.1 2006/09/06 21:58:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.util.EdatatypeColumnResourceFactoryImpl
- * @generated
- */
-public class EdatatypeColumnResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public EdatatypeColumnResourceImpl(URI uri) {
- super(uri);
- }
-
-} //EdatatypeColumnResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnSwitch.java
deleted file mode 100644
index 8b88aabc8..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnSwitch.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnSwitch.java,v 1.2 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.*;
-
-/**
- * <!-- 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.edatatypeColumn.EdatatypeColumnPackage
- * @generated
- */
-public class EdatatypeColumnSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static EdatatypeColumnPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnSwitch() {
- if (modelPackage == null) {
- modelPackage = EdatatypeColumnPackage.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 EdatatypeColumnPackage.BOOK: {
- Book book = (Book)theEObject;
- T result = caseBook(book);
- 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>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;
- }
-
-} //EdatatypeColumnSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnXMLProcessor.java
deleted file mode 100644
index 209227b46..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/util/EdatatypeColumnXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EdatatypeColumnXMLProcessor.java,v 1.2 2007/02/08 23:09:25 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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.edatatypeColumn.EdatatypeColumnPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdatatypeColumnXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdatatypeColumnXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- EdatatypeColumnPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the EdatatypeColumnResourceFactoryImpl 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 EdatatypeColumnResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new EdatatypeColumnResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //EdatatypeColumnXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/validation/BookValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/validation/BookValidator.java
deleted file mode 100644
index 04af6dd9a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/edatatypeColumn/validation/BookValidator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BookValidator.java,v 1.1 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.validation;
-
-import java.math.BigDecimal;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.edatatypeColumn.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 validateWeight(BigDecimal value);
- boolean validateAuthor(String value);
-}

Back to the top