|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.validators.DateTimeValidator
public class DateTimeValidator
Verifies that the value entered matches the Date pattern "yyyy/mm/dd hh:mm:ss".
Field Summary | |
---|---|
static java.lang.String |
CURRENT_DATE_TIME
|
static DateTimeValidator |
instance
A static instance of this class. |
Method Summary | |
---|---|
boolean |
isBeingValid(java.lang.String value)
Determines if the current value is valid. |
boolean |
isValid(java.lang.String value,
Messages messages)
Determines if the overall input is valid. |
void |
setMessage(java.lang.String message)
|
void |
setPattern(java.lang.String pattern)
Note, when this is called setMessage should also be called. |
void |
setPattern(java.lang.String pattern,
java.lang.String message)
Sets the pattern and the error message for when the date does not match that pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static DateTimeValidator instance
public static final java.lang.String CURRENT_DATE_TIME
Method Detail |
---|
public boolean isBeingValid(java.lang.String value)
IValidator
isBeingValid
in interface IValidator
value
- the string value which has been entered by the end user and requires validation.
public boolean isValid(java.lang.String value, Messages messages)
IValidator
messages
bundle. Any messages added will be displayed to the end user in the form of a messagebox.
isValid
in interface IValidator
value
- the string value which has been entered by the end user and requires validation.messages
- a bundle of messages to be displayed to the end user in the event that validation fails.
public void setPattern(java.lang.String pattern)
public void setMessage(java.lang.String message)
public void setPattern(java.lang.String pattern, java.lang.String message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |