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
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode 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 méthode

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 ///
Résultat SimpleFramework.Xml.Strategy

Read() public méthode

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 ///
Résultat Object

Read() public méthode

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
Résultat Object

Validate() public méthode

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 ///
Résultat bool

Write() public méthode

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 ///
Résultat void