All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.afplib.afplib.impl.PTD1Impl Maven / Gradle / Ivy

Go to download

Java object library able to read and write AFP (Advanced Function Presentation) files.

There is a newer version: 0.0.15
Show newest version
/**
 */
package org.afplib.afplib.impl;

import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.PTD1;

import org.afplib.base.impl.SFImpl;

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 'PTD1'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.afplib.afplib.impl.PTD1Impl#getXPBASE XPBASE}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getYPBASE YPBASE}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getXPUNITVL XPUNITVL}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getYPUNITVL YPUNITVL}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getXPEXTENT XPEXTENT}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getYPEXTENT YPEXTENT}
  • *
  • {@link org.afplib.afplib.impl.PTD1Impl#getRESERVED RESERVED}
  • *
*

* * @generated */ public class PTD1Impl extends SFImpl implements PTD1 { /** * The default value of the '{@link #getXPBASE() XPBASE}' attribute. * * * @see #getXPBASE() * @generated * @ordered */ protected static final Integer XPBASE_EDEFAULT = null; /** * The cached value of the '{@link #getXPBASE() XPBASE}' attribute. * * * @see #getXPBASE() * @generated * @ordered */ protected Integer xpbase = XPBASE_EDEFAULT; /** * The default value of the '{@link #getYPBASE() YPBASE}' attribute. * * * @see #getYPBASE() * @generated * @ordered */ protected static final Integer YPBASE_EDEFAULT = null; /** * The cached value of the '{@link #getYPBASE() YPBASE}' attribute. * * * @see #getYPBASE() * @generated * @ordered */ protected Integer ypbase = YPBASE_EDEFAULT; /** * The default value of the '{@link #getXPUNITVL() XPUNITVL}' attribute. * * * @see #getXPUNITVL() * @generated * @ordered */ protected static final Integer XPUNITVL_EDEFAULT = null; /** * The cached value of the '{@link #getXPUNITVL() XPUNITVL}' attribute. * * * @see #getXPUNITVL() * @generated * @ordered */ protected Integer xpunitvl = XPUNITVL_EDEFAULT; /** * The default value of the '{@link #getYPUNITVL() YPUNITVL}' attribute. * * * @see #getYPUNITVL() * @generated * @ordered */ protected static final Integer YPUNITVL_EDEFAULT = null; /** * The cached value of the '{@link #getYPUNITVL() YPUNITVL}' attribute. * * * @see #getYPUNITVL() * @generated * @ordered */ protected Integer ypunitvl = YPUNITVL_EDEFAULT; /** * The default value of the '{@link #getXPEXTENT() XPEXTENT}' attribute. * * * @see #getXPEXTENT() * @generated * @ordered */ protected static final Integer XPEXTENT_EDEFAULT = null; /** * The cached value of the '{@link #getXPEXTENT() XPEXTENT}' attribute. * * * @see #getXPEXTENT() * @generated * @ordered */ protected Integer xpextent = XPEXTENT_EDEFAULT; /** * The default value of the '{@link #getYPEXTENT() YPEXTENT}' attribute. * * * @see #getYPEXTENT() * @generated * @ordered */ protected static final Integer YPEXTENT_EDEFAULT = null; /** * The cached value of the '{@link #getYPEXTENT() YPEXTENT}' attribute. * * * @see #getYPEXTENT() * @generated * @ordered */ protected Integer ypextent = YPEXTENT_EDEFAULT; /** * The default value of the '{@link #getRESERVED() RESERVED}' attribute. * * * @see #getRESERVED() * @generated * @ordered */ protected static final Integer RESERVED_EDEFAULT = null; /** * The cached value of the '{@link #getRESERVED() RESERVED}' attribute. * * * @see #getRESERVED() * @generated * @ordered */ protected Integer reserved = RESERVED_EDEFAULT; /** * * * @generated */ protected PTD1Impl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return AfplibPackage.eINSTANCE.getPTD1(); } /** * * * @generated */ public Integer getXPBASE() { return xpbase; } /** * * * @generated */ public void setXPBASE(Integer newXPBASE) { Integer oldXPBASE = xpbase; xpbase = newXPBASE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__XPBASE, oldXPBASE, xpbase)); } /** * * * @generated */ public Integer getYPBASE() { return ypbase; } /** * * * @generated */ public void setYPBASE(Integer newYPBASE) { Integer oldYPBASE = ypbase; ypbase = newYPBASE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__YPBASE, oldYPBASE, ypbase)); } /** * * * @generated */ public Integer getXPUNITVL() { return xpunitvl; } /** * * * @generated */ public void setXPUNITVL(Integer newXPUNITVL) { Integer oldXPUNITVL = xpunitvl; xpunitvl = newXPUNITVL; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__XPUNITVL, oldXPUNITVL, xpunitvl)); } /** * * * @generated */ public Integer getYPUNITVL() { return ypunitvl; } /** * * * @generated */ public void setYPUNITVL(Integer newYPUNITVL) { Integer oldYPUNITVL = ypunitvl; ypunitvl = newYPUNITVL; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__YPUNITVL, oldYPUNITVL, ypunitvl)); } /** * * * @generated */ public Integer getXPEXTENT() { return xpextent; } /** * * * @generated */ public void setXPEXTENT(Integer newXPEXTENT) { Integer oldXPEXTENT = xpextent; xpextent = newXPEXTENT; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__XPEXTENT, oldXPEXTENT, xpextent)); } /** * * * @generated */ public Integer getYPEXTENT() { return ypextent; } /** * * * @generated */ public void setYPEXTENT(Integer newYPEXTENT) { Integer oldYPEXTENT = ypextent; ypextent = newYPEXTENT; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__YPEXTENT, oldYPEXTENT, ypextent)); } /** * * * @generated */ public Integer getRESERVED() { return reserved; } /** * * * @generated */ public void setRESERVED(Integer newRESERVED) { Integer oldRESERVED = reserved; reserved = newRESERVED; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__RESERVED, oldRESERVED, reserved)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.PTD1__XPBASE: return getXPBASE(); case AfplibPackage.PTD1__YPBASE: return getYPBASE(); case AfplibPackage.PTD1__XPUNITVL: return getXPUNITVL(); case AfplibPackage.PTD1__YPUNITVL: return getYPUNITVL(); case AfplibPackage.PTD1__XPEXTENT: return getXPEXTENT(); case AfplibPackage.PTD1__YPEXTENT: return getYPEXTENT(); case AfplibPackage.PTD1__RESERVED: return getRESERVED(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.PTD1__XPBASE: setXPBASE((Integer)newValue); return; case AfplibPackage.PTD1__YPBASE: setYPBASE((Integer)newValue); return; case AfplibPackage.PTD1__XPUNITVL: setXPUNITVL((Integer)newValue); return; case AfplibPackage.PTD1__YPUNITVL: setYPUNITVL((Integer)newValue); return; case AfplibPackage.PTD1__XPEXTENT: setXPEXTENT((Integer)newValue); return; case AfplibPackage.PTD1__YPEXTENT: setYPEXTENT((Integer)newValue); return; case AfplibPackage.PTD1__RESERVED: setRESERVED((Integer)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.PTD1__XPBASE: setXPBASE(XPBASE_EDEFAULT); return; case AfplibPackage.PTD1__YPBASE: setYPBASE(YPBASE_EDEFAULT); return; case AfplibPackage.PTD1__XPUNITVL: setXPUNITVL(XPUNITVL_EDEFAULT); return; case AfplibPackage.PTD1__YPUNITVL: setYPUNITVL(YPUNITVL_EDEFAULT); return; case AfplibPackage.PTD1__XPEXTENT: setXPEXTENT(XPEXTENT_EDEFAULT); return; case AfplibPackage.PTD1__YPEXTENT: setYPEXTENT(YPEXTENT_EDEFAULT); return; case AfplibPackage.PTD1__RESERVED: setRESERVED(RESERVED_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.PTD1__XPBASE: return XPBASE_EDEFAULT == null ? xpbase != null : !XPBASE_EDEFAULT.equals(xpbase); case AfplibPackage.PTD1__YPBASE: return YPBASE_EDEFAULT == null ? ypbase != null : !YPBASE_EDEFAULT.equals(ypbase); case AfplibPackage.PTD1__XPUNITVL: return XPUNITVL_EDEFAULT == null ? xpunitvl != null : !XPUNITVL_EDEFAULT.equals(xpunitvl); case AfplibPackage.PTD1__YPUNITVL: return YPUNITVL_EDEFAULT == null ? ypunitvl != null : !YPUNITVL_EDEFAULT.equals(ypunitvl); case AfplibPackage.PTD1__XPEXTENT: return XPEXTENT_EDEFAULT == null ? xpextent != null : !XPEXTENT_EDEFAULT.equals(xpextent); case AfplibPackage.PTD1__YPEXTENT: return YPEXTENT_EDEFAULT == null ? ypextent != null : !YPEXTENT_EDEFAULT.equals(ypextent); case AfplibPackage.PTD1__RESERVED: return RESERVED_EDEFAULT == null ? reserved != null : !RESERVED_EDEFAULT.equals(reserved); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (XPBASE: "); result.append(xpbase); result.append(", YPBASE: "); result.append(ypbase); result.append(", XPUNITVL: "); result.append(xpunitvl); result.append(", YPUNITVL: "); result.append(ypunitvl); result.append(", XPEXTENT: "); result.append(xpextent); result.append(", YPEXTENT: "); result.append(ypextent); result.append(", RESERVED: "); result.append(reserved); result.append(')'); return result.toString(); } } //PTD1Impl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy