org.xnap.util.prefs
Class IntValidator

java.lang.Object
  extended by org.xnap.util.prefs.IntValidator
All Implemented Interfaces:
Validator

public class IntValidator
extends java.lang.Object
implements Validator

An integer validator. A range can be defined.


Constructor Summary
IntValidator()
           
IntValidator(int min)
           
IntValidator(int min, int max)
           
 
Method Summary
 void validate(java.lang.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

validate

public void validate(java.lang.String value)
Validates String.

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


Copyright © 2001-2005 XNap Team. All Rights Reserved.