/***********************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Actuate Corporation - initial API and implementation
 ***********************************************************************/

package org.eclipse.birt.chart.model.data.impl;

import org.eclipse.birt.chart.model.data.DataFactory;
import org.eclipse.birt.chart.model.data.DataPackage;
import org.eclipse.birt.chart.model.data.StockDataSet;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;

/**
 * <!-- begin-user-doc --> An implementation of the model object '<em><b>Stock Data Set</b></em>'. <!--
 * end-user-doc -->
 * <p>
 * </p>
 *
 * @generated
 */
public class StockDataSetImpl extends DataSetImpl implements StockDataSet
{

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 * @generated
	 */
	protected StockDataSetImpl( )
	{
		super( );
	}

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

	/**
	 * A convenience method to create an initialized 'StockDataSet' instance
	 * 
	 * @param oValues
	 *            The Collection (of StockEntry) or StockEntry[] of values associated with this dataset
	 * 
	 * @return
	 */
	public static final StockDataSet create( Object oValues )
	{
		final StockDataSet sds = DataFactory.eINSTANCE.createStockDataSet( );
		( (StockDataSetImpl) sds ).initialize( );
		sds.setValues( oValues );
		return sds;
	}

	/**
	 * This method performs any initialization of the instance when created
	 * 
	 * Note: Manually written
	 */
	protected void initialize( )
	{
	}

	/**
	 * A convenient method to get an instance copy. This is much faster than the
	 * ECoreUtil.copy().
	 */
	public StockDataSet copyInstance( )
	{
		StockDataSetImpl dest = new StockDataSetImpl( );
		dest.set( this );
		return dest;
	}

	protected void set( StockDataSet src )
	{
		super.set( src );

	}

	public static StockDataSet create( EObject parent, EReference ref )
	{
		return new StockDataSetImpl( );
	}

} //StockDataSetImpl
