diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java')
-rw-r--r-- | examples/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java | 163 |
1 files changed, 0 insertions, 163 deletions
diff --git a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java b/examples/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java deleted file mode 100644 index e7682554a..000000000 --- a/examples/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java +++ /dev/null @@ -1,163 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: AddressImpl.java,v 1.4 2010/04/22 17:57:42 mtaal Exp $ - */ -package org.eclipse.emf.teneo.eclipselink.examples.library.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.teneo.eclipselink.examples.library.Address; -import org.eclipse.emf.teneo.eclipselink.examples.library.LibraryPackage; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Address</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.eclipselink.examples.library.impl.AddressImpl#getTown <em>Town</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class AddressImpl extends IdentifiableImpl implements Address { - /** - * The default value of the '{@link #getTown() <em>Town</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTown() - * @generated - * @ordered - */ - protected static final String TOWN_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTown() <em>Town</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTown() - * @generated - * @ordered - */ - protected String town = TOWN_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AddressImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return LibraryPackage.Literals.ADDRESS; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getTown() { - return town; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTown(String newTown) { - String oldTown = town; - town = newTown; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, LibraryPackage.ADDRESS__TOWN, oldTown, town)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case LibraryPackage.ADDRESS__TOWN: - return getTown(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case LibraryPackage.ADDRESS__TOWN: - setTown((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case LibraryPackage.ADDRESS__TOWN: - setTown(TOWN_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case LibraryPackage.ADDRESS__TOWN: - return TOWN_EDEFAULT == null ? town != null : !TOWN_EDEFAULT.equals(town); - } - 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(" (town: "); //$NON-NLS-1$ - result.append(town); - result.append(')'); - return result.toString(); - } - -} //AddressImpl |