/*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* 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:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.tests.model6.impl;
import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
import org.eclipse.emf.cdo.tests.model6.Model6Package;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
/**
* An implementation of the model object 'Containment Object'.
*
* The following features are implemented:
*
* - {@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentOptional Containment
* Optional}
* - {@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentList Containment List}
*
*
*
* @generated
*/
public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject
{
/**
*
* @generated
*/
protected ContainmentObjectImpl()
{
super();
}
/**
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return Model6Package.Literals.CONTAINMENT_OBJECT;
}
/**
*
* @generated
*/
public BaseObject getContainmentOptional()
{
return (BaseObject)eGet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, true);
}
/**
*
* @generated
*/
public void setContainmentOptional(BaseObject newContainmentOptional)
{
eSet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, newContainmentOptional);
}
/**
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getContainmentList()
{
return (EList)eGet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_LIST, true);
}
} // ContainmentObjectImpl