/** * * * * $Id$ */ package org.example.creditscore.doclit; import org.apache.tuscany.sdo.impl.DataObjectImpl; import org.eclipse.emf.ecore.EClass; /** * * A representation of the model object 'Customer'. * * *

* The following features are supported: *

*

* * @generated */ public class Customer extends DataObjectImpl { /** * The default value of the '{@link #getSsn() Ssn}' attribute. * * * @see #getSsn() * @generated * @ordered */ protected static final String SSN_EDEFAULT = null; /** * The cached value of the '{@link #getSsn() Ssn}' attribute. * * * @see #getSsn() * @generated * @ordered */ protected String ssn = SSN_EDEFAULT; /** * The default value of the '{@link #getFirstName() First Name}' attribute. * * * @see #getFirstName() * @generated * @ordered */ protected static final String FIRST_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getFirstName() First Name}' attribute. * * * @see #getFirstName() * @generated * @ordered */ protected String firstName = FIRST_NAME_EDEFAULT; /** * The default value of the '{@link #getLastName() Last Name}' attribute. * * * @see #getLastName() * @generated * @ordered */ protected static final String LAST_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getLastName() Last Name}' attribute. * * * @see #getLastName() * @generated * @ordered */ protected String lastName = LAST_NAME_EDEFAULT; /** * * * @generated */ protected Customer() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return DoclitPackage.Literals.CUSTOMER; } /** * Returns the value of the 'Ssn' attribute. * *

* If the meaning of the 'Ssn' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Ssn' attribute. * @see #setSsn(String) * @generated */ public String getSsn() { return ssn; } /** * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getSsn Ssn}' attribute. * * * @param value the new value of the 'Ssn' attribute. * @see #getSsn() * @generated */ public void setSsn(String newSsn) { ssn = newSsn; } /** * Returns the value of the 'First Name' attribute. * *

* If the meaning of the 'First Name' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'First Name' attribute. * @see #setFirstName(String) * @generated */ public String getFirstName() { return firstName; } /** * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getFirstName First Name}' attribute. * * * @param value the new value of the 'First Name' attribute. * @see #getFirstName() * @generated */ public void setFirstName(String newFirstName) { firstName = newFirstName; } /** * Returns the value of the 'Last Name' attribute. * *

* If the meaning of the 'Last Name' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Last Name' attribute. * @see #setLastName(String) * @generated */ public String getLastName() { return lastName; } /** * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getLastName Last Name}' attribute. * * * @param value the new value of the 'Last Name' attribute. * @see #getLastName() * @generated */ public void setLastName(String newLastName) { lastName = newLastName; } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DoclitPackage.CUSTOMER__SSN: return getSsn(); case DoclitPackage.CUSTOMER__FIRST_NAME: return getFirstName(); case DoclitPackage.CUSTOMER__LAST_NAME: return getLastName(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case DoclitPackage.CUSTOMER__SSN: setSsn((String)newValue); return; case DoclitPackage.CUSTOMER__FIRST_NAME: setFirstName((String)newValue); return; case DoclitPackage.CUSTOMER__LAST_NAME: setLastName((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case DoclitPackage.CUSTOMER__SSN: setSsn(SSN_EDEFAULT); return; case DoclitPackage.CUSTOMER__FIRST_NAME: setFirstName(FIRST_NAME_EDEFAULT); return; case DoclitPackage.CUSTOMER__LAST_NAME: setLastName(LAST_NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case DoclitPackage.CUSTOMER__SSN: return SSN_EDEFAULT == null ? ssn != null : !SSN_EDEFAULT.equals(ssn); case DoclitPackage.CUSTOMER__FIRST_NAME: return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName); case DoclitPackage.CUSTOMER__LAST_NAME: return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (ssn: "); result.append(ssn); result.append(", firstName: "); result.append(firstName); result.append(", lastName: "); result.append(lastName); result.append(')'); return result.toString(); } } // Customer