C# Class ModelBuilder.ValueGeneratorBase

The ValueGeneratorBase class provides the base implementation for generating values.
Inheritance: IValueGenerator
Datei anzeigen Open project: roryprimrose/ModelBuilder

Public Methods

Method Description
Generate ( Type type, string referenceName, LinkedList buildChain ) : object
IsSupported ( Type type, string referenceName, LinkedList buildChain ) : bool

Protected Methods

Method Description
GenerateValue ( Type type, string referenceName, LinkedList buildChain ) : object

Generates a new value with the provided context.

VerifyGenerateRequest ( Type type, string referenceName, LinkedList buildChain ) : void

Verifies that the minimum required information has been provided in order to generate a value.

Method Details

Generate() public method

public Generate ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type
referenceName string
buildChain LinkedList
return object

GenerateValue() protected abstract method

Generates a new value with the provided context.
protected abstract GenerateValue ( Type type, string referenceName, LinkedList buildChain ) : object
type System.Type The type of value to generate.
referenceName string Identifies the possible parameter or property name the value is intended for.
buildChain LinkedList The chain of instances built up to this point.
return object

IsSupported() public abstract method

public abstract IsSupported ( Type type, string referenceName, LinkedList buildChain ) : bool
type System.Type
referenceName string
buildChain LinkedList
return bool

VerifyGenerateRequest() protected method

Verifies that the minimum required information has been provided in order to generate a value.
The parameter is null. This generator does not support creating the requested value.
protected VerifyGenerateRequest ( Type type, string referenceName, LinkedList buildChain ) : void
type System.Type The type of value to generate.
referenceName string Identifies the possible parameter or property name this value is intended for.
buildChain LinkedList The chain of instances built up to this point.
return void