![JAR search and dependency download from the Maven repository](/logo.png)
org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of context-mapper-dsl Show documentation
Show all versions of context-mapper-dsl Show documentation
Use the ContextMapper DSL in your standalone application.
/**
* generated by Xtext 2.20.0
*/
package org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl;
import java.util.Collection;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.Aggregate;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.Compatibilities;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.Entity;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.PredefinedService;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.SecurityAccessGroup;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.SeparatedSecurityZone;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ServiceCutterConfigurationDSLPackage;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ServiceCutterUserRepresentationsModel;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.SharedOwnerGroup;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.UseCase;
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 'Service Cutter User Representations Model'.
*
*
* The following features are implemented:
*
*
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getUseCases Use Cases}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getCompatibilities Compatibilities}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getAggregates Aggregates}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getEntities Entities}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getPredefinedServices Predefined Services}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getSecurityAccessGroups Security Access Groups}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getSeparatedSecurityZones Separated Security Zones}
* - {@link org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.impl.ServiceCutterUserRepresentationsModelImpl#getSharedOwnerGroups Shared Owner Groups}
*
*
* @generated
*/
public class ServiceCutterUserRepresentationsModelImpl extends MinimalEObjectImpl.Container implements ServiceCutterUserRepresentationsModel
{
/**
* The cached value of the '{@link #getUseCases() Use Cases}' containment reference list.
*
*
* @see #getUseCases()
* @generated
* @ordered
*/
protected EList useCases;
/**
* The cached value of the '{@link #getCompatibilities() Compatibilities}' containment reference.
*
*
* @see #getCompatibilities()
* @generated
* @ordered
*/
protected Compatibilities compatibilities;
/**
* The cached value of the '{@link #getAggregates() Aggregates}' containment reference list.
*
*
* @see #getAggregates()
* @generated
* @ordered
*/
protected EList aggregates;
/**
* The cached value of the '{@link #getEntities() Entities}' containment reference list.
*
*
* @see #getEntities()
* @generated
* @ordered
*/
protected EList entities;
/**
* The cached value of the '{@link #getPredefinedServices() Predefined Services}' containment reference list.
*
*
* @see #getPredefinedServices()
* @generated
* @ordered
*/
protected EList predefinedServices;
/**
* The cached value of the '{@link #getSecurityAccessGroups() Security Access Groups}' containment reference list.
*
*
* @see #getSecurityAccessGroups()
* @generated
* @ordered
*/
protected EList securityAccessGroups;
/**
* The cached value of the '{@link #getSeparatedSecurityZones() Separated Security Zones}' containment reference list.
*
*
* @see #getSeparatedSecurityZones()
* @generated
* @ordered
*/
protected EList separatedSecurityZones;
/**
* The cached value of the '{@link #getSharedOwnerGroups() Shared Owner Groups}' containment reference list.
*
*
* @see #getSharedOwnerGroups()
* @generated
* @ordered
*/
protected EList sharedOwnerGroups;
/**
*
*
* @generated
*/
protected ServiceCutterUserRepresentationsModelImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return ServiceCutterConfigurationDSLPackage.Literals.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL;
}
/**
*
*
* @generated
*/
public EList getUseCases()
{
if (useCases == null)
{
useCases = new EObjectContainmentEList(UseCase.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES);
}
return useCases;
}
/**
*
*
* @generated
*/
public Compatibilities getCompatibilities()
{
return compatibilities;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCompatibilities(Compatibilities newCompatibilities, NotificationChain msgs)
{
Compatibilities oldCompatibilities = compatibilities;
compatibilities = newCompatibilities;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES, oldCompatibilities, newCompatibilities);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setCompatibilities(Compatibilities newCompatibilities)
{
if (newCompatibilities != compatibilities)
{
NotificationChain msgs = null;
if (compatibilities != null)
msgs = ((InternalEObject)compatibilities).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES, null, msgs);
if (newCompatibilities != null)
msgs = ((InternalEObject)newCompatibilities).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES, null, msgs);
msgs = basicSetCompatibilities(newCompatibilities, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES, newCompatibilities, newCompatibilities));
}
/**
*
*
* @generated
*/
public EList getAggregates()
{
if (aggregates == null)
{
aggregates = new EObjectContainmentEList(Aggregate.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES);
}
return aggregates;
}
/**
*
*
* @generated
*/
public EList getEntities()
{
if (entities == null)
{
entities = new EObjectContainmentEList(Entity.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES);
}
return entities;
}
/**
*
*
* @generated
*/
public EList getPredefinedServices()
{
if (predefinedServices == null)
{
predefinedServices = new EObjectContainmentEList(PredefinedService.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES);
}
return predefinedServices;
}
/**
*
*
* @generated
*/
public EList getSecurityAccessGroups()
{
if (securityAccessGroups == null)
{
securityAccessGroups = new EObjectContainmentEList(SecurityAccessGroup.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS);
}
return securityAccessGroups;
}
/**
*
*
* @generated
*/
public EList getSeparatedSecurityZones()
{
if (separatedSecurityZones == null)
{
separatedSecurityZones = new EObjectContainmentEList(SeparatedSecurityZone.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES);
}
return separatedSecurityZones;
}
/**
*
*
* @generated
*/
public EList getSharedOwnerGroups()
{
if (sharedOwnerGroups == null)
{
sharedOwnerGroups = new EObjectContainmentEList(SharedOwnerGroup.class, this, ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS);
}
return sharedOwnerGroups;
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES:
return ((InternalEList>)getUseCases()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES:
return basicSetCompatibilities(null, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES:
return ((InternalEList>)getAggregates()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES:
return ((InternalEList>)getEntities()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES:
return ((InternalEList>)getPredefinedServices()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS:
return ((InternalEList>)getSecurityAccessGroups()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES:
return ((InternalEList>)getSeparatedSecurityZones()).basicRemove(otherEnd, msgs);
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS:
return ((InternalEList>)getSharedOwnerGroups()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES:
return getUseCases();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES:
return getCompatibilities();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES:
return getAggregates();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES:
return getEntities();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES:
return getPredefinedServices();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS:
return getSecurityAccessGroups();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES:
return getSeparatedSecurityZones();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS:
return getSharedOwnerGroups();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES:
getUseCases().clear();
getUseCases().addAll((Collection extends UseCase>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES:
setCompatibilities((Compatibilities)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES:
getAggregates().clear();
getAggregates().addAll((Collection extends Aggregate>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES:
getEntities().clear();
getEntities().addAll((Collection extends Entity>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES:
getPredefinedServices().clear();
getPredefinedServices().addAll((Collection extends PredefinedService>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS:
getSecurityAccessGroups().clear();
getSecurityAccessGroups().addAll((Collection extends SecurityAccessGroup>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES:
getSeparatedSecurityZones().clear();
getSeparatedSecurityZones().addAll((Collection extends SeparatedSecurityZone>)newValue);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS:
getSharedOwnerGroups().clear();
getSharedOwnerGroups().addAll((Collection extends SharedOwnerGroup>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES:
getUseCases().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES:
setCompatibilities((Compatibilities)null);
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES:
getAggregates().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES:
getEntities().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES:
getPredefinedServices().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS:
getSecurityAccessGroups().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES:
getSeparatedSecurityZones().clear();
return;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS:
getSharedOwnerGroups().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__USE_CASES:
return useCases != null && !useCases.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__COMPATIBILITIES:
return compatibilities != null;
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__AGGREGATES:
return aggregates != null && !aggregates.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__ENTITIES:
return entities != null && !entities.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__PREDEFINED_SERVICES:
return predefinedServices != null && !predefinedServices.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SECURITY_ACCESS_GROUPS:
return securityAccessGroups != null && !securityAccessGroups.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SEPARATED_SECURITY_ZONES:
return separatedSecurityZones != null && !separatedSecurityZones.isEmpty();
case ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL__SHARED_OWNER_GROUPS:
return sharedOwnerGroups != null && !sharedOwnerGroups.isEmpty();
}
return super.eIsSet(featureID);
}
} //ServiceCutterUserRepresentationsModelImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy