net.firstpartners.nounit.ui.common
Class AbstractValueChecker

java.lang.Object
  |
  +--net.firstpartners.nounit.ui.common.AbstractValueChecker
Direct Known Subclasses:
CommandValueChecker

public abstract class AbstractValueChecker
extends java.lang.Object

Abstract class with methods to check values


Constructor Summary
AbstractValueChecker()
           
 
Method Summary
protected  void checkForDirsExist(AbstractPackage inValues, java.util.HashMap namesToCheck)
          Checks that Directories Exist under the requested Keys
protected  void checkForNullEmptyString(AbstractPackage inValues, java.util.HashMap namesToCheck)
          Checks for Null, empty and instance of Strings under Named keys in AbstractPackage
abstract  boolean checkValues(AbstractPackage inValues)
          Override this method to provide value checking in sub-classes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValueChecker

public AbstractValueChecker()
Method Detail

checkValues

public abstract boolean checkValues(AbstractPackage inValues)
                             throws NoUnitException,
                                    java.lang.ClassNotFoundException,
                                    java.sql.SQLException
Override this method to provide value checking in sub-classes
Parameters:
inValues - - AbstractPackage of incoming values
Returns:
boolean

checkForNullEmptyString

protected void checkForNullEmptyString(AbstractPackage inValues,
                                       java.util.HashMap namesToCheck)
                                throws NoUnitException
Checks for Null, empty and instance of Strings under Named keys in AbstractPackage
Parameters:
inValues - - AbstractPackage to check
namesToCheck - - Hashmap of Names to carry out checks on , plus 'English Names'
Throws:
NoUnitException -  
java.lang.NumberFormatException -  

checkForDirsExist

protected void checkForDirsExist(AbstractPackage inValues,
                                 java.util.HashMap namesToCheck)
                          throws NoUnitException
Checks that Directories Exist under the requested Keys
Parameters:
inValues - - AbstractPackage to check
namesToCheck - - Hashmap of Names to carry out checks on , plus 'English Names'
Throws:
NoUnitException -