C# Class SimpleFramework.Xml.Core.Variable.Adapter

The Adapter object is used to call the repeater with the original deserialized object. Using this object the converter interface can be used to perform repeat reads for the object. This must be given a Repeater in order to invoke the repeat read method.
Inheritance: Repeater
显示文件 Open project: ngallagher/simplexml

Public Methods

Method Description
Adapter ( Converter reader, Object value ) : SimpleFramework.Xml.Strategy

Constructor for the Adapter object. This will create an adapter between the converter an repeater such that the reads will read from the XML to the original.

Read ( InputNode node ) : Object

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.

Read ( InputNode node, Object value ) : Object

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.

Validate ( InputNode node ) : bool

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.

Write ( OutputNode node, Object value ) : void

This write method acts like any other write in that it passes on the node and source object to write. Typically this will not be used as the repeater object is used for repeat reads of scattered XML elements.

Method Details

Adapter() public method

Constructor for the Adapter object. This will create an adapter between the converter an repeater such that the reads will read from the XML to the original.
public Adapter ( Converter reader, Object value ) : SimpleFramework.Xml.Strategy
reader Converter /// this is the converter object to be used ///
value Object /// this is the originally deserialized object ///
return SimpleFramework.Xml.Strategy

Read() public method

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.
public Read ( InputNode node ) : Object
node InputNode /// this is the node that contains the extra data ///
return Object

Read() public method

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.
public Read ( InputNode node, Object value ) : Object
node InputNode /// this is the node that contains the extra data ///
value Object
return Object

Validate() public method

This read method will perform a read using the provided object with the repeater. Reading with this method ensures that any additional XML elements within the source will be added to the value.
public Validate ( InputNode node ) : bool
node InputNode /// this is the node that contains the extra data ///
return bool

Write() public method

This write method acts like any other write in that it passes on the node and source object to write. Typically this will not be used as the repeater object is used for repeat reads of scattered XML elements.
public Write ( OutputNode node, Object value ) : void
node OutputNode /// this is the node to write the data to ///
value Object /// this is the source object to be written ///
return void