NumericValidator

Kind of class:class
Inherits from:ValidationRule
Implements:
Author:Martijn de Visser
Classpath:org.asapframework.util.forms.validate.NumericValidator
File last modified:Wednesday, 21 June 2006, 19:05:09
Validates if target's value is a Number.
Implementation note:
  • Please note that any leading and trailing spaces will be ignored.

Summary


Constructor
Instance properties
Instance properties inherited from ValidationRule
Instance methods
  • validate : Boolean
    • Validates rule.
  • toString : String
    • Returns readable name of rule.

Constructor

NumericValidator

function NumericValidator (
inTarget:Object)

Parameters:
inTarget:
Target object to validate, has to implement the IValidate interface. Except TextFields, these will be accessed through .text.

Instance methods

toString

function toString (
) : String

Returns readable name of rule.

validate

function validate (
) : Boolean

Validates rule.