Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeId

Construct a node ID

class

NodeId

example
   const nodeId = new NodeId(NodeIdType.NUMERIC,123,1);
constructor

Hierarchy

Index

Constructors

constructor

  • new NodeId(identifierType: NodeIdType, value: any, namespace?: number): NodeId
  • Parameters

    • identifierType: NodeIdType

      the nodeID type

    • value: any

      the node id value. The type of Value depends on identifierType.

    • Optional namespace: number

      the index of the related namespace (optional , default value = 0 )

    Returns NodeId

Properties

identifierType

identifierType: NodeIdType

namespace

namespace: number

value

value: number | string | Buffer | Guid

Static NodeIdType

NodeIdType: NodeIdType = NodeIdType

Static nullNodeId

nullNodeId: NodeId

Static resolveNodeId

resolveNodeId: function

Type declaration

Static sameNodeId

sameNodeId: function

Type declaration

Methods

displayText

  • displayText(): string

isEmpty

  • isEmpty(): boolean

toJSON

  • toJSON(): string

toString

  • toString(options?: object): string
  • get the string representation of the nodeID.

    method

    toString

    example
       const nodeid = new NodeId(NodeIdType.NUMERIC, 123,1);
       console.log(nodeid.toString());
       >"ns=1;i=123"

    Parameters

    • Optional options: object

    Returns string

Generated using TypeDoc