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/associationoverride/impl/AddressImpl.java')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/impl/AddressImpl.java221
1 files changed, 0 insertions, 221 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/impl/AddressImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/impl/AddressImpl.java
deleted file mode 100644
index 198cb574f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/impl/AddressImpl.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: AddressImpl.java,v 1.4 2010/02/06 18:17:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.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.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.Address;
-import org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.AssociationoverridePackage;
-
-/**
- * <!-- 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.samples.emf.annotations.associationoverride.impl.AddressImpl#getStreet <em>Street</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.associationoverride.impl.AddressImpl#getPostalCode <em>Postal Code</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AddressImpl extends EObjectImpl implements Address {
- /**
- * The default value of the '{@link #getStreet() <em>Street</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStreet()
- * @generated
- * @ordered
- */
- protected static final String STREET_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getStreet() <em>Street</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getStreet()
- * @generated
- * @ordered
- */
- protected String street = STREET_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPostalCode() <em>Postal Code</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPostalCode()
- * @generated
- * @ordered
- */
- protected static final String POSTAL_CODE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPostalCode() <em>Postal Code</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPostalCode()
- * @generated
- * @ordered
- */
- protected String postalCode = POSTAL_CODE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AddressImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return AssociationoverridePackage.Literals.ADDRESS;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getStreet() {
- return street;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setStreet(String newStreet) {
- String oldStreet = street;
- street = newStreet;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AssociationoverridePackage.ADDRESS__STREET, oldStreet, street));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getPostalCode() {
- return postalCode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPostalCode(String newPostalCode) {
- String oldPostalCode = postalCode;
- postalCode = newPostalCode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AssociationoverridePackage.ADDRESS__POSTAL_CODE, oldPostalCode, postalCode));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case AssociationoverridePackage.ADDRESS__STREET:
- return getStreet();
- case AssociationoverridePackage.ADDRESS__POSTAL_CODE:
- return getPostalCode();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case AssociationoverridePackage.ADDRESS__STREET:
- setStreet((String)newValue);
- return;
- case AssociationoverridePackage.ADDRESS__POSTAL_CODE:
- setPostalCode((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case AssociationoverridePackage.ADDRESS__STREET:
- setStreet(STREET_EDEFAULT);
- return;
- case AssociationoverridePackage.ADDRESS__POSTAL_CODE:
- setPostalCode(POSTAL_CODE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case AssociationoverridePackage.ADDRESS__STREET:
- return STREET_EDEFAULT == null ? street != null : !STREET_EDEFAULT.equals(street);
- case AssociationoverridePackage.ADDRESS__POSTAL_CODE:
- return POSTAL_CODE_EDEFAULT == null ? postalCode != null : !POSTAL_CODE_EDEFAULT.equals(postalCode);
- }
- 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(" (street: ");
- result.append(street);
- result.append(", postalCode: ");
- result.append(postalCode);
- result.append(')');
- return result.toString();
- }
-
-} //AddressImpl \ No newline at end of file

Back to the top