/** * <copyright> * </copyright> * * $Id$ */ package at.bestsolution.efxclipse.formats.fxg.fxg.impl; import at.bestsolution.efxclipse.formats.fxg.fxg.ColorMatrixFilter; import at.bestsolution.efxclipse.formats.fxg.fxg.FxgPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Color Matrix Filter</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link at.bestsolution.efxclipse.formats.fxg.fxg.impl.ColorMatrixFilterImpl#getMatrix <em>Matrix</em>}</li> * </ul> * </p> * * @generated */ public class ColorMatrixFilterImpl extends EObjectImpl implements ColorMatrixFilter { /** * The default value of the '{@link #getMatrix() <em>Matrix</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMatrix() * @generated * @ordered */ protected static final String MATRIX_EDEFAULT = null; /** * The cached value of the '{@link #getMatrix() <em>Matrix</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMatrix() * @generated * @ordered */ protected String matrix = MATRIX_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ColorMatrixFilterImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return FxgPackage.Literals.COLOR_MATRIX_FILTER; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getMatrix() { return matrix; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMatrix(String newMatrix) { String oldMatrix = matrix; matrix = newMatrix; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.COLOR_MATRIX_FILTER__MATRIX, oldMatrix, matrix)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FxgPackage.COLOR_MATRIX_FILTER__MATRIX: return getMatrix(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case FxgPackage.COLOR_MATRIX_FILTER__MATRIX: setMatrix((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case FxgPackage.COLOR_MATRIX_FILTER__MATRIX: setMatrix(MATRIX_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case FxgPackage.COLOR_MATRIX_FILTER__MATRIX: return MATRIX_EDEFAULT == null ? matrix != null : !MATRIX_EDEFAULT.equals(matrix); } 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(" (matrix: "); result.append(matrix); result.append(')'); return result.toString(); } } //ColorMatrixFilterImpl