Class XSDurationValidator

  • All Implemented Interfaces:
    Validator

    public class XSDurationValidator
    extends ValidatorBase
    Validator for xs:duration format. The validation of the cache duration is done based on the following: If the number of years, months, days, hours, minutes, or seconds in any expression equals zero, the number and its corresponding designator may be omitted. However, at least one number and its designator must be present. The seconds part may have a decimal fraction. The designator 'T' must be absent if and only if all of the time items are absent. The designator 'P' must always be present.