Class BaseFieldValidator
Represents base class for custom field validators.
Inheritance
System.Object
BaseFieldValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public abstract class BaseFieldValidator : IFieldValidator, IValidator
Constructors
BaseFieldValidator()
Declaration
protected BaseFieldValidator()
Properties
ErrorMessage
Gets or sets the error message.
Declaration
public string ErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error message. |
FieldName
Gets or sets the name of the field.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the field. |
IsValid
Gets or sets a value indicating whether this instance is valid.
Declaration
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ObjectToValidate
Gets or sets the field value.
Declaration
public object ObjectToValidate { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The field value. |
Methods
EvaluateIsValid()
Declaration
protected abstract bool EvaluateIsValid()
Returns
Type | Description |
---|---|
System.Boolean |
GetObjectProperty()
Gets the object property.
Declaration
protected virtual MetaObjectProperty GetObjectProperty()
Returns
Type | Description |
---|---|
MetaObjectProperty |
GetValue()
Gets the value.
Declaration
protected virtual object GetValue()
Returns
Type | Description |
---|---|
System.Object |
Validate()
Validates this instance.
Declaration
public void Validate()