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

org.openxma.dsl.dom.model.impl.InCollectionElementsImpl Maven / Gradle / Ivy

/**
 * 
 * 
 *
 * $Id$
 */
package org.openxma.dsl.dom.model.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openxma.dsl.dom.DomPackage;
import org.openxma.dsl.dom.model.InCollectionElements;

/**
 * 
 * An implementation of the model object 'In Collection Elements'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.InCollectionElementsImpl#getName Name}
  • *
  • {@link org.openxma.dsl.dom.model.impl.InCollectionElementsImpl#getReference Reference}
  • *
*

* * @generated */ public class InCollectionElementsImpl extends FromRangeImpl implements InCollectionElements { /** * The default value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getName() Name}' attribute. * * * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * The default value of the '{@link #getReference() Reference}' attribute. * * * @see #getReference() * @generated * @ordered */ protected static final String REFERENCE_EDEFAULT = null; /** * The cached value of the '{@link #getReference() Reference}' attribute. * * * @see #getReference() * @generated * @ordered */ protected String reference = REFERENCE_EDEFAULT; /** * * * @generated */ protected InCollectionElementsImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DomPackage.Literals.IN_COLLECTION_ELEMENTS; } /** * * * @generated */ public String getName() { return name; } /** * * * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IN_COLLECTION_ELEMENTS__NAME, oldName, name)); } /** * * * @generated */ public String getReference() { return reference; } /** * * * @generated */ public void setReference(String newReference) { String oldReference = reference; reference = newReference; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IN_COLLECTION_ELEMENTS__REFERENCE, oldReference, reference)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DomPackage.IN_COLLECTION_ELEMENTS__NAME: return getName(); case DomPackage.IN_COLLECTION_ELEMENTS__REFERENCE: return getReference(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DomPackage.IN_COLLECTION_ELEMENTS__NAME: setName((String)newValue); return; case DomPackage.IN_COLLECTION_ELEMENTS__REFERENCE: setReference((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DomPackage.IN_COLLECTION_ELEMENTS__NAME: setName(NAME_EDEFAULT); return; case DomPackage.IN_COLLECTION_ELEMENTS__REFERENCE: setReference(REFERENCE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DomPackage.IN_COLLECTION_ELEMENTS__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case DomPackage.IN_COLLECTION_ELEMENTS__REFERENCE: return REFERENCE_EDEFAULT == null ? reference != null : !REFERENCE_EDEFAULT.equals(reference); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(", reference: "); result.append(reference); result.append(')'); return result.toString(); } } //InCollectionElementsImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy