/**
* Copyright (c) 2004 - 2011 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.etypes.impl;
import org.eclipse.emf.cdo.etypes.Annotation;
import org.eclipse.emf.cdo.etypes.EtypesPackage;
import org.eclipse.emf.cdo.etypes.ModelElement;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
/**
* An implementation of the model object 'Annotation'.
*
* @since 4.0
* @noextend This interface is not intended to be extended by clients.
*
* The following features are implemented:
*
* - {@link org.eclipse.emf.cdo.etypes.impl.AnnotationImpl#getSource Source}
* - {@link org.eclipse.emf.cdo.etypes.impl.AnnotationImpl#getDetails Details}
* - {@link org.eclipse.emf.cdo.etypes.impl.AnnotationImpl#getModelElement Model Element}
* - {@link org.eclipse.emf.cdo.etypes.impl.AnnotationImpl#getContents Contents}
* - {@link org.eclipse.emf.cdo.etypes.impl.AnnotationImpl#getReferences References}
*
*
* @generated
*/
public class AnnotationImpl extends ModelElementImpl implements Annotation
{
/**
*
*
* @generated
*/
protected AnnotationImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return EtypesPackage.Literals.ANNOTATION;
}
/**
*
*
* @generated
*/
public String getSource()
{
return (String)eGet(EtypesPackage.Literals.ANNOTATION__SOURCE, true);
}
/**
*
*
* @generated
*/
public void setSource(String newSource)
{
eSet(EtypesPackage.Literals.ANNOTATION__SOURCE, newSource);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EMap getDetails()
{
return (EMap)eGet(EtypesPackage.Literals.ANNOTATION__DETAILS, true);
}
/**
*
*
* @generated
*/
public ModelElement getModelElement()
{
return (ModelElement)eGet(EtypesPackage.Literals.ANNOTATION__MODEL_ELEMENT, true);
}
/**
*
*
* @generated
*/
public void setModelElement(ModelElement newModelElement)
{
eSet(EtypesPackage.Literals.ANNOTATION__MODEL_ELEMENT, newModelElement);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getContents()
{
return (EList)eGet(EtypesPackage.Literals.ANNOTATION__CONTENTS, true);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
public EList getReferences()
{
return (EList)eGet(EtypesPackage.Literals.ANNOTATION__REFERENCES, true);
}
} // AnnotationImpl