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

org.openxma.dsl.dom.model.impl.InCollectionImpl 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.InCollection;

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

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.InCollectionImpl#getPath Path}
  • *
  • {@link org.openxma.dsl.dom.model.impl.InCollectionImpl#getAlias Alias}
  • *
*

* * @generated */ public class InCollectionImpl extends FromRangeImpl implements InCollection { /** * The default value of the '{@link #getPath() Path}' attribute. * * * @see #getPath() * @generated * @ordered */ protected static final String PATH_EDEFAULT = null; /** * The cached value of the '{@link #getPath() Path}' attribute. * * * @see #getPath() * @generated * @ordered */ protected String path = PATH_EDEFAULT; /** * The default value of the '{@link #getAlias() Alias}' attribute. * * * @see #getAlias() * @generated * @ordered */ protected static final String ALIAS_EDEFAULT = null; /** * The cached value of the '{@link #getAlias() Alias}' attribute. * * * @see #getAlias() * @generated * @ordered */ protected String alias = ALIAS_EDEFAULT; /** * * * @generated */ protected InCollectionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DomPackage.Literals.IN_COLLECTION; } /** * * * @generated */ public String getPath() { return path; } /** * * * @generated */ public void setPath(String newPath) { String oldPath = path; path = newPath; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IN_COLLECTION__PATH, oldPath, path)); } /** * * * @generated */ public String getAlias() { return alias; } /** * * * @generated */ public void setAlias(String newAlias) { String oldAlias = alias; alias = newAlias; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IN_COLLECTION__ALIAS, oldAlias, alias)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DomPackage.IN_COLLECTION__PATH: return getPath(); case DomPackage.IN_COLLECTION__ALIAS: return getAlias(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DomPackage.IN_COLLECTION__PATH: setPath((String)newValue); return; case DomPackage.IN_COLLECTION__ALIAS: setAlias((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DomPackage.IN_COLLECTION__PATH: setPath(PATH_EDEFAULT); return; case DomPackage.IN_COLLECTION__ALIAS: setAlias(ALIAS_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DomPackage.IN_COLLECTION__PATH: return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); case DomPackage.IN_COLLECTION__ALIAS: return ALIAS_EDEFAULT == null ? alias != null : !ALIAS_EDEFAULT.equals(alias); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (path: "); result.append(path); result.append(", alias: "); result.append(alias); result.append(')'); return result.toString(); } } //InCollectionImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy