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

org.afplib.afplib.impl.ImageSubsamplingImpl 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 java.util.Collection;

import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.ImageSubsampling;

import org.afplib.base.Triplet;

import org.afplib.base.impl.TripletImpl;

import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 * 
 * An implementation of the model object 'Image Subsampling'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.afplib.afplib.impl.ImageSubsamplingImpl#getSdfs Sdfs}
  • *
*

* * @generated */ public class ImageSubsamplingImpl extends TripletImpl implements ImageSubsampling { /** * The cached value of the '{@link #getSdfs() Sdfs}' containment reference list. * * * @see #getSdfs() * @generated * @ordered */ protected EList sdfs; /** * * * @generated */ protected ImageSubsamplingImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return AfplibPackage.eINSTANCE.getImageSubsampling(); } /** * * * @generated */ public EList getSdfs() { if (sdfs == null) { sdfs = new EObjectContainmentEList.Resolving(Triplet.class, this, AfplibPackage.IMAGE_SUBSAMPLING__SDFS); } return sdfs; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case AfplibPackage.IMAGE_SUBSAMPLING__SDFS: return ((InternalEList)getSdfs()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.IMAGE_SUBSAMPLING__SDFS: return getSdfs(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.IMAGE_SUBSAMPLING__SDFS: getSdfs().clear(); getSdfs().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.IMAGE_SUBSAMPLING__SDFS: getSdfs().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.IMAGE_SUBSAMPLING__SDFS: return sdfs != null && !sdfs.isEmpty(); } return super.eIsSet(featureID); } } //ImageSubsamplingImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy