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
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
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