/** * <copyright> * </copyright> * * $Id$ */ package edu.isistan.uima.unified.typesystems.impl; import edu.isistan.uima.unified.typesystems.IdentifiableAnnotation; import edu.isistan.uima.unified.typesystems.TypesystemsPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import uima.tcas.impl.AnnotationImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Identifiable Annotation</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link edu.isistan.uima.unified.typesystems.impl.IdentifiableAnnotationImpl#getIdentification <em>Identification</em>}</li> * </ul> * </p> * * @generated */ public class IdentifiableAnnotationImpl extends AnnotationImpl implements IdentifiableAnnotation { /** * The default value of the '{@link #getIdentification() <em>Identification</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getIdentification() * @generated * @ordered */ protected static final String IDENTIFICATION_EDEFAULT = null; /** * The cached value of the '{@link #getIdentification() <em>Identification</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getIdentification() * @generated * @ordered */ protected String identification = IDENTIFICATION_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected IdentifiableAnnotationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return TypesystemsPackage.Literals.IDENTIFIABLE_ANNOTATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getIdentification() { return identification; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setIdentification(String newIdentification) { String oldIdentification = identification; identification = newIdentification; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesystemsPackage.IDENTIFIABLE_ANNOTATION__IDENTIFICATION, oldIdentification, identification)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesystemsPackage.IDENTIFIABLE_ANNOTATION__IDENTIFICATION: return getIdentification(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesystemsPackage.IDENTIFIABLE_ANNOTATION__IDENTIFICATION: setIdentification((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesystemsPackage.IDENTIFIABLE_ANNOTATION__IDENTIFICATION: setIdentification(IDENTIFICATION_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case TypesystemsPackage.IDENTIFIABLE_ANNOTATION__IDENTIFICATION: return IDENTIFICATION_EDEFAULT == null ? identification != null : !IDENTIFICATION_EDEFAULT.equals(identification); } 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(" (identification: "); result.append(identification); result.append(')'); return result.toString(); } } //IdentifiableAnnotationImpl