XSDurationValidator
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()
Deprecated.
|
static void |
main(String[] args)
Deprecated.
|
protected void |
performValidation(String strData)
Deprecated.
Performs validation on a string.
|
validate, validate
public static XSDurationValidator getInstance()
protected void performValidation(String strData) throws ValidationException
ValidatorBase
performValidation
in class ValidatorBase
strData
- String to be validated.ValidationException
- if strData
is in incorrect
format.ValidationException
public static void main(String[] args)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.