Studio Developer Manual / Version 2010
Table Of Contents
CoreMedia Studio offers several predefined validators and a
convenient API to implement your own, based on project-specific content validation
requirements. The table below gives an overview of the default validators, which reside in the
package com.coremedia.rest.validators
(for details, please consult the API
documentation available at the CoreMedia
download area).
Name | Behavior |
---|---|
DayOfWeekValidator
| checks that a date property contains only dates on certain days of the week |
EmailValidator
| checks for a valid email address according to RFC822 |
ImageMapAreasValidator
| checks for non-empty image and correctly linked areas in an image map. See also Section 7.3.4, “Enabling Image Map Editing” |
ListMaxLengthValidator
and
ListMinLengthValidator
| checks for maximum/minimum number of documents linked in a linklist |
MaxIntegerValidator
and
MinIntegerValidator
| checks for a maximum/minimum integer value |
MaxLengthValidator
and
MinLengthValidator
| checks for a maximum/minimum length of a String |
NotEmptyValidator
| checks whether a field is empty; works on strings, linklists, and blobs |
RegExpValidator
| checks whether a given (configurable) regular expression matches against the value given in the property |
UniqueListEntriesValidator
| checks against duplicate links in a linklist (that is, the same document is linked at least twice in the same linklist) |
UriValidator
and
UrlValidator
| checks for valid URIs or URLs, respectively |
Table 7.6. Selected predefined validators available in CoreMedia Studio