C# Class Umbraco.Belle.System.PropertyEditors.ManifestValueValidator

A validator used to validate a value based on a validator name defined in a package manifest
显示文件 Open project: umbraco/Belle

Public Methods

Method Description
Validate ( object value, string config, string preValues, PropertyEditor editor ) : IEnumerable

Performs the validation against the value

Protected Methods

Method Description
ManifestValueValidator ( ) : System

Method Details

ManifestValueValidator() protected method

protected ManifestValueValidator ( ) : System
return System

Validate() public abstract method

Performs the validation against the value
public abstract Validate ( object value, string config, string preValues, PropertyEditor editor ) : IEnumerable
value object
config string /// An object that is used to configure the validator. An example could be a regex /// expression if the validator was a regex validator. This is defined in the manifest along with /// the definition of the validator. ///
preValues string The current pre-values stored for the data type
editor PropertyEditor The property editor instance that is being validated
return IEnumerable