org.nasdanika.models.pdf.impl.WordImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.pdf.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.nasdanika.models.pdf.PdfPackage;
import org.nasdanika.models.pdf.Word;
/**
*
* An implementation of the model object 'Word'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.pdf.impl.WordImpl#getText Text}
*
*
* @generated
*/
public class WordImpl extends MinimalEObjectImpl.Container implements Word {
/**
* The default value of the '{@link #getText() Text}' attribute.
*
*
* @see #getText()
* @generated
* @ordered
*/
protected static final String TEXT_EDEFAULT = null;
/**
*
*
* @generated
*/
protected WordImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return PdfPackage.Literals.WORD;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
@Override
public String getText() {
return (String)eDynamicGet(PdfPackage.WORD__TEXT, PdfPackage.Literals.WORD__TEXT, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setText(String newText) {
eDynamicSet(PdfPackage.WORD__TEXT, PdfPackage.Literals.WORD__TEXT, newText);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PdfPackage.WORD__TEXT:
return getText();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PdfPackage.WORD__TEXT:
setText((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PdfPackage.WORD__TEXT:
setText(TEXT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PdfPackage.WORD__TEXT:
return TEXT_EDEFAULT == null ? getText() != null : !TEXT_EDEFAULT.equals(getText());
}
return super.eIsSet(featureID);
}
} //WordImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy