philcockfield/open.core — Issue #8: Property.validators
Author: philcockfield
Created: 2011-10-09 12:30:35+00:00
State: open

Add to `Property` class the ability for:

- **Validators**
A collection of functions that return `true / false` for whether the value is valid.

- **Formatters**
A collection of functions that process the written value, before it is stored, and before it is fired out of the `changing` event.

Examples of common string formatters:

- `blankToNull` - converts blank strings to Null
- `toLower` - coverts strings to lowercase.
- `toUpper` - coverts strings to uppercase.