Метод | Описание | |
---|---|---|
ClearAll ( ) : void |
Clears all ValidValue Generators registered.
|
|
IsRegistered ( ISingleValueDef propDef ) : bool |
Returns True if a value Gen is registered with the singleValueDef propDef
|
|
Register ( ISingleValueDef propDef, Type validValuGenType, object parameter = null ) : void |
Register a Valid Value Generator to be used for generating values for a specified PropDef.
|
|
Resolve ( ISingleValueDef propDef ) : ValidValueGenerator |
Resolves the registered ValidValueGenerator for the PropDef if one is registered. Else tries to find a ValidValueGenerator for the specified PropDefs Property Type using the ValidValueGeneratorRegistry
|
Метод | Описание | |
---|---|---|
ClearPreviousInstances ( ISingleValueDef propDef ) : void | ||
GeneratorHasConstructorWithExtraParameter ( Type validValueGenType ) : bool | ||
GetClassType ( ISingleValueDef propDef ) : string | ||
GetKeyName ( ISingleValueDef propDef ) : string | ||
ValidateGeneratorType ( Type factoryType, string typeName ) : void |
public IsRegistered ( ISingleValueDef propDef ) : bool | ||
propDef | ISingleValueDef | |
Результат | bool |
public Register ( ISingleValueDef propDef, Type validValuGenType, object parameter = null ) : void | ||
propDef | ISingleValueDef | The property definition for which this generator type is being assigned |
validValuGenType | Type | The type of generator which will be instantiated when a valid value is needed |
parameter | object | An additional parameter to pass to the constructor of the generator |
Результат | void |
public Resolve ( ISingleValueDef propDef ) : ValidValueGenerator | ||
propDef | ISingleValueDef | |
Результат | ValidValueGenerator |