C# 클래스 Tp.Integration.Messages.ServiceBus.Serialization.XmlDeserializer

Deserializes complex objects serialized with the XmlSerializer.
상속: IDisposable
파일 보기 프로젝트 열기: TargetProcess/Target-Process-Plugins 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateArrayInstance System.Array
CreateInstance object
GetObjectInfo ObjectInfo
TranslateTypeByKey TypeInfo

공개 메소드들

메소드 설명
Deserialize ( XmlDocument document ) : object

Deserialzes an object from XmlDocument.

Deserialize ( XmlNode node ) : object

Deserializes an Object from the specified XmlNode.

Deserialize ( string filename ) : object

Deserialzes an object from a xml file.

Dispose ( ) : void

Dispose, release references.

RegisterAssemblies ( Assembly assemblies ) : int

Registers a list of assemblies.

RegisterAssemblies ( List assemblies ) : int

Registers a list of assemblies.

RegisterAssembly ( Assembly assembly ) : void

Registers an Assembly.

Register Assemblies which are not known at compile time, e.g. PlugIns or whatever.

Reset ( ) : void

Clears the typedictionary collection.

XmlDeserializer ( ) : System
XmlDeserializer ( Action typeNotFoundAction ) : System

보호된 메소드들

메소드 설명
AddAssemblyRegisterToCache ( ) : void

Adds the assembly register items to the assembly cache.

CreateType ( String assembly, string type ) : Type

Creates a type from the specified assembly and type names. In case of failure null will be returned.

CreateType ( TypeInfo info ) : Type

Creates a type from the specified assembly and type names included in the TypeInfo parameter. In case of failure null will be returned.

GetArrayLength ( XmlNode parent ) : int

Returns the length of the array of a arry-XmlNode.

GetAssembly ( String assembly ) : Assembly

GetAttributeValue ( XmlNode node, string name ) : string

Returns the value or the attribute with the specified name from the given node if it is not null or empty.

GetBinaryConstructorType ( XmlNode node ) : TypeInfo

GetConverter ( Type type ) : TypeConverter

Returns the TypeConverter of a Type.

GetObject ( XmlNode node ) : object

Creates an instance by the contents of the given XmlNode.

GetProperties ( object parent, XmlNode node ) : void

Reads the properties of the specified node and sets them an the parent object.

This is the central method which is called recursivly!

HasBinaryConstructor ( XmlNode node ) : bool

ParseTypeDictionary ( XmlNode parentNode ) : Hashtable

Parses the TypeDictionary (if given).

The TypeDictionary is Hashtable in which TypeInfo items are stored.

SetCollectionValues ( ICollection coll, XmlNode parentNode ) : void

Sets the entries on an ICollection implementation.

SetDictionaryValues ( IDictionary dictionary, XmlNode parentNode ) : void

Sets the entries of an IDictionary implementation.

SetListValues ( IList list, XmlNode parentNode ) : void

Sets the entries on an IList implementation.

비공개 메소드들

메소드 설명
CreateArrayInstance ( ObjectInfo info, int length ) : Array

Creates an instance of an Array by the specified ObjectInfo.

CreateInstance ( ObjectInfo info ) : object

Creates an instance by the specified ObjectInfo.

GetObjectInfo ( XmlNode node ) : ObjectInfo

Gets an ObjectInfo instance by the attributes of the specified XmlNode.

TranslateTypeByKey ( String key ) : TypeInfo

메소드 상세

AddAssemblyRegisterToCache() 보호된 메소드

Adds the assembly register items to the assembly cache.
protected AddAssemblyRegisterToCache ( ) : void
리턴 void

CreateType() 보호된 메소드

Creates a type from the specified assembly and type names. In case of failure null will be returned.
protected CreateType ( String assembly, string type ) : Type
assembly String
type string
리턴 System.Type

CreateType() 보호된 메소드

Creates a type from the specified assembly and type names included in the TypeInfo parameter. In case of failure null will be returned.
protected CreateType ( TypeInfo info ) : Type
info TypeInfo
리턴 System.Type

Deserialize() 공개 메소드

Deserialzes an object from XmlDocument.
public Deserialize ( XmlDocument document ) : object
document System.Xml.XmlDocument
리턴 object

Deserialize() 공개 메소드

Deserializes an Object from the specified XmlNode.
public Deserialize ( XmlNode node ) : object
node System.Xml.XmlNode
리턴 object

Deserialize() 공개 메소드

Deserialzes an object from a xml file.
public Deserialize ( string filename ) : object
filename string
리턴 object

Dispose() 공개 메소드

Dispose, release references.
public Dispose ( ) : void
리턴 void

GetArrayLength() 보호된 메소드

Returns the length of the array of a arry-XmlNode.
protected GetArrayLength ( XmlNode parent ) : int
parent System.Xml.XmlNode
리턴 int

GetAssembly() 보호된 메소드

protected GetAssembly ( String assembly ) : Assembly
assembly String
리턴 System.Reflection.Assembly

GetAttributeValue() 보호된 메소드

Returns the value or the attribute with the specified name from the given node if it is not null or empty.
protected GetAttributeValue ( XmlNode node, string name ) : string
node System.Xml.XmlNode
name string
리턴 string

GetBinaryConstructorType() 보호된 메소드

protected GetBinaryConstructorType ( XmlNode node ) : TypeInfo
node System.Xml.XmlNode
리턴 TypeInfo

GetConverter() 보호된 메소드

Returns the TypeConverter of a Type.
protected GetConverter ( Type type ) : TypeConverter
type System.Type
리턴 System.ComponentModel.TypeConverter

GetObject() 보호된 메소드

Creates an instance by the contents of the given XmlNode.
protected GetObject ( XmlNode node ) : object
node System.Xml.XmlNode
리턴 object

GetProperties() 보호된 메소드

Reads the properties of the specified node and sets them an the parent object.
This is the central method which is called recursivly!
protected GetProperties ( object parent, XmlNode node ) : void
parent object
node System.Xml.XmlNode
리턴 void

HasBinaryConstructor() 보호된 메소드

protected HasBinaryConstructor ( XmlNode node ) : bool
node System.Xml.XmlNode
리턴 bool

ParseTypeDictionary() 보호된 메소드

Parses the TypeDictionary (if given).
The TypeDictionary is Hashtable in which TypeInfo items are stored.
protected ParseTypeDictionary ( XmlNode parentNode ) : Hashtable
parentNode System.Xml.XmlNode
리턴 System.Collections.Hashtable

RegisterAssemblies() 공개 메소드

Registers a list of assemblies.
public RegisterAssemblies ( Assembly assemblies ) : int
assemblies System.Reflection.Assembly
리턴 int

RegisterAssemblies() 공개 메소드

Registers a list of assemblies.
public RegisterAssemblies ( List assemblies ) : int
assemblies List
리턴 int

RegisterAssembly() 공개 메소드

Registers an Assembly.
Register Assemblies which are not known at compile time, e.g. PlugIns or whatever.
public RegisterAssembly ( Assembly assembly ) : void
assembly System.Reflection.Assembly
리턴 void

Reset() 공개 메소드

Clears the typedictionary collection.
public Reset ( ) : void
리턴 void

SetCollectionValues() 보호된 메소드

Sets the entries on an ICollection implementation.
protected SetCollectionValues ( ICollection coll, XmlNode parentNode ) : void
coll ICollection
parentNode System.Xml.XmlNode
리턴 void

SetDictionaryValues() 보호된 메소드

Sets the entries of an IDictionary implementation.
protected SetDictionaryValues ( IDictionary dictionary, XmlNode parentNode ) : void
dictionary IDictionary
parentNode System.Xml.XmlNode
리턴 void

SetListValues() 보호된 메소드

Sets the entries on an IList implementation.
protected SetListValues ( IList list, XmlNode parentNode ) : void
list IList
parentNode System.Xml.XmlNode
리턴 void

XmlDeserializer() 공개 메소드

public XmlDeserializer ( ) : System
리턴 System

XmlDeserializer() 공개 메소드

public XmlDeserializer ( Action typeNotFoundAction ) : System
typeNotFoundAction Action
리턴 System