public class XSDurationValidator extends ValidatorBase
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.resourceBundleName| Modifier and Type | Method and Description |
|---|---|
static XSDurationValidator |
getInstance()
Returns an instance of this validator.
|
protected void |
performValidation(String strData)
Performs validation on a string.
|
validate, validatepublic static XSDurationValidator getInstance()
protected void performValidation(String strData) throws ValidationException
ValidatorBaseperformValidation in class ValidatorBasestrData - String to be validated.ValidationException - if strData is in incorrect
format.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.