1 7 package Olj.impl; 8 9 import Olj.OljPackage; 10 import Olj.RestartCounterType; 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 RestartCounterTypeImpl extends EObjectImpl implements RestartCounterType { 37 45 protected static final String IMPORT_DEFINITION_COLUMN_NAME_EDEFAULT = null; 46 47 55 protected String importDefinitionColumnName = IMPORT_DEFINITION_COLUMN_NAME_EDEFAULT; 56 57 65 protected static final String RESTART_AUTO_CREATE_EDEFAULT = null; 66 67 75 protected String restartAutoCreate = RESTART_AUTO_CREATE_EDEFAULT; 76 77 85 protected static final String RESTART_COUNTER_COLUMN_NAME_EDEFAULT = null; 86 87 95 protected String restartCounterColumnName = RESTART_COUNTER_COLUMN_NAME_EDEFAULT; 96 97 105 protected static final String TABLE_NAME_EDEFAULT = null; 106 107 115 protected String tableName = TABLE_NAME_EDEFAULT; 116 117 122 protected RestartCounterTypeImpl() { 123 super(); 124 } 125 126 131 protected EClass eStaticClass() { 132 return OljPackage.eINSTANCE.getRestartCounterType(); 133 } 134 135 140 public String getImportDefinitionColumnName() { 141 return importDefinitionColumnName; 142 } 143 144 149 public void setImportDefinitionColumnName(String newImportDefinitionColumnName) { 150 String oldImportDefinitionColumnName = importDefinitionColumnName; 151 importDefinitionColumnName = newImportDefinitionColumnName; 152 if (eNotificationRequired()) 153 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.RESTART_COUNTER_TYPE__IMPORT_DEFINITION_COLUMN_NAME, oldImportDefinitionColumnName, importDefinitionColumnName)); 154 } 155 156 161 public String getRestartAutoCreate() { 162 return restartAutoCreate; 163 } 164 165 170 public void setRestartAutoCreate(String newRestartAutoCreate) { 171 String oldRestartAutoCreate = restartAutoCreate; 172 restartAutoCreate = newRestartAutoCreate; 173 if (eNotificationRequired()) 174 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.RESTART_COUNTER_TYPE__RESTART_AUTO_CREATE, oldRestartAutoCreate, restartAutoCreate)); 175 } 176 177 182 public String getRestartCounterColumnName() { 183 return restartCounterColumnName; 184 } 185 186 191 public void setRestartCounterColumnName(String newRestartCounterColumnName) { 192 String oldRestartCounterColumnName = restartCounterColumnName; 193 restartCounterColumnName = newRestartCounterColumnName; 194 if (eNotificationRequired()) 195 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.RESTART_COUNTER_TYPE__RESTART_COUNTER_COLUMN_NAME, oldRestartCounterColumnName, restartCounterColumnName)); 196 } 197 198 203 public String getTableName() { 204 return tableName; 205 } 206 207 212 public void setTableName(String newTableName) { 213 String oldTableName = tableName; 214 tableName = newTableName; 215 if (eNotificationRequired()) 216 eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.RESTART_COUNTER_TYPE__TABLE_NAME, oldTableName, tableName)); 217 } 218 219 224 public Object eGet(EStructuralFeature eFeature, boolean resolve) { 225 switch (eDerivedStructuralFeatureID(eFeature)) { 226 case OljPackage.RESTART_COUNTER_TYPE__IMPORT_DEFINITION_COLUMN_NAME: 227 return getImportDefinitionColumnName(); 228 case OljPackage.RESTART_COUNTER_TYPE__RESTART_AUTO_CREATE: 229 return getRestartAutoCreate(); 230 case OljPackage.RESTART_COUNTER_TYPE__RESTART_COUNTER_COLUMN_NAME: 231 return getRestartCounterColumnName(); 232 case OljPackage.RESTART_COUNTER_TYPE__TABLE_NAME: 233 return getTableName(); 234 } 235 return eDynamicGet(eFeature, resolve); 236 } 237 238 243 public void eSet(EStructuralFeature eFeature, Object newValue) { 244 switch (eDerivedStructuralFeatureID(eFeature)) { 245 case OljPackage.RESTART_COUNTER_TYPE__IMPORT_DEFINITION_COLUMN_NAME: 246 setImportDefinitionColumnName((String )newValue); 247 return; 248 case OljPackage.RESTART_COUNTER_TYPE__RESTART_AUTO_CREATE: 249 setRestartAutoCreate((String )newValue); 250 return; 251 case OljPackage.RESTART_COUNTER_TYPE__RESTART_COUNTER_COLUMN_NAME: 252 setRestartCounterColumnName((String )newValue); 253 return; 254 case OljPackage.RESTART_COUNTER_TYPE__TABLE_NAME: 255 setTableName((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.RESTART_COUNTER_TYPE__IMPORT_DEFINITION_COLUMN_NAME: 269 setImportDefinitionColumnName(IMPORT_DEFINITION_COLUMN_NAME_EDEFAULT); 270 return; 271 case OljPackage.RESTART_COUNTER_TYPE__RESTART_AUTO_CREATE: 272 setRestartAutoCreate(RESTART_AUTO_CREATE_EDEFAULT); 273 return; 274 case OljPackage.RESTART_COUNTER_TYPE__RESTART_COUNTER_COLUMN_NAME: 275 setRestartCounterColumnName(RESTART_COUNTER_COLUMN_NAME_EDEFAULT); 276 return; 277 case OljPackage.RESTART_COUNTER_TYPE__TABLE_NAME: 278 setTableName(TABLE_NAME_EDEFAULT); 279 return; 280 } 281 eDynamicUnset(eFeature); 282 } 283 284 289 public boolean eIsSet(EStructuralFeature eFeature) { 290 switch (eDerivedStructuralFeatureID(eFeature)) { 291 case OljPackage.RESTART_COUNTER_TYPE__IMPORT_DEFINITION_COLUMN_NAME: 292 return IMPORT_DEFINITION_COLUMN_NAME_EDEFAULT == null ? importDefinitionColumnName != null : !IMPORT_DEFINITION_COLUMN_NAME_EDEFAULT.equals(importDefinitionColumnName); 293 case OljPackage.RESTART_COUNTER_TYPE__RESTART_AUTO_CREATE: 294 return RESTART_AUTO_CREATE_EDEFAULT == null ? restartAutoCreate != null : !RESTART_AUTO_CREATE_EDEFAULT.equals(restartAutoCreate); 295 case OljPackage.RESTART_COUNTER_TYPE__RESTART_COUNTER_COLUMN_NAME: 296 return RESTART_COUNTER_COLUMN_NAME_EDEFAULT == null ? restartCounterColumnName != null : !RESTART_COUNTER_COLUMN_NAME_EDEFAULT.equals(restartCounterColumnName); 297 case OljPackage.RESTART_COUNTER_TYPE__TABLE_NAME: 298 return TABLE_NAME_EDEFAULT == null ? tableName != null : !TABLE_NAME_EDEFAULT.equals(tableName); 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(" (importDefinitionColumnName: "); 313 result.append(importDefinitionColumnName); 314 result.append(", restartAutoCreate: "); 315 result.append(restartAutoCreate); 316 result.append(", restartCounterColumnName: "); 317 result.append(restartCounterColumnName); 318 result.append(", tableName: "); 319 result.append(tableName); 320 result.append(')'); 321 return result.toString(); 322 } 323 324 } | Popular Tags |