1 7 package Olj.impl; 8 9 import Olj.OljPackage; 10 import Olj.TargetColumnType; 11 12 import org.eclipse.emf.common.notify.Notification; 13 14 import org.eclipse.emf.ecore.EClass; 15 import org.eclipse.emf.ecore.EStructuralFeature; 16 17 import org.eclipse.emf.ecore.impl.ENotificationImpl; 18 import org.eclipse.emf.ecore.impl.EObjectImpl; 19 20 36 public class TargetColumnTypeImpl extends EObjectImpl implements TargetColumnType { 37 45 protected static final String NAME_EDEFAULT = null; 46 47 55 protected String name = NAME_EDEFAULT; 56 57 65 protected static final String TABLE_ID_EDEFAULT = null; 66 67 75 protected String tableID = TABLE_ID_EDEFAULT; 76 77 85 protected static final String TABLE_NAME_EDEFAULT = null; 86 87 95 protected String tableName = TABLE_NAME_EDEFAULT; 96 97 105 protected static final String VALUE_MODE_EDEFAULT = null; 106 107 115 protected String valueMode = VALUE_MODE_EDEFAULT; 116 117 122 protected TargetColumnTypeImpl() { 123 super(); 124 } 125 126 131 protected EClass eStaticClass() { 132 return OljPackage.eINSTANCE.getTargetColumnType(); 133 } 134 135 140 public String getName() { 141 return name; 142 } 143 144 149 public void setName(String newName) { 150 String oldName = name; 151 name = newName; 152 if (eNotificationRequired()) 153 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.TARGET_COLUMN_TYPE__NAME, oldName, name)); 154 } 155 156 161 public String getTableID() { 162 return tableID; 163 } 164 165 170 public void setTableID(String newTableID) { 171 String oldTableID = tableID; 172 tableID = newTableID; 173 if (eNotificationRequired()) 174 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.TARGET_COLUMN_TYPE__TABLE_ID, oldTableID, tableID)); 175 } 176 177 182 public String getTableName() { 183 return tableName; 184 } 185 186 191 public void setTableName(String newTableName) { 192 String oldTableName = tableName; 193 tableName = newTableName; 194 if (eNotificationRequired()) 195 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.TARGET_COLUMN_TYPE__TABLE_NAME, oldTableName, tableName)); 196 } 197 198 203 public String getValueMode() { 204 return valueMode; 205 } 206 207 212 public void setValueMode(String newValueMode) { 213 String oldValueMode = valueMode; 214 valueMode = newValueMode; 215 if (eNotificationRequired()) 216 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.TARGET_COLUMN_TYPE__VALUE_MODE, oldValueMode, valueMode)); 217 } 218 219 224 public Object eGet(EStructuralFeature eFeature, boolean resolve) { 225 switch (eDerivedStructuralFeatureID(eFeature)) { 226 case OljPackage.TARGET_COLUMN_TYPE__NAME: 227 return getName(); 228 case OljPackage.TARGET_COLUMN_TYPE__TABLE_ID: 229 return getTableID(); 230 case OljPackage.TARGET_COLUMN_TYPE__TABLE_NAME: 231 return getTableName(); 232 case OljPackage.TARGET_COLUMN_TYPE__VALUE_MODE: 233 return getValueMode(); 234 } 235 return eDynamicGet(eFeature, resolve); 236 } 237 238 243 public void eSet(EStructuralFeature eFeature, Object newValue) { 244 switch (eDerivedStructuralFeatureID(eFeature)) { 245 case OljPackage.TARGET_COLUMN_TYPE__NAME: 246 setName((String )newValue); 247 return; 248 case OljPackage.TARGET_COLUMN_TYPE__TABLE_ID: 249 setTableID((String )newValue); 250 return; 251 case OljPackage.TARGET_COLUMN_TYPE__TABLE_NAME: 252 setTableName((String )newValue); 253 return; 254 case OljPackage.TARGET_COLUMN_TYPE__VALUE_MODE: 255 setValueMode((String )newValue); 256 return; 257 } 258 eDynamicSet(eFeature, newValue); 259 } 260 261 266 public void eUnset(EStructuralFeature eFeature) { 267 switch (eDerivedStructuralFeatureID(eFeature)) { 268 case OljPackage.TARGET_COLUMN_TYPE__NAME: 269 setName(NAME_EDEFAULT); 270 return; 271 case OljPackage.TARGET_COLUMN_TYPE__TABLE_ID: 272 setTableID(TABLE_ID_EDEFAULT); 273 return; 274 case OljPackage.TARGET_COLUMN_TYPE__TABLE_NAME: 275 setTableName(TABLE_NAME_EDEFAULT); 276 return; 277 case OljPackage.TARGET_COLUMN_TYPE__VALUE_MODE: 278 setValueMode(VALUE_MODE_EDEFAULT); 279 return; 280 } 281 eDynamicUnset(eFeature); 282 } 283 284 289 public boolean eIsSet(EStructuralFeature eFeature) { 290 switch (eDerivedStructuralFeatureID(eFeature)) { 291 case OljPackage.TARGET_COLUMN_TYPE__NAME: 292 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); 293 case OljPackage.TARGET_COLUMN_TYPE__TABLE_ID: 294 return TABLE_ID_EDEFAULT == null ? tableID != null : !TABLE_ID_EDEFAULT.equals(tableID); 295 case OljPackage.TARGET_COLUMN_TYPE__TABLE_NAME: 296 return TABLE_NAME_EDEFAULT == null ? tableName != null : !TABLE_NAME_EDEFAULT.equals(tableName); 297 case OljPackage.TARGET_COLUMN_TYPE__VALUE_MODE: 298 return VALUE_MODE_EDEFAULT == null ? valueMode != null : !VALUE_MODE_EDEFAULT.equals(valueMode); 299 } 300 return eDynamicIsSet(eFeature); 301 } 302 303 308 public String toString() { 309 if (eIsProxy()) return super.toString(); 310 311 StringBuffer result = new StringBuffer (super.toString()); 312 result.append(" (name: "); 313 result.append(name); 314 result.append(", tableID: "); 315 result.append(tableID); 316 result.append(", tableName: "); 317 result.append(tableName); 318 result.append(", valueMode: "); 319 result.append(valueMode); 320 result.append(')'); 321 return result.toString(); 322 } 323 324 } | Popular Tags |