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

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

There is a newer version: 6.0.2
Show newest version
/**
 * 
 * 
 *
 * $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.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.openxma.dsl.dom.DomPackage;
import org.openxma.dsl.dom.model.Attribute;
import org.openxma.dsl.dom.model.CallOutputParameter;

/**
 * 
 * An implementation of the model object 'Call Output Parameter'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.dom.model.impl.CallOutputParameterImpl#getName Name}
  • *
  • {@link org.openxma.dsl.dom.model.impl.CallOutputParameterImpl#getAttribute Attribute}
  • *
  • {@link org.openxma.dsl.dom.model.impl.CallOutputParameterImpl#getNestedAttribute Nested Attribute}
  • *
*

* * @generated */ public class CallOutputParameterImpl extends MinimalEObjectImpl.Container implements CallOutputParameter { /** * 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 cached value of the '{@link #getAttribute() Attribute}' reference. * * * @see #getAttribute() * @generated * @ordered */ protected Attribute attribute; /** * The cached value of the '{@link #getNestedAttribute() Nested Attribute}' reference. * * * @see #getNestedAttribute() * @generated * @ordered */ protected Attribute nestedAttribute; /** * * * @generated */ protected CallOutputParameterImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DomPackage.Literals.CALL_OUTPUT_PARAMETER; } /** * * * @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.CALL_OUTPUT_PARAMETER__NAME, oldName, name)); } /** * * * @generated */ public Attribute getAttribute() { if (attribute != null && attribute.eIsProxy()) { InternalEObject oldAttribute = (InternalEObject)attribute; attribute = (Attribute)eResolveProxy(oldAttribute); if (attribute != oldAttribute) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE, oldAttribute, attribute)); } } return attribute; } /** * * * @generated */ public Attribute basicGetAttribute() { return attribute; } /** * * * @generated */ public void setAttribute(Attribute newAttribute) { Attribute oldAttribute = attribute; attribute = newAttribute; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE, oldAttribute, attribute)); } /** * * * @generated */ public Attribute getNestedAttribute() { if (nestedAttribute != null && nestedAttribute.eIsProxy()) { InternalEObject oldNestedAttribute = (InternalEObject)nestedAttribute; nestedAttribute = (Attribute)eResolveProxy(oldNestedAttribute); if (nestedAttribute != oldNestedAttribute) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE, oldNestedAttribute, nestedAttribute)); } } return nestedAttribute; } /** * * * @generated */ public Attribute basicGetNestedAttribute() { return nestedAttribute; } /** * * * @generated */ public void setNestedAttribute(Attribute newNestedAttribute) { Attribute oldNestedAttribute = nestedAttribute; nestedAttribute = newNestedAttribute; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE, oldNestedAttribute, nestedAttribute)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DomPackage.CALL_OUTPUT_PARAMETER__NAME: return getName(); case DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE: if (resolve) return getAttribute(); return basicGetAttribute(); case DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE: if (resolve) return getNestedAttribute(); return basicGetNestedAttribute(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DomPackage.CALL_OUTPUT_PARAMETER__NAME: setName((String)newValue); return; case DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE: setAttribute((Attribute)newValue); return; case DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE: setNestedAttribute((Attribute)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DomPackage.CALL_OUTPUT_PARAMETER__NAME: setName(NAME_EDEFAULT); return; case DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE: setAttribute((Attribute)null); return; case DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE: setNestedAttribute((Attribute)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DomPackage.CALL_OUTPUT_PARAMETER__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case DomPackage.CALL_OUTPUT_PARAMETER__ATTRIBUTE: return attribute != null; case DomPackage.CALL_OUTPUT_PARAMETER__NESTED_ATTRIBUTE: return nestedAttribute != null; } 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(')'); return result.toString(); } } //CallOutputParameterImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy