java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.TimeValidator
All Implemented Interfaces:
ValueValidator

public class TimeValidator extends Object implements ValueValidator
Validates time values.
Author:
Jens Riemschneider
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a validator which will check that the timestamp has the right format without minimal length constraint.
    TimeValidator(int minLen)
    Initializes a validator which will check that the timestamp has the right format and the given minimal length (to check the precision).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Validates the given value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeValidator

      public TimeValidator(int minLen)
      Initializes a validator which will check that the timestamp has the right format and the given minimal length (to check the precision).
      Parameters:
      minLen - minimal length of the timestamp; "-1" means no check.
    • TimeValidator

      public TimeValidator()
      Initializes a validator which will check that the timestamp has the right format without minimal length constraint.
  • Method Details