![JAR search and dependency download from the Maven repository](/logo.png)
org.eclipse.ocl.expressions.impl.StringLiteralExpImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ocl Show documentation
Show all versions of ocl Show documentation
OCL (Object Constraint Language) Parser and Interpreter
The newest version!
/*******************************************************************************
* 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
*******************************************************************************/
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.ExpressionsPackage;
import org.eclipse.ocl.expressions.StringLiteralExp;
import org.eclipse.ocl.expressions.operations.StringLiteralExpOperations;
import org.eclipse.ocl.utilities.Visitor;
/**
*
* An implementation of the model object 'String Literal Exp'.
*
*
* The following features are implemented:
*
* - {@link org.eclipse.ocl.expressions.impl.StringLiteralExpImpl#getStringSymbol String Symbol}
*
*
*
* @generated
*/
public class StringLiteralExpImpl
extends PrimitiveLiteralExpImpl
implements StringLiteralExp {
/**
* The default value of the '{@link #getStringSymbol() String Symbol}' attribute.
*
*
* @see #getStringSymbol()
* @generated
* @ordered
*/
protected static final String STRING_SYMBOL_EDEFAULT = null;
/**
* The cached value of the '{@link #getStringSymbol() String Symbol}' attribute.
*
*
* @see #getStringSymbol()
* @generated
* @ordered
*/
protected String stringSymbol = STRING_SYMBOL_EDEFAULT;
/**
*
*
* @generated
*/
protected StringLiteralExpImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExpressionsPackage.Literals.STRING_LITERAL_EXP;
}
/**
*
*
* @generated
*/
public String getStringSymbol() {
return stringSymbol;
}
/**
*
*
* @generated
*/
public void setStringSymbol(String newStringSymbol) {
String oldStringSymbol = stringSymbol;
stringSymbol = newStringSymbol;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
ExpressionsPackage.STRING_LITERAL_EXP__STRING_SYMBOL,
oldStringSymbol, stringSymbol));
}
/**
*
*
* @generated
*/
public boolean checkStringType(DiagnosticChain diagnostics,
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy