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

org.eclipse.ocl.expressions.impl.FeatureCallExpImpl Maven / Gradle / Ivy

/**
 * 
 * 
 * Copyright (c) 2006, 2009 IBM Corporation, Zeligsoft Inc., and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *   IBM - Initial API and implementation
 *   Zeligsoft - Bug 207365
 * 
 * 
 *
 * $Id: FeatureCallExpImpl.java,v 1.5 2009/01/23 17:16:04 cdamus Exp $
 */
package org.eclipse.ocl.expressions.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.ocl.expressions.ExpressionsPackage;
import org.eclipse.ocl.expressions.FeatureCallExp;

/**
 * 
 * An implementation of the model object 'Feature Call Exp'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.eclipse.ocl.expressions.impl.FeatureCallExpImpl#isMarkedPre Marked Pre}
  • *
*

* * @generated */ public abstract class FeatureCallExpImpl extends CallExpImpl implements FeatureCallExp { /** * The default value of the '{@link #isMarkedPre() Marked Pre}' attribute. * * * @see #isMarkedPre() * @generated * @ordered */ protected static final boolean MARKED_PRE_EDEFAULT = false; /** * The flag representing the value of the '{@link #isMarkedPre() Marked Pre}' attribute. * * * @see #isMarkedPre() * @generated * @ordered */ protected static final int MARKED_PRE_EFLAG = 1 << 8; /** * * * @generated */ protected FeatureCallExpImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ExpressionsPackage.Literals.FEATURE_CALL_EXP; } /** * * * @generated */ public boolean isMarkedPre() { return (eFlags & MARKED_PRE_EFLAG) != 0; } /** * * * @generated */ public void setMarkedPre(boolean newMarkedPre) { boolean oldMarkedPre = (eFlags & MARKED_PRE_EFLAG) != 0; if (newMarkedPre) eFlags |= MARKED_PRE_EFLAG; else eFlags &= ~MARKED_PRE_EFLAG; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ExpressionsPackage.FEATURE_CALL_EXP__MARKED_PRE, oldMarkedPre, newMarkedPre)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ExpressionsPackage.FEATURE_CALL_EXP__MARKED_PRE : return isMarkedPre(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ExpressionsPackage.FEATURE_CALL_EXP__MARKED_PRE : setMarkedPre((Boolean) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ExpressionsPackage.FEATURE_CALL_EXP__MARKED_PRE : setMarkedPre(MARKED_PRE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ExpressionsPackage.FEATURE_CALL_EXP__MARKED_PRE : return ((eFlags & MARKED_PRE_EFLAG) != 0) != MARKED_PRE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated NOT */ @Override public String toString() { return super.toString(); } } //FeatureCallExpImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy