node-opcua-service-browse
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.591Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.520Z | ||
"use strict"; | ||
@@ -6,22 +6,22 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseDescription_schema").BrowseDescription_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseDescription_schema").BrowseDescription_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -35,8 +35,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.nodeId] {NodeId} The id of the node to browse. | ||
* @param [options.browseDirection] {BrowseDirection} The direction of the references to return. | ||
* @param [options.referenceTypeId] {NodeId} The type of references to return.Specifies the NodeId of the ReferenceType to follow. Only instances of this ReferenceType or its subtype are returned.If not specified then all ReferenceTypes are returned and includeSubtypes is ignored. | ||
* @param [options.includeSubtypes] {Boolean} Includes subtypes of the reference type. | ||
* @param [options.nodeClassMask] {UInt32} A mask indicating which node classes to return. 0 means return all nodes. | ||
* @param [options.resultMask = 0] {UInt32} A mask indicating which fields in the ReferenceDescription should be returned in the results. | ||
*/ | ||
@@ -48,3 +42,3 @@ function BrowseDescription(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -108,3 +102,3 @@ resolve_schema_field_types(schema); | ||
BrowseDescription.prototype.setBrowseDirection = function(value) { | ||
var coercedValue = _enumerations.BrowseDirection.typedEnum.get(value); | ||
const coercedValue = _enumerations.BrowseDirection.typedEnum.get(value); | ||
/* istanbul ignore next */ | ||
@@ -120,10 +114,10 @@ if (coercedValue === undefined || coercedValue === null) { | ||
var encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
var decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
var encode_BrowseDirection = _enumerations.BrowseDirection.encode; | ||
var decode_BrowseDirection = _enumerations.BrowseDirection.decode; | ||
var encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
var decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
var encode_UInt32 = _defaultTypeMap.UInt32.encode; | ||
var decode_UInt32 = _defaultTypeMap.UInt32.decode; | ||
const encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
const decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
const encode_BrowseDirection = _enumerations.BrowseDirection.encode; | ||
const decode_BrowseDirection = _enumerations.BrowseDirection.decode; | ||
const encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
const decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
const encode_UInt32 = _defaultTypeMap.UInt32.encode; | ||
const decode_UInt32 = _defaultTypeMap.UInt32.decode; | ||
/** | ||
@@ -150,13 +144,12 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseDescription.prototype.decode = function(stream,options) { | ||
BrowseDescription.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.nodeId = decode_NodeId(stream,options); | ||
this.browseDirection = decode_BrowseDirection(stream,options); | ||
this.referenceTypeId = decode_NodeId(stream,options); | ||
this.includeSubtypes = decode_Boolean(stream,options); | ||
this.nodeClassMask = decode_UInt32(stream,options); | ||
this.resultMask = decode_UInt32(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.nodeId = decode_NodeId(stream); | ||
this.browseDirection = decode_BrowseDirection(stream); | ||
this.referenceTypeId = decode_NodeId(stream); | ||
this.includeSubtypes = decode_Boolean(stream); | ||
this.nodeClassMask = decode_UInt32(stream); | ||
this.resultMask = decode_UInt32(stream); | ||
}; | ||
@@ -174,3 +167,3 @@ BrowseDescription.possibleFields = [ | ||
exports.BrowseDescription = BrowseDescription; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseDescription",BrowseDescription); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.716Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.655Z | ||
"use strict"; | ||
@@ -6,23 +6,23 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseNextRequest_schema").BrowseNextRequest_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var RequestHeader = getFactory("RequestHeader"); | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseNextRequest_schema").BrowseNextRequest_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const RequestHeader = getFactory("RequestHeader"); | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -36,5 +36,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.requestHeader] {RequestHeader} A standard header included in all requests sent to a server. | ||
* @param [options.releaseContinuationPoints] {Boolean} If TRUE the continuation points are released and no results are returned. | ||
* @param [options.continuationPoints] {ContinuationPoint[]} The maximum number of references to return in the response. | ||
*/ | ||
@@ -46,3 +43,3 @@ function BrowseNextRequest(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -86,6 +83,6 @@ resolve_schema_field_types(schema); | ||
var encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
var decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
var encode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.encode; | ||
var decode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.decode; | ||
const encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
const decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
const encode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.encode; | ||
const decode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.decode; | ||
/** | ||
@@ -109,9 +106,8 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseNextRequest.prototype.decode = function(stream,options) { | ||
BrowseNextRequest.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.requestHeader.decode(stream,options); | ||
this.releaseContinuationPoints = decode_Boolean(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.requestHeader.decode(stream); | ||
this.releaseContinuationPoints = decode_Boolean(stream); | ||
this.continuationPoints = decodeArray(stream, decode_ContinuationPoint); | ||
@@ -127,3 +123,3 @@ }; | ||
exports.BrowseNextRequest = BrowseNextRequest; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseNextRequest",BrowseNextRequest); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.730Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.664Z | ||
"use strict"; | ||
@@ -6,25 +6,25 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseNextResponse_schema").BrowseNextResponse_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var ResponseHeader = getFactory("ResponseHeader"); | ||
var BrowseResult = require("./_auto_generated_BrowseResult").BrowseResult; | ||
var DiagnosticInfo = getFactory("DiagnosticInfo"); | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseNextResponse_schema").BrowseNextResponse_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const ResponseHeader = getFactory("ResponseHeader"); | ||
const BrowseResult = require("./_auto_generated_BrowseResult").BrowseResult; | ||
const DiagnosticInfo = getFactory("DiagnosticInfo"); | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -38,5 +38,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.responseHeader] {ResponseHeader} A standard header included in all responses returned by servers. | ||
* @param [options.results] {BrowseResult[]} The results for the browse operations. | ||
* @param [options.diagnosticInfos] {DiagnosticInfo[]} The diagnostics associated with the results. | ||
*/ | ||
@@ -48,3 +45,3 @@ function BrowseNextResponse(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -116,16 +113,15 @@ resolve_schema_field_types(schema); | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseNextResponse.prototype.decode = function(stream,options) { | ||
BrowseNextResponse.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.responseHeader.decode(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.responseHeader.decode(stream); | ||
this.results = decodeArray(stream, function(stream) { | ||
var obj = new BrowseResult(null); | ||
obj.decode(stream,options); | ||
const obj = new BrowseResult(null); | ||
obj.decode(stream); | ||
return obj; | ||
}); | ||
this.diagnosticInfos = decodeArray(stream, function(stream) { | ||
var obj = new DiagnosticInfo(null); | ||
obj.decode(stream,options); | ||
const obj = new DiagnosticInfo(null); | ||
obj.decode(stream); | ||
return obj; | ||
@@ -142,3 +138,3 @@ }); | ||
exports.BrowseNextResponse = BrowseNextResponse; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseNextResponse",BrowseNextResponse); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.692Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.635Z | ||
"use strict"; | ||
@@ -6,25 +6,25 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseRequest_schema").BrowseRequest_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var RequestHeader = getFactory("RequestHeader"); | ||
var ViewDescription = require("./_auto_generated_ViewDescription").ViewDescription; | ||
var BrowseDescription = require("./_auto_generated_BrowseDescription").BrowseDescription; | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseRequest_schema").BrowseRequest_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const RequestHeader = getFactory("RequestHeader"); | ||
const ViewDescription = require("./_auto_generated_ViewDescription").ViewDescription; | ||
const BrowseDescription = require("./_auto_generated_BrowseDescription").BrowseDescription; | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -38,6 +38,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.requestHeader] {RequestHeader} A standard header included in all requests sent to a server. | ||
* @param [options.view] {ViewDescription} The view to browse. | ||
* @param [options.requestedMaxReferencesPerNode] {Counter} The maximum number of references to return in the response. | ||
* @param [options.nodesToBrowse] {BrowseDescription[]} The list of nodes to browse. | ||
*/ | ||
@@ -49,3 +45,3 @@ function BrowseRequest(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -102,4 +98,4 @@ resolve_schema_field_types(schema); | ||
var encode_Counter = _defaultTypeMap.Counter.encode; | ||
var decode_Counter = _defaultTypeMap.Counter.decode; | ||
const encode_Counter = _defaultTypeMap.Counter.encode; | ||
const decode_Counter = _defaultTypeMap.Counter.decode; | ||
/** | ||
@@ -124,13 +120,12 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseRequest.prototype.decode = function(stream,options) { | ||
BrowseRequest.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.requestHeader.decode(stream,options); | ||
this.view.decode(stream,options); | ||
this.requestedMaxReferencesPerNode = decode_Counter(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.requestHeader.decode(stream); | ||
this.view.decode(stream); | ||
this.requestedMaxReferencesPerNode = decode_Counter(stream); | ||
this.nodesToBrowse = decodeArray(stream, function(stream) { | ||
var obj = new BrowseDescription(null); | ||
obj.decode(stream,options); | ||
const obj = new BrowseDescription(null); | ||
obj.decode(stream); | ||
return obj; | ||
@@ -148,3 +143,3 @@ }); | ||
exports.BrowseRequest = BrowseRequest; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseRequest",BrowseRequest); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.707Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.645Z | ||
"use strict"; | ||
@@ -6,25 +6,25 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseResponse_schema").BrowseResponse_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var ResponseHeader = getFactory("ResponseHeader"); | ||
var BrowseResult = require("./_auto_generated_BrowseResult").BrowseResult; | ||
var DiagnosticInfo = getFactory("DiagnosticInfo"); | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseResponse_schema").BrowseResponse_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const ResponseHeader = getFactory("ResponseHeader"); | ||
const BrowseResult = require("./_auto_generated_BrowseResult").BrowseResult; | ||
const DiagnosticInfo = getFactory("DiagnosticInfo"); | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -38,5 +38,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.responseHeader] {ResponseHeader} A standard header included in all responses returned by servers. | ||
* @param [options.results] {BrowseResult[]} The results for the browse operations. | ||
* @param [options.diagnosticInfos] {DiagnosticInfo[]} The diagnostics associated with the results. | ||
*/ | ||
@@ -48,3 +45,3 @@ function BrowseResponse(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -116,16 +113,15 @@ resolve_schema_field_types(schema); | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseResponse.prototype.decode = function(stream,options) { | ||
BrowseResponse.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.responseHeader.decode(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.responseHeader.decode(stream); | ||
this.results = decodeArray(stream, function(stream) { | ||
var obj = new BrowseResult(null); | ||
obj.decode(stream,options); | ||
const obj = new BrowseResult(null); | ||
obj.decode(stream); | ||
return obj; | ||
}); | ||
this.diagnosticInfos = decodeArray(stream, function(stream) { | ||
var obj = new DiagnosticInfo(null); | ||
obj.decode(stream,options); | ||
const obj = new DiagnosticInfo(null); | ||
obj.decode(stream); | ||
return obj; | ||
@@ -142,3 +138,3 @@ }); | ||
exports.BrowseResponse = BrowseResponse; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseResponse",BrowseResponse); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.599Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.528Z | ||
"use strict"; | ||
@@ -6,23 +6,23 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/BrowseResult_schema").BrowseResult_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var ReferenceDescription = require("./_auto_generated_ReferenceDescription").ReferenceDescription; | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/BrowseResult_schema").BrowseResult_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const ReferenceDescription = require("./_auto_generated_ReferenceDescription").ReferenceDescription; | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -36,5 +36,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.statusCode] {StatusCode} A code indicating any error during the operation. | ||
* @param [options.continuationPoint = null] {ContinuationPoint} A value that indicates the operation is incomplete and can be continued by calling BrowseNext. | ||
* @param [options.references] {ReferenceDescription[]} A list of references that meet the criteria specified in the request. | ||
*/ | ||
@@ -46,3 +43,3 @@ function BrowseResult(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -91,6 +88,6 @@ resolve_schema_field_types(schema); | ||
var encode_StatusCode = _defaultTypeMap.StatusCode.encode; | ||
var decode_StatusCode = _defaultTypeMap.StatusCode.decode; | ||
var encode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.encode; | ||
var decode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.decode; | ||
const encode_StatusCode = _defaultTypeMap.StatusCode.encode; | ||
const decode_StatusCode = _defaultTypeMap.StatusCode.decode; | ||
const encode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.encode; | ||
const decode_ContinuationPoint = _defaultTypeMap.ContinuationPoint.decode; | ||
/** | ||
@@ -114,12 +111,11 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
BrowseResult.prototype.decode = function(stream,options) { | ||
BrowseResult.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.statusCode = decode_StatusCode(stream,options); | ||
this.continuationPoint = decode_ContinuationPoint(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.statusCode = decode_StatusCode(stream); | ||
this.continuationPoint = decode_ContinuationPoint(stream); | ||
this.references = decodeArray(stream, function(stream) { | ||
var obj = new ReferenceDescription(null); | ||
obj.decode(stream,options); | ||
const obj = new ReferenceDescription(null); | ||
obj.decode(stream); | ||
return obj; | ||
@@ -136,3 +132,3 @@ }); | ||
exports.BrowseResult = BrowseResult; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("BrowseResult",BrowseResult); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.563Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.476Z | ||
"use strict"; | ||
@@ -6,24 +6,24 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/ReferenceDescription_schema").ReferenceDescription_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var QualifiedName = getFactory("QualifiedName"); | ||
var LocalizedText = getFactory("LocalizedText"); | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/ReferenceDescription_schema").ReferenceDescription_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const QualifiedName = getFactory("QualifiedName"); | ||
const LocalizedText = getFactory("LocalizedText"); | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -37,9 +37,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.referenceTypeId] {NodeId} The type of references. | ||
* @param [options.isForward] {Boolean} TRUE if the reference is a forward reference. | ||
* @param [options.nodeId] {ExpandedNodeId} The id of the target node. | ||
* @param [options.browseName] {QualifiedName} The browse name of the target node. | ||
* @param [options.displayName] {LocalizedText} The display name of the target node. | ||
* @param [options.nodeClass = 0] {NodeClass} The node class of the target node. | ||
* @param [options.typeDefinition] {ExpandedNodeId} The type definition of the target node. | ||
*/ | ||
@@ -51,3 +44,3 @@ function ReferenceDescription(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -120,3 +113,3 @@ resolve_schema_field_types(schema); | ||
ReferenceDescription.prototype.setNodeClass = function(value) { | ||
var coercedValue = _enumerations.NodeClass.typedEnum.get(value); | ||
const coercedValue = _enumerations.NodeClass.typedEnum.get(value); | ||
/* istanbul ignore next */ | ||
@@ -132,10 +125,10 @@ if (coercedValue === undefined || coercedValue === null) { | ||
var encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
var decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
var encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
var decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
var encode_ExpandedNodeId = _defaultTypeMap.ExpandedNodeId.encode; | ||
var decode_ExpandedNodeId = _defaultTypeMap.ExpandedNodeId.decode; | ||
var encode_NodeClass = _enumerations.NodeClass.encode; | ||
var decode_NodeClass = _enumerations.NodeClass.decode; | ||
const encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
const decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
const encode_Boolean = _defaultTypeMap.Boolean.encode; | ||
const decode_Boolean = _defaultTypeMap.Boolean.decode; | ||
const encode_ExpandedNodeId = _defaultTypeMap.ExpandedNodeId.encode; | ||
const decode_ExpandedNodeId = _defaultTypeMap.ExpandedNodeId.decode; | ||
const encode_NodeClass = _enumerations.NodeClass.encode; | ||
const decode_NodeClass = _enumerations.NodeClass.decode; | ||
/** | ||
@@ -163,14 +156,13 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
ReferenceDescription.prototype.decode = function(stream,options) { | ||
ReferenceDescription.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.referenceTypeId = decode_NodeId(stream,options); | ||
this.isForward = decode_Boolean(stream,options); | ||
this.nodeId = decode_ExpandedNodeId(stream,options); | ||
this.browseName.decode(stream,options); | ||
this.displayName.decode(stream,options); | ||
this.nodeClass = decode_NodeClass(stream,options); | ||
this.typeDefinition = decode_ExpandedNodeId(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.referenceTypeId = decode_NodeId(stream); | ||
this.isForward = decode_Boolean(stream); | ||
this.nodeId = decode_ExpandedNodeId(stream); | ||
this.browseName.decode(stream); | ||
this.displayName.decode(stream); | ||
this.nodeClass = decode_NodeClass(stream); | ||
this.typeDefinition = decode_ExpandedNodeId(stream); | ||
}; | ||
@@ -189,3 +181,3 @@ ReferenceDescription.possibleFields = [ | ||
exports.ReferenceDescription = ReferenceDescription; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("ReferenceDescription",ReferenceDescription); |
@@ -1,2 +0,2 @@ | ||
// --------- This code has been automatically generated !!! 2018-02-08T07:25:18.585Z | ||
// --------- This code has been automatically generated !!! 2018-04-16T04:56:39.507Z | ||
"use strict"; | ||
@@ -6,22 +6,22 @@ /** | ||
*/ | ||
var assert = require("node-opcua-assert"); | ||
var util = require("util"); | ||
var _ = require("underscore"); | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
var extract_all_fields = schema_helpers.extract_all_fields; | ||
var resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
var initialize_field = schema_helpers.initialize_field; | ||
var initialize_field_array = schema_helpers.initialize_field_array; | ||
var check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
var _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
var ec = require("node-opcua-basic-types"); | ||
var encodeArray = ec.encodeArray; | ||
var decodeArray = ec.decodeArray; | ||
var makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
var generate_new_id = require("node-opcua-factory").generate_new_id; | ||
var _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
var schema = require("../schemas/ViewDescription_schema").ViewDescription_Schema; | ||
var getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
var BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
const assert = require("node-opcua-assert").assert; | ||
const util = require("util"); | ||
const _ = require("underscore"); | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const schema_helpers = require("node-opcua-factory/src/factories_schema_helpers"); | ||
const extract_all_fields = schema_helpers.extract_all_fields; | ||
const resolve_schema_field_types = schema_helpers.resolve_schema_field_types; | ||
const initialize_field = schema_helpers.initialize_field; | ||
const initialize_field_array = schema_helpers.initialize_field_array; | ||
const check_options_correctness_against_schema = schema_helpers.check_options_correctness_against_schema; | ||
const _defaultTypeMap = require("node-opcua-factory/src/factories_builtin_types")._defaultTypeMap; | ||
const ec = require("node-opcua-basic-types"); | ||
const encodeArray = ec.encodeArray; | ||
const decodeArray = ec.decodeArray; | ||
const makeExpandedNodeId = require("node-opcua-nodeid/src/expanded_nodeid").makeExpandedNodeId; | ||
const generate_new_id = require("node-opcua-factory").generate_new_id; | ||
const _enumerations = require("node-opcua-factory/src/factories_enumerations")._private._enumerations; | ||
const schema = require("../schemas/ViewDescription_schema").ViewDescription_Schema; | ||
const getFactory = require("node-opcua-factory/src/factories_factories").getFactory; | ||
const BaseUAObject = require("node-opcua-factory/src/factories_baseobject").BaseUAObject; | ||
@@ -35,5 +35,2 @@ /** | ||
* @param options {Object} | ||
* @param [options.viewId] {NodeId} The node id of the view. | ||
* @param [options.timestamp] {UtcTime} Browses the view at or before this time. | ||
* @param [options.viewVersion] {UInt32} Browses a specific version of the view . | ||
*/ | ||
@@ -45,3 +42,3 @@ function ViewDescription(options) | ||
if (schema_helpers.doDebug) { check_options_correctness_against_schema(this,schema,options); } | ||
var self = this; | ||
const self = this; | ||
assert(this instanceof BaseUAObject); // ' keyword "new" is required for constructor call') | ||
@@ -84,8 +81,8 @@ resolve_schema_field_types(schema); | ||
var encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
var decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
var encode_UtcTime = _defaultTypeMap.UtcTime.encode; | ||
var decode_UtcTime = _defaultTypeMap.UtcTime.decode; | ||
var encode_UInt32 = _defaultTypeMap.UInt32.encode; | ||
var decode_UInt32 = _defaultTypeMap.UInt32.decode; | ||
const encode_NodeId = _defaultTypeMap.NodeId.encode; | ||
const decode_NodeId = _defaultTypeMap.NodeId.decode; | ||
const encode_UtcTime = _defaultTypeMap.UtcTime.encode; | ||
const decode_UtcTime = _defaultTypeMap.UtcTime.decode; | ||
const encode_UInt32 = _defaultTypeMap.UInt32.encode; | ||
const decode_UInt32 = _defaultTypeMap.UInt32.decode; | ||
/** | ||
@@ -109,10 +106,9 @@ * encode the object into a binary stream | ||
* @param stream {BinaryStream} | ||
* @param [option] {object} | ||
*/ | ||
ViewDescription.prototype.decode = function(stream,options) { | ||
ViewDescription.prototype.decode = function(stream) { | ||
// call base class implementation first | ||
BaseUAObject.prototype.decode.call(this,stream,options); | ||
this.viewId = decode_NodeId(stream,options); | ||
this.timestamp = decode_UtcTime(stream,options); | ||
this.viewVersion = decode_UInt32(stream,options); | ||
BaseUAObject.prototype.decode.call(this,stream); | ||
this.viewId = decode_NodeId(stream); | ||
this.timestamp = decode_UtcTime(stream); | ||
this.viewVersion = decode_UInt32(stream); | ||
}; | ||
@@ -127,3 +123,3 @@ ViewDescription.possibleFields = [ | ||
exports.ViewDescription = ViewDescription; | ||
var register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
const register_class_definition = require("node-opcua-factory/src/factories_factories").register_class_definition; | ||
register_class_definition("ViewDescription",ViewDescription); |
{ | ||
"name": "node-opcua-service-browse", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "pure nodejs OPCUA SDK - module -service-browse", | ||
@@ -12,17 +12,17 @@ "scripts": { | ||
"dependencies": { | ||
"node-opcua-assert": "^0.2.0", | ||
"node-opcua-basic-types": "^0.2.3", | ||
"node-opcua-data-model": "^0.2.3", | ||
"node-opcua-factory": "^0.2.3", | ||
"node-opcua-nodeid": "^0.2.3", | ||
"node-opcua-service-secure-channel": "^0.2.3", | ||
"node-opcua-assert": "^0.3.0", | ||
"node-opcua-basic-types": "^0.3.0", | ||
"node-opcua-data-model": "^0.3.0", | ||
"node-opcua-factory": "^0.3.0", | ||
"node-opcua-nodeid": "^0.3.0", | ||
"node-opcua-service-secure-channel": "^0.3.0", | ||
"underscore": "^1.8.3" | ||
}, | ||
"devDependencies": { | ||
"node-opcua-date-time": "^0.2.3", | ||
"node-opcua-debug": "^0.2.2", | ||
"node-opcua-generator": "^0.2.3", | ||
"node-opcua-packet-analyzer": "^0.2.3", | ||
"node-opcua-status-code": "^0.2.3", | ||
"node-opcua-variant": "^0.2.3", | ||
"node-opcua-date-time": "^0.3.0", | ||
"node-opcua-debug": "^0.3.0", | ||
"node-opcua-generator": "^0.3.0", | ||
"node-opcua-packet-analyzer": "^0.3.0", | ||
"node-opcua-status-code": "^0.3.0", | ||
"node-opcua-variant": "^0.3.0", | ||
"should": "13.2.1" | ||
@@ -29,0 +29,0 @@ }, |
"use strict"; | ||
var BrowseDirection= require("node-opcua-data-model").BrowseDirection; | ||
var ResultMask= require("node-opcua-data-model").ResultMask; | ||
var NodeClass = require("node-opcua-data-model").NodeClass; | ||
const BrowseDirection= require("node-opcua-data-model").BrowseDirection; | ||
const ResultMask= require("node-opcua-data-model").ResultMask; | ||
const NodeClass = require("node-opcua-data-model").NodeClass; | ||
var BrowseDescription_Schema = { | ||
const BrowseDescription_Schema = { | ||
name: "BrowseDescription", | ||
@@ -10,0 +10,0 @@ documentation: "A request to browse the the references from a node.", |
require("node-opcua-service-secure-channel"); | ||
var BrowseNextRequest_Schema = { | ||
const BrowseNextRequest_Schema = { | ||
name: "BrowseNextRequest", | ||
@@ -5,0 +5,0 @@ documentation: "Continues one or more browse operations.", |
require("node-opcua-service-secure-channel"); | ||
var BrowseNextResponse_Schema = { | ||
const BrowseNextResponse_Schema = { | ||
name: "BrowseNextResponse", | ||
@@ -5,0 +5,0 @@ documentation: "Browse the references for one or more nodes from the server address space.", |
require("node-opcua-service-secure-channel"); | ||
var BrowseRequest_Schema = { | ||
const BrowseRequest_Schema = { | ||
name: "BrowseRequest", | ||
@@ -5,0 +5,0 @@ documentation: "Browse the references for one or more nodes from the server address space.", |
require("node-opcua-service-secure-channel"); | ||
var BrowseResponse_Schema = { | ||
const BrowseResponse_Schema = { | ||
name: "BrowseResponse", | ||
@@ -5,0 +5,0 @@ documentation: "Browse the references for one or more nodes from the server address space.", |
"use strict"; | ||
var factories = require("node-opcua-factory"); | ||
const factories = require("node-opcua-factory"); | ||
var BrowseResult_Schema = { | ||
const BrowseResult_Schema = { | ||
name: "BrowseResult", | ||
@@ -7,0 +7,0 @@ id: factories.next_available_id(), |
"use strict"; | ||
var factories = require("node-opcua-factory"); | ||
const factories = require("node-opcua-factory"); | ||
var NodeClass = require("node-opcua-data-model").NodeClass; | ||
var resolveNodeId = require("node-opcua-nodeid").resolveNodeId; | ||
var ReferenceDescription_Schema = { | ||
const NodeClass = require("node-opcua-data-model").NodeClass; | ||
const resolveNodeId = require("node-opcua-nodeid").resolveNodeId; | ||
const ReferenceDescription_Schema = { | ||
name: "ReferenceDescription", | ||
@@ -9,0 +9,0 @@ documentation: "The description of a reference.", |
"use strict"; | ||
var factories = require("node-opcua-factory"); | ||
const factories = require("node-opcua-factory"); | ||
// see part 4 $7.37 | ||
var ViewDescription_Schema = { | ||
const ViewDescription_Schema = { | ||
name: "ViewDescription", | ||
@@ -8,0 +8,0 @@ documentation: 'the view to browse.', |
"use strict"; | ||
var should =require("should"); | ||
var browse_service = require(".."); | ||
var redirectToFile = require("node-opcua-debug").redirectToFile; | ||
const should =require("should"); | ||
const browse_service = require(".."); | ||
const redirectToFile = require("node-opcua-debug").redirectToFile; | ||
var BrowseDirection = require("node-opcua-data-model").BrowseDirection; | ||
const BrowseDirection = require("node-opcua-data-model").BrowseDirection; | ||
@@ -12,3 +12,3 @@ describe("Testing Browse Service",function() { | ||
var browseRequest = new browse_service.BrowseRequest({}); | ||
const browseRequest = new browse_service.BrowseRequest({}); | ||
@@ -18,3 +18,3 @@ }); | ||
var browseResponse = new browse_service.BrowseResponse({}); | ||
const browseResponse = new browse_service.BrowseResponse({}); | ||
@@ -27,9 +27,9 @@ }); | ||
var encode_decode_round_trip_test = require("node-opcua-packet-analyzer/test_helpers/encode_decode_round_trip_test").encode_decode_round_trip_test; | ||
const encode_decode_round_trip_test = require("node-opcua-packet-analyzer/test_helpers/encode_decode_round_trip_test").encode_decode_round_trip_test; | ||
it("should construct a BrowseDescription", function () { | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var browseDescription = new browse_service.BrowseDescription({ | ||
const browseDescription = new browse_service.BrowseDescription({ | ||
browseDirection: BrowseDirection.Both, | ||
@@ -48,3 +48,3 @@ referenceTypeId: makeNodeId(12), | ||
it("should create a BrowseRequest", function () { | ||
var browseRequest = new browse_service.BrowseRequest({ | ||
const browseRequest = new browse_service.BrowseRequest({ | ||
view: {}, | ||
@@ -58,3 +58,3 @@ requestedMaxReferencesPerNode: 1, | ||
it("should create a BrowseRequest with correct default value in viewDescription", function () { | ||
var browseRequest = new browse_service.BrowseRequest({ | ||
const browseRequest = new browse_service.BrowseRequest({ | ||
view: {}, | ||
@@ -70,3 +70,3 @@ requestedMaxReferencesPerNode: 1, | ||
// implementation. | ||
var date_time = require("node-opcua-date-time"); | ||
const date_time = require("node-opcua-date-time"); | ||
date_time.bn_dateToHundredNanoSecondFrom1601(browseRequest.view.timestamp).should.eql([0, 0]); | ||
@@ -77,3 +77,3 @@ }); | ||
it("should create a BrowseResponse", function () { | ||
var browseResponse = new browse_service.BrowseResponse({}); | ||
const browseResponse = new browse_service.BrowseResponse({}); | ||
encode_decode_round_trip_test(browseResponse); | ||
@@ -86,8 +86,8 @@ }); | ||
var StatusCodes = require("node-opcua-status-code").StatusCodes; | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var NodeClass = require("node-opcua-data-model").NodeClass; | ||
const StatusCodes = require("node-opcua-status-code").StatusCodes; | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const NodeClass = require("node-opcua-data-model").NodeClass; | ||
var ref = new browse_service.ReferenceDescription({ | ||
const ref = new browse_service.ReferenceDescription({ | ||
referenceTypeId: "ns=1;i=10", | ||
@@ -100,4 +100,4 @@ isForward: true, | ||
var json_str = JSON.stringify(ref, null, " "); | ||
var b = new browse_service.ReferenceDescription(JSON.parse(json_str)); | ||
const json_str = JSON.stringify(ref, null, " "); | ||
const b = new browse_service.ReferenceDescription(JSON.parse(json_str)); | ||
@@ -120,7 +120,7 @@ console.log(require("util").inspect(ref, {colors: true, depth: 15})); | ||
var StatusCodes = require("node-opcua-status-code").StatusCodes; | ||
var makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
var NodeClass = require("node-opcua-data-model").NodeClass; | ||
const StatusCodes = require("node-opcua-status-code").StatusCodes; | ||
const makeNodeId = require("node-opcua-nodeid").makeNodeId; | ||
const NodeClass = require("node-opcua-data-model").NodeClass; | ||
var ref = new browse_service.ReferenceDescription({ | ||
const ref = new browse_service.ReferenceDescription({ | ||
referenceTypeId: "ns=1;i=10", | ||
@@ -132,3 +132,3 @@ isForward: true, | ||
var browseResponse = new browse_service.BrowseResponse({ | ||
const browseResponse = new browse_service.BrowseResponse({ | ||
results: [{ | ||
@@ -140,5 +140,5 @@ statusCode: StatusCodes.Good, | ||
}); | ||
var object = browseResponse; | ||
const object = browseResponse; | ||
var json_str = JSON.stringify(object, null, " "); | ||
const json_str = JSON.stringify(object, null, " "); | ||
@@ -149,3 +149,3 @@ console.log(require("util").inspect(object, {colors: true, depth: 15})); | ||
var b = new browse_service.BrowseResponse(JSON.parse(json_str)); | ||
const b = new browse_service.BrowseResponse(JSON.parse(json_str)); | ||
@@ -152,0 +152,0 @@ console.log(" --------> "); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63422
1352
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addednode-opcua-assert@0.3.0(transitive)
+ Addednode-opcua-basic-types@0.3.0(transitive)
+ Addednode-opcua-binary-stream@0.3.0(transitive)
+ Addednode-opcua-buffer-utils@0.3.0(transitive)
+ Addednode-opcua-data-model@0.3.0(transitive)
+ Addednode-opcua-date-time@0.3.0(transitive)
+ Addednode-opcua-debug@0.3.0(transitive)
+ Addednode-opcua-enum@0.3.0(transitive)
+ Addednode-opcua-extension-object@0.3.0(transitive)
+ Addednode-opcua-factory@0.3.0(transitive)
+ Addednode-opcua-guid@0.3.0(transitive)
+ Addednode-opcua-nodeid@0.3.0(transitive)
+ Addednode-opcua-service-secure-channel@0.3.0(transitive)
+ Addednode-opcua-status-code@0.3.0(transitive)
+ Addednode-opcua-utils@0.3.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removednode-opcua-assert@0.2.0(transitive)
- Removednode-opcua-basic-types@0.2.3(transitive)
- Removednode-opcua-binary-stream@0.2.3(transitive)
- Removednode-opcua-buffer-utils@0.2.0(transitive)
- Removednode-opcua-data-model@0.2.3(transitive)
- Removednode-opcua-date-time@0.2.3(transitive)
- Removednode-opcua-debug@0.2.2(transitive)
- Removednode-opcua-enum@0.2.3(transitive)
- Removednode-opcua-extension-object@0.2.3(transitive)
- Removednode-opcua-factory@0.2.3(transitive)
- Removednode-opcua-guid@0.2.0(transitive)
- Removednode-opcua-nodeid@0.2.3(transitive)
- Removednode-opcua-service-secure-channel@0.2.3(transitive)
- Removednode-opcua-status-code@0.2.3(transitive)
- Removednode-opcua-utils@0.2.3(transitive)
Updatednode-opcua-assert@^0.3.0
Updatednode-opcua-data-model@^0.3.0
Updatednode-opcua-factory@^0.3.0
Updatednode-opcua-nodeid@^0.3.0