blob: e129fdd1dfbfaaba2fe2c6dd5579c19bf3a065cb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 Fundación Tecnalia Research & Innovation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Huascar Espinoza - initial API and implementation
* Alejandra Ruíz - initial API and implementation
* Idoya Del Río - initial API and implementation
* Mari Carmen Palacios - initial API and implementation
* Angel López - initial API and implementation
*******************************************************************************/
/**
*/
package org.eclipse.opencert.sam.arg.arg.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.opencert.sam.arg.arg.ArgPackage;
import org.eclipse.opencert.sam.arg.arg.ArgumentationElement;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Argumentation Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.opencert.sam.arg.arg.impl.ArgumentationElementImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.opencert.sam.arg.arg.impl.ArgumentationElementImpl#getContent <em>Content</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public abstract class ArgumentationElementImpl extends ModelElementImpl implements ArgumentationElement {
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The default value of the '{@link #getContent() <em>Content</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getContent()
* @generated
* @ordered
*/
protected static final String CONTENT_EDEFAULT = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ArgumentationElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ArgPackage.Literals.ARGUMENTATION_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescription() {
return (String)eDynamicGet(ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION, ArgPackage.Literals.ARGUMENTATION_ELEMENT__DESCRIPTION, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(String newDescription) {
eDynamicSet(ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION, ArgPackage.Literals.ARGUMENTATION_ELEMENT__DESCRIPTION, newDescription);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getContent() {
return (String)eDynamicGet(ArgPackage.ARGUMENTATION_ELEMENT__CONTENT, ArgPackage.Literals.ARGUMENTATION_ELEMENT__CONTENT, true, true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setContent(String newContent) {
eDynamicSet(ArgPackage.ARGUMENTATION_ELEMENT__CONTENT, ArgPackage.Literals.ARGUMENTATION_ELEMENT__CONTENT, newContent);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION:
return getDescription();
case ArgPackage.ARGUMENTATION_ELEMENT__CONTENT:
return getContent();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION:
setDescription((String)newValue);
return;
case ArgPackage.ARGUMENTATION_ELEMENT__CONTENT:
setContent((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case ArgPackage.ARGUMENTATION_ELEMENT__CONTENT:
setContent(CONTENT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ArgPackage.ARGUMENTATION_ELEMENT__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? getDescription() != null : !DESCRIPTION_EDEFAULT.equals(getDescription());
case ArgPackage.ARGUMENTATION_ELEMENT__CONTENT:
return CONTENT_EDEFAULT == null ? getContent() != null : !CONTENT_EDEFAULT.equals(getContent());
}
return super.eIsSet(featureID);
}
} //ArgumentationElementImpl