close

Filter

loading table of contents...

Studio Developer Manual / Version 2101

Table Of Contents

7.17.1.1 Predefined validators

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).

NameBehavior
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


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.