Class XSDurationValidator
- java.lang.Object
-
- com.sun.identity.shared.validation.ValidatorBase
-
- com.sun.identity.shared.validation.XSDurationValidator
-
- All Implemented Interfaces:
Validator
public class XSDurationValidator extends ValidatorBase
Validator forxs:durationformat. 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.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.shared.validation.ValidatorBase
resourceBundleName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XSDurationValidatorgetInstance()Returns an instance of this validator.protected voidperformValidation(String strData)Performs validation on a string.-
Methods inherited from class com.sun.identity.shared.validation.ValidatorBase
validate, validate
-
-
-
-
Method Detail
-
getInstance
public static XSDurationValidator getInstance()
Returns an instance of this validator.- Returns:
- an instance of this validator.
-
performValidation
protected void performValidation(String strData) throws ValidationException
Description copied from class:ValidatorBasePerforms validation on a string.- Specified by:
performValidationin classValidatorBase- Parameters:
strData- String to be validated.- Throws:
ValidationException- ifstrDatais in incorrect format.
-
-