public class EventSearchValidator extends DateValidator implements Serializable
RemoteException with the error.
If no errors occur, it calls the appropriate method in the controller and
sets the input data, specifically, the start time , end time, Start Amount & End Amount.| Constructor and Description |
|---|
EventSearchValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAmountSelection(String sAmountSelection)
Sets the input data "Amount Selection."
|
void |
setDateSelection(String sDateSelection)
Sets the input data "date selection."
|
void |
setEndAmount(String sAmount)
Sets the input data "end amount."
|
void |
setStartAmount(String sAmount)
Sets the input data "start amount."
|
void |
validate(ResourceBundle bundle,
PControllerBean cb)
Validates the dates & Amounts .
|
void |
validate(ResourceBundle bundle,
PControllerBean cb,
javax.servlet.http.HttpSession session)
Validates the dates & Amounts from an HTTP session.
|
setEndDate, setEndDay, setEndMonth, setEndYear, setStartDate, setStartDay, setStartMonth, setStartYearpublic void setStartAmount(String sAmount)
sStartAmount - a String with the start amount valuepublic void setEndAmount(String sAmount)
sEndAmount - a String with the end amount valuepublic void setDateSelection(String sDateSelection)
sDateSelection - a String with the choice Date Range / All Datespublic void setAmountSelection(String sAmountSelection)
sAmountSelection - a String with the choice Amount Range / All Amountpublic void validate(ResourceBundle bundle, PControllerBean cb) throws RemoteException
validate in class DateValidatorbundle - the resource bundlecb - the controller beanRemoteException - thrown for errorspublic void validate(ResourceBundle bundle, PControllerBean cb, javax.servlet.http.HttpSession session) throws RemoteException
validate in class DateValidatorbundle - the resource bundlecb - the controller beansession - the HTTP sessionRemoteException - thrown if the date format is invalid or if start time is
greater than the end time OR or Amount is invalid or if From amount is
greater than the To AmountCopyright © 2003, 2023, Oracle and/or its affiliates.