diff options
author | Martin Taal | 2011-11-01 18:12:35 +0000 |
---|---|---|
committer | Martin Taal | 2011-11-01 18:12:35 +0000 |
commit | 97842a213a338601aa158b3d9f995f464bb25681 (patch) | |
tree | 5b9a657ccdce9960b252f3bc8dcc09a2626bd711 /eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java | |
parent | 709ec105b89258b5e6b27e57cb3deb177529c54c (diff) | |
download | org.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.tar.gz org.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.tar.xz org.eclipse.emf.teneo-97842a213a338601aa158b3d9f995f464bb25681.zip |
New structure
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java')
-rwxr-xr-x | eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java | 163 |
1 files changed, 163 insertions, 0 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java new file mode 100755 index 000000000..e7682554a --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.examples.library/src/org/eclipse/emf/teneo/eclipselink/examples/library/impl/AddressImpl.java @@ -0,0 +1,163 @@ +/** + * <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 |