public class PropertyModeType
extends java.lang.Object
userWorkArea.set("key", "value", PropertyModeType.read_only);then the value would be unchangeable by further set invocations; the value could be removed, however, though of course only within the context in which it was initially set. Similarly,
userWorkArea.set("key", "value", PropertyModeType.fixed_normal);would result in a property that cannot be removed; however, the property could be overwritten or overridden. Therefore,
userWorkArea.set("key", "value", PropertyModeType.fixed_readonly)results in a property that can neither be overriden nor removed; it will exist unchanging until the WorkArea is completed. Properties will be considered normal (may be overwritten, overridden, or deleted) if set with the mode explicitely :
userWorkArea.set("key", "value", PropertyModeType.normal);or if the mode is implicit:
userWorkArea.set("key", "value");
Modifier and Type | Field and Description |
---|---|
static int |
_fixed_normal |
static int |
_fixed_readonly |
static int |
_normal |
static int |
_read_only |
static PropertyModeType |
fixed_normal
Indicates that properties can be overwritten or overridden, but not deleted.
|
static PropertyModeType |
fixed_readonly
Indicates that properties may not be removed, overridden, or overwritten.
|
static PropertyModeType |
normal
Indicates that properties may be overridden, overwritten, or deleted.
|
static PropertyModeType |
read_only
Indicates that properties may be deleted, but cannot be overridden or overwritten.
|
Modifier and Type | Method and Description |
---|---|
static PropertyModeType |
from_int(int value)
Will return a PropertyModeType corresponding to the given PropertyModeType.
|
int |
value()
Will return an integer representation of the given PropertyModeType.
|
public static final int _normal
public static final PropertyModeType normal
public static final int _read_only
public static final PropertyModeType read_only
public static final int _fixed_normal
public static final PropertyModeType fixed_normal
public static final int _fixed_readonly
public static final PropertyModeType fixed_readonly
public int value()
public static PropertyModeType from_int(int value)
value
- Must be an integer from with the set of fixed integers defined in the PropertyModeType class.java.lang.IllegalArgumentException
- The value must correspond to one of the constants defined
in the PropertyModeType class.