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

de.opitzconsulting.orcasDsl.impl.RefPartitionsImpl Maven / Gradle / Ivy

/**
 */
package de.opitzconsulting.orcasDsl.impl;

import de.opitzconsulting.orcasDsl.OrcasDslPackage;
import de.opitzconsulting.orcasDsl.RefPartition;
import de.opitzconsulting.orcasDsl.RefPartitions;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;
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.impl.ENotificationImpl;

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

/**
 * 
 * An implementation of the model object 'Ref Partitions'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link de.opitzconsulting.orcasDsl.impl.RefPartitionsImpl#getFkName Fk Name}
  • *
  • {@link de.opitzconsulting.orcasDsl.impl.RefPartitionsImpl#getPartitionList Partition List}
  • *
* * @generated */ public class RefPartitionsImpl extends TablePartitioningImpl implements RefPartitions { /** * The default value of the '{@link #getFkName() Fk Name}' attribute. * * * @see #getFkName() * @generated * @ordered */ public static final String FK_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getFkName() Fk Name}' attribute. * * * @see #getFkName() * @generated * @ordered */ public String fkName = FK_NAME_EDEFAULT; /** * The cached value of the '{@link #getPartitionList() Partition List}' containment reference list. * * * @see #getPartitionList() * @generated * @ordered */ public EList partitionList; /** * * * @generated */ public RefPartitionsImpl() { super(); } /** * * * @generated */ @Override public EClass eStaticClass() { return OrcasDslPackage.Literals.REF_PARTITIONS; } /** * * * @generated */ public String getFkName() { return fkName; } /** * * * @generated */ public void setFkName(String newFkName) { String oldFkName = fkName; fkName = newFkName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OrcasDslPackage.REF_PARTITIONS__FK_NAME, oldFkName, fkName)); } /** * * * @generated */ public EList getPartitionList() { if (partitionList == null) { partitionList = new EObjectContainmentEList(RefPartition.class, this, OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST); } return partitionList; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST: return ((InternalEList)getPartitionList()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case OrcasDslPackage.REF_PARTITIONS__FK_NAME: return getFkName(); case OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST: return getPartitionList(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case OrcasDslPackage.REF_PARTITIONS__FK_NAME: setFkName((String)newValue); return; case OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST: getPartitionList().clear(); getPartitionList().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OrcasDslPackage.REF_PARTITIONS__FK_NAME: setFkName(FK_NAME_EDEFAULT); return; case OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST: getPartitionList().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OrcasDslPackage.REF_PARTITIONS__FK_NAME: return FK_NAME_EDEFAULT == null ? fkName != null : !FK_NAME_EDEFAULT.equals(fkName); case OrcasDslPackage.REF_PARTITIONS__PARTITION_LIST: return partitionList != null && !partitionList.isEmpty(); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (fkName: "); result.append(fkName); result.append(')'); return result.toString(); } } //RefPartitionsImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy