blob: 82e9df5cd584024f9c98e28a4ff629a0e57ba5ab [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.entity.LEntityFeature;
import org.eclipse.osbp.xtext.authorizationdsl.AuthorizationDSLPackage;
import org.eclipse.osbp.xtext.authorizationdsl.RoleEntityFeature;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Role Entity Feature</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.osbp.xtext.authorizationdsl.impl.RoleEntityFeatureImpl#getEntityAttriCol <em>Entity Attri Col</em>}</li>
* </ul>
*
* @generated
*/
public class RoleEntityFeatureImpl extends AuthorizationLazyResolverImpl implements RoleEntityFeature {
/**
* The cached value of the '{@link #getEntityAttriCol() <em>Entity Attri Col</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEntityAttriCol()
* @generated
* @ordered
*/
protected LEntityFeature entityAttriCol;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected RoleEntityFeatureImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return AuthorizationDSLPackage.Literals.ROLE_ENTITY_FEATURE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LEntityFeature getEntityAttriCol() {
if (entityAttriCol != null && entityAttriCol.eIsProxy()) {
InternalEObject oldEntityAttriCol = (InternalEObject)entityAttriCol;
entityAttriCol = (LEntityFeature)eResolveProxy(oldEntityAttriCol);
if (entityAttriCol != oldEntityAttriCol) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, AuthorizationDSLPackage.ROLE_ENTITY_FEATURE__ENTITY_ATTRI_COL, oldEntityAttriCol, entityAttriCol));
}
}
return entityAttriCol;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LEntityFeature basicGetEntityAttriCol() {
return entityAttriCol;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEntityAttriCol(LEntityFeature newEntityAttriCol) {
LEntityFeature oldEntityAttriCol = entityAttriCol;
entityAttriCol = newEntityAttriCol;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AuthorizationDSLPackage.ROLE_ENTITY_FEATURE__ENTITY_ATTRI_COL, oldEntityAttriCol, entityAttriCol));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_ENTITY_FEATURE__ENTITY_ATTRI_COL:
if (resolve) return getEntityAttriCol();
return basicGetEntityAttriCol();
}
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_ENTITY_FEATURE__ENTITY_ATTRI_COL:
setEntityAttriCol((LEntityFeature)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_ENTITY_FEATURE__ENTITY_ATTRI_COL:
setEntityAttriCol((LEntityFeature)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AuthorizationDSLPackage.ROLE_ENTITY_FEATURE__ENTITY_ATTRI_COL:
return entityAttriCol != null;
}
return super.eIsSet(featureID);
}
} //RoleEntityFeatureImpl