Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
*
*
* Copyright (c) 2007, 2010 IBM Corporation 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
* E.D.Willink - Bugs 295166
* Borland - Bug 242880
*
*
*
* $Id: ParsingOptions.java,v 1.10 2011/03/09 13:07:03 auhl Exp $
*/
package org.eclipse.ocl.options;
import org.eclipse.ocl.Environment;
import org.eclipse.ocl.lpg.BasicEnvironment;
import org.eclipse.ocl.util.OCLUtil;
import org.eclipse.ocl.utilities.UMLReflection;
/**
* Options applicable to {@link Environment}s to
* {@linkplain Customizable customize} their parsing behaviour.
*
* @author Christian W. Damus (cdamus)
*
* @since 1.2
*/
public class ParsingOptions {
/**
*
* Parsing option indicating whether to reference the defined property or
* operation in a def: expression as a constrained element of the
* constraint, in addition to the context classifier. The well-formedness
* rules for definition constraints in the OCL 2.0 Specification require
* that a definition constraint reference only its context classifier as
* a constrained element.
*
* The default value of this option is false. For compatibility
* with the 1.1 release behaviour, set this option true. Note
* that this is not necessary for loading and processing constraints
* created by the 1.1 release, only for persisting constraints that will be
* consumed by the 1.1 release.
*
*/
public static final Option DEFINITION_CONSTRAINS_FEATURE =
new BasicOption("definition.constraints.feature", false); //$NON-NLS-1$
/**
*
* Parsing option indicating whether to interpolate {@literal <},
* {@literal <=}, {@literal >}, and {@literal >=} operations when a model
* type defines a Java-style compareTo(...) operation.
*
* The default value of this option is false. For compatibility
* with the 1.1 release behaviour, set this option true.
*
*/
public static final Option USE_COMPARE_TO_OPERATION =
new BasicOption("use.compare.to.operation", false); //$NON-NLS-1$
/**
*
* Parsing option indicating whether to generate a warning when the
* OCL 2.1 parsing of distinct xor, or, and precedences leads to a different
* parse to the OCL 2.0 specification of all levels equal.
* The default value of this option is false. To diagnose
* compatibility with the OCL 2.0 behaviour in the MDT-OCL 1.x release,
* set this option true.
*
* @since 3.0
*/
public static final Option WARN_OF_XOR_OR_AND_PRECEDENCE_CHANGE =
new BasicOption("warn.of.xor.or.and.precedence.change", false); //$NON-NLS-1$
/**
*
* Static instance for the implicit-root-class option token. It is returned
* via an unchecked cast by the {@link #implicitRootClass()} method.
*
*/
public static final Option> IMPLICIT_ROOT_CLASS =
new BasicOption