|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumich.cac.util.DataValidator
A Utility class that validates various kinds of data to detaint it. If the data is not valid the methods will returns false, and prints a debugging message via the JDK logging mechansim as to the reason
Constructor Summary | |
DataValidator()
|
Method Summary | |
static boolean |
checkFile(java.lang.String fileName)
Validate the filename can be written to if it exists, |
static boolean |
checkTime(java.lang.String time)
Validate the time A valid time in HH:MM:SS |
static boolean |
validateDate(java.lang.String date)
Validate the date. |
static boolean |
validateUsername(java.lang.String userName)
Validate the username of the user, like "ux02939". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataValidator()
Method Detail |
public static boolean validateUsername(java.lang.String userName)
userName
- The loginId/userName of the user
public static boolean validateDate(java.lang.String date)
date
- The date to check
public static boolean checkTime(java.lang.String time)
time
- time to check
public static boolean checkFile(java.lang.String fileName)
fileName
- name of the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |