PatternValidator

Hierarchy

  • PatternValidator

Implemented by

Index

Methods

Methods

canValidate

canValidate(expectation: Expectation, isStrict?: boolean): boolean

Parameters:

NameType
expectationExpectation
isStrict?boolean

Returns: boolean

canValidate(expectation: Expectation, isStrict?: boolean): boolean

Parameters:

NameType
expectationExpectation
isStrict?boolean

Returns: boolean


validate

validate(value?: any, expectation?: Expectation, validator?: Validator): boolean

Parameters:

NameType
value?any
expectation?Expectation
validator?Validator

Returns: boolean

validate(value?: any, expectation?: Expectation, validator?: Validator): boolean

Parameters:

NameType
value?any
expectation?Expectation
validator?Validator

Returns: boolean