static AttributeMap()

in src/Azure.IIoT.OpcUa.Publisher/src/Stack/Models/AttributeMap.cs [152:371]


        static AttributeMap()
        {
            kMap[Variable, Attributes.AccessLevel] =
                new MapEntry((byte)1);
            kMap[Variable, Attributes.ArrayDimensions] =
                new MapEntry(Array.Empty<uint>(), true);
            kMap[Variable, Attributes.BrowseName] = new
                MapEntry(QualifiedName.Null);
            kMap[Variable, Attributes.DataType] = new
                MapEntry(NodeId.Null);
            kMap[Variable, Attributes.Description] = new
                MapEntry(LocalizedText.Null, true);
            kMap[Variable, Attributes.DisplayName] = new
                MapEntry(LocalizedText.Null);
            kMap[Variable, Attributes.Historizing] = new
                MapEntry(false);
            kMap[Variable, Attributes.MinimumSamplingInterval] =
                new MapEntry((double)-1, true);
            kMap[Variable, Attributes.NodeClass] =
                new MapEntry(NodeClass.Variable);
            kMap[Variable, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[Variable, Attributes.UserAccessLevel] =
                new MapEntry((byte)1, true);
            kMap[Variable, Attributes.AccessLevelEx] =
                new MapEntry((uint)0, true);
            kMap[Variable, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[Variable, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Variable, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Variable, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[Variable, Attributes.Value] = new
                MapEntry(Variant.Null);
            kMap[Variable, Attributes.ValueRank] =
                new MapEntry(ValueRanks.Scalar);
            kMap[Variable, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[VariableType, Attributes.ArrayDimensions] =
                new MapEntry(Array.Empty<uint>(), true);
            kMap[VariableType, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[VariableType, Attributes.DataType] =
                new MapEntry(NodeId.Null);
            kMap[VariableType, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[VariableType, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[VariableType, Attributes.IsAbstract] =
                new MapEntry(true);
            kMap[VariableType, Attributes.NodeClass] =
                new MapEntry(NodeClass.VariableType);
            kMap[VariableType, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[VariableType, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[VariableType, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[VariableType, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[VariableType, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[VariableType, Attributes.Value] =
                new MapEntry(Variant.Null, true);
            kMap[VariableType, Attributes.ValueRank] =
                new MapEntry(ValueRanks.Scalar);
            kMap[VariableType, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[Object, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[Object, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[Object, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[Object, Attributes.EventNotifier] =
                new MapEntry((byte)0);
            kMap[Object, Attributes.NodeClass] =
                new MapEntry(NodeClass.Object);
            kMap[Object, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[Object, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[Object, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Object, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Object, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[Object, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[ObjectType, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[ObjectType, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[ObjectType, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[ObjectType, Attributes.IsAbstract] =
                new MapEntry(true);
            kMap[ObjectType, Attributes.NodeClass] =
                new MapEntry(NodeClass.ObjectType);
            kMap[ObjectType, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[ObjectType, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[ObjectType, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[ObjectType, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[ObjectType, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[ObjectType, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[ReferenceType, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[ReferenceType, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[ReferenceType, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[ReferenceType, Attributes.InverseName] =
                new MapEntry(LocalizedText.Null, true);
            kMap[ReferenceType, Attributes.IsAbstract] =
                new MapEntry(true);
            kMap[ReferenceType, Attributes.NodeClass] =
                new MapEntry(NodeClass.ReferenceType);
            kMap[ReferenceType, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[ReferenceType, Attributes.Symmetric] =
                new MapEntry(true);
            kMap[ReferenceType, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[ReferenceType, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[ReferenceType, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[ReferenceType, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[ReferenceType, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[DataType, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[DataType, Attributes.DataTypeDefinition] =
                new MapEntry(new ExtensionObject(), true);
            kMap[DataType, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[DataType, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[DataType, Attributes.IsAbstract] =
                new MapEntry(true);
            kMap[DataType, Attributes.NodeClass] =
                new MapEntry(NodeClass.DataType);
            kMap[DataType, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[DataType, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[DataType, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[DataType, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[DataType, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[DataType, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[Method, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[Method, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[Method, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[Method, Attributes.Executable] =
                new MapEntry(false);
            kMap[Method, Attributes.NodeClass] =
                new MapEntry(NodeClass.Method);
            kMap[Method, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[Method, Attributes.UserExecutable] =
                new MapEntry(false);
            kMap[Method, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[Method, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Method, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[Method, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[Method, Attributes.WriteMask] =
                new MapEntry((uint)0, true);

            kMap[View, Attributes.BrowseName] =
                new MapEntry(QualifiedName.Null);
            kMap[View, Attributes.ContainsNoLoops] =
                new MapEntry(true);
            kMap[View, Attributes.Description] =
                new MapEntry(LocalizedText.Null, true);
            kMap[View, Attributes.DisplayName] =
                new MapEntry(LocalizedText.Null);
            kMap[View, Attributes.EventNotifier] =
                new MapEntry((byte)0);
            kMap[View, Attributes.NodeClass] =
                new MapEntry(NodeClass.View);
            kMap[View, Attributes.NodeId] =
                new MapEntry(NodeId.Null);
            kMap[View, Attributes.AccessRestrictions] =
                new MapEntry((ushort)0, true);
            kMap[View, Attributes.RolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[View, Attributes.UserRolePermissions] =
                new MapEntry(Array.Empty<ExtensionObject>(), true);
            kMap[View, Attributes.UserWriteMask] =
                new MapEntry((uint)0, true);
            kMap[View, Attributes.WriteMask] =
                new MapEntry((uint)0, true);
        }