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

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

/**
 * generated by Xtext 2.20.0
 */
package org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl;

import java.util.Collection;

import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.AvailabilityCriticality;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.Compatibilities;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ConsistencyCriticality;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ContentVolatility;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.SecurityCriticality;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ServiceCutterConfigurationDSLPackage;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.StorageSimilarity;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.StructuralVolatility;

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.impl.MinimalEObjectImpl;

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

/**
 * 
 * An implementation of the model object 'Compatibilities'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getDoc Doc}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getAvailabilityCriticality Availability Criticality}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getConsistencyCriticality Consistency Criticality}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getContentVolatility Content Volatility}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getSecurityCriticality Security Criticality}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getStorageSimilarity Storage Similarity}
  • *
  • {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.CompatibilitiesImpl#getStructuralVolatility Structural Volatility}
  • *
* * @generated */ public class CompatibilitiesImpl extends MinimalEObjectImpl.Container implements Compatibilities { /** * 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 cached value of the '{@link #getAvailabilityCriticality() Availability Criticality}' containment reference list. * * * @see #getAvailabilityCriticality() * @generated * @ordered */ protected EList availabilityCriticality; /** * The cached value of the '{@link #getConsistencyCriticality() Consistency Criticality}' containment reference list. * * * @see #getConsistencyCriticality() * @generated * @ordered */ protected EList consistencyCriticality; /** * The cached value of the '{@link #getContentVolatility() Content Volatility}' containment reference list. * * * @see #getContentVolatility() * @generated * @ordered */ protected EList contentVolatility; /** * The cached value of the '{@link #getSecurityCriticality() Security Criticality}' containment reference list. * * * @see #getSecurityCriticality() * @generated * @ordered */ protected EList securityCriticality; /** * The cached value of the '{@link #getStorageSimilarity() Storage Similarity}' containment reference list. * * * @see #getStorageSimilarity() * @generated * @ordered */ protected EList storageSimilarity; /** * The cached value of the '{@link #getStructuralVolatility() Structural Volatility}' containment reference list. * * * @see #getStructuralVolatility() * @generated * @ordered */ protected EList structuralVolatility; /** * * * @generated */ protected CompatibilitiesImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ServiceCutterConfigurationDSLPackage.Literals.COMPATIBILITIES; } /** * * * @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.COMPATIBILITIES__DOC, oldDoc, doc)); } /** * * * @generated */ public EList getAvailabilityCriticality() { if (availabilityCriticality == null) { availabilityCriticality = new EObjectContainmentEList(AvailabilityCriticality.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY); } return availabilityCriticality; } /** * * * @generated */ public EList getConsistencyCriticality() { if (consistencyCriticality == null) { consistencyCriticality = new EObjectContainmentEList(ConsistencyCriticality.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY); } return consistencyCriticality; } /** * * * @generated */ public EList getContentVolatility() { if (contentVolatility == null) { contentVolatility = new EObjectContainmentEList(ContentVolatility.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY); } return contentVolatility; } /** * * * @generated */ public EList getSecurityCriticality() { if (securityCriticality == null) { securityCriticality = new EObjectContainmentEList(SecurityCriticality.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY); } return securityCriticality; } /** * * * @generated */ public EList getStorageSimilarity() { if (storageSimilarity == null) { storageSimilarity = new EObjectContainmentEList(StorageSimilarity.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY); } return storageSimilarity; } /** * * * @generated */ public EList getStructuralVolatility() { if (structuralVolatility == null) { structuralVolatility = new EObjectContainmentEList(StructuralVolatility.class, this, ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY); } return structuralVolatility; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY: return ((InternalEList)getAvailabilityCriticality()).basicRemove(otherEnd, msgs); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY: return ((InternalEList)getConsistencyCriticality()).basicRemove(otherEnd, msgs); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY: return ((InternalEList)getContentVolatility()).basicRemove(otherEnd, msgs); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY: return ((InternalEList)getSecurityCriticality()).basicRemove(otherEnd, msgs); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY: return ((InternalEList)getStorageSimilarity()).basicRemove(otherEnd, msgs); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY: return ((InternalEList)getStructuralVolatility()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__DOC: return getDoc(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY: return getAvailabilityCriticality(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY: return getConsistencyCriticality(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY: return getContentVolatility(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY: return getSecurityCriticality(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY: return getStorageSimilarity(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY: return getStructuralVolatility(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__DOC: setDoc((String)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY: getAvailabilityCriticality().clear(); getAvailabilityCriticality().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY: getConsistencyCriticality().clear(); getConsistencyCriticality().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY: getContentVolatility().clear(); getContentVolatility().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY: getSecurityCriticality().clear(); getSecurityCriticality().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY: getStorageSimilarity().clear(); getStorageSimilarity().addAll((Collection)newValue); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY: getStructuralVolatility().clear(); getStructuralVolatility().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__DOC: setDoc(DOC_EDEFAULT); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY: getAvailabilityCriticality().clear(); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY: getConsistencyCriticality().clear(); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY: getContentVolatility().clear(); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY: getSecurityCriticality().clear(); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY: getStorageSimilarity().clear(); return; case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY: getStructuralVolatility().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__DOC: return DOC_EDEFAULT == null ? doc != null : !DOC_EDEFAULT.equals(doc); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__AVAILABILITY_CRITICALITY: return availabilityCriticality != null && !availabilityCriticality.isEmpty(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONSISTENCY_CRITICALITY: return consistencyCriticality != null && !consistencyCriticality.isEmpty(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__CONTENT_VOLATILITY: return contentVolatility != null && !contentVolatility.isEmpty(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__SECURITY_CRITICALITY: return securityCriticality != null && !securityCriticality.isEmpty(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STORAGE_SIMILARITY: return storageSimilarity != null && !storageSimilarity.isEmpty(); case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES__STRUCTURAL_VOLATILITY: return structuralVolatility != null && !structuralVolatility.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(')'); return result.toString(); } } //CompatibilitiesImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy