Méthode | Description | |
---|---|---|
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
|
Méthode | Description | |
---|---|---|
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 | |
Résultat | 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 |
Résultat | void |
public Resolve ( ISingleValueDef propDef ) : ValidValueGenerator | ||
propDef | ISingleValueDef | |
Résultat | ValidValueGenerator |