org.eclipse.ocl.expressions.impl.BooleanLiteralExpImpl 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: BooleanLiteralExpImpl.java,v 1.7 2009/01/23 17:16:03 cdamus Exp $
*/
package org.eclipse.ocl.expressions.impl;
import java.util.Map;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.ocl.expressions.BooleanLiteralExp;
import org.eclipse.ocl.expressions.ExpressionsPackage;
import org.eclipse.ocl.expressions.operations.BooleanLiteralExpOperations;
import org.eclipse.ocl.utilities.Visitor;
/**
*
* An implementation of the model object 'Boolean Literal Exp'.
*
*
* The following features are implemented:
*
* - {@link org.eclipse.ocl.expressions.impl.BooleanLiteralExpImpl#getBooleanSymbol Boolean Symbol}
*
*
*
* @generated
*/
public class BooleanLiteralExpImpl
extends PrimitiveLiteralExpImpl
implements BooleanLiteralExp {
/**
* The default value of the '{@link #getBooleanSymbol() Boolean Symbol}' attribute.
*
*
* @see #getBooleanSymbol()
* @generated
* @ordered
*/
protected static final Boolean BOOLEAN_SYMBOL_EDEFAULT = null;
/**
* The cached value of the '{@link #getBooleanSymbol() Boolean Symbol}' attribute.
*
*
* @see #getBooleanSymbol()
* @generated
* @ordered
*/
protected Boolean booleanSymbol = BOOLEAN_SYMBOL_EDEFAULT;
/**
*
*
* @generated
*/
protected BooleanLiteralExpImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExpressionsPackage.Literals.BOOLEAN_LITERAL_EXP;
}
/**
*
*
* @generated
*/
public Boolean getBooleanSymbol() {
return booleanSymbol;
}
/**
*
*
* @generated
*/
public void setBooleanSymbol(Boolean newBooleanSymbol) {
Boolean oldBooleanSymbol = booleanSymbol;
booleanSymbol = newBooleanSymbol;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
ExpressionsPackage.BOOLEAN_LITERAL_EXP__BOOLEAN_SYMBOL,
oldBooleanSymbol, booleanSymbol));
}
/**
*
*
* @generated
*/
public boolean checkBooleanType(DiagnosticChain diagnostics,
Map