1
2
3
4
5
6
7
8
9
10
11
12 package ca.spaz.cron.config;
13
14 /***
15 * An interface for validation of property values.
16 * @author Chris Rose
17 */
18 public interface PropertyValidator {
19
20 /***
21 * Validate the specified value for the key.
22 * @param key The property key to test.
23 * @param value The property value to test.
24 * @return <code>true</code> if the value is a valid one for the specified key,
25 * <code>false</code> otherwise.
26 */
27 boolean isValid(String key, String value);
28
29 }