edu.stanford.smi.protege.util
Class IntegerValidator
java.lang.Object
edu.stanford.smi.protege.util.IntegerValidator
- All Implemented Interfaces:
- NumberValidator, Validator
public class IntegerValidator
- extends Object
- implements NumberValidator
Utility class to check a string to see if it is a valid integer.
- Author:
- Ray Fergerson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerValidator
public IntegerValidator()
getInstance
public static IntegerValidator getInstance()
convertToNumber
public Number convertToNumber(String string)
- Specified by:
convertToNumber
in interface NumberValidator
getErrorMessage
public String getErrorMessage(Object o)
- Specified by:
getErrorMessage
in interface Validator
isValid
public boolean isValid(Object o)
- Specified by:
isValid
in interface Validator
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.