public class TimeValidator extends Object implements ValueValidator
Constructor and Description |
---|
TimeValidator()
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).
|
public TimeValidator(int minLen)
minLen
- minimal length of the timestamp; "-1" means no check.public TimeValidator()
public void validate(String time) throws XDSMetaDataException
ValueValidator
validate
in interface ValueValidator
time
- the value.XDSMetaDataException
- if the validation failed.Copyright © 2018 Open eHealth Foundation. All rights reserved.