org.xnap.commons.settings
Class IntValidator
java.lang.Object
org.xnap.commons.settings.IntValidator
- All Implemented Interfaces:
- Validator
public class IntValidator
- extends Object
- implements Validator
An integer validator. A range can be defined.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntValidator
public IntValidator(int min,
int max)
IntValidator
public IntValidator(int min)
IntValidator
public IntValidator()
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.