| Class | Description |
|---|---|
| AbstractDateFormatSpecifier |
Specialized format validator for date/time checking
|
| DateFormatSpecifier |
Validator for the
date format specification |
| DateTimeFormatSpecifier |
Validator for the
date-time format specification |
| DateTimeMillisecFormatSpecifier |
Validator for the custom
date-time-ms format specification |
| EmailFormatSpecifier |
Validator for the
email format specification. |
| FormatSpecifier |
Base class for a format specifier
|
| HostnameFormatSpecifier |
Validator for the
host-name format specification |
| IPV4FormatSpecifier |
Validator for the
ip-address format specification, ie an IPv4 address |
| IPV6FormatSpecifier |
Validator for the
ipv6 format specification |
| PhoneNumberFormatSpecifier |
Attempt to validate the
phone format specification |
| RegexFormatSpecifier |
Validator for the
regex format specification |
| TimeFormatSpecifier |
Validator for the
time format specification |
| UnixEpochFormatSpecifier |
Validator for the
utc-millisec format specification |
| URIFormatSpecifier |
Validator for the
uri format specification |
All format specifiers (section 5.23 of draft v3) are supported,
except for style and color.
It should be noted that this implementation differs from the draft in one subtle, but important way: strictly speaking, an email and a hostname may have no domain part at all. However, this implementation chooses to require that they have one by default.
This implementation also adds a custom format specifier,
date-time-ms: this is the same as ISO 8601's date-time,
with added milliseconds.
Note: in theory, draft v3 also allows further format specifiers to be registered, however this implementation does not support it currently.
Copyright © 2012. All Rights Reserved.