Package adams.flow.control
Enum ScopeHandler.ScopeHandling
- java.lang.Object
-
- java.lang.Enum<ScopeHandler.ScopeHandling>
-
- adams.flow.control.ScopeHandler.ScopeHandling
-
- All Implemented Interfaces:
Serializable
,Comparable<ScopeHandler.ScopeHandling>
- Enclosing interface:
- ScopeHandler
public static enum ScopeHandler.ScopeHandling extends Enum<ScopeHandler.ScopeHandling>
Enumer for how the scope is being handled.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScopeHandler.ScopeHandling
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScopeHandler.ScopeHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final ScopeHandler.ScopeHandling EMPTY
start with empty object.
-
COPY
public static final ScopeHandler.ScopeHandling COPY
use copy of outer scope.
-
SHARE
public static final ScopeHandler.ScopeHandling SHARE
share with outer scope.
-
-
Method Detail
-
values
public static ScopeHandler.ScopeHandling[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScopeHandler.ScopeHandling c : ScopeHandler.ScopeHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScopeHandler.ScopeHandling valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-