Java Doc for RecurrenceRuleBase.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » calendar » impl » 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 » ERP CRM Financial » sakai » org.sakaiproject.calendar.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.calendar.impl.RecurrenceRuleBase

All known Subclasses:   org.sakaiproject.calendar.impl.MonthlyRecurrenceRule,  org.sakaiproject.calendar.impl.YearlyRecurrenceRule,  org.sakaiproject.calendar.impl.WeeklyRecurrenceRule,  org.sakaiproject.calendar.impl.DailyRecurrenceRule,
RecurrenceRuleBase
abstract public class RecurrenceRuleBase implements RecurrenceRule(Code)
This is a common base for the daily, weekly, monthly, and yearly recurrence rules.



Constructor Summary
public  RecurrenceRuleBase()
     Construct.
public  RecurrenceRuleBase(int interval)
     Construct with no limits.
public  RecurrenceRuleBase(int interval, int count)
     Construct with count limit.
public  RecurrenceRuleBase(int interval, Time until)
     Construct with time limit.

Method Summary
final public  voidexcludeInstances(List ranges)
     Remove from the ranges list any RecurrenceInstance excluded by this rule.
public  ListgenerateInstances(TimeRange prototype, TimeRange range, TimeZone timeZone)
     Return a List of all RecurrenceInstance objects generated by this rule within the given time range, based on the prototype first range, in time order.
Parameters:
  prototype - The prototype first TimeRange.
Parameters:
  range - A time range to limit the generated ranges.
Parameters:
  timeZone - The time zone to use for displaying times.%%% Note: this is currently not implemented, and always uses the "local" zone.
final public  intgetCount()
     Gets the number of times (years) that this event should repeat.
final public  intgetInterval()
     Gets the interval (in years) for this event.
abstract protected  intgetRecurrenceType()
    
final public  TimegetUntil()
     Gets the end time for recurring events.
final protected  booleanisAfter(Time time1, Time time2)
    
final protected  booleanisOverlap(TimeRange range1, TimeRange range2)
     Checks for overlap.
public  voidset(Element el)
    
protected  voidsetBaseClassXML(Element rule)
     Set base class attributes in the Element rule during XML serialization.
final protected  voidsetCount(int i)
     Sets the number of times that this event will repeat.
final protected  voidsetInterval(int i)
     Sets the interval (in months) which this event will repeat.
final protected  voidsetUntil(Time time)
     Sets the end time for this recurring event.


Constructor Detail
RecurrenceRuleBase
public RecurrenceRuleBase()(Code)
Construct.



RecurrenceRuleBase
public RecurrenceRuleBase(int interval)(Code)
Construct with no limits.
Parameters:
  interval - Every this many number of days: 1 would be daily.



RecurrenceRuleBase
public RecurrenceRuleBase(int interval, int count)(Code)
Construct with count limit.
Parameters:
  interval - Every this many number of days: 1 would be daily.
Parameters:
  count - For this many occurrences - if 0, does not limit.



RecurrenceRuleBase
public RecurrenceRuleBase(int interval, Time until)(Code)
Construct with time limit.
Parameters:
  interval - Every this many number of days: 1 would be daily.
Parameters:
  until - No time ranges past this time are generated - if null, does not limit.




Method Detail
excludeInstances
final public void excludeInstances(List ranges)(Code)
Remove from the ranges list any RecurrenceInstance excluded by this rule.
Parameters:
  ranges - The list (RecurrenceInstance) of ranges.



generateInstances
public List generateInstances(TimeRange prototype, TimeRange range, TimeZone timeZone)(Code)
Return a List of all RecurrenceInstance objects generated by this rule within the given time range, based on the prototype first range, in time order.
Parameters:
  prototype - The prototype first TimeRange.
Parameters:
  range - A time range to limit the generated ranges.
Parameters:
  timeZone - The time zone to use for displaying times.%%% Note: this is currently not implemented, and always uses the "local" zone. a List of RecurrenceInstance generated by this rule in this range.



getCount
final public int getCount()(Code)
Gets the number of times (years) that this event should repeat.



getInterval
final public int getInterval()(Code)
Gets the interval (in years) for this event.



getRecurrenceType
abstract protected int getRecurrenceType()(Code)



getUntil
final public Time getUntil()(Code)
Gets the end time for recurring events.



isAfter
final protected boolean isAfter(Time time1, Time time2)(Code)
Returns true if time1 is after time2
Parameters:
  time1 -
Parameters:
  time2 -



isOverlap
final protected boolean isOverlap(TimeRange range1, TimeRange range2)(Code)
Checks for overlap.
Parameters:
  range1 -
Parameters:
  range2 -



set
public void set(Element el)(Code)
Take values from this xml element
Parameters:
  el - The xml element.



setBaseClassXML
protected void setBaseClassXML(Element rule)(Code)
Set base class attributes in the Element rule during XML serialization.
Parameters:
  rule -



setCount
final protected void setCount(int i)(Code)
Sets the number of times that this event will repeat. This object is immutable, but we need the "set" method for unit testing.
Parameters:
  i -



setInterval
final protected void setInterval(int i)(Code)
Sets the interval (in months) which this event will repeat. This object is immutable, but we need the "set" method for unit testing.
Parameters:
  i -



setUntil
final protected void setUntil(Time time)(Code)
Sets the end time for this recurring event. This object is immutable, but we need the "set" method for unit testing.
Parameters:
  time -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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