hibergui.verify
Class DateFormatConstraint
java.lang.Object
hibergui.verify.DateFormatConstraint
- All Implemented Interfaces:
- Constraint
public abstract class DateFormatConstraint
- extends java.lang.Object
- implements Constraint
|
Field Summary |
private static java.text.DateFormat |
dateFormat
|
private static java.text.DateFormat |
timeFormat
|
|
Method Summary |
boolean |
check(java.lang.Object o)
|
static boolean |
parseDate(java.lang.String s)
|
static boolean |
parseTime(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateFormat
private static java.text.DateFormat dateFormat
timeFormat
private static java.text.DateFormat timeFormat
DateFormatConstraint
public DateFormatConstraint()
parseDate
public static boolean parseDate(java.lang.String s)
parseTime
public static boolean parseTime(java.lang.String s)
check
public boolean check(java.lang.Object o)
- Specified by:
check in interface Constraint
- Returns:
- true if the object satisfies the constraint, false otherwise