C# Class Mueller.Wddx.WddxDeserializer

This class is the main entry point for deserializing a WDDX packet into a native CLR object.
Mostrar archivo Open project: Bilal-S/WDDX.net

Public Methods

Method Description
Deserialize ( XmlTextReader input ) : object

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet. Does not perform validation on the packet.

Deserialize ( XmlTextReader input, bool validate ) : object

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet.

If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX. Note that ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may throw a WddxValidationException for packets that can be successfully deserialized if validation is turned off.

Deserialize ( string WddxPacket ) : object

Deserializes a string containing a WDDX packet. Does not perform validation on the packet.

Deserialize ( string WddxPacket, bool validate ) : object

Deserializes a string containing a WDDX packet.

If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX.

IsValid ( XmlTextReader input ) : bool

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.

ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.

IsValid ( string WddxPacket ) : bool

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.

ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.

Method Details

Deserialize() public method

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet. Does not perform validation on the packet.
public Deserialize ( XmlTextReader input ) : object
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be parsed.
return object

Deserialize() public method

Deserialize an System.Xml.XmlTextReader pointing to a WDDX packet.
If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX. Note that ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may throw a WddxValidationException for packets that can be successfully deserialized if validation is turned off.
/// The validate parameter is set to true and invalid WDDX is encountered. ///
public Deserialize ( XmlTextReader input, bool validate ) : object
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be parsed.
validate bool /// Boolean indicating whether or not validation should be performed during deserialization. ///
return object

Deserialize() public method

Deserializes a string containing a WDDX packet. Does not perform validation on the packet.
public Deserialize ( string WddxPacket ) : object
WddxPacket string The WDDX packet to be deserialized.
return object

Deserialize() public method

Deserializes a string containing a WDDX packet.
If validate is set to true, this method will throw a WddxValidationException if it encounters invalid WDDX.
/// The validate parameter is set to true and invalid WDDX is encountered. ///
public Deserialize ( string WddxPacket, bool validate ) : object
WddxPacket string The WDDX packet to be deserialized.
validate bool /// Boolean indicating whether or not validation should be performed during deserialization. ///
return object

IsValid() public method

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.
ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.
public IsValid ( XmlTextReader input ) : bool
input System.Xml.XmlTextReader The pre-initialized pointing to the WDDX to be validated.
return bool

IsValid() public method

Validates the given WDDX packet against the WDDX XML Schema, and indicates whether or not the packet passed validation.
ColdFusion can produce dateTime elements that the WDDX XML Schema cannot validate, so this method may return false for packets that can be successfully deserialized.
public IsValid ( string WddxPacket ) : bool
WddxPacket string The WDDX packet to be validated.
return bool