C# Class Opc.Ua.TypeTable

Stores the type tree for a server.
Inheritance: ITypeTable
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary

Public Methods

Method Description
Add ( ILocalNode node ) : void

Adds a node to the type table if it is a type and does not already exist. If it exists references are updated.

AddEncoding ( Opc.Ua.NodeId dataTypeId, Opc.Ua.ExpandedNodeId encodingId ) : bool

Adds an encoding for an existing data type.

AddReferenceSubtype ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId, Opc.Ua.QualifiedName browseName ) : void

Adds type to the table. A browse name is only required if it is a ReferenceType.

Updates the any existing entry.

AddSubtype ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId ) : void

Adds type to the table. A browse name is only required if it is a ReferenceType.

Updates the any existing entry.

Clear ( ) : void

Removes all types from the tree.

FindDataTypeId ( Opc.Ua.ExpandedNodeId encodingId ) : Opc.Ua.NodeId
FindDataTypeId ( Opc.Ua.NodeId encodingId ) : Opc.Ua.NodeId
FindReferenceType ( Opc.Ua.QualifiedName browseName ) : Opc.Ua.NodeId
FindReferenceTypeName ( Opc.Ua.NodeId referenceTypeId ) : Opc.Ua.QualifiedName
FindSubTypes ( Opc.Ua.ExpandedNodeId typeId ) : IList
FindSuperType ( Opc.Ua.ExpandedNodeId typeId ) : Opc.Ua.NodeId
FindSuperType ( Opc.Ua.NodeId typeId ) : Opc.Ua.NodeId
IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, Opc.Ua.ExtensionObject value ) : bool
IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, object value ) : bool
IsEncodingOf ( Opc.Ua.ExpandedNodeId encodingId, Opc.Ua.ExpandedNodeId datatypeId ) : bool
IsKnown ( Opc.Ua.ExpandedNodeId typeId ) : bool
IsKnown ( Opc.Ua.NodeId typeId ) : bool
IsTypeOf ( Opc.Ua.ExpandedNodeId subTypeId, Opc.Ua.ExpandedNodeId superTypeId ) : bool
IsTypeOf ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId ) : bool
Remove ( Opc.Ua.ExpandedNodeId typeId ) : void

Removes a subtype.

TypeTable ( Opc.Ua.NamespaceTable namespaceUris ) : System.Collections.Generic

Initializes the object with default values.

Private Methods

Method Description
AddSubtype ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId, Opc.Ua.QualifiedName browseName ) : void

Adds type to the table. A browse name is only required if it is a ReferenceType.

Updates the any existing entry.

Method Details

Add() public method

Adds a node to the type table if it is a type and does not already exist. If it exists references are updated.
public Add ( ILocalNode node ) : void
node ILocalNode The node.
return void

AddEncoding() public method

Adds an encoding for an existing data type.
public AddEncoding ( Opc.Ua.NodeId dataTypeId, Opc.Ua.ExpandedNodeId encodingId ) : bool
dataTypeId Opc.Ua.NodeId
encodingId Opc.Ua.ExpandedNodeId
return bool

AddReferenceSubtype() public method

Adds type to the table. A browse name is only required if it is a ReferenceType.
Updates the any existing entry.
public AddReferenceSubtype ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId, Opc.Ua.QualifiedName browseName ) : void
subTypeId Opc.Ua.NodeId The sub type identifier.
superTypeId Opc.Ua.NodeId The super type identifier.
browseName Opc.Ua.QualifiedName Name of the browse.
return void

AddSubtype() public method

Adds type to the table. A browse name is only required if it is a ReferenceType.
Updates the any existing entry.
public AddSubtype ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId ) : void
subTypeId Opc.Ua.NodeId The sub type identifier.
superTypeId Opc.Ua.NodeId The super type identifier.
return void

Clear() public method

Removes all types from the tree.
public Clear ( ) : void
return void

FindDataTypeId() public method

public FindDataTypeId ( Opc.Ua.ExpandedNodeId encodingId ) : Opc.Ua.NodeId
encodingId Opc.Ua.ExpandedNodeId
return Opc.Ua.NodeId

FindDataTypeId() public method

public FindDataTypeId ( Opc.Ua.NodeId encodingId ) : Opc.Ua.NodeId
encodingId Opc.Ua.NodeId
return Opc.Ua.NodeId

FindReferenceType() public method

public FindReferenceType ( Opc.Ua.QualifiedName browseName ) : Opc.Ua.NodeId
browseName Opc.Ua.QualifiedName
return Opc.Ua.NodeId

FindReferenceTypeName() public method

public FindReferenceTypeName ( Opc.Ua.NodeId referenceTypeId ) : Opc.Ua.QualifiedName
referenceTypeId Opc.Ua.NodeId
return Opc.Ua.QualifiedName

FindSubTypes() public method

public FindSubTypes ( Opc.Ua.ExpandedNodeId typeId ) : IList
typeId Opc.Ua.ExpandedNodeId
return IList

FindSuperType() public method

public FindSuperType ( Opc.Ua.ExpandedNodeId typeId ) : Opc.Ua.NodeId
typeId Opc.Ua.ExpandedNodeId
return Opc.Ua.NodeId

FindSuperType() public method

public FindSuperType ( Opc.Ua.NodeId typeId ) : Opc.Ua.NodeId
typeId Opc.Ua.NodeId
return Opc.Ua.NodeId

IsEncodingFor() public method

public IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, Opc.Ua.ExtensionObject value ) : bool
expectedTypeId Opc.Ua.NodeId
value Opc.Ua.ExtensionObject
return bool

IsEncodingFor() public method

public IsEncodingFor ( Opc.Ua.NodeId expectedTypeId, object value ) : bool
expectedTypeId Opc.Ua.NodeId
value object
return bool

IsEncodingOf() public method

public IsEncodingOf ( Opc.Ua.ExpandedNodeId encodingId, Opc.Ua.ExpandedNodeId datatypeId ) : bool
encodingId Opc.Ua.ExpandedNodeId
datatypeId Opc.Ua.ExpandedNodeId
return bool

IsKnown() public method

public IsKnown ( Opc.Ua.ExpandedNodeId typeId ) : bool
typeId Opc.Ua.ExpandedNodeId
return bool

IsKnown() public method

public IsKnown ( Opc.Ua.NodeId typeId ) : bool
typeId Opc.Ua.NodeId
return bool

IsTypeOf() public method

public IsTypeOf ( Opc.Ua.ExpandedNodeId subTypeId, Opc.Ua.ExpandedNodeId superTypeId ) : bool
subTypeId Opc.Ua.ExpandedNodeId
superTypeId Opc.Ua.ExpandedNodeId
return bool

IsTypeOf() public method

public IsTypeOf ( Opc.Ua.NodeId subTypeId, Opc.Ua.NodeId superTypeId ) : bool
subTypeId Opc.Ua.NodeId
superTypeId Opc.Ua.NodeId
return bool

Remove() public method

Removes a subtype.
public Remove ( Opc.Ua.ExpandedNodeId typeId ) : void
typeId Opc.Ua.ExpandedNodeId The type identifier.
return void

TypeTable() public method

Initializes the object with default values.
public TypeTable ( Opc.Ua.NamespaceTable namespaceUris ) : System.Collections.Generic
namespaceUris Opc.Ua.NamespaceTable The namespace URIs.
return System.Collections.Generic