C# Class SimpleFramework.Xml.Core.ClassCreator

The ClassCreator is responsible for instantiating objects using either the default no argument constructor or one that takes deserialized values as parameters. This also exposes the parameters and constructors used to instantiate the object.
Inheritance: Creator
显示文件 Open project: ngallagher/simplexml

Public Methods

Method Description
ClassCreator ( List list, Index index, Builder primary ) : System.Collections.Generic

Constructor for the ClassCreator object. This is used to create an object that contains all information that relates to the construction of an instance.

GetBuilder ( Criteria criteria ) : Builder

This is used to acquire a Builder which is used to instantiate the object. If there is no match for the builder then the default constructor is provided.

GetInstance ( Criteria criteria ) : Object
GetParameter ( String name ) : Parameter

This is used to acquire the named Parameter from the creator. A parameter is taken from the constructor which contains annotations for each object that is required. These parameters must have a matching field or method.

IsDefault ( ) : bool

This is used to determine if this Creator has a default constructor. If the class does contain a no argument constructor then this will return true.

ToString ( ) : String

Method Details

ClassCreator() public method

Constructor for the ClassCreator object. This is used to create an object that contains all information that relates to the construction of an instance.
public ClassCreator ( List list, Index index, Builder primary ) : System.Collections.Generic
list List /// this contains the list of all constructors ///
index Index /// this contains all parameters for each constructor ///
primary Builder /// this is the default no argument constructor ///
return System.Collections.Generic

GetBuilder() public method

This is used to acquire a Builder which is used to instantiate the object. If there is no match for the builder then the default constructor is provided.
public GetBuilder ( Criteria criteria ) : Builder
criteria Criteria /// this contains the criteria to be used ///
return Builder

GetInstance() public method

public GetInstance ( Criteria criteria ) : Object
criteria Criteria /// this contains the criteria to be used ///
return Object

GetParameter() public method

This is used to acquire the named Parameter from the creator. A parameter is taken from the constructor which contains annotations for each object that is required. These parameters must have a matching field or method.
public GetParameter ( String name ) : Parameter
name String /// this is the name of the parameter to be acquired ///
return Parameter

IsDefault() public method

This is used to determine if this Creator has a default constructor. If the class does contain a no argument constructor then this will return true.
public IsDefault ( ) : bool
return bool

ToString() public method

public ToString ( ) : String
return String