001: /**
002: * <copyright>
003: * </copyright>
004: *
005: * $Id$
006: */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl;
007:
008: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.EmailConsumerReply;
009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
010:
011: import org.eclipse.emf.common.notify.Notification;
012:
013: import org.eclipse.emf.ecore.EClass;
014:
015: import org.eclipse.emf.ecore.impl.ENotificationImpl;
016:
017: /**
018: * <!-- begin-user-doc -->
019: * An implementation of the model object '<em><b>Email Consumer Reply</b></em>'.
020: * <!-- end-user-doc -->
021: * <p>
022: * The following features are implemented:
023: * <ul>
024: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.EmailConsumerReplyImpl#getReplyCharset <em>Reply Charset</em>}</li>
025: * </ul>
026: * </p>
027: *
028: * @generated
029: */
030: public class EmailConsumerReplyImpl extends ConnectionImpl implements
031: EmailConsumerReply {
032: /**
033: * <!-- begin-user-doc -->
034: * <!-- end-user-doc -->
035: * @generated
036: */
037: public static final String copyright = "Copyright, Bostech Corp.";
038:
039: /**
040: * The default value of the '{@link #getReplyCharset() <em>Reply Charset</em>}' attribute.
041: * <!-- begin-user-doc -->
042: * <!-- end-user-doc -->
043: * @see #getReplyCharset()
044: * @generated
045: * @ordered
046: */
047: protected static final String REPLY_CHARSET_EDEFAULT = null;
048:
049: /**
050: * The cached value of the '{@link #getReplyCharset() <em>Reply Charset</em>}' attribute.
051: * <!-- begin-user-doc -->
052: * <!-- end-user-doc -->
053: * @see #getReplyCharset()
054: * @generated
055: * @ordered
056: */
057: protected String replyCharset = REPLY_CHARSET_EDEFAULT;
058:
059: /**
060: * <!-- begin-user-doc -->
061: * <!-- end-user-doc -->
062: * @generated
063: */
064: protected EmailConsumerReplyImpl() {
065: super ();
066: }
067:
068: /**
069: * <!-- begin-user-doc -->
070: * <!-- end-user-doc -->
071: * @generated
072: */
073: protected EClass eStaticClass() {
074: return componentflowPackage.Literals.EMAIL_CONSUMER_REPLY;
075: }
076:
077: /**
078: * <!-- begin-user-doc -->
079: * <!-- end-user-doc -->
080: * @generated
081: */
082: public String getReplyCharset() {
083: return replyCharset;
084: }
085:
086: /**
087: * <!-- begin-user-doc -->
088: * <!-- end-user-doc -->
089: * @generated
090: */
091: public void setReplyCharset(String newReplyCharset) {
092: String oldReplyCharset = replyCharset;
093: replyCharset = newReplyCharset;
094: if (eNotificationRequired())
095: eNotify(new ENotificationImpl(
096: this ,
097: Notification.SET,
098: componentflowPackage.EMAIL_CONSUMER_REPLY__REPLY_CHARSET,
099: oldReplyCharset, replyCharset));
100: }
101:
102: /**
103: * <!-- begin-user-doc -->
104: * <!-- end-user-doc -->
105: * @generated
106: */
107: public Object eGet(int featureID, boolean resolve, boolean coreType) {
108: switch (featureID) {
109: case componentflowPackage.EMAIL_CONSUMER_REPLY__REPLY_CHARSET:
110: return getReplyCharset();
111: }
112: return super .eGet(featureID, resolve, coreType);
113: }
114:
115: /**
116: * <!-- begin-user-doc -->
117: * <!-- end-user-doc -->
118: * @generated
119: */
120: public void eSet(int featureID, Object newValue) {
121: switch (featureID) {
122: case componentflowPackage.EMAIL_CONSUMER_REPLY__REPLY_CHARSET:
123: setReplyCharset((String) newValue);
124: return;
125: }
126: super .eSet(featureID, newValue);
127: }
128:
129: /**
130: * <!-- begin-user-doc -->
131: * <!-- end-user-doc -->
132: * @generated
133: */
134: public void eUnset(int featureID) {
135: switch (featureID) {
136: case componentflowPackage.EMAIL_CONSUMER_REPLY__REPLY_CHARSET:
137: setReplyCharset(REPLY_CHARSET_EDEFAULT);
138: return;
139: }
140: super .eUnset(featureID);
141: }
142:
143: /**
144: * <!-- begin-user-doc -->
145: * <!-- end-user-doc -->
146: * @generated
147: */
148: public boolean eIsSet(int featureID) {
149: switch (featureID) {
150: case componentflowPackage.EMAIL_CONSUMER_REPLY__REPLY_CHARSET:
151: return REPLY_CHARSET_EDEFAULT == null ? replyCharset != null
152: : !REPLY_CHARSET_EDEFAULT.equals(replyCharset);
153: }
154: return super .eIsSet(featureID);
155: }
156:
157: /**
158: * <!-- begin-user-doc -->
159: * <!-- end-user-doc -->
160: * @generated
161: */
162: public String toString() {
163: if (eIsProxy())
164: return super .toString();
165:
166: StringBuffer result = new StringBuffer(super .toString());
167: result.append(" (replyCharset: ");
168: result.append(replyCharset);
169: result.append(')');
170: return result.toString();
171: }
172:
173: } //EmailConsumerReplyImpl
|