/**
* Copyright (c) 2010, 2012 Obeo.
* 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:
* Obeo - initial API and implementation
*/
package org.eclipse.mylyn.docs.intent.core.modelingunit.impl;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.mylyn.docs.intent.core.modelingunit.InstanciationInstruction;
import org.eclipse.mylyn.docs.intent.core.modelingunit.ModelingUnitPackage;
import org.eclipse.mylyn.docs.intent.core.modelingunit.StructuralFeatureAffectation;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instanciation Instruction</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.InstanciationInstructionImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.InstanciationInstructionImpl#getStructuralFeatures <em>Structural Features</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class InstanciationInstructionImpl extends AbstractMetaTypeInstructionImpl implements InstanciationInstruction {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanciationInstructionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ModelingUnitPackage.Literals.INSTANCIATION_INSTRUCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return (String)eGet(ModelingUnitPackage.Literals.INSTANCIATION_INSTRUCTION__NAME, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
eSet(ModelingUnitPackage.Literals.INSTANCIATION_INSTRUCTION__NAME, newName);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
public EList<StructuralFeatureAffectation> getStructuralFeatures() {
return (EList<StructuralFeatureAffectation>)eGet(
ModelingUnitPackage.Literals.INSTANCIATION_INSTRUCTION__STRUCTURAL_FEATURES, true);
}
} //InstanciationInstructionImpl