com.prosysopc.ua
Enum WriteAccess

java.lang.Object
  extended by java.lang.Enum<WriteAccess>
      extended by com.prosysopc.ua.WriteAccess
All Implemented Interfaces:
Serializable, Comparable<WriteAccess>

public enum WriteAccess
extends Enum<WriteAccess>


Enum Constant Summary
AccessLevel
           
ArrayDimensions
           
BrowseName
           
ContainsNoLoops
           
DataType
           
Description
           
DisplayName
           
EventNotifier
           
Executable
           
Historizing
           
InverseName
           
IsAbstract
           
MinimumSamplingInterval
           
NodeClass
           
NodeId
           
Symmetric
           
UserAccessLevel
           
UserExecutable
           
UserWriteMask
           
ValueForVariableType
           
ValueRank
           
WriteMask
           
 
Field Summary
static EnumSet<WriteAccess> ALL
           
static EnumSet<WriteAccess> NONE
           
 
Method Summary
 org.opcfoundation.ua.builtintypes.UnsignedInteger getAttributeId()
           
 int getBitNr()
          The writeMask bit number of the access bit
static org.opcfoundation.ua.builtintypes.UnsignedInteger getMask(Collection<WriteAccess> list)
           
static org.opcfoundation.ua.builtintypes.UnsignedInteger getMask(WriteAccess... list)
           
static EnumSet<WriteAccess> getSet(int mask)
           
static EnumSet<WriteAccess> getSet(org.opcfoundation.ua.builtintypes.UnsignedInteger mask)
           
static EnumSet<WriteAccess> getSupportedWriteAccess(org.opcfoundation.ua.builtintypes.UnsignedInteger... attributeIds)
           
 int getValue()
          The writeMask value of the access bit.
static boolean hasAccessToAttribute(EnumSet<WriteAccess> writeMask, org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId)
          Check if the write mask contains the access bit corresponding to attributeId.
static WriteAccess valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WriteAccess valueOf(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId)
          Get the enumeration corresponding to the attributeId
static WriteAccess[] 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

AccessLevel

public static final WriteAccess AccessLevel

ArrayDimensions

public static final WriteAccess ArrayDimensions

BrowseName

public static final WriteAccess BrowseName

ContainsNoLoops

public static final WriteAccess ContainsNoLoops

DataType

public static final WriteAccess DataType

Description

public static final WriteAccess Description

DisplayName

public static final WriteAccess DisplayName

EventNotifier

public static final WriteAccess EventNotifier

Executable

public static final WriteAccess Executable

Historizing

public static final WriteAccess Historizing

InverseName

public static final WriteAccess InverseName

IsAbstract

public static final WriteAccess IsAbstract

MinimumSamplingInterval

public static final WriteAccess MinimumSamplingInterval

NodeClass

public static final WriteAccess NodeClass

NodeId

public static final WriteAccess NodeId

Symmetric

public static final WriteAccess Symmetric

UserAccessLevel

public static final WriteAccess UserAccessLevel

UserExecutable

public static final WriteAccess UserExecutable

UserWriteMask

public static final WriteAccess UserWriteMask

ValueForVariableType

public static final WriteAccess ValueForVariableType

ValueRank

public static final WriteAccess ValueRank

WriteMask

public static final WriteAccess WriteMask
Field Detail

ALL

public static final EnumSet<WriteAccess> ALL

NONE

public static final EnumSet<WriteAccess> NONE
Method Detail

values

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

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

valueOf

public static WriteAccess 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

getMask

public static org.opcfoundation.ua.builtintypes.UnsignedInteger getMask(Collection<WriteAccess> list)

getMask

public static org.opcfoundation.ua.builtintypes.UnsignedInteger getMask(WriteAccess... list)

getSet

public static EnumSet<WriteAccess> getSet(int mask)

getSet

public static EnumSet<WriteAccess> getSet(org.opcfoundation.ua.builtintypes.UnsignedInteger mask)

getSupportedWriteAccess

public static EnumSet<WriteAccess> getSupportedWriteAccess(org.opcfoundation.ua.builtintypes.UnsignedInteger... attributeIds)

hasAccessToAttribute

public static boolean hasAccessToAttribute(EnumSet<WriteAccess> writeMask,
                                           org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId)
Check if the write mask contains the access bit corresponding to attributeId.

Parameters:
writeMask -
attributeId -
Returns:
true, if the set enables access to the attribute

valueOf

public static WriteAccess valueOf(org.opcfoundation.ua.builtintypes.UnsignedInteger attributeId)
Get the enumeration corresponding to the attributeId

Parameters:
attributeId -
Returns:
WriteAccess bit
See Also:
hasAccessToAttribute(java.util.EnumSet, org.opcfoundation.ua.builtintypes.UnsignedInteger)

getAttributeId

public org.opcfoundation.ua.builtintypes.UnsignedInteger getAttributeId()

getBitNr

public int getBitNr()
The writeMask bit number of the access bit

Returns:
the bit number of the enum value

getValue

public int getValue()
The writeMask value of the access bit. Equals to 2^BitNr

Returns:
the integer value of the enum value


Copyright © 2018. All rights reserved.