Protege 3.4.4

edu.stanford.smi.protegex.queries_tab.toolbox
Class IntegerTemplateSlotValidator

java.lang.Object
  extended by edu.stanford.smi.protegex.queries_tab.toolbox.AbstractTemplateSlotNumberValidator
      extended by edu.stanford.smi.protegex.queries_tab.toolbox.IntegerTemplateSlotValidator
All Implemented Interfaces:
edu.stanford.smi.protege.util.NumberValidator, edu.stanford.smi.protege.util.Validator

public class IntegerTemplateSlotValidator
extends AbstractTemplateSlotNumberValidator

Description of the class

Author:
Bill Grosso

Field Summary
 
Fields inherited from class edu.stanford.smi.protegex.queries_tab.toolbox.AbstractTemplateSlotNumberValidator
FORMAT_ERROR, NUMBER_OUT_OF_BOUNDS, VALID_NUMBER
 
Constructor Summary
IntegerTemplateSlotValidator(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot)
           
 
Method Summary
 Number convertToNumber(String stringToCheck)
           
 String getErrorMessage()
           
 
Methods inherited from class edu.stanford.smi.protegex.queries_tab.toolbox.AbstractTemplateSlotNumberValidator
getErrorMessage, isValid, validateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerTemplateSlotValidator

public IntegerTemplateSlotValidator(edu.stanford.smi.protege.model.Cls cls,
                                    edu.stanford.smi.protege.model.Slot slot)
Method Detail

convertToNumber

public Number convertToNumber(String stringToCheck)
                       throws NumberFormatException
Throws:
NumberFormatException

getErrorMessage

public String getErrorMessage()
Specified by:
getErrorMessage in class AbstractTemplateSlotNumberValidator

Protege 3.4.4

Submit a bug report or feature request