org.afplib.afplib.impl.GEIMGImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of afplib Show documentation
Show all versions of afplib Show documentation
Java object library able to read and write AFP (Advanced Function Presentation) files.
/**
*/
package org.afplib.afplib.impl;
import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.GEIMG;
import org.afplib.base.impl.TripletImpl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
*
* An implementation of the model object 'GEIMG'.
*
*
* The following features are implemented:
*
* - {@link org.afplib.afplib.impl.GEIMGImpl#getDATA DATA}
*
*
*
* @generated
*/
public class GEIMGImpl extends TripletImpl implements GEIMG {
/**
* The default value of the '{@link #getDATA() DATA}' attribute.
*
*
* @see #getDATA()
* @generated
* @ordered
*/
protected static final byte[] DATA_EDEFAULT = null;
/**
* The cached value of the '{@link #getDATA() DATA}' attribute.
*
*
* @see #getDATA()
* @generated
* @ordered
*/
protected byte[] data = DATA_EDEFAULT;
/**
*
*
* @generated
*/
protected GEIMGImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AfplibPackage.eINSTANCE.getGEIMG();
}
/**
*
*
* @generated
*/
public byte[] getDATA() {
return data;
}
/**
*
*
* @generated
*/
public void setDATA(byte[] newDATA) {
byte[] oldDATA = data;
data = newDATA;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GEIMG__DATA, oldDATA, data));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.GEIMG__DATA:
return getDATA();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.GEIMG__DATA:
setDATA((byte[])newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AfplibPackage.GEIMG__DATA:
setDATA(DATA_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.GEIMG__DATA:
return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (DATA: ");
result.append(data);
result.append(')');
return result.toString();
}
} //GEIMGImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy