Options
Menu
ngdoc

object

name

AbstractListValidationRule

module

Validation

description

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

Hierarchy

Index

Constructor methods

constructor

Properties

Children

Children: Object

Children index signature

ForList

ForList: boolean

Name

Name: string

RowsMap

RowsMap: any

Rules

Rules: Object

Rules index signature

ValidationResultVisitor

ValidationResultVisitor: IValidationResultVisitor

Validators

Validators: Object

Validators index signature

  • Parameters

    • name: string

    Returns IValidator

validator

Get accessors

Rows

ValidationResult

Methods

AcceptVisitor

private ClearRows

  • ClearRows(list: Array<any>)
  • Parameters

    • list: Array<any>

private ClearValidationResult

  • ClearValidationResult(list: Array<any>)
  • Parameters

    • list: Array<any>

RefreshRows

  • RefreshRows(list: Array<any>)
  • Parameters

    • list: Array<any>

SetOptional

Validate

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: any): Q.Promise<Validation.IValidationResult>
  • Performs validation using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • context: any

    Returns Q.Promise<Validation.IValidationResult>

ValidateProperty

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

addChildren

  • addChildren()

private getValidationRule

  • Parameters

    • key: any
    • name?: string optional

    Returns IAbstractValidationRule

private refreshList

  • refreshList(list: Array<any>)
  • Parameters

    • list: Array<any>

Generated using TypeDoc