| java.lang.Object org.andromda.translation.ocl.validation.OCLResultEnsurer
OCLResultEnsurer | final public class OCLResultEnsurer (Code) | |
Ensures that the result of the OCL expression is a boolean value. This is necessary because some expressions' results
will actually be wrapped in an instance of java.lang.Object because of the fact that OCLIntropector is
used.
author: Chad Brandon |
Method Summary | |
public static boolean | ensure(boolean result) Does nothing but return the passed in result argument.
Parameters: result - the result. | public static boolean | ensure(Object result) Converts the passed in result to a boolean value and returns it. |
ensure | public static boolean ensure(boolean result)(Code) | | Does nothing but return the passed in result argument.
Parameters: result - the result. the boolean result. |
ensure | public static boolean ensure(Object result)(Code) | | Converts the passed in result to a boolean value and returns it. If result
is null, false will be assumed.
Parameters: result - the boolean result. |
|
|