NodeId
Extends:
A wrapper around node-opcua~NodeId.
Static Method Summary
Static Public Methods | ||
public static |
fromFilePath(path: string): NodeId Creates a new NodeId based on a file path. |
Constructor Summary
Public Constructor | ||
public |
constructor(typeOrValue: node-opcua~NodeIdType | string | number, value: number | string, namespace: number) Creates a new NodeId. |
Member Summary
Public Members | ||
public get |
The node id's browsename as string. |
|
public get |
The node id's value, encoded to a file path. |
|
public get |
this get was deprecated. Doesn't work properly in some edge cases. Use AtviseFile#parentNodeId instead
whenever possible.
The parent node id, or |
Private Members | ||
private get |
Returns the last separator in a string node id's path, e.g.:
|
Method Summary
Public Methods | ||
public |
Returns a string in the format "namespace value" that is printed when inspecting the NodeId using util~inspect. |
|
public |
Checks if the node is a child of another. |
Static Public Methods
Public Constructors
public constructor(typeOrValue: node-opcua~NodeIdType | string | number, value: number | string, namespace: number) source
Creates a new NodeId. Can be called in multiple ways:
- with a node-opcua~NodeIdType, a value and a namespace (defaults to 0),
- with a value only (type will be taken from it, namespace defaults to 1) or
- with a NodeIds string representation (for example
ns=1;s=AGENT.DISPLAYS
).
Test:
Public Members
public get parent: NodeId source
The parent node id, or null
.
Test:
Private Members
Public Methods
public inspect(depth: number, options: Object): string source
Returns a string in the format "namespace value" that is printed when inspecting the NodeId using util~inspect.