Class DateIntervalValidator

  • All Implemented Interfaces:
    ContentValidator, Configurable, LogEnabled, Serviceable

    public class DateIntervalValidator
    extends AbstractIntervalValidator<Date>
    This implementation of ContentValidator validates the content by comparing one or more couple of date values. For each couple of values, the identified end date should be greater than or equal to the identified start date. The start and end dates to compare are identified in validator's configuration by the metadata path as follows: <startDate path="path/to/metadata/start"/> <endDate path="path/to/metadata/end"/> If the path of metadata can contain one or more repeaters.