C# Класс 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.
Наследование: Repeater
Показать файл Открыть проект

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

Метод Описание
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.

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

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

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 ///
Результат SimpleFramework.Xml.Strategy

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

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 ///
Результат Object

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

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
Результат Object

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

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 ///
Результат bool

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

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 ///
Результат void