Enum Class MutabilityMode
- All Implemented Interfaces:
Serializable
,Comparable<MutabilityMode>
,Constable
Mutability mode represents how a session should interact with external sources of data, such as tags or
databases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDon't communicate with sources at allOnly read values, don't alter themFull read and write access enabled. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
boolean
canWrite()
static MutabilityMode
Returns the enum constant of this class with the specified name.static MutabilityMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Don't communicate with sources at all -
READ_ONLY
Only read values, don't alter them -
READ_WRITE
Full read and write access enabled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
canRead
public boolean canRead()- Returns:
- false if the designer session has its gateway comm mode set to "off". Avoid reading from data sources.
-
canWrite
public boolean canWrite()- Returns:
- false if the designer session has its gateway comm mode set to "off" or "read-only". Avoid writing back to data sources.
-