|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.options.EvaluationOptions
public class EvaluationOptions
Options applicable to EvaluationEnvironment
s to
customize their evaluation behaviour.
Field Summary | |
---|---|
static Option<java.lang.Boolean> |
LAX_NULL_HANDLING
Evaluation option indicating whether to implement lax handling of null values in certain OclAny-defined operations. |
Method Summary | ||
---|---|---|
static
|
getValue(EvaluationEnvironment<?,?,?,?,?> 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(EvaluationEnvironment<?,?,?,?,?> 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<java.lang.Boolean> LAX_NULL_HANDLING
Evaluation option indicating whether to implement lax handling of null values in certain OclAny-defined operations. When true, the null.oclIsKindOf(OclType) and null.oclIsTypeOf(OclType) operations will return true for any OCL type instead of returning OclInvalid, as OclVoid is defined as conforming to all other types. Similarly, null.oclAsType(OclType) will return null for any OCL type instead of OclInvalid as prescribed by the OCL 2.0 Specification.
For backward compatibility with the 1.1 release behaviour, the default value of this option is true. For strict conformance to the specification, use false.
Method Detail |
---|
public static <T> void setOption(EvaluationEnvironment<?,?,?,?,?> env, Option<T> option, T value)
Customizable
API.
env
- an evaluation environment on which to set an optionoption
- the optionvalue
- the option's valueCusotmizable#setOption(Option, Object)
public static <T> T getValue(EvaluationEnvironment<?,?,?,?,?> env, Option<T> option)
Customizable
API. If not already set, return the option's
default value.
env
- an evaluation 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 |