org.opcfoundation.ua.encoding.binary
Enum NodeIdEncoding

java.lang.Object
  extended by java.lang.Enum<NodeIdEncoding>
      extended by org.opcfoundation.ua.encoding.binary.NodeIdEncoding
All Implemented Interfaces:
Serializable, Comparable<NodeIdEncoding>

public enum NodeIdEncoding
extends Enum<NodeIdEncoding>

NodeId binary encoding byte.


Enum Constant Summary
ByteString
           
FourByte
           
Guid
           
Numeric
           
String
           
TwoByte
           
 
Method Summary
 byte getBits()
          Getter for the field bits.
static NodeIdEncoding getNodeIdEncoding(int bits)
          getNodeIdEncoding.
 IdType toIdentifierType()
          toIdentifierType.
static NodeIdEncoding valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeIdEncoding[] 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

TwoByte

public static final NodeIdEncoding TwoByte

FourByte

public static final NodeIdEncoding FourByte

Numeric

public static final NodeIdEncoding Numeric

String

public static final NodeIdEncoding String

Guid

public static final NodeIdEncoding Guid

ByteString

public static final NodeIdEncoding ByteString
Method Detail

values

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

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

valueOf

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

getBits

public byte getBits()

Getter for the field bits.

Returns:
a byte.

toIdentifierType

public IdType toIdentifierType()

toIdentifierType.

Returns:
a IdType object.

getNodeIdEncoding

public static NodeIdEncoding getNodeIdEncoding(int bits)

getNodeIdEncoding.

Parameters:
bits - a int.
Returns:
a NodeIdEncoding object.


Copyright © 2018. All rights reserved.