/** * <copyright> * </copyright> * * $Id$ */ package es.tid.cim.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import es.tid.cim.CimPackage; import es.tid.cim.EnumDirection; import es.tid.cim.FilterList; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Filter List</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link es.tid.cim.impl.FilterListImpl#getCreationClassName <em>Creation Class Name</em>}</li> * <li>{@link es.tid.cim.impl.FilterListImpl#getDirection <em>Direction</em>}</li> * <li>{@link es.tid.cim.impl.FilterListImpl#getSystemCreationClassName <em>System Creation Class Name</em>}</li> * <li>{@link es.tid.cim.impl.FilterListImpl#getSystemName <em>System Name</em>}</li> * </ul> * </p> * * @generated */ public class FilterListImpl extends LogicalElementImpl implements FilterList { /** * The default value of the '{@link #getCreationClassName() <em>Creation Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCreationClassName() * @generated * @ordered */ protected static final String CREATION_CLASS_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getCreationClassName() <em>Creation Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getCreationClassName() * @generated * @ordered */ protected String creationClassName = CREATION_CLASS_NAME_EDEFAULT; /** * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDirection() * @generated * @ordered */ protected static final EnumDirection DIRECTION_EDEFAULT = EnumDirection.NOT_APPLICABLE; /** * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDirection() * @generated * @ordered */ protected EnumDirection direction = DIRECTION_EDEFAULT; /** * The default value of the '{@link #getSystemCreationClassName() <em>System Creation Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSystemCreationClassName() * @generated * @ordered */ protected static final String SYSTEM_CREATION_CLASS_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getSystemCreationClassName() <em>System Creation Class Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSystemCreationClassName() * @generated * @ordered */ protected String systemCreationClassName = SYSTEM_CREATION_CLASS_NAME_EDEFAULT; /** * The default value of the '{@link #getSystemName() <em>System Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSystemName() * @generated * @ordered */ protected static final String SYSTEM_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getSystemName() <em>System Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSystemName() * @generated * @ordered */ protected String systemName = SYSTEM_NAME_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected FilterListImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return CimPackage.eINSTANCE.getFilterList(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getCreationClassName() { return creationClassName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setCreationClassName(String newCreationClassName) { String oldCreationClassName = creationClassName; creationClassName = newCreationClassName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CimPackage.FILTER_LIST__CREATION_CLASS_NAME, oldCreationClassName, creationClassName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EnumDirection getDirection() { return direction; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDirection(EnumDirection newDirection) { EnumDirection oldDirection = direction; direction = newDirection == null ? DIRECTION_EDEFAULT : newDirection; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CimPackage.FILTER_LIST__DIRECTION, oldDirection, direction)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getSystemCreationClassName() { return systemCreationClassName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSystemCreationClassName(String newSystemCreationClassName) { String oldSystemCreationClassName = systemCreationClassName; systemCreationClassName = newSystemCreationClassName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CimPackage.FILTER_LIST__SYSTEM_CREATION_CLASS_NAME, oldSystemCreationClassName, systemCreationClassName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getSystemName() { return systemName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSystemName(String newSystemName) { String oldSystemName = systemName; systemName = newSystemName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CimPackage.FILTER_LIST__SYSTEM_NAME, oldSystemName, systemName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CimPackage.FILTER_LIST__CREATION_CLASS_NAME: return getCreationClassName(); case CimPackage.FILTER_LIST__DIRECTION: return getDirection(); case CimPackage.FILTER_LIST__SYSTEM_CREATION_CLASS_NAME: return getSystemCreationClassName(); case CimPackage.FILTER_LIST__SYSTEM_NAME: return getSystemName(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CimPackage.FILTER_LIST__CREATION_CLASS_NAME: setCreationClassName((String)newValue); return; case CimPackage.FILTER_LIST__DIRECTION: setDirection((EnumDirection)newValue); return; case CimPackage.FILTER_LIST__SYSTEM_CREATION_CLASS_NAME: setSystemCreationClassName((String)newValue); return; case CimPackage.FILTER_LIST__SYSTEM_NAME: setSystemName((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CimPackage.FILTER_LIST__CREATION_CLASS_NAME: setCreationClassName(CREATION_CLASS_NAME_EDEFAULT); return; case CimPackage.FILTER_LIST__DIRECTION: setDirection(DIRECTION_EDEFAULT); return; case CimPackage.FILTER_LIST__SYSTEM_CREATION_CLASS_NAME: setSystemCreationClassName(SYSTEM_CREATION_CLASS_NAME_EDEFAULT); return; case CimPackage.FILTER_LIST__SYSTEM_NAME: setSystemName(SYSTEM_NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CimPackage.FILTER_LIST__CREATION_CLASS_NAME: return CREATION_CLASS_NAME_EDEFAULT == null ? creationClassName != null : !CREATION_CLASS_NAME_EDEFAULT.equals(creationClassName); case CimPackage.FILTER_LIST__DIRECTION: return direction != DIRECTION_EDEFAULT; case CimPackage.FILTER_LIST__SYSTEM_CREATION_CLASS_NAME: return SYSTEM_CREATION_CLASS_NAME_EDEFAULT == null ? systemCreationClassName != null : !SYSTEM_CREATION_CLASS_NAME_EDEFAULT.equals(systemCreationClassName); case CimPackage.FILTER_LIST__SYSTEM_NAME: return SYSTEM_NAME_EDEFAULT == null ? systemName != null : !SYSTEM_NAME_EDEFAULT.equals(systemName); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (creationClassName: "); result.append(creationClassName); result.append(", direction: "); result.append(direction); result.append(", systemCreationClassName: "); result.append(systemCreationClassName); result.append(", systemName: "); result.append(systemName); result.append(')'); return result.toString(); } } //FilterListImpl