Options
Menu
ngdoc

object

name

AbstractValidationRule

module

Validation

description

It represents concreate validator for custom object. It enables to assign validation rules to custom object properties.

Hierarchy

Index

Constructor methods

constructor

Properties

Children

Children: Object

Children index signature

ForList

ForList: boolean

Name

Name: string

Rules

Rules: Object

Rules index signature

ValidationResultVisitor

ValidationResultVisitor: IValidationResultVisitor

Validators

Validators: Object

Validators index signature

  • Parameters

    • name: string

    Returns IValidator

static id

id: number

validator

Get accessors

ValidationResult

Methods

AcceptVisitor

SetOptional

  • Parameters

Validate

  • Performs validation using a validation context and returns a collection of Validation Failures.

    Parameters

    • context: T in Validation.AbstractValidationRule<T>

    Returns IValidationResult

ValidateAll

  • ValidateAll(context: T in Validation.AbstractValidationRule<T>): Q.Promise<Validation.IValidationResult>
  • Parameters

    • context: T in Validation.AbstractValidationRule<T>

    Returns Q.Promise<Validation.IValidationResult>

ValidateAsync

  • ValidateAsync(context: T in Validation.AbstractValidationRule<T>): Q.Promise<Validation.IValidationResult>
  • Performs validation using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • context: T in Validation.AbstractValidationRule<T>

    Returns Q.Promise<Validation.IValidationResult>

ValidateProperty

  • ValidateProperty(context: T in Validation.AbstractValidationRule<T>, propName: string)
  • Parameters

    • context: T in Validation.AbstractValidationRule<T>
    • propName: string

addChildren

  • addChildren()

private createRuleFor

  • createRuleFor(prop: string)
  • Parameters

    • prop: string

Generated using TypeDoc