Options
Menu
ngdoc

object

name

PropertyValidationRule

module

Validation

description

It represents a property validation rule. The property has assigned collection of property validators.

Hierarchy

Index

Constructor methods

constructor

Properties

IsDirty

IsDirty: boolean

Name

Name: string

Optional

Optional: IOptional

TranslateArgs

ValidationFailures

ValidationFailures: Object

ValidationFailures index signature

  • Parameters

    • name: string

    Returns IValidationFailure

Validators

Validators: Object

Validators index signature

  • (name: string): any
  • Parameters

    • name: string

    Returns any

Get accessors

Children

ErrorCount

  • ErrorCount(): number

ErrorMessage

  • ErrorMessage(): string

Errors

  • Errors(): Object
  • Returns Object

HasErrors

  • HasErrors(): boolean

HasErrorsDirty

  • HasErrorsDirty(): boolean

Methods

AcceptVisitor

Add

AddValidator

  • AddValidator(validator: any)
  • Parameters

    • validator: any

Remove

  • Remove(index: number)

Validate

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

    Parameters

    Returns IValidationFailure[]

ValidateAsync

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

    Parameters

    Returns Q.Promise<Validation.IValidationFailure[]>

ValidateAsyncEx

  • ValidateAsyncEx(value: string): Q.Promise<Validation.IValidationFailure[]>
  • Performs validation using a validation context and returns a collection of Validation Failures asynchronoulsy.

    Parameters

    • value: string

    Returns Q.Promise<Validation.IValidationFailure[]>

ValidateEx

  • Parameters

    • value: any

    Returns IValidationFailure[]

Generated using TypeDoc