Method | Description | |
---|---|---|
ApplyBrowserValidation ( |
Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
|
|
GetFieldOrPropertyValue ( object instance, string fieldOrPropertyName ) : object |
Obtains the value of a property or field on a specific instance.
|
|
Initialize ( IValidatorRegistry validationRegistry, |
Implementors should perform any initialization logic
|
|
IsValid ( object instance ) : bool |
Implementors should perform the actual validation upon the property value
|
|
IsValid ( object instance, object fieldValue ) : bool |
Implementors should perform the actual validation upon the property value
|
Method | Description | |
---|---|---|
BuildErrorMessage ( ) : string |
Builds the error message.
|
|
GetString ( string key ) : string |
Gets the string from resource
|
public ApplyBrowserValidation ( |
||
config | The config. | |
inputType | InputElementType | Type of the input. |
generator | IBrowserValidationGenerator | The generator. |
attributes | IDictionary | The attributes. |
target | string | The target. |
return | void |
public GetFieldOrPropertyValue ( object instance, string fieldOrPropertyName ) : object | ||
instance | object | The instance to inspect. |
fieldOrPropertyName | string | The name of the field or property to inspect. |
return | object |
protected GetString ( string key ) : string | ||
key | string | The key. |
return | string |
public Initialize ( IValidatorRegistry validationRegistry, |
||
validationRegistry | IValidatorRegistry | |
property | The target property | |
return | void |
public IsValid ( object instance ) : bool | ||
instance | object | The target type instance |
return | bool |
public abstract IsValid ( object instance, object fieldValue ) : bool | ||
instance | object | The target type instance |
fieldValue | object | The property/field value. It can be null. |
return | bool |