node-opcua-factory 2.64.0 → 2.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- /**
2
- * @module node-opcua-factory
3
- */
4
- import { ExpandedNodeId } from "node-opcua-nodeid";
5
- import { BaseUAObject } from "./factories_baseobject";
6
- import { StructuredTypeSchema } from "./factories_structuredTypeSchema";
7
- declare type BaseUAObjectConstructable = new (options?: any) => BaseUAObject;
8
- export declare type ConstructorFunc = BaseUAObjectConstructable;
9
- export interface ConstructorFuncWithSchema extends ConstructorFunc {
10
- schema: StructuredTypeSchema;
11
- possibleFields: string[];
12
- encodingDefaultBinary: ExpandedNodeId;
13
- encodingDefaultXml: ExpandedNodeId;
14
- }
15
- export {};
1
+ /**
2
+ * @module node-opcua-factory
3
+ */
4
+ import { ExpandedNodeId } from "node-opcua-nodeid";
5
+ import { BaseUAObject } from "./factories_baseobject";
6
+ import { StructuredTypeSchema } from "./factories_structuredTypeSchema";
7
+ declare type BaseUAObjectConstructable = new (options?: any) => BaseUAObject;
8
+ export declare type ConstructorFunc = BaseUAObjectConstructable;
9
+ export interface ConstructorFuncWithSchema extends ConstructorFunc {
10
+ schema: StructuredTypeSchema;
11
+ possibleFields: string[];
12
+ encodingDefaultBinary: ExpandedNodeId;
13
+ encodingDefaultXml: ExpandedNodeId;
14
+ }
15
+ export {};
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=constructor_type.js.map
@@ -1,39 +1,39 @@
1
- import { ExpandedNodeId, NodeId } from "node-opcua-nodeid";
2
- import { ConstructorFunc, ConstructorFuncWithSchema } from "./constructor_type";
3
- import { BaseUAObject } from "./factories_baseobject";
4
- import { EnumerationDefinitionSchema } from "./factories_enumerations";
5
- import { StructuredTypeSchema } from "./factories_structuredTypeSchema";
6
- import { BasicTypeDefinition } from "./types";
7
- export declare class DataTypeFactory {
8
- defaultByteOrder: string;
9
- targetNamespace: string;
10
- imports: string[];
11
- private _structureTypeConstructorByNameMap;
12
- private _structureTypeConstructorByDataTypeMap;
13
- private _structureTypeConstructorByEncodingNodeIdMap;
14
- private _enumerations;
15
- private _simpleTypes;
16
- private baseDataFactories;
17
- constructor(baseDataFactories: DataTypeFactory[]);
18
- repairBaseDataFactories(baseDataFactories: DataTypeFactory[]): void;
19
- registerSimpleType(name: string, dataTypeNodeId: NodeId, def: BasicTypeDefinition): void;
20
- hasSimpleType(name: string): boolean;
21
- getSimpleType(name: string): BasicTypeDefinition;
22
- registerEnumeration(enumeration: EnumerationDefinitionSchema): void;
23
- hasEnumeration(enumName: string): boolean;
24
- getEnumeration(enumName: string): EnumerationDefinitionSchema | null;
25
- findConstructorForDataType(dataTypeNodeId: NodeId): ConstructorFuncWithSchema;
26
- getConstructorForDataType(dataTypeNodeId: NodeId): ConstructorFuncWithSchema | null;
27
- structuredTypesNames(): IterableIterator<string>;
28
- getStructureTypeConstructor(typeName: string): ConstructorFuncWithSchema;
29
- hasStructuredType(typeName: string): boolean;
30
- getStructuredTypeSchema(typeName: string): StructuredTypeSchema;
31
- dump(): void;
32
- registerClassDefinition(dataTypeNodeId: NodeId, className: string, classConstructor: ConstructorFuncWithSchema): void;
33
- getConstructor(binaryEncodingNodeId: NodeId): ConstructorFunc | null;
34
- hasConstructor(binaryEncodingNodeId: NodeId): boolean;
35
- constructObject(binaryEncodingNodeId: NodeId): BaseUAObject;
36
- associateWithBinaryEncoding(className: string, expandedNodeId: ExpandedNodeId): void;
37
- toString(): string;
38
- private _registerFactory;
39
- }
1
+ import { ExpandedNodeId, NodeId } from "node-opcua-nodeid";
2
+ import { ConstructorFunc, ConstructorFuncWithSchema } from "./constructor_type";
3
+ import { BaseUAObject } from "./factories_baseobject";
4
+ import { EnumerationDefinitionSchema } from "./factories_enumerations";
5
+ import { StructuredTypeSchema } from "./factories_structuredTypeSchema";
6
+ import { BasicTypeDefinition } from "./types";
7
+ export declare class DataTypeFactory {
8
+ defaultByteOrder: string;
9
+ targetNamespace: string;
10
+ imports: string[];
11
+ private _structureTypeConstructorByNameMap;
12
+ private _structureTypeConstructorByDataTypeMap;
13
+ private _structureTypeConstructorByEncodingNodeIdMap;
14
+ private _enumerations;
15
+ private _simpleTypes;
16
+ private baseDataFactories;
17
+ constructor(baseDataFactories: DataTypeFactory[]);
18
+ repairBaseDataFactories(baseDataFactories: DataTypeFactory[]): void;
19
+ registerSimpleType(name: string, dataTypeNodeId: NodeId, def: BasicTypeDefinition): void;
20
+ hasSimpleType(name: string): boolean;
21
+ getSimpleType(name: string): BasicTypeDefinition;
22
+ registerEnumeration(enumeration: EnumerationDefinitionSchema): void;
23
+ hasEnumeration(enumName: string): boolean;
24
+ getEnumeration(enumName: string): EnumerationDefinitionSchema | null;
25
+ findConstructorForDataType(dataTypeNodeId: NodeId): ConstructorFuncWithSchema;
26
+ getConstructorForDataType(dataTypeNodeId: NodeId): ConstructorFuncWithSchema | null;
27
+ structuredTypesNames(): IterableIterator<string>;
28
+ getStructureTypeConstructor(typeName: string): ConstructorFuncWithSchema;
29
+ hasStructuredType(typeName: string): boolean;
30
+ getStructuredTypeSchema(typeName: string): StructuredTypeSchema;
31
+ dump(): void;
32
+ registerClassDefinition(dataTypeNodeId: NodeId, className: string, classConstructor: ConstructorFuncWithSchema): void;
33
+ getConstructor(binaryEncodingNodeId: NodeId): ConstructorFunc | null;
34
+ hasConstructor(binaryEncodingNodeId: NodeId): boolean;
35
+ constructObject(binaryEncodingNodeId: NodeId): BaseUAObject;
36
+ associateWithBinaryEncoding(className: string, expandedNodeId: ExpandedNodeId): void;
37
+ toString(): string;
38
+ private _registerFactory;
39
+ }