org.opcfoundation.ua.core
Enum AccessLevel

java.lang.Object
  extended by java.lang.Enum<AccessLevel>
      extended by org.opcfoundation.ua.core.AccessLevel
All Implemented Interfaces:
Serializable, Comparable<AccessLevel>, Enumeration

public enum AccessLevel
extends Enum<AccessLevel>
implements Enumeration

AccessLevel class.


Enum Constant Summary
CurrentRead
           
CurrentWrite
           
HistoryRead
           
HistoryWrite
           
SemanticChange
           
StatusWrite
           
TimestampWrite
           
 
Field Summary
static EnumSet<AccessLevel> ALL
          Constant ALL
static EnumSet<AccessLevel> HISTORYREAD
          Constant HISTORYREAD
static EnumSet<AccessLevel> HISTORYREADWRITE
          Constant HISTORYREADWRITE
static EnumSet<AccessLevel> NONE
          Constant NONE
static EnumSet<AccessLevel> READONLY
          Constant READONLY
static EnumSet<AccessLevel> READWRITE
          Constant READWRITE
static EnumSet<AccessLevel> READWRITE_STATUS
          Constant READWRITE_STATUS
static EnumSet<AccessLevel> READWRITE_STATUS_TIMESTAMP
          Constant READWRITE_STATUS_TIMESTAMP
static EnumSet<AccessLevel> WRITEONLY
          Constant WRITEONLY
 
Method Summary
static UnsignedByte getMask(AccessLevel... list)
          getMask.
static UnsignedByte getMask(Collection<AccessLevel> list)
          getMask.
static EnumSet<AccessLevel> getSet(int mask)
          getSet.
static EnumSet<AccessLevel> getSet(UnsignedByte mask)
          getSet.
static EnumSet<AccessLevel> getSet(UnsignedInteger mask)
          getSet.
static EnumSet<AccessLevel> getSet(UnsignedShort mask)
          getSet.
 int getValue()
          getValue.
static AccessLevel valueOf(int value)
          valueOf.
static AccessLevel[] valueOf(int[] value)
          valueOf.
static AccessLevel[] valueOf(Integer[] value)
          valueOf.
static AccessLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessLevel valueOf(UnsignedInteger value)
          valueOf.
static AccessLevel[] valueOf(UnsignedInteger[] value)
          valueOf.
static AccessLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CurrentRead

public static final AccessLevel CurrentRead

CurrentWrite

public static final AccessLevel CurrentWrite

HistoryRead

public static final AccessLevel HistoryRead

HistoryWrite

public static final AccessLevel HistoryWrite

SemanticChange

public static final AccessLevel SemanticChange

StatusWrite

public static final AccessLevel StatusWrite

TimestampWrite

public static final AccessLevel TimestampWrite
Field Detail

NONE

public static final EnumSet<AccessLevel> NONE
Constant NONE


READONLY

public static final EnumSet<AccessLevel> READONLY
Constant READONLY


READWRITE

public static final EnumSet<AccessLevel> READWRITE
Constant READWRITE


READWRITE_STATUS

public static final EnumSet<AccessLevel> READWRITE_STATUS
Constant READWRITE_STATUS


READWRITE_STATUS_TIMESTAMP

public static final EnumSet<AccessLevel> READWRITE_STATUS_TIMESTAMP
Constant READWRITE_STATUS_TIMESTAMP


WRITEONLY

public static final EnumSet<AccessLevel> WRITEONLY
Constant WRITEONLY


HISTORYREAD

public static final EnumSet<AccessLevel> HISTORYREAD
Constant HISTORYREAD


HISTORYREADWRITE

public static final EnumSet<AccessLevel> HISTORYREADWRITE
Constant HISTORYREADWRITE


ALL

public static final EnumSet<AccessLevel> ALL
Constant ALL

Method Detail

values

public static AccessLevel[] 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 (AccessLevel c : AccessLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessLevel 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 name
NullPointerException - if the argument is null

getValue

public int getValue()

getValue.

Specified by:
getValue in interface Enumeration
Returns:
a int.

valueOf

public static AccessLevel valueOf(int value)

valueOf.

Parameters:
value - a int.
Returns:
a AccessLevel object.

valueOf

public static AccessLevel valueOf(UnsignedInteger value)

valueOf.

Parameters:
value - a UnsignedInteger object.
Returns:
a AccessLevel object.

valueOf

public static AccessLevel[] valueOf(int[] value)

valueOf.

Parameters:
value - an array of int.
Returns:
an array of AccessLevel objects.

valueOf

public static AccessLevel[] valueOf(Integer[] value)

valueOf.

Parameters:
value - an array of Integer objects.
Returns:
an array of AccessLevel objects.

valueOf

public static AccessLevel[] valueOf(UnsignedInteger[] value)

valueOf.

Parameters:
value - an array of UnsignedInteger objects.
Returns:
an array of AccessLevel objects.

getMask

public static UnsignedByte getMask(AccessLevel... list)

getMask.

Parameters:
list - a AccessLevel object.
Returns:
a UnsignedByte object.

getMask

public static UnsignedByte getMask(Collection<AccessLevel> list)

getMask.

Parameters:
list - a Collection object.
Returns:
a UnsignedByte object.

getSet

public static EnumSet<AccessLevel> getSet(int mask)

getSet.

Parameters:
mask - a int.
Returns:
a EnumSet object.

getSet

public static EnumSet<AccessLevel> getSet(UnsignedInteger mask)

getSet.

Parameters:
mask - a UnsignedInteger object.
Returns:
a EnumSet object.

getSet

public static EnumSet<AccessLevel> getSet(UnsignedShort mask)

getSet.

Parameters:
mask - a UnsignedShort object.
Returns:
a EnumSet object.

getSet

public static EnumSet<AccessLevel> getSet(UnsignedByte mask)

getSet.

Parameters:
mask - a UnsignedByte object.
Returns:
a EnumSet object.


Copyright © 2018. All rights reserved.