com.bigdata.config
Class IntegerRangeValidator

java.lang.Object
  extended by com.bigdata.config.IntegerValidator
      extended by com.bigdata.config.IntegerRangeValidator
All Implemented Interfaces:
IValidator<Integer>

public class IntegerRangeValidator
extends IntegerValidator

Variant that imposes a range constraint on the value.

Version:
$Id: IntegerRangeValidator.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
Fields inherited from class com.bigdata.config.IntegerValidator
DEFAULT, GT_ZERO, GTE_ZERO
 
Constructor Summary
IntegerRangeValidator(int min, int max)
           
 
Method Summary
 void accept(String key, String val, Integer arg)
          Accepts all values in the range specified to the ctor.
 
Methods inherited from class com.bigdata.config.IntegerValidator
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerRangeValidator

public IntegerRangeValidator(int min,
                             int max)
Method Detail

accept

public void accept(String key,
                   String val,
                   Integer arg)
            throws ConfigurationException
Accepts all values in the range specified to the ctor.

Specified by:
accept in interface IValidator<Integer>
Overrides:
accept in class IntegerValidator
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.