interface INamespace {
    $emulateVersion103?: boolean;
    addressSpace: IAddressSpace;
    index: number;
    namespaceUri: string;
    publicationDate: Date;
    version: string;
    addAlias(aliasName: string, nodeId: NodeId): void;
    addEnumerationType(options: AddEnumerationTypeOptions): UADataType;
    addEventType(options: {
        browseName: QualifiedNameLike;
        isAbstract?: boolean;
        subtypeOf?: string | UAEventType;
    }): UAEventType;
    addFolder(parentFolder: NodeIdLike | UAObject, options: any): UAObject;
    addMethod(parent: UAObject | UAObjectType, options: AddMethodOptions): UAMethod;
    addObject(options: AddObjectOptions): UAObject;
    addObjectType(options: AddObjectTypeOptions): UAObjectType;
    addReferenceType(options: AddReferenceTypeOptions): UAReferenceType;
    addVariable(options: AddVariableOptions): UAVariable;
    addVariableType(options: AddVariableTypeOptions): UAVariableType;
    addView(options: AddViewOptions): UAView;
    constructNodeId(options: ConstructNodeIdOptions): NodeId;
    createDataType(options: CreateDataTypeOptions): UADataType;
    createNode(options: any): BaseNode;
    deleteNode(node: NodeId | BaseNode): void;
    findDataType(dataType: string): null | UADataType;
    findNode(nodeId: NodeIdLike): null | BaseNode;
    findNode2(nodeId: NodeId): null | BaseNode;
    findObjectType(objectType: string): null | UAObjectType;
    findReferenceType(referenceType: string): null | UAReferenceType;
    findReferenceTypeFromInverseName(referenceType: string): null | UAReferenceType;
    findVariableType(variableType: string): null | UAVariableType;
    getDefaultAccessRestrictions(): AccessRestrictionsFlag;
    getDefaultRolePermissions(): null | RolePermissionType[];
    getRequiredModels(): undefined | RequiredModel[];
    getStandardsNodeIds(): {
        objectTypeIds: {
            [key: string]: string;
        };
        referenceTypeIds: {
            [key: string]: string;
        };
    };
    setDefaultAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
    setDefaultRolePermissions(rolePermissions: null | RolePermissionTypeOptions[]): void;
    toNodeset2XML(): string;
}

Hierarchy (view full)

Properties

$emulateVersion103?: boolean
addressSpace: IAddressSpace
index: number
namespaceUri: string
publicationDate: Date
version: string

Methods

  • Parameters

    • aliasName: string
    • nodeId: NodeId

    Returns void

  • add a new event type to the address space

    Parameters

    Returns UAEventType

    const evtType = namespace.addEventType({
    browseName: "MyAuditEventType",
    subtypeOf: "AuditEventType"
    });
    const myConditionType = namespace.addEventType({
    browseName: "MyConditionType",
    subtypeOf: "ConditionType",
    isAbstract: false
    });
  • Parameters

    Returns UAObject

  • Parameters

    Returns UAObject

  • Parameters

    Returns UAView

  • Parameters

    • options: ConstructNodeIdOptions

    Returns NodeId

  • Parameters

    • options: any

    Returns BaseNode

  • Parameters

    Returns void

  • Parameters

    • dataType: string

    Returns null | UADataType

  • Parameters

    Returns null | BaseNode

  • Parameters

    Returns null | BaseNode

  • Parameters

    • objectType: string

    Returns null | UAObjectType

  • Parameters

    • referenceType: string

    Returns null | UAReferenceType

  • Parameters

    • referenceType: string

    Returns null | UAReferenceType

  • Parameters

    • variableType: string

    Returns null | UAVariableType

  • Returns null | RolePermissionType[]

  • Returns undefined | RequiredModel[]

  • Internal

    Returns {
        objectTypeIds: {
            [key: string]: string;
        };
        referenceTypeIds: {
            [key: string]: string;
        };
    }

    • objectTypeIds: {
          [key: string]: string;
      }
      • [key: string]: string
    • referenceTypeIds: {
          [key: string]: string;
      }
      • [key: string]: string
  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns string