NodeIdType
A NodeId's type. Never create instances of this class, always use the exported constant ones.
Example:
import { NodeIdType } from 'atvise-scm';
const numericType = NodeIdType.Numeric;
const stringType = NodeIdType.String;
const guidType = NodeIdType.GUID;
const bytestringType = NodeIdType.Bytestring;
Static Member Summary
| Static Public Members | ||
| public static get |
Bytestring id type. |
|
| public static get |
GUID id type. |
|
| public static get |
Numeric id type. |
|
| public static get |
String id type. |
|
Static Method Summary
| Static Public Methods | ||
| public static |
forIdentifier(identifier: String): NodeIdType Returns the type for an identifier. |
|
| public static |
forValue(value: Number): NodeIdType Returns the type for a value. |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(name: String, value: Number, identifier: String) this constructor was deprecated. Never create instances directly, use one of `NodeIdType.Numeric`,
`NodeIdType.String`, `NodeIdType.GUID` and `NodeIdType.Bytestring`.
Creates a new NodeIdType. |
|
Member Summary
| Public Members | ||
| public |
The identivier to use when converting to and from String. |
|
| public |
The name of a type. |
|
| public |
The numeric value of a type. |
|
Method Summary
| Public Methods | ||
| public |
is(type: NodeIdType): Boolean Compares two NodeIdTypes. |
|
| public |
Returns the string representation of a NodeIdType. |
|
Static Public Members
Static Public Methods
public static forIdentifier(identifier: String): NodeIdType source
Returns the type for an identifier.
Params:
| Name | Type | Attribute | Description |
| identifier | String | The identifier to get a NodeIdType for. |
public static forValue(value: Number): NodeIdType source
Returns the type for a value.
Params:
| Name | Type | Attribute | Description |
| value | Number | The numeric value to get a NodeIdType for. |
Public Constructors
Public Members
Public Methods
public is(type: NodeIdType): Boolean source
Compares two NodeIdTypes. Needed internally by node-opcua.
Params:
| Name | Type | Attribute | Description |
| type | NodeIdType | The type to compare |