com.bigdata.config
Interface IValidator<E>
- Type Parameters:
E -
- All Known Implementing Classes:
- IntegerRangeValidator, IntegerValidator, LongRangeValidator, LongValidator
public interface IValidator<E>
Interface for validating property values.
- Version:
- $Id: IValidator.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
parse
E parse(String key,
String val)
- Convert a value to an instance of the generic type.
- Parameters:
key - The key.val - The value.
- Returns:
- The converted value.
accept
void accept(String key,
String val,
E arg)
throws ConfigurationException
- Parameters:
key - The key under which the value was discovered.val - The value.arg - The parsed value.
- Throws:
ConfigurationException
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.