class TimeValidator implements ValueValidator {

    @Override
    public void validate(String time) throws XDSMetaDataException {
        notNull(time, "time cannot be null");        
        metaDataAssert(TIME_PATTERN.matcher(time).matches(), INVALID_TIME, time);
    }

}