blob: 9824f51f1ff16de8f582012b3987a7b00e119438 [file] [log] [blame]
/**
* <copyright>
* </copyright>
*
* $Id: DeliveryProcessImpl.java,v 1.3 2006/09/07 00:05:59 klow Exp $
*/
package org.eclipse.epf.xml.uma.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.BasicFeatureMap;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.epf.xml.uma.DeliveryProcess;
import org.eclipse.epf.xml.uma.UmaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Delivery Process</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.epf.xml.uma.impl.DeliveryProcessImpl#getGroup3 <em>Group3</em>}</li>
* <li>{@link org.eclipse.epf.xml.uma.impl.DeliveryProcessImpl#getCommunicationsMaterial <em>Communications Material</em>}</li>
* <li>{@link org.eclipse.epf.xml.uma.impl.DeliveryProcessImpl#getEducationMaterial <em>Education Material</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class DeliveryProcessImpl extends ProcessImpl implements DeliveryProcess {
/**
* The cached value of the '{@link #getGroup3() <em>Group3</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getGroup3()
* @generated
* @ordered
*/
protected FeatureMap group3 = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DeliveryProcessImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return UmaPackage.Literals.DELIVERY_PROCESS;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FeatureMap getGroup3() {
if (group3 == null) {
group3 = new BasicFeatureMap(this, UmaPackage.DELIVERY_PROCESS__GROUP3);
}
return group3;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getCommunicationsMaterial() {
return ((FeatureMap)getGroup3()).list(UmaPackage.Literals.DELIVERY_PROCESS__COMMUNICATIONS_MATERIAL);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList getEducationMaterial() {
return ((FeatureMap)getGroup3()).list(UmaPackage.Literals.DELIVERY_PROCESS__EDUCATION_MATERIAL);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case UmaPackage.DELIVERY_PROCESS__GROUP3:
return ((InternalEList)getGroup3()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case UmaPackage.DELIVERY_PROCESS__GROUP3:
if (coreType) return getGroup3();
return ((FeatureMap.Internal)getGroup3()).getWrapper();
case UmaPackage.DELIVERY_PROCESS__COMMUNICATIONS_MATERIAL:
return getCommunicationsMaterial();
case UmaPackage.DELIVERY_PROCESS__EDUCATION_MATERIAL:
return getEducationMaterial();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case UmaPackage.DELIVERY_PROCESS__GROUP3:
((FeatureMap.Internal)getGroup3()).set(newValue);
return;
case UmaPackage.DELIVERY_PROCESS__COMMUNICATIONS_MATERIAL:
getCommunicationsMaterial().clear();
getCommunicationsMaterial().addAll((Collection)newValue);
return;
case UmaPackage.DELIVERY_PROCESS__EDUCATION_MATERIAL:
getEducationMaterial().clear();
getEducationMaterial().addAll((Collection)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case UmaPackage.DELIVERY_PROCESS__GROUP3:
getGroup3().clear();
return;
case UmaPackage.DELIVERY_PROCESS__COMMUNICATIONS_MATERIAL:
getCommunicationsMaterial().clear();
return;
case UmaPackage.DELIVERY_PROCESS__EDUCATION_MATERIAL:
getEducationMaterial().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case UmaPackage.DELIVERY_PROCESS__GROUP3:
return group3 != null && !group3.isEmpty();
case UmaPackage.DELIVERY_PROCESS__COMMUNICATIONS_MATERIAL:
return !getCommunicationsMaterial().isEmpty();
case UmaPackage.DELIVERY_PROCESS__EDUCATION_MATERIAL:
return !getEducationMaterial().isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (group3: ");
result.append(group3);
result.append(')');
return result.toString();
}
} //DeliveryProcessImpl