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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValueChecker
public AbstractValueChecker()
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 checknamesToCheck
- - 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 checknamesToCheck
- - Hashmap of Names to carry out checks on , plus 'English Names'- Throws:
NoUnitException
-