public class DateValidator extends Object 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 and end time.Constructor and Description |
---|
DateValidator() |
Modifier and Type | Method and Description |
---|---|
void |
setEndDate(String sDate)
Sets the input data "end date."
|
void |
setEndDay(String sDay)
Sets the input data "end day."
|
void |
setEndMonth(String sMonth)
Sets the input data "end month."
|
void |
setEndYear(String sYear)
Sets the input data "end year."
|
void |
setStartDate(String sDate)
Sets the input data "start date."
|
void |
setStartDay(String sDay)
Sets the optional input data "start day."
|
void |
setStartMonth(String sMonth)
Sets the input data "start month."
|
void |
setStartYear(String sYear)
Sets the input data "start year."
|
void |
validate(ResourceBundle bundle,
PControllerBean cb)
Validates the dates.
|
void |
validate(ResourceBundle bundle,
PControllerBean cb,
javax.servlet.http.HttpSession session)
Validates the dates from an HTTP session.
|
public void setStartYear(String sYear)
sStartYear
- a String
with the start year valuepublic void setEndYear(String sYear)
sEndYear
- a String
with the end year valuepublic void setStartMonth(String sMonth)
sStartMonth
- a String
with the start month valuepublic void setEndMonth(String sMonth)
sEndMonth
- a String
with the end month valuepublic void setStartDay(String sDay)
sStartDay
- a String
with the start day valuepublic void setEndDay(String sDay)
sEndDay
- a String
with the end day valuepublic void setStartDate(String sDate)
sStartDate
- a String
with the start date valuepublic void setEndDate(String sDate)
sEndDate
- a String
with the end date valuepublic void validate(ResourceBundle bundle, PControllerBean cb) throws RemoteException
bundle
- the resource bundlecb
- the controller beanRemoteException
- thrown for errorspublic void validate(ResourceBundle bundle, PControllerBean cb, javax.servlet.http.HttpSession session) throws RemoteException
bundle
- 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 timeCopyright © 2003, 2023, Oracle and/or its affiliates.