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

org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl Maven / Gradle / Ivy

There is a newer version: 6.12.0
Show newest version
/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl;

import java.util.Collection;

import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ServiceCutterConfigurationDSLPackage;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.UseCase;

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

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

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.eclipse.emf.ecore.util.EDataTypeEList;

/**
 * 
 * An implementation of the model object 'Use Case'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl#getDoc Doc}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl#getName Name}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl#isIsLatencyCritical Is Latency Critical}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl#getNanoentitiesRead Nanoentities Read}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.UseCaseImpl#getNanoentitiesWritten Nanoentities Written}
  • *
* * @generated */ public class UseCaseImpl extends MinimalEObjectImpl.Container implements UseCase { /** * The default value of the '{@link #getDoc() Doc}' attribute. * * * @see #getDoc() * @generated * @ordered */ protected static final String DOC_EDEFAULT = null; /** * The cached value of the '{@link #getDoc() Doc}' attribute. * * * @see #getDoc() * @generated * @ordered */ protected String doc = DOC_EDEFAULT; /** * 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 #isIsLatencyCritical() Is Latency Critical}' attribute. * * * @see #isIsLatencyCritical() * @generated * @ordered */ protected static final boolean IS_LATENCY_CRITICAL_EDEFAULT = false; /** * The cached value of the '{@link #isIsLatencyCritical() Is Latency Critical}' attribute. * * * @see #isIsLatencyCritical() * @generated * @ordered */ protected boolean isLatencyCritical = IS_LATENCY_CRITICAL_EDEFAULT; /** * The cached value of the '{@link #getNanoentitiesRead() Nanoentities Read}' attribute list. * * * @see #getNanoentitiesRead() * @generated * @ordered */ protected EList nanoentitiesRead; /** * The cached value of the '{@link #getNanoentitiesWritten() Nanoentities Written}' attribute list. * * * @see #getNanoentitiesWritten() * @generated * @ordered */ protected EList nanoentitiesWritten; /** * * * @generated */ protected UseCaseImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ServiceCutterConfigurationDSLPackage.Literals.USE_CASE; } /** * * * @generated */ public String getDoc() { return doc; } /** * * * @generated */ public void setDoc(String newDoc) { String oldDoc = doc; doc = newDoc; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ServiceCutterConfigurationDSLPackage.USE_CASE__DOC, oldDoc, doc)); } /** * * * @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, ServiceCutterConfigurationDSLPackage.USE_CASE__NAME, oldName, name)); } /** * * * @generated */ public boolean isIsLatencyCritical() { return isLatencyCritical; } /** * * * @generated */ public void setIsLatencyCritical(boolean newIsLatencyCritical) { boolean oldIsLatencyCritical = isLatencyCritical; isLatencyCritical = newIsLatencyCritical; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ServiceCutterConfigurationDSLPackage.USE_CASE__IS_LATENCY_CRITICAL, oldIsLatencyCritical, isLatencyCritical)); } /** * * * @generated */ public EList getNanoentitiesRead() { if (nanoentitiesRead == null) { nanoentitiesRead = new EDataTypeEList(String.class, this, ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_READ); } return nanoentitiesRead; } /** * * * @generated */ public EList getNanoentitiesWritten() { if (nanoentitiesWritten == null) { nanoentitiesWritten = new EDataTypeEList(String.class, this, ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_WRITTEN); } return nanoentitiesWritten; } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.USE_CASE__DOC: return getDoc(); case ServiceCutterConfigurationDSLPackage.USE_CASE__NAME: return getName(); case ServiceCutterConfigurationDSLPackage.USE_CASE__IS_LATENCY_CRITICAL: return isIsLatencyCritical(); case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_READ: return getNanoentitiesRead(); case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_WRITTEN: return getNanoentitiesWritten(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.USE_CASE__DOC: setDoc((String)newValue); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NAME: setName((String)newValue); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__IS_LATENCY_CRITICAL: setIsLatencyCritical((Boolean)newValue); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_READ: getNanoentitiesRead().clear(); getNanoentitiesRead().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_WRITTEN: getNanoentitiesWritten().clear(); getNanoentitiesWritten().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.USE_CASE__DOC: setDoc(DOC_EDEFAULT); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NAME: setName(NAME_EDEFAULT); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__IS_LATENCY_CRITICAL: setIsLatencyCritical(IS_LATENCY_CRITICAL_EDEFAULT); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_READ: getNanoentitiesRead().clear(); return; case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_WRITTEN: getNanoentitiesWritten().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.USE_CASE__DOC: return DOC_EDEFAULT == null ? doc != null : !DOC_EDEFAULT.equals(doc); case ServiceCutterConfigurationDSLPackage.USE_CASE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case ServiceCutterConfigurationDSLPackage.USE_CASE__IS_LATENCY_CRITICAL: return isLatencyCritical != IS_LATENCY_CRITICAL_EDEFAULT; case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_READ: return nanoentitiesRead != null && !nanoentitiesRead.isEmpty(); case ServiceCutterConfigurationDSLPackage.USE_CASE__NANOENTITIES_WRITTEN: return nanoentitiesWritten != null && !nanoentitiesWritten.isEmpty(); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (doc: "); result.append(doc); result.append(", name: "); result.append(name); result.append(", isLatencyCritical: "); result.append(isLatencyCritical); result.append(", nanoentitiesRead: "); result.append(nanoentitiesRead); result.append(", nanoentitiesWritten: "); result.append(nanoentitiesWritten); result.append(')'); return result.toString(); } } //UseCaseImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy