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

Méthodes publiques

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

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 ///
Résultat System.Collections.Generic

GetBuilder() public méthode

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

GetInstance() public méthode

public GetInstance ( Criteria criteria ) : Object
criteria Criteria /// this contains the criteria to be used ///
Résultat Object

GetParameter() public méthode

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

IsDefault() public méthode

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

ToString() public méthode

public ToString ( ) : String
Résultat String