|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
caltool.schedule.ScheduleEventPrecondViolation
public class ScheduleEventPrecondViolation
Class ScheduleEventPrecondViolation defines and exception containing error conditions for the Schedule.scheduleEvent method. It contains a list of the specific error messages that may be output in response to a precondition having been violated by a call th scheduleEvent.
Field Summary | |
---|---|
protected java.lang.String |
alreadyScheduledMessage
Error message for event of same date,title already scheduled |
protected java.lang.String |
emptyTitleMessage
Error message for empty title |
protected java.util.ArrayList |
errors
List of current error messages |
protected java.lang.String |
invalidEndDateMessage
Error message for invalid end date |
protected java.lang.String |
invalidStartDateMessage
Error message for invalid start date |
protected java.lang.String |
noActiveCalendarMessage
Error message for no currently active calendar in the workspace |
protected int |
numErrors
Error message count |
Constructor Summary | |
---|---|
ScheduleEventPrecondViolation()
Construct this by initializing the error message list to an empty list, initializing the numErrors count to 0, and initializing local copies of the error message text for each of the possible errors from Schedule.scheduleEvent. |
Method Summary | |
---|---|
boolean |
anyErrors()
Return true if any errors have been set. |
void |
clear()
Clear all error messages. |
java.lang.String[] |
getErrors()
Return the error list. |
int |
numberOfErrors()
Return the number of errors. |
void |
setAlreadyScheduledError()
Set the already scheduled error message. |
void |
setEmptyTitleError()
Set the empty title error message. |
void |
setInvalidEndDateError()
Set the invalid end date error message. |
void |
setInvalidStartDateError()
Set the invalid start date error message. |
void |
setNoActiveCalendarError()
Set the no active calendar error message. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList errors
protected int numErrors
protected java.lang.String emptyTitleMessage
protected java.lang.String alreadyScheduledMessage
protected java.lang.String invalidStartDateMessage
protected java.lang.String invalidEndDateMessage
protected java.lang.String noActiveCalendarMessage
Constructor Detail |
---|
public ScheduleEventPrecondViolation()
Method Detail |
---|
public java.lang.String[] getErrors()
getErrors
in interface PrecondViolation
public void clear()
clear
in interface PrecondViolation
public boolean anyErrors()
anyErrors
in interface PrecondViolation
public int numberOfErrors()
numberOfErrors
in interface PrecondViolation
public void setEmptyTitleError()
public void setAlreadyScheduledError()
public void setInvalidStartDateError()
public void setInvalidEndDateError()
public void setNoActiveCalendarError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |