blob: 57b138d259b243439b879f4dcdacce8c9d36f39e [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated from AuthoritarionDSL.xcore
*
*
*/
package org.eclipse.osbp.xtext.authorizationdsl.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.osbp.dsl.semantic.dto.LDtoFeature;
import org.eclipse.osbp.xtext.authorizationdsl.AuthorizationDSLPackage;
import org.eclipse.osbp.xtext.authorizationdsl.RoleDtoFeature;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Role Dto Feature</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.osbp.xtext.authorizationdsl.impl.RoleDtoFeatureImpl#getDtoAttriCol <em>Dto Attri Col</em>}</li>
* </ul>
*
* @generated
*/
public class RoleDtoFeatureImpl extends AuthorizationLazyResolverImpl implements RoleDtoFeature {
/**
* The cached value of the '{@link #getDtoAttriCol() <em>Dto Attri Col</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDtoAttriCol()
* @generated
* @ordered
*/
protected LDtoFeature dtoAttriCol;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RoleDtoFeatureImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return AuthorizationDSLPackage.Literals.ROLE_DTO_FEATURE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LDtoFeature getDtoAttriCol() {
if (dtoAttriCol != null && dtoAttriCol.eIsProxy()) {
InternalEObject oldDtoAttriCol = (InternalEObject)dtoAttriCol;
dtoAttriCol = (LDtoFeature)eResolveProxy(oldDtoAttriCol);
if (dtoAttriCol != oldDtoAttriCol) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL, oldDtoAttriCol, dtoAttriCol));
}
}
return dtoAttriCol;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LDtoFeature basicGetDtoAttriCol() {
return dtoAttriCol;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDtoAttriCol(LDtoFeature newDtoAttriCol) {
LDtoFeature oldDtoAttriCol = dtoAttriCol;
dtoAttriCol = newDtoAttriCol;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL, oldDtoAttriCol, dtoAttriCol));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL:
if (resolve) return getDtoAttriCol();
return basicGetDtoAttriCol();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL:
setDtoAttriCol((LDtoFeature)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL:
setDtoAttriCol((LDtoFeature)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_DTO_FEATURE__DTO_ATTRI_COL:
return dtoAttriCol != null;
}
return super.eIsSet(featureID);
}
} //RoleDtoFeatureImpl