TypeSchema Class
Module: opcua.miscellaneous
Constructor
TypeSchema
(
-
options
Parameters:
-
options
Object
Item Index
Methods
computer_default_value
(
-
defaultValue
Parameters:
-
defaultValue
the default value
Returns:
:
findBuiltInType
find the Builtin Type that this
(
-
datatypeName
Parameters:
-
datatypeName
Object
Returns:
:
initialize_value
(
-
value
-
defaultValue
Parameters:
-
value
Object -
defaultValue
Object
Returns:
:
registerBasicType
(
-
schema
register a Basic Type , A basic type is new entity type that resolved to a SubType
Parameters:
-
schema
Object-
name
String -
subtype
Stringmandatory, the basic type from which the new type derives.
-
[encode]
Function optionaloptional,a specific encoder function to encode an instance of this type.
-
value
-
stream
Stream
-
-
[decode]
Function optionaloptional,a specific decoder function that returns the decode value out of the stream.
-
[stream]
Stream optional
-
-
[coerce]
Function optionaloptional, a method to convert a value into the request type.
-
value
the value to coerce.
-
-
[random]
Function optionaloptional, a method to construct a random object of this type
-
[toJSONFunc]
Function optionaloptional, a method to convert a value into the request type.
-
Example:
:
registerBasicType({name:"Duration" ,subtype:"Double"});