C# Class SimpleFramework.Xml.Core.ValueInstance

The ValueInstance object is used to create an object by using a Value instance to determine the type. If the provided value instance represents a reference then this will simply provide the value of the reference, otherwise it will instantiate a new object and return that.
Inheritance: Instance
显示文件 Open project: ngallagher/simplexml

Public Methods

Method Description
IsReference ( ) : bool

This is used to determine if the type is a reference type. A reference type is a type that does not require any XML deserialization based on its annotations. Values that are references could be substitutes objects or existing ones.

SetInstance ( Object Object ) : Object
ValueInstance ( Instantiator creator, Value value ) : SimpleFramework.Xml.Strategy

Constructor for the ValueInstance object. This is used to represent an instance that delegates to the given value object in order to acquire the object.

Method Details

IsReference() public method

This is used to determine if the type is a reference type. A reference type is a type that does not require any XML deserialization based on its annotations. Values that are references could be substitutes objects or existing ones.
public IsReference ( ) : bool
return bool

SetInstance() public method

public SetInstance ( Object Object ) : Object
Object Object
return Object

ValueInstance() public method

Constructor for the ValueInstance object. This is used to represent an instance that delegates to the given value object in order to acquire the object.
public ValueInstance ( Instantiator creator, Value value ) : SimpleFramework.Xml.Strategy
creator Instantiator /// this is the instantiator used to create objects ///
value Value /// this is the value object that contains the data ///
return SimpleFramework.Xml.Strategy