org.xnap.commons.settings
Class IntValidator

java.lang.Object
  extended by org.xnap.commons.settings.IntValidator
All Implemented Interfaces:
Validator

public class IntValidator
extends Object
implements Validator

An integer validator. A range can be defined.


Constructor Summary
IntValidator()
           
IntValidator(int min)
           
IntValidator(int min, int max)
           
 
Method Summary
 int getMax()
           
 int getMin()
           
 void validate(String value)
          Validates String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntValidator

public IntValidator(int min,
                    int max)

IntValidator

public IntValidator(int min)

IntValidator

public IntValidator()
Method Detail

getMin

public int getMin()

getMax

public int getMax()

validate

public void validate(String value)
Validates String.

Specified by:
validate in interface Validator
Throws:
IllegalArgumentException - if newValue is invalid.


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.