C# Класс Opc.Ua.JsonDecoder

Reads objects from a XML stream.
Наследование: IDecoder, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void

Closes the stream used for reading.

Close ( bool checkEof ) : void

Closes the stream used for reading.

Dispose ( ) : void

Frees any unmanaged resources.

JsonDecoder ( System systemType, JsonTextReader reader, ServiceMessageContext context ) : System
JsonDecoder ( string json, ServiceMessageContext context ) : System
PopNamespace ( ) : void

Pops a namespace from the namespace stack.

PushNamespace ( string namespaceUri ) : void

Pushes a namespace onto the namespace stack.

ReadBoolean ( string fieldName ) : bool

Reads a boolean from the stream.

ReadBooleanArray ( string fieldName ) : BooleanCollection

Reads a boolean array from the stream.

ReadByte ( string fieldName ) : byte

Reads a byte from the stream.

ReadByteArray ( string fieldName ) : ByteCollection

Reads a byte array from the stream.

ReadByteString ( string fieldName ) : byte[]

Reads a byte string from the stream.

ReadByteStringArray ( string fieldName ) : ByteStringCollection

Reads a byte string array from the stream.

ReadDataValue ( string fieldName ) : Opc.Ua.DataValue

Reads an DataValue from the stream.

ReadDataValueArray ( string fieldName ) : DataValueCollection

Reads an DataValue array from the stream.

ReadDateTime ( string fieldName ) : System.DateTime

Reads a UTC date/time from the stream.

ReadDateTimeArray ( string fieldName ) : DateTimeCollection

Reads a UTC date/time array from the stream.

ReadDiagnosticInfo ( string fieldName ) : DiagnosticInfo

Reads an DiagnosticInfo from the stream.

ReadDiagnosticInfoArray ( string fieldName ) : DiagnosticInfoCollection

Reads an DiagnosticInfo array from the stream.

ReadDouble ( string fieldName ) : double

Reads a double from the stream.

ReadDoubleArray ( string fieldName ) : DoubleCollection

Reads a double array from the stream.

ReadEncodeable ( string fieldName, System systemType ) : IEncodeable

Reads an encodeable object from the stream.

ReadEncodeableArray ( string fieldName, System systemType ) : Array

Reads an encodeable object array from the stream.

ReadEnumerated ( string fieldName, System enumType ) : Enum

Reads an enumerated value from the stream.

ReadEnumeratedArray ( string fieldName, System enumType ) : Array

Reads an enumerated value array from the stream.

ReadExpandedNodeId ( string fieldName ) : Opc.Ua.ExpandedNodeId

Reads an ExpandedNodeId from the stream.

ReadExpandedNodeIdArray ( string fieldName ) : ExpandedNodeIdCollection

Reads an ExpandedNodeId array from the stream.

ReadExtensionObject ( string fieldName ) : Opc.Ua.ExtensionObject

Reads an extension object from the stream.

ReadExtensionObjectArray ( string fieldName ) : ExtensionObjectCollection

Reads an array of extension objects from the stream.

ReadExtensionObjectBody ( Opc.Ua.ExpandedNodeId typeId ) : object

Reads the body extension object from the stream.

ReadField ( string fieldName, object &token ) : bool
ReadFloat ( string fieldName ) : float

Reads a float from the stream.

ReadFloatArray ( string fieldName ) : FloatCollection

Reads a float array from the stream.

ReadGuid ( string fieldName ) : Uuid

Reads a GUID from the stream.

ReadGuidArray ( string fieldName ) : UuidCollection

Reads a GUID array from the stream.

ReadInt16 ( string fieldName ) : short

Reads a short from the stream.

ReadInt16Array ( string fieldName ) : Int16Collection

Reads a short array from the stream.

ReadInt32 ( string fieldName ) : int

Reads an int from the stream.

ReadInt32Array ( string fieldName ) : Int32Collection

Reads a int array from the stream.

ReadInt64 ( string fieldName ) : long

Reads a long from the stream.

ReadInt64Array ( string fieldName ) : Int64Collection

Reads a long array from the stream.

ReadLocalizedText ( string fieldName ) : Opc.Ua.LocalizedText

Reads an LocalizedText from the stream.

ReadLocalizedTextArray ( string fieldName ) : LocalizedTextCollection

Reads an LocalizedText array from the stream.

ReadNodeId ( string fieldName ) : Opc.Ua.NodeId

Reads an NodeId from the stream.

ReadNodeIdArray ( string fieldName ) : NodeIdCollection

Reads an NodeId array from the stream.

ReadQualifiedName ( string fieldName ) : Opc.Ua.QualifiedName

Reads an QualifiedName from the stream.

ReadQualifiedNameArray ( string fieldName ) : QualifiedNameCollection

Reads an QualifiedName array from the stream.

ReadSByte ( string fieldName ) : sbyte

Reads a sbyte from the stream.

ReadSByteArray ( string fieldName ) : SByteCollection

Reads a sbyte array from the stream.

ReadStatusCode ( string fieldName ) : Opc.Ua.StatusCode

Reads an StatusCode from the stream.

ReadStatusCodeArray ( string fieldName ) : StatusCodeCollection

Reads an StatusCode array from the stream.

ReadString ( string fieldName ) : string

Reads a string from the stream.

ReadStringArray ( string fieldName ) : StringCollection

Reads a string array from the stream.

ReadUInt16 ( string fieldName ) : ushort

Reads a ushort from the stream.

ReadUInt16Array ( string fieldName ) : UInt16Collection

Reads a ushort array from the stream.

ReadUInt32 ( string fieldName ) : uint

Reads a uint from the stream.

ReadUInt32Array ( string fieldName ) : UInt32Collection

Reads a uint array from the stream.

ReadUInt64 ( string fieldName ) : ulong

Reads a ulong from the stream.

ReadUInt64Array ( string fieldName ) : UInt64Collection

Reads a ulong array from the stream.

ReadVariant ( string fieldName ) : Variant

Reads an Variant from the stream.

ReadVariantArray ( string fieldName ) : VariantCollection

Reads an Variant array from the stream.

ReadXmlElement ( string fieldName ) : XmlElement

Reads an XmlElement from the stream.

ReadXmlElementArray ( string fieldName ) : XmlElementCollection

Reads an XmlElement array from the stream.

SetMappingTables ( Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : void

Initializes the tables used to map namespace and server uris during decoding.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Приватные методы

Метод Описание
Initialize ( ) : void

Sets private members to default values.

ReadArray ( ) : List
ReadArrayField ( string fieldName, List &array ) : bool
ReadObject ( ) : object>.Dictionary
ReadVariantArrayBody ( string fieldName, BuiltInType type ) : Variant
ReadVariantBody ( string fieldName, BuiltInType type ) : Variant

Описание методов

Close() публичный Метод

Closes the stream used for reading.
public Close ( ) : void
Результат void

Close() публичный Метод

Closes the stream used for reading.
public Close ( bool checkEof ) : void
checkEof bool
Результат void

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

JsonDecoder() публичный Метод

public JsonDecoder ( System systemType, JsonTextReader reader, ServiceMessageContext context ) : System
systemType System
reader Newtonsoft.Json.JsonTextReader
context ServiceMessageContext
Результат System

JsonDecoder() публичный Метод

public JsonDecoder ( string json, ServiceMessageContext context ) : System
json string
context ServiceMessageContext
Результат System

PopNamespace() публичный Метод

Pops a namespace from the namespace stack.
public PopNamespace ( ) : void
Результат void

PushNamespace() публичный Метод

Pushes a namespace onto the namespace stack.
public PushNamespace ( string namespaceUri ) : void
namespaceUri string
Результат void

ReadBoolean() публичный Метод

Reads a boolean from the stream.
public ReadBoolean ( string fieldName ) : bool
fieldName string
Результат bool

ReadBooleanArray() публичный Метод

Reads a boolean array from the stream.
public ReadBooleanArray ( string fieldName ) : BooleanCollection
fieldName string
Результат BooleanCollection

ReadByte() публичный Метод

Reads a byte from the stream.
public ReadByte ( string fieldName ) : byte
fieldName string
Результат byte

ReadByteArray() публичный Метод

Reads a byte array from the stream.
public ReadByteArray ( string fieldName ) : ByteCollection
fieldName string
Результат ByteCollection

ReadByteString() публичный Метод

Reads a byte string from the stream.
public ReadByteString ( string fieldName ) : byte[]
fieldName string
Результат byte[]

ReadByteStringArray() публичный Метод

Reads a byte string array from the stream.
public ReadByteStringArray ( string fieldName ) : ByteStringCollection
fieldName string
Результат ByteStringCollection

ReadDataValue() публичный Метод

Reads an DataValue from the stream.
public ReadDataValue ( string fieldName ) : Opc.Ua.DataValue
fieldName string
Результат Opc.Ua.DataValue

ReadDataValueArray() публичный Метод

Reads an DataValue array from the stream.
public ReadDataValueArray ( string fieldName ) : DataValueCollection
fieldName string
Результат DataValueCollection

ReadDateTime() публичный Метод

Reads a UTC date/time from the stream.
public ReadDateTime ( string fieldName ) : System.DateTime
fieldName string
Результат System.DateTime

ReadDateTimeArray() публичный Метод

Reads a UTC date/time array from the stream.
public ReadDateTimeArray ( string fieldName ) : DateTimeCollection
fieldName string
Результат DateTimeCollection

ReadDiagnosticInfo() публичный Метод

Reads an DiagnosticInfo from the stream.
public ReadDiagnosticInfo ( string fieldName ) : DiagnosticInfo
fieldName string
Результат DiagnosticInfo

ReadDiagnosticInfoArray() публичный Метод

Reads an DiagnosticInfo array from the stream.
public ReadDiagnosticInfoArray ( string fieldName ) : DiagnosticInfoCollection
fieldName string
Результат DiagnosticInfoCollection

ReadDouble() публичный Метод

Reads a double from the stream.
public ReadDouble ( string fieldName ) : double
fieldName string
Результат double

ReadDoubleArray() публичный Метод

Reads a double array from the stream.
public ReadDoubleArray ( string fieldName ) : DoubleCollection
fieldName string
Результат DoubleCollection

ReadEncodeable() публичный Метод

Reads an encodeable object from the stream.
public ReadEncodeable ( string fieldName, System systemType ) : IEncodeable
fieldName string
systemType System
Результат IEncodeable

ReadEncodeableArray() публичный Метод

Reads an encodeable object array from the stream.
public ReadEncodeableArray ( string fieldName, System systemType ) : Array
fieldName string
systemType System
Результат System.Array

ReadEnumerated() публичный Метод

Reads an enumerated value from the stream.
public ReadEnumerated ( string fieldName, System enumType ) : Enum
fieldName string
enumType System
Результат System.Enum

ReadEnumeratedArray() публичный Метод

Reads an enumerated value array from the stream.
public ReadEnumeratedArray ( string fieldName, System enumType ) : Array
fieldName string
enumType System
Результат System.Array

ReadExpandedNodeId() публичный Метод

Reads an ExpandedNodeId from the stream.
public ReadExpandedNodeId ( string fieldName ) : Opc.Ua.ExpandedNodeId
fieldName string
Результат Opc.Ua.ExpandedNodeId

ReadExpandedNodeIdArray() публичный Метод

Reads an ExpandedNodeId array from the stream.
public ReadExpandedNodeIdArray ( string fieldName ) : ExpandedNodeIdCollection
fieldName string
Результат ExpandedNodeIdCollection

ReadExtensionObject() публичный Метод

Reads an extension object from the stream.
public ReadExtensionObject ( string fieldName ) : Opc.Ua.ExtensionObject
fieldName string
Результат Opc.Ua.ExtensionObject

ReadExtensionObjectArray() публичный Метод

Reads an array of extension objects from the stream.
public ReadExtensionObjectArray ( string fieldName ) : ExtensionObjectCollection
fieldName string
Результат ExtensionObjectCollection

ReadExtensionObjectBody() публичный Метод

Reads the body extension object from the stream.
public ReadExtensionObjectBody ( Opc.Ua.ExpandedNodeId typeId ) : object
typeId Opc.Ua.ExpandedNodeId
Результат object

ReadField() публичный Метод

public ReadField ( string fieldName, object &token ) : bool
fieldName string
token object
Результат bool

ReadFloat() публичный Метод

Reads a float from the stream.
public ReadFloat ( string fieldName ) : float
fieldName string
Результат float

ReadFloatArray() публичный Метод

Reads a float array from the stream.
public ReadFloatArray ( string fieldName ) : FloatCollection
fieldName string
Результат FloatCollection

ReadGuid() публичный Метод

Reads a GUID from the stream.
public ReadGuid ( string fieldName ) : Uuid
fieldName string
Результат Uuid

ReadGuidArray() публичный Метод

Reads a GUID array from the stream.
public ReadGuidArray ( string fieldName ) : UuidCollection
fieldName string
Результат UuidCollection

ReadInt16() публичный Метод

Reads a short from the stream.
public ReadInt16 ( string fieldName ) : short
fieldName string
Результат short

ReadInt16Array() публичный Метод

Reads a short array from the stream.
public ReadInt16Array ( string fieldName ) : Int16Collection
fieldName string
Результат Int16Collection

ReadInt32() публичный Метод

Reads an int from the stream.
public ReadInt32 ( string fieldName ) : int
fieldName string
Результат int

ReadInt32Array() публичный Метод

Reads a int array from the stream.
public ReadInt32Array ( string fieldName ) : Int32Collection
fieldName string
Результат Int32Collection

ReadInt64() публичный Метод

Reads a long from the stream.
public ReadInt64 ( string fieldName ) : long
fieldName string
Результат long

ReadInt64Array() публичный Метод

Reads a long array from the stream.
public ReadInt64Array ( string fieldName ) : Int64Collection
fieldName string
Результат Int64Collection

ReadLocalizedText() публичный Метод

Reads an LocalizedText from the stream.
public ReadLocalizedText ( string fieldName ) : Opc.Ua.LocalizedText
fieldName string
Результат Opc.Ua.LocalizedText

ReadLocalizedTextArray() публичный Метод

Reads an LocalizedText array from the stream.
public ReadLocalizedTextArray ( string fieldName ) : LocalizedTextCollection
fieldName string
Результат LocalizedTextCollection

ReadNodeId() публичный Метод

Reads an NodeId from the stream.
public ReadNodeId ( string fieldName ) : Opc.Ua.NodeId
fieldName string
Результат Opc.Ua.NodeId

ReadNodeIdArray() публичный Метод

Reads an NodeId array from the stream.
public ReadNodeIdArray ( string fieldName ) : NodeIdCollection
fieldName string
Результат NodeIdCollection

ReadQualifiedName() публичный Метод

Reads an QualifiedName from the stream.
public ReadQualifiedName ( string fieldName ) : Opc.Ua.QualifiedName
fieldName string
Результат Opc.Ua.QualifiedName

ReadQualifiedNameArray() публичный Метод

Reads an QualifiedName array from the stream.
public ReadQualifiedNameArray ( string fieldName ) : QualifiedNameCollection
fieldName string
Результат QualifiedNameCollection

ReadSByte() публичный Метод

Reads a sbyte from the stream.
public ReadSByte ( string fieldName ) : sbyte
fieldName string
Результат sbyte

ReadSByteArray() публичный Метод

Reads a sbyte array from the stream.
public ReadSByteArray ( string fieldName ) : SByteCollection
fieldName string
Результат SByteCollection

ReadStatusCode() публичный Метод

Reads an StatusCode from the stream.
public ReadStatusCode ( string fieldName ) : Opc.Ua.StatusCode
fieldName string
Результат Opc.Ua.StatusCode

ReadStatusCodeArray() публичный Метод

Reads an StatusCode array from the stream.
public ReadStatusCodeArray ( string fieldName ) : StatusCodeCollection
fieldName string
Результат StatusCodeCollection

ReadString() публичный Метод

Reads a string from the stream.
public ReadString ( string fieldName ) : string
fieldName string
Результат string

ReadStringArray() публичный Метод

Reads a string array from the stream.
public ReadStringArray ( string fieldName ) : StringCollection
fieldName string
Результат StringCollection

ReadUInt16() публичный Метод

Reads a ushort from the stream.
public ReadUInt16 ( string fieldName ) : ushort
fieldName string
Результат ushort

ReadUInt16Array() публичный Метод

Reads a ushort array from the stream.
public ReadUInt16Array ( string fieldName ) : UInt16Collection
fieldName string
Результат UInt16Collection

ReadUInt32() публичный Метод

Reads a uint from the stream.
public ReadUInt32 ( string fieldName ) : uint
fieldName string
Результат uint

ReadUInt32Array() публичный Метод

Reads a uint array from the stream.
public ReadUInt32Array ( string fieldName ) : UInt32Collection
fieldName string
Результат UInt32Collection

ReadUInt64() публичный Метод

Reads a ulong from the stream.
public ReadUInt64 ( string fieldName ) : ulong
fieldName string
Результат ulong

ReadUInt64Array() публичный Метод

Reads a ulong array from the stream.
public ReadUInt64Array ( string fieldName ) : UInt64Collection
fieldName string
Результат UInt64Collection

ReadVariant() публичный Метод

Reads an Variant from the stream.
public ReadVariant ( string fieldName ) : Variant
fieldName string
Результат Variant

ReadVariantArray() публичный Метод

Reads an Variant array from the stream.
public ReadVariantArray ( string fieldName ) : VariantCollection
fieldName string
Результат VariantCollection

ReadXmlElement() публичный Метод

Reads an XmlElement from the stream.
public ReadXmlElement ( string fieldName ) : XmlElement
fieldName string
Результат System.Xml.XmlElement

ReadXmlElementArray() публичный Метод

Reads an XmlElement array from the stream.
public ReadXmlElementArray ( string fieldName ) : XmlElementCollection
fieldName string
Результат System.Xml.XmlElementCollection

SetMappingTables() публичный Метод

Initializes the tables used to map namespace and server uris during decoding.
public SetMappingTables ( Opc.Ua.NamespaceTable namespaceUris, StringTable serverUris ) : void
namespaceUris Opc.Ua.NamespaceTable The namespaces URIs referenced by the data being decoded.
serverUris StringTable The server URIs referenced by the data being decoded.
Результат void