if (lowerLimit == null && upperLimit == null) {
String msg = "'" + definition
+ "' is not a valid value constraint format for dates: neither min- nor max-date specified";
log.debug(msg);
throw new InvalidConstraintException(msg);
}
if (lowerLimit != null && upperLimit != null) {
if (lowerLimit.after(upperLimit)) {
String msg = "'" + definition
+ "' is not a valid value constraint format for dates: min-date > max-date";
log.debug(msg);
throw new InvalidConstraintException(msg);
}
}
} catch (ValueFormatException vfe) {
String msg = "'" + definition
+ "' is not a valid value constraint format for dates";
log.debug(msg);
throw new InvalidConstraintException(msg, vfe);
} catch (RepositoryException re) {
String msg = "'" + definition
+ "' is not a valid value constraint format for dates";
log.debug(msg);
throw new InvalidConstraintException(msg, re);
}
} else {
String msg = "'" + definition
+ "' is not a valid value constraint format for dates";
log.debug(msg);
throw new InvalidConstraintException(msg);
}
}