/** * 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.common.util.URI; import org.eclipse.emf.ecore.EClass; import org.eclipse.mylyn.docs.intent.core.modelingunit.ModelingUnitInstructionReference; import org.eclipse.mylyn.docs.intent.core.modelingunit.ModelingUnitPackage; import org.eclipse.mylyn.docs.intent.core.modelingunit.ResourceDeclaration; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Resource Declaration</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.ResourceDeclarationImpl#getUri <em>Uri</em>}</li> * <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.ResourceDeclarationImpl#getName <em>Name</em>}</li> * <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.ResourceDeclarationImpl#getContentType <em>Content Type</em>}</li> * <li>{@link org.eclipse.mylyn.docs.intent.core.modelingunit.impl.ResourceDeclarationImpl#getContent <em>Content</em>}</li> * </ul> * </p> * * @generated */ public class ResourceDeclarationImpl extends ModelingUnitInstructionImpl implements ResourceDeclaration { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ResourceDeclarationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return ModelingUnitPackage.Literals.RESOURCE_DECLARATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public URI getUri() { return (URI)eGet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__URI, true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setUri(URI newUri) { eSet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__URI, newUri); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return (String)eGet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__NAME, true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { eSet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__NAME, newName); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getContentType() { return (String)eGet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__CONTENT_TYPE, true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setContentType(String newContentType) { eSet(ModelingUnitPackage.Literals.RESOURCE_DECLARATION__CONTENT_TYPE, newContentType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") public EList<ModelingUnitInstructionReference> getContent() { return (EList<ModelingUnitInstructionReference>)eGet( ModelingUnitPackage.Literals.RESOURCE_DECLARATION__CONTENT, true); } } //ResourceDeclarationImpl