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

org.eclipse.ocl.cst.impl.UnlimitedNaturalLiteralExpCSImpl Maven / Gradle / Ivy

/**
 * 
 * 
 * Copyright (c) 2005, 2008 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 243976
 * 
 * 
 *
 * $Id: UnlimitedNaturalLiteralExpCSImpl.java,v 1.3 2008/11/30 22:11:37 cdamus Exp $
 */
package org.eclipse.ocl.cst.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.cst.CSTPackage;
import org.eclipse.ocl.cst.UnlimitedNaturalLiteralExpCS;

/**
 * 
 * An implementation of the model object 'Unlimited Natural Literal Exp CS'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.eclipse.ocl.cst.impl.UnlimitedNaturalLiteralExpCSImpl#getIntegerSymbol Integer Symbol}
  • *
*

* * @generated */ public class UnlimitedNaturalLiteralExpCSImpl extends PrimitiveLiteralExpCSImpl implements UnlimitedNaturalLiteralExpCS { /** * The default value of the '{@link #getIntegerSymbol() Integer Symbol}' attribute. * * * @see #getIntegerSymbol() * @generated * @ordered */ protected static final Integer INTEGER_SYMBOL_EDEFAULT = null; /** * The cached value of the '{@link #getIntegerSymbol() Integer Symbol}' attribute. * * * @see #getIntegerSymbol() * @generated * @ordered */ protected Integer integerSymbol = INTEGER_SYMBOL_EDEFAULT; /** * * * @generated */ protected UnlimitedNaturalLiteralExpCSImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return CSTPackage.Literals.UNLIMITED_NATURAL_LITERAL_EXP_CS; } /** * * * @generated */ public Integer getIntegerSymbol() { return integerSymbol; } /** * * * @generated */ public void setIntegerSymbol(Integer newIntegerSymbol) { Integer oldIntegerSymbol = integerSymbol; integerSymbol = newIntegerSymbol; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CSTPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS__INTEGER_SYMBOL, oldIntegerSymbol, integerSymbol)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case CSTPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS__INTEGER_SYMBOL : return getIntegerSymbol(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case CSTPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS__INTEGER_SYMBOL : setIntegerSymbol((Integer) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case CSTPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS__INTEGER_SYMBOL : setIntegerSymbol(INTEGER_SYMBOL_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case CSTPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS__INTEGER_SYMBOL : return INTEGER_SYMBOL_EDEFAULT == null ? integerSymbol != null : !INTEGER_SYMBOL_EDEFAULT.equals(integerSymbol); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (integerSymbol: "); //$NON-NLS-1$ result.append(integerSymbol); result.append(')'); return result.toString(); } } //UnlimitedNaturalLiteralExpCSImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy