1 /*
2 *******************************************************************************
3 * Copyright (c) 2005 Chris Rose and AIMedia
4 * All rights reserved. PropertyValidator and the accompanying materials
5 * are made available under the terms of the Common Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/cpl-v10.html
8 *
9 * Contributors:
10 * Chris Rose
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 }