/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.obeonetwork.dsl.entityrelation.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
import org.obeonetwork.dsl.entityrelation.EntityRelationPackage;
import org.obeonetwork.dsl.entityrelation.LogicalElement;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Logical Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.obeonetwork.dsl.entityrelation.impl.LogicalElementImpl#getID <em>ID</em>}</li>
* <li>{@link org.obeonetwork.dsl.entityrelation.impl.LogicalElementImpl#getComments <em>Comments</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public abstract class LogicalElementImpl extends CDOObjectImpl implements LogicalElement {
/**
* The default value of the '{@link #getID() <em>ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getID()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The default value of the '{@link #getComments() <em>Comments</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComments()
* @generated
* @ordered
*/
protected static final String COMMENTS_EDEFAULT = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LogicalElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EntityRelationPackage.Literals.LOGICAL_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getID() {
return (String)eDynamicGet(EntityRelationPackage.LOGICAL_ELEMENT__ID, EntityRelationPackage.Literals.LOGICAL_ELEMENT__ID, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getComments() {
return (String)eDynamicGet(EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS, EntityRelationPackage.Literals.LOGICAL_ELEMENT__COMMENTS, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setComments(String newComments) {
eDynamicSet(EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS, EntityRelationPackage.Literals.LOGICAL_ELEMENT__COMMENTS, newComments);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case EntityRelationPackage.LOGICAL_ELEMENT__ID:
return getID();
case EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS:
return getComments();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS:
setComments((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS:
setComments(COMMENTS_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case EntityRelationPackage.LOGICAL_ELEMENT__ID:
return ID_EDEFAULT == null ? getID() != null : !ID_EDEFAULT.equals(getID());
case EntityRelationPackage.LOGICAL_ELEMENT__COMMENTS:
return COMMENTS_EDEFAULT == null ? getComments() != null : !COMMENTS_EDEFAULT.equals(getComments());
}
return super.eIsSet(featureID);
}
} //LogicalElementImpl