|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.options.ParsingOptions
public class ParsingOptions
Options applicable to Environments to
customize their parsing behaviour.
| Field Summary | |
|---|---|
static Option<Boolean> |
DEFINITION_CONSTRAINS_FEATURE
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. |
static Option<Boolean> |
USE_COMPARE_TO_OPERATION
Parsing option indicating whether to interpolate <, <=, >, and >= operations when a model type defines a Java-style compareTo(...) |
| Method Summary | ||
|---|---|---|
static
|
getValue(Environment<?,?,?,?,?,?,?,?,?,?,?,?> env,
Option<T> option)
Obtains the value of the specified option's setting in the the given environment's options map, adapting the environment as necessary to the Customizable API. |
|
static
|
setOption(Environment<?,?,?,?,?,?,?,?,?,?,?,?> env,
Option<T> option,
T value)
Add an option to apply to the specified environment, adapting it as necessary to the Customizable API. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Option<Boolean> DEFINITION_CONSTRAINS_FEATURE
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<Boolean> USE_COMPARE_TO_OPERATION
Parsing option indicating whether to interpolate <, <=, >, and >= 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.
| Method Detail |
|---|
public static <T> void setOption(Environment<?,?,?,?,?,?,?,?,?,?,?,?> env,
Option<T> option,
T value)
Customizable API.
env - an environment on which to set an optionoption - the optionvalue - the option's valueCusotmizable#setOption(Option, Object)
public static <T> T getValue(Environment<?,?,?,?,?,?,?,?,?,?,?,?> env,
Option<T> option)
Customizable API. If not already set, return the option's
default value.
env - an environment on which to query an optionoption - an option to query
Customizable.getValue(Option)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||