Table of Contents

Class FormValidatorBase

Namespace
CloudyWing.FormValidators.Core
Assembly
CloudyWing.FormValidators.dll

The form validator base abstract class.

public abstract class FormValidatorBase : IFormValidator
Inheritance
FormValidatorBase
Implements
Derived
Inherited Members

Constructors

FormValidatorBase(string, string)

Initializes a new instance of the FormValidatorBase class.

public FormValidatorBase(string column, string value)

Parameters

column string

The column.

value string

The value.

Properties

Column

Gets or sets the column.

public string Column { get; }

Property Value

string

The column.

CustomErrorMessage

Gets the custom error message.

protected abstract string CustomErrorMessage { get; }

Property Value

string

The custom error message.

DefaultErrorMessage

Gets the default error message.

protected abstract string DefaultErrorMessage { get; }

Property Value

string

The default error message.

ErrorMessage

Gets the error message.

public string ErrorMessage { get; }

Property Value

string

The error message.

HasCustomErrorMessage

Gets a value indicating whether this instance has custom error message.

protected abstract bool HasCustomErrorMessage { get; }

Property Value

bool

true if this instance has custom error message; otherwise, false.

IsValid

Returns true if ... is valid.

public bool IsValid { get; }

Property Value

bool

true if this instance is valid; otherwise, false.

Value

Gets or sets the value.

public string Value { get; }

Property Value

string

The value.

Methods

CreateErrorMessage()

Creates the error message.

protected virtual string CreateErrorMessage()

Returns

string

The error message.

Validate()

Validates this instance.

public bool Validate()

Returns

bool

The validation result.

ValidateValue()

Validates the value.

protected abstract bool ValidateValue()

Returns

bool

The validation result.

See Also