Package org.eclipse.milo.opcua.sdk.core
Enum Class AccessLevel
- All Implemented Interfaces:
Serializable,Comparable<AccessLevel>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<AccessLevel>static final Set<AccessLevel>static final Set<AccessLevel>static final Set<AccessLevel>static final Set<AccessLevel>static final Set<AccessLevel> -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<AccessLevel>fromValue(int accessLevel) Create a Set ofAccessLevelfrom theaccessLevelvalue.static EnumSet<AccessLevel>fromValue(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte accessLevel) Create a Set ofAccessLevelfrom theaccessLevelvalue.intgetValue()static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UBytetoValue(Set<AccessLevel> levels) Convertlevelsto aUBytevalue for the AccessLevel or UserAccessLevel attribute.static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UBytetoValue(AccessLevel... levels) Convertlevelsto aUBytevalue for the AccessLevel or UserAccessLevel attribute.static AccessLevelReturns the enum constant of this class with the specified name.static AccessLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CurrentRead
-
CurrentWrite
-
HistoryRead
-
HistoryWrite
-
SemanticChange
-
StatusWrite
-
TimestampWrite
-
-
Field Details
-
NONE
-
READ_ONLY
-
WRITE_ONLY
-
READ_WRITE
-
HISTORY_READ_ONLY
-
HISTORY_READ_WRITE
-
-
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
-
getValue
public int getValue() -
fromValue
public static EnumSet<AccessLevel> fromValue(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte accessLevel) Create a Set ofAccessLevelfrom theaccessLevelvalue.- Parameters:
accessLevel- aUBytevalue.- Returns:
- the Set of
AccessLevelindicated byaccessValue.
-
fromValue
Create a Set ofAccessLevelfrom theaccessLevelvalue.- Parameters:
accessLevel- an int value.- Returns:
- the Set of
AccessLevelindicated byaccessValue.
-
toValue
public static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte toValue(AccessLevel... levels) Convertlevelsto aUBytevalue for the AccessLevel or UserAccessLevel attribute.- Parameters:
levels- theAccessLevels to include in the value.- Returns:
- a value for the AccessLevel or UserAccessLevel attribute.
-
toValue
public static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte toValue(Set<AccessLevel> levels) Convertlevelsto aUBytevalue for the AccessLevel or UserAccessLevel attribute.- Parameters:
levels- theAccessLevels to include in the value.- Returns:
- a value for the AccessLevel or UserAccessLevel attribute.
-