edu.stanford.smi.protegex.queries_tab.toolbox
Class AbstractTemplateSlotNumberValidator
java.lang.Object
edu.stanford.smi.protegex.queries_tab.toolbox.AbstractTemplateSlotNumberValidator
- All Implemented Interfaces:
- edu.stanford.smi.protege.util.NumberValidator, edu.stanford.smi.protege.util.Validator
- Direct Known Subclasses:
- FloatTemplateSlotValidator, IntegerTemplateSlotValidator
public abstract class AbstractTemplateSlotNumberValidator
- extends Object
- implements edu.stanford.smi.protege.util.NumberValidator
Description of the class
- Author:
- Bill Grosso
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protege.util.NumberValidator |
convertToNumber |
VALID_NUMBER
public static final int VALID_NUMBER
- See Also:
- Constant Field Values
NUMBER_OUT_OF_BOUNDS
public static final int NUMBER_OUT_OF_BOUNDS
- See Also:
- Constant Field Values
FORMAT_ERROR
public static final int FORMAT_ERROR
- See Also:
- Constant Field Values
AbstractTemplateSlotNumberValidator
public AbstractTemplateSlotNumberValidator(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot)
isValid
public boolean isValid(Object o)
- Specified by:
isValid
in interface edu.stanford.smi.protege.util.Validator
validateString
public String validateString(String stringToCheck)
getErrorMessage
public String getErrorMessage(Object o)
- Specified by:
getErrorMessage
in interface edu.stanford.smi.protege.util.Validator
getErrorMessage
public abstract String getErrorMessage()
Submit a bug report or feature request