| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.engine.ExecutionOptions
public final class ExecutionOptions
The ExecutionOptions contain a set of options that can be passed to the KRMS engine to control certain aspects related to it's execution. It supports two different types of options:
ExecutionFlag instances which can be either true or falseThe options map can be used to pass user-defined or provider-specific options.  The ExecutionOptions are made
 available as part of the ExecutionEnvironment during engine execution.
 
 
Instances of ExecutionOptions are not safe for use by multiple threads.
| Constructor Summary | |
|---|---|
| ExecutionOptions()Construct an empty set of execution options. | |
| ExecutionOptions(ExecutionOptions executionOptions)Constructs a new set of execution options, initialized with all options and flags copied from the given set of execution options. | |
| Method Summary | |
|---|---|
|  boolean | getFlag(ExecutionFlag flag)Returns the value the given flag. | 
|  Map<ExecutionFlag,Boolean> | getFlags()Returns an immutable map of the flags that have been set on this object. | 
|  String | getOption(String optionName)Returns the value for the option with the given name, or null if the option is not set. | 
|  Map<String,String> | getOptions()Returns an immutable map of the options that have been set on this object. | 
|  boolean | isFlagSet(ExecutionFlag flag)Checks whether or not the given flag is set. | 
|  boolean | isOptionSet(String optionName)Checks whether or not the option with the given name has been set. | 
|  ExecutionOptions | removeFlag(ExecutionFlag flag)Removes the specified flag (if it has been set) from the set of execution options. | 
|  ExecutionOptions | removeOption(String optionName)Removes the option with the specified name (if it has been set) from the set of execution options. | 
|  ExecutionOptions | setFlag(ExecutionFlag flag,
               boolean value)Sets the value for the given flag to the given boolean value. | 
|  ExecutionOptions | setOption(String optionName,
                   String value)Sets the value for the given option name to the given value. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExecutionOptions()
public ExecutionOptions(ExecutionOptions executionOptions)
executionOptions - the execution options from which to copy into the newly created instance.
 If the given execution options are null, then this constructor is equivalent to ExecutionOptions()| Method Detail | 
|---|
public ExecutionOptions setFlag(ExecutionFlag flag,
                                boolean value)
flag - the flag to setvalue - the flag value to set
IllegalArgumentException - if the given flag is null
public ExecutionOptions setOption(String optionName,
                                  String value)
optionName - the name of the option to setvalue - the value of the option to set
IllegalArgumentException - if the given optionName is blankpublic ExecutionOptions removeFlag(ExecutionFlag flag)
flag - the flag to remove
IllegalArgumentException - if the given flag is nullpublic ExecutionOptions removeOption(String optionName)
optionName - the name of the option to remove
IllegalArgumentException - if the given optionName is blankpublic boolean getFlag(ExecutionFlag flag)
ExecutionFlag.getDefaultValue() will be returned.
flag - the flag to check
IllegalArgumentException - if the given flag is nullpublic String getOption(String optionName)
optionName - the name of the option for which to retrieve the value
IllegalArgumentException - if the given optionName is blankpublic boolean isFlagSet(ExecutionFlag flag)
flag - the flag to check
IllegalArgumentException - if the given flag is nullpublic boolean isOptionSet(String optionName)
optionName - the name of the option to check
IllegalArgumentException - if the given optionName is blankpublic Map<ExecutionFlag,Boolean> getFlags()
public Map<String,String> getOptions()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||