Class: Validator

Validator


<abstract> new Validator(allowFormatting, multiline)

The Validator class provides for validation of alphanumeric characters.

Parameters:
Name Type Description
allowFormatting boolean

Determines whether or not the formatting of the source should be utilized.

multiline boolean

Determines whether or not the validator works on multiple lines.

Source:

Members


AllowFormatting :boolean

Determines whether or not the formatting of the source should be utilized.

Type:
  • boolean
Default Value:
  • {true}
Source:

Multiline :boolean

Determines whether or not the validator works on multiple lines.

Type:
  • boolean
Default Value:
  • {true}
Source:

<static> UnsignedNumeric :UnsignedNumericValidator

The global UnsignedNumericValidator instance.

Type:
Source:

<static> UnsignedNumericInteger :UnsignedIntegerValidator

The global UnsignedIntegerValidator instance.

Type:
Source:

<static> Text :TextValidator

The global TextValidator instance.

Type:
Source:

<static> String :StringValidator

The global StringValidator instance.

Type:
Source:

<static> Numeric :NumericValidator

The global NumericValidator instance.

Type:
Source:

<static> NumericInteger :IntegerValidator

The global IntegerValidator instance.

Type:
Source:

<static> Date :DateValidator

The global DateValidator instance.

Type:
Source:

Methods


Force(value)

Forces validation of value and returns valid value.

Parameters:
Name Type Description
value string

The value to force validation from.

Source:
Returns:
Type
string

Validate(value)

Determines whether or not a value is valid.

Parameters:
Name Type Description
value string

The value to determine the validation state of.

Source:
Returns:
Type
boolean