Class: AbstractValidator

AbstractValidator()

An abstract base validator

Constructor

new AbstractValidator()

Source:

Members

isNull :boolean

Answers wether this is the NullValidator
Type:
  • boolean
Source:

valid :boolean

Answers the current validity status of this validator. This property neither alters the current status nor triggers new validity checks
Type:
  • boolean
Source:

validListeners :Array.<ValidationListener>

Type:
Source:

Methods

fireValid(puzzle)

Parameters:
Name Type Description
puzzle Puzzle
Source:

onValid(f)

Registers a validation listener
Parameters:
Name Type Description
f ValidationListener
Source:

updateValidity(puzzle)

Updates the valid state.
Parameters:
Name Type Description
puzzle Puzzle
Source:

validate(puzzle)

Validates the puzzle, updating the validity state and firing validation events
Parameters:
Name Type Description
puzzle Puzzle
Source: