Home Manual Reference Source Test
import {NodeIdType} from 'atvise-scm/src/lib/model/NodeId.js'
public class | source

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

Returns the type for an identifier.

public static

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

Compares two NodeIdTypes.

public

Returns the string representation of a NodeIdType.

Static Public Members

public static get Bytestring: NodeIdType source

Bytestring id type.

public static get GUID: NodeIdType source

GUID id type.

public static get Numeric: NodeIdType source

Numeric id type.

public static get String: NodeIdType source

String id type.

Static Public Methods

public static forIdentifier(identifier: String): NodeIdType source

Returns the type for an identifier.

Params:

NameTypeAttributeDescription
identifier String

The identifier to get a NodeIdType for.

Return:

NodeIdType

The corresponding type.

public static forValue(value: Number): NodeIdType source

Returns the type for a value.

Params:

NameTypeAttributeDescription
value Number

The numeric value to get a NodeIdType for.

Return:

NodeIdType

The corresponding type.

Public Constructors

public constructor(name: String, value: Number, identifier: String) source

this constructor was deprecated. Never create instances directly, use one of `NodeIdType.Numeric`, `NodeIdType.String`, `NodeIdType.GUID` and `NodeIdType.Bytestring`.

Creates a new NodeIdType.

Params:

NameTypeAttributeDescription
name String

The new type's name.

value Number

The new type's value.

identifier String

The identivier to use when converting to and from String.

Public Members

public identifier: String source

The identivier to use when converting to and from String.

public name: String source

The name of a type.

public value: Number source

The numeric value of a type.

Public Methods

public is(type: NodeIdType): Boolean source

Compares two NodeIdTypes. Needed internally by node-opcua.

Params:

NameTypeAttributeDescription
type NodeIdType

The type to compare

Return:

Boolean

If type matches the current instance.

public toString(): String source

Returns the string representation of a NodeIdType.

Return:

String

A string representing the NodeIdType.