Java Doc for Appointment.java in  » Development » rapla » org » rapla » entities » domain » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » rapla » org.rapla.entities.domain 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.rapla.entities.domain.Appointment

All known Subclasses:   org.rapla.entities.domain.internal.AppointmentImpl,
Appointment
public interface Appointment extends RaplaObject,Entity,Comparable,Ownable(Code)
The basic building blocks of reservations.
See Also:   Reservation
See Also:   Repeating


Field Summary
final  Appointment[]EMPTY_ARRAY
    
final  RaplaTypeTYPE
    


Method Summary
 voidcreateBlocks(Date start, Date end, AppointmentBlockArray blocks)
     adds all Appointment-blocks in the given period to the appointmentBlockArray. A block is in the period if its starttimestart.
 voidcreateBlocks(Date start, Date end, AppointmentBlockArray blocks, boolean excludeExceptions)
     adds all Appointment-blocks in the given period to the appointmentBlockArray. A block is in the period if its starttimestart.
 DategetEnd()
    
 DategetFirstDifference(Appointment a2, Date maxDate)
    
 DategetLastDifference(Appointment a2, Date maxDate)
    
Parameters:
  maxDate - must not be null, specifies the last date that should be searchedreturns the last date at which the two appointments differ.
 DategetMaxEnd()
    

If no repeating is set this method will return the same as getEnd().

 RepeatinggetRepeating()
    
 ReservationgetReservation()
     returns the reservation that owns the appointment.
 DategetStart()
    
 booleanisRepeatingEnabled()
    
 booleanisWholeDaysSet()
    
 booleanmatches(Appointment appointment)
     Returns if the exceptions, repeatings, start and end dates of the Appoinemnts are the same.
 voidmove(Date start, Date end)
     Changes the start- and end-time of the appointment.
 voidmove(Date newStart)
     Moves the start-time of the appointment.
 booleanoverlaps(Appointment appointment)
     Tests two appointments for overlap.
 booleanoverlaps(Date start, Date end)
     Test for overlap with a period.
 booleanoverlaps(Date start, Date end, boolean considerExceptions)
     Test for overlap with a period.
 voidsetRepeatingEnabled(boolean enableRepeating)
     Enables repeating for this appointment. Use getRepeating() to manipulate the repeating.
 voidsetWholeDays(boolean enable)
    

Field Detail
EMPTY_ARRAY
final Appointment[] EMPTY_ARRAY(Code)



TYPE
final RaplaType TYPE(Code)





Method Detail
createBlocks
void createBlocks(Date start, Date end, AppointmentBlockArray blocks)(Code)
adds all Appointment-blocks in the given period to the appointmentBlockArray. A block is in the period if its starttimestart. Exceptions are excluded, i.e. there is no block on an exception date.



createBlocks
void createBlocks(Date start, Date end, AppointmentBlockArray blocks, boolean excludeExceptions)(Code)
adds all Appointment-blocks in the given period to the appointmentBlockArray. A block is in the period if its starttimestart. You can specify if exceptions should be excluded.



getEnd
Date getEnd()(Code)



getFirstDifference
Date getFirstDifference(Appointment a2, Date maxDate)(Code)

Parameters:
  maxDate - must not be null, specifies the last date that should be searchedreturns the first date at which the two appointments differ (dates after maxDate will not be calculated)



getLastDifference
Date getLastDifference(Appointment a2, Date maxDate)(Code)

Parameters:
  maxDate - must not be null, specifies the last date that should be searchedreturns the last date at which the two appointments differ. (dates after maxDate will not be calculated)



getMaxEnd
Date getMaxEnd()(Code)

If no repeating is set this method will return the same as getEnd().

If the repeating has no end the method will return Null. Oterwise the maximum of getEnd() and repeating.getEnd() will be returned.


See Also:   Appointment.getEnd
See Also:   Repeating



getRepeating
Repeating getRepeating()(Code)
null if the appointment has no repeating



getReservation
Reservation getReservation()(Code)
returns the reservation that owns the appointment. the reservation that owns the appointment or null ifthe appointment does not belong to a reservation.



getStart
Date getStart()(Code)



isRepeatingEnabled
boolean isRepeatingEnabled()(Code)
returns if the appointment has a repeating



isWholeDaysSet
boolean isWholeDaysSet()(Code)
this method will be used for future enhancements



matches
boolean matches(Appointment appointment)(Code)
Returns if the exceptions, repeatings, start and end dates of the Appoinemnts are the same.



move
void move(Date start, Date end)(Code)
Changes the start- and end-time of the appointment.



move
void move(Date newStart)(Code)
Moves the start-time of the appointment. The end-time will be adjusted accordingly to the duration of the appointment.



overlaps
boolean overlaps(Appointment appointment)(Code)
Tests two appointments for overlap. Important: Times like 13:00-14:00 and 14:00-15:00 do not overlap The overlap-relation must be symmetric a1.overlaps(a2) == a2.overlaps(a1) true if the appointment overlaps the given appointment.



overlaps
boolean overlaps(Date start, Date end)(Code)
Test for overlap with a period. same as overlaps( start, end, true) true if the overlaps with the given period.



overlaps
boolean overlaps(Date start, Date end, boolean considerExceptions)(Code)
Test for overlap with a period. You can specify if exceptions should be considered in the overlapping algorithm. true if the overlaps with the given period.



setRepeatingEnabled
void setRepeatingEnabled(boolean enableRepeating)(Code)
Enables repeating for this appointment. Use getRepeating() to manipulate the repeating.



setWholeDays
void setWholeDays(boolean enable)(Code)
this method will be used for future enhancements



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.