Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java')
-rwxr-xr-xtests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java130
1 files changed, 53 insertions, 77 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java
index 154335698..b6912c2de 100755
--- a/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/src/org/eclipse/emf/teneo/samples/emf/hibernate/usertype/impl/AddressImpl.java
@@ -22,15 +22,11 @@ import org.eclipse.emf.teneo.samples.emf.hibernate.usertype.UsertypePackage;
* <p>
* The following features are implemented:
* <ul>
- * <li>
- * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl#getAddressInfo <em>
- * Address Info</em>}</li>
- * <li>
- * {@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl#getPerson <em>Person
- * </em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl#getAddressInfo <em>Address Info</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.emf.hibernate.usertype.impl.AddressImpl#getPerson <em>Person</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class AddressImpl extends EObjectImpl implements Address {
@@ -55,9 +51,9 @@ public class AddressImpl extends EObjectImpl implements Address {
protected String addressInfo = ADDRESS_INFO_EDEFAULT;
/**
- * The cached value of the '{@link #getPerson() <em>Person</em>}' reference. <!-- begin-user-doc
+ * The cached value of the '{@link #getPerson() <em>Person</em>}' reference.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
* @see #getPerson()
* @generated
* @ordered
@@ -66,7 +62,6 @@ public class AddressImpl extends EObjectImpl implements Address {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected AddressImpl() {
@@ -75,16 +70,15 @@ public class AddressImpl extends EObjectImpl implements Address {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
protected EClass eStaticClass() {
return UsertypePackage.Literals.ADDRESS;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getAddressInfo() {
@@ -93,30 +87,26 @@ public class AddressImpl extends EObjectImpl implements Address {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setAddressInfo(String newAddressInfo) {
String oldAddressInfo = addressInfo;
addressInfo = newAddressInfo;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, UsertypePackage.ADDRESS__ADDRESS_INFO,
- oldAddressInfo, addressInfo));
+ eNotify(new ENotificationImpl(this, Notification.SET, UsertypePackage.ADDRESS__ADDRESS_INFO, oldAddressInfo, addressInfo));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Person getPerson() {
if (person != null && person.eIsProxy()) {
- InternalEObject oldPerson = (InternalEObject) person;
- person = (Person) eResolveProxy(oldPerson);
+ InternalEObject oldPerson = (InternalEObject)person;
+ person = (Person)eResolveProxy(oldPerson);
if (person != oldPerson) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- UsertypePackage.ADDRESS__PERSON, oldPerson, person));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UsertypePackage.ADDRESS__PERSON, oldPerson, person));
}
}
return person;
@@ -124,7 +114,6 @@ public class AddressImpl extends EObjectImpl implements Address {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Person basicGetPerson() {
@@ -133,151 +122,138 @@ public class AddressImpl extends EObjectImpl implements Address {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetPerson(Person newPerson, NotificationChain msgs) {
Person oldPerson = person;
person = newPerson;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
- UsertypePackage.ADDRESS__PERSON, oldPerson, newPerson);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UsertypePackage.ADDRESS__PERSON, oldPerson, newPerson);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setPerson(Person newPerson) {
if (newPerson != person) {
NotificationChain msgs = null;
if (person != null)
- msgs = ((InternalEObject) person).eInverseRemove(this, UsertypePackage.PERSON__ADDRESSES,
- Person.class, msgs);
+ msgs = ((InternalEObject)person).eInverseRemove(this, UsertypePackage.PERSON__ADDRESSES, Person.class, msgs);
if (newPerson != null)
- msgs = ((InternalEObject) newPerson).eInverseAdd(this, UsertypePackage.PERSON__ADDRESSES,
- Person.class, msgs);
+ msgs = ((InternalEObject)newPerson).eInverseAdd(this, UsertypePackage.PERSON__ADDRESSES, Person.class, msgs);
msgs = basicSetPerson(newPerson, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, UsertypePackage.ADDRESS__PERSON,
- newPerson, newPerson));
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UsertypePackage.ADDRESS__PERSON, newPerson, newPerson));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case UsertypePackage.ADDRESS__PERSON:
- if (person != null)
- msgs = ((InternalEObject) person).eInverseRemove(this, UsertypePackage.PERSON__ADDRESSES,
- Person.class, msgs);
- return basicSetPerson((Person) otherEnd, msgs);
+ case UsertypePackage.ADDRESS__PERSON:
+ if (person != null)
+ msgs = ((InternalEObject)person).eInverseRemove(this, UsertypePackage.PERSON__ADDRESSES, Person.class, msgs);
+ return basicSetPerson((Person)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case UsertypePackage.ADDRESS__PERSON:
- return basicSetPerson(null, msgs);
+ case UsertypePackage.ADDRESS__PERSON:
+ return basicSetPerson(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case UsertypePackage.ADDRESS__ADDRESS_INFO:
- return getAddressInfo();
- case UsertypePackage.ADDRESS__PERSON:
- if (resolve)
- return getPerson();
- return basicGetPerson();
+ case UsertypePackage.ADDRESS__ADDRESS_INFO:
+ return getAddressInfo();
+ case UsertypePackage.ADDRESS__PERSON:
+ if (resolve) return getPerson();
+ return basicGetPerson();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case UsertypePackage.ADDRESS__ADDRESS_INFO:
- setAddressInfo((String) newValue);
- return;
- case UsertypePackage.ADDRESS__PERSON:
- setPerson((Person) newValue);
- return;
+ case UsertypePackage.ADDRESS__ADDRESS_INFO:
+ setAddressInfo((String)newValue);
+ return;
+ case UsertypePackage.ADDRESS__PERSON:
+ setPerson((Person)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public void eUnset(int featureID) {
switch (featureID) {
- case UsertypePackage.ADDRESS__ADDRESS_INFO:
- setAddressInfo(ADDRESS_INFO_EDEFAULT);
- return;
- case UsertypePackage.ADDRESS__PERSON:
- setPerson((Person) null);
- return;
+ case UsertypePackage.ADDRESS__ADDRESS_INFO:
+ setAddressInfo(ADDRESS_INFO_EDEFAULT);
+ return;
+ case UsertypePackage.ADDRESS__PERSON:
+ setPerson((Person)null);
+ return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case UsertypePackage.ADDRESS__ADDRESS_INFO:
- return ADDRESS_INFO_EDEFAULT == null ? addressInfo != null : !ADDRESS_INFO_EDEFAULT
- .equals(addressInfo);
- case UsertypePackage.ADDRESS__PERSON:
- return person != null;
+ case UsertypePackage.ADDRESS__ADDRESS_INFO:
+ return ADDRESS_INFO_EDEFAULT == null ? addressInfo != null : !ADDRESS_INFO_EDEFAULT.equals(addressInfo);
+ case UsertypePackage.ADDRESS__PERSON:
+ return person != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
+ @Override
public String toString() {
- if (eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (addressInfo: ");

Back to the top