/** * * * * $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 'Credit Report'. * * *

* The following features are supported: *

*

* * @generated */ public class CreditReport extends DataObjectImpl { /** * The default value of the '{@link #getScore() Score}' attribute. * * * @see #getScore() * @generated * @ordered */ protected static final int SCORE_EDEFAULT = 0; /** * The cached value of the '{@link #getScore() Score}' attribute. * * * @see #getScore() * @generated * @ordered */ protected int score = SCORE_EDEFAULT; /** * * * @generated */ protected CreditReport() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return DoclitPackage.Literals.CREDIT_REPORT; } /** * Returns the value of the 'Score' attribute. * *

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

* * @return the value of the 'Score' attribute. * @see #setScore(int) * @generated */ public int getScore() { return score; } /** * Sets the value of the '{@link org.example.creditscore.doclit.CreditReport#getScore Score}' attribute. * * * @param value the new value of the 'Score' attribute. * @see #getScore() * @generated */ public void setScore(int newScore) { score = newScore; } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DoclitPackage.CREDIT_REPORT__SCORE: return new Integer(getScore()); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case DoclitPackage.CREDIT_REPORT__SCORE: setScore(((Integer)newValue).intValue()); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case DoclitPackage.CREDIT_REPORT__SCORE: setScore(SCORE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case DoclitPackage.CREDIT_REPORT__SCORE: return score != SCORE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (score: "); result.append(score); result.append(')'); return result.toString(); } } // CreditReport