DutchPostcodeValidator
| Kind of class: | class |
|---|---|
| Inherits from: | ValidationRule |
| Implements: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.util.forms.validate.DutchPostcodeValidator |
| File last modified: | Thursday, 13 July 2006, 09:33:59 |
Validates if target's value is a (Dutch) postcode.
That means that it should have 4 digits, followed (without space) by 2 characters. 1234AB for example.Implementation note:
Please note that any leading and trailing spaces will be ignored.
Summary
Constructor
Instance properties
Instance properties inherited from ValidationRule
Instance methods
Instance methods inherited from ValidationRule
Constructor
DutchPostcodeValidator
function DutchPostcodeValidator (
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.
Overrides:
Specified by:
validate
function validate (
) : Boolean
Validates rule
Overrides:
Specified by: