/**
 */
package org.etsi.mts.tdl.structuredobjectives.impl;

import java.lang.reflect.InvocationTargetException;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.etsi.mts.tdl.Comment;

import org.etsi.mts.tdl.impl.PackageableElementImpl;

import org.etsi.mts.tdl.structuredobjectives.Element;
import org.etsi.mts.tdl.structuredobjectives.PICS;
import org.etsi.mts.tdl.structuredobjectives.StructuredObjectivesPackage;
import org.etsi.mts.tdl.structuredobjectives.StructuredTestObjective;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>PICS</b></em>'.
 * <!-- end-user-doc -->
 *
 * @generated
 */
public class PICSImpl extends PackageableElementImpl implements PICS
{
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PICSImpl()
	{
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass()
	{
		return StructuredObjectivesPackage.Literals.PICS;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public StructuredTestObjective getTestObjective()
	{
		// TODO: implement this method
		// Ensure that you remove @generated or mark it @generated NOT
		throw new UnsupportedOperationException();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean contains(Element object)
	{
		// TODO: implement this method
		// Ensure that you remove @generated or mark it @generated NOT
		throw new UnsupportedOperationException();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EList<Comment> getNotes()
	{
		// TODO: implement this method
		// Ensure that you remove @generated or mark it @generated NOT
		throw new UnsupportedOperationException();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
	{
		if (baseClass == Element.class)
		{
			switch (baseOperationID)
			{
				case StructuredObjectivesPackage.ELEMENT___GET_TEST_OBJECTIVE: return StructuredObjectivesPackage.PICS___GET_TEST_OBJECTIVE;
				case StructuredObjectivesPackage.ELEMENT___CONTAINS__ELEMENT: return StructuredObjectivesPackage.PICS___CONTAINS__ELEMENT;
				case StructuredObjectivesPackage.ELEMENT___GET_NOTES: return StructuredObjectivesPackage.PICS___GET_NOTES;
				default: return -1;
			}
		}
		return super.eDerivedOperationID(baseOperationID, baseClass);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
	{
		switch (operationID)
		{
			case StructuredObjectivesPackage.PICS___GET_TEST_OBJECTIVE:
				return getTestObjective();
			case StructuredObjectivesPackage.PICS___CONTAINS__ELEMENT:
				return contains((Element)arguments.get(0));
			case StructuredObjectivesPackage.PICS___GET_NOTES:
				return getNotes();
		}
		return super.eInvoke(operationID, arguments);
	}

} //PICSImpl
