C# 클래스 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.
상속: Creator
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

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

메소드 상세

ClassCreator() 공개 메소드

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 ///
리턴 System.Collections.Generic

GetBuilder() 공개 메소드

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 ///
리턴 Builder

GetInstance() 공개 메소드

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

GetParameter() 공개 메소드

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 ///
리턴 Parameter

IsDefault() 공개 메소드

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
리턴 bool

ToString() 공개 메소드

public ToString ( ) : String
리턴 String