Class ComplexEditorValidator
Used to validate complex editors that contain nested editors
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public abstract class ComplexEditorValidator : IValueValidator
Constructors
ComplexEditorValidator(IPropertyValidationService)
Declaration
public ComplexEditorValidator(IPropertyValidationService propertyValidationService)
Parameters
Type |
Name |
Description |
IPropertyValidationService |
propertyValidationService |
|
Methods
GetElementTypeValidation(Object)
Declaration
protected abstract IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> GetElementTypeValidation(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel>)
Return a nested validation result per row (Element Type)
Declaration
protected IEnumerable<ComplexEditorElementTypeValidationResult> GetNestedValidationResults(IEnumerable<ComplexEditorValidator.ElementTypeValidationModel> elements)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ComplexEditorElementTypeValidationResult> |
|
Validate(Object, String, Object)
Return a single for all sub nested validation results in the complex editor
Declaration
public IEnumerable<ValidationResult> Validate(object value, string valueType, object dataTypeConfiguration)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
System.String |
valueType |
|
System.Object |
dataTypeConfiguration |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ValidationResult> |
|