Java Reference
In-Depth Information
5. public Appointment getAppointment() throws InformationRequiredException {
6. try {
7. super.getAppointment();
8. }
9. finally {
10. if (appointment.getEndDate() == null) {
11. requiredElements += END_DATE_REQUIRED;
12. }
13.
14. if (requiredElements > 0) {
15. throw new InformationRequiredException(requiredElements);
16. }
17. }
18. return appointment;
19. }
20. }
Search WWH ::




Custom Search