Class XSDurationValidator
- java.lang.Object
-
- com.sun.identity.common.validation.ValidatorBase
-
- com.sun.identity.common.validation.XSDurationValidator
-
- All Implemented Interfaces:
Validator
public class XSDurationValidator extends ValidatorBase
Deprecated.As of OpenSSO version 8.0XSDurationValidatorValidator 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.common.validation.ValidatorBase
resourceBundleName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static XSDurationValidatorgetInstance()Deprecated.static voidmain(String[] args)Deprecated.protected voidperformValidation(String strData)Deprecated.Performs validation on a string.-
Methods inherited from class com.sun.identity.common.validation.ValidatorBase
validate, validate
-
-
-
-
Method Detail
-
getInstance
public static XSDurationValidator getInstance()
Deprecated.
-
performValidation
protected void performValidation(String strData) throws ValidationException
Deprecated.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.
-
main
public static void main(String[] args)
Deprecated.
-
-