Java Doc for BusinessCalendar.java in  » Workflow-Engines » obe-1.0 » org » obe » engine » calendar » 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 » Workflow Engines » obe 1.0 » org.obe.engine.calendar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Calendar
      java.util.GregorianCalendar
         org.obe.engine.calendar.BusinessCalendar

All known Subclasses:   org.obe.engine.calendar.BasicBusinessCalendar,
BusinessCalendar
public class BusinessCalendar extends GregorianCalendar (Code)
Defines a business calendar. This means that it will handle the constructs of a business hour and a business day. This calendar also allows a system to define a matrix showing the times when work can proceed. This is analogous to a normal work calendar. For example, most people work from 9AM to 5PM, take an hour off for lunch and only work Monday to Friday. This calendar allows a system to define these rules and apply calendar math to them.

A business hour is any hour that has been marked as allowed for work. A business day is a day which has one or more business hours in it.

For example, based on the work week definition from above, if you add two business hours to Friday, 4PM, the result will be Monday, 10AM.

A calendar also has a start and an end date. By default, that is the from the current time to the end of the current year, but any start and end dates can be given. The start and end dates always encompass an entire day. This means the start date always starts at 00h00 and the end date always ends at 23h59



Field Summary
final public static  intINTERVALS_PER_DAY
    
final public static  intINTERVALS_PER_HOUR
    
final public static  intINTERVAL_TIME_MILLIS
     This is the smallest amount of time that can be marked as business time in the calendar.
final public static  longMILLIS_IN_DAY
    
final protected static  Log_LOGGER
    

Constructor Summary
public  BusinessCalendar(GregorianCalendar startDate, GregorianCalendar endDate)
     This uses the system TimeZone and Locale, with the calendar ranging from the current time to the end of the current year.
public  BusinessCalendar(TimeZone zone, Locale aLocale)
    
public  BusinessCalendar(BusinessCalendar parent, TimeZone zone, Locale aLocale)
     Inherits everything from the parent.

Method Summary
 voidaddExcludeRule(CalendarRule rule)
    
 voidaddIncludeRule(CalendarRule rule)
    
public  Objectclone()
    
public  StringdumpCalendar()
     Dumps calendar contents.
public  GregorianCalendargetEndDate()
    
public  ListgetExcludeRules()
    
public  ListgetIncludeRules()
    
public  LocalegetLocale()
    
public  BusinessCalendargetParent()
    
public  GregorianCalendargetStartDate()
    
public  voidparseStatement(String statement)
    
public  voidparseStatements(Reader statements)
    

Field Detail
INTERVALS_PER_DAY
final public static int INTERVALS_PER_DAY(Code)
Number of intervals in a full business day



INTERVALS_PER_HOUR
final public static int INTERVALS_PER_HOUR(Code)
Number of intervals in a business hour



INTERVAL_TIME_MILLIS
final public static int INTERVAL_TIME_MILLIS(Code)
This is the smallest amount of time that can be marked as business time in the calendar. The value in expressed in milliseconds



MILLIS_IN_DAY
final public static long MILLIS_IN_DAY(Code)



_LOGGER
final protected static Log _LOGGER(Code)




Constructor Detail
BusinessCalendar
public BusinessCalendar(GregorianCalendar startDate, GregorianCalendar endDate) throws RepositoryException(Code)
This uses the system TimeZone and Locale, with the calendar ranging from the current time to the end of the current year.
Parameters:
  startDate -
Parameters:
  endDate -



BusinessCalendar
public BusinessCalendar(TimeZone zone, Locale aLocale) throws RepositoryException(Code)
Sets both the TimeZone and the Locale
Parameters:
  zone - Calendar time zone
Parameters:
  aLocale - Calendar locale



BusinessCalendar
public BusinessCalendar(BusinessCalendar parent, TimeZone zone, Locale aLocale) throws RepositoryException(Code)
Inherits everything from the parent. It allows this calendar to maintain an independent list of inclusions/exclusions in addition to using the parent ones.
Parameters:
  parent -




Method Detail
addExcludeRule
void addExcludeRule(CalendarRule rule)(Code)

Parameters:
  rule -



addIncludeRule
void addIncludeRule(CalendarRule rule)(Code)

Parameters:
  rule -



clone
public Object clone()(Code)



dumpCalendar
public String dumpCalendar()(Code)
Dumps calendar contents. String representation of the calendar.



getEndDate
public GregorianCalendar getEndDate()(Code)



getExcludeRules
public List getExcludeRules()(Code)



getIncludeRules
public List getIncludeRules()(Code)



getLocale
public Locale getLocale()(Code)



getParent
public BusinessCalendar getParent()(Code)



getStartDate
public GregorianCalendar getStartDate()(Code)



parseStatement
public void parseStatement(String statement) throws RepositoryException(Code)



parseStatements
public void parseStatements(Reader statements) throws RepositoryException(Code)



Fields inherited from java.util.GregorianCalendar
final public static int AD(Code)(Java Doc)
final public static int BC(Code)(Java Doc)

Methods inherited from java.util.GregorianCalendar
public void add(int field, int amount)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void computeFields()(Code)(Java Doc)
protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int getActualMaximum(int field)(Code)(Java Doc)
public int getActualMinimum(int field)(Code)(Java Doc)
public int getGreatestMinimum(int field)(Code)(Java Doc)
final public Date getGregorianChange()(Code)(Java Doc)
public int getLeastMaximum(int field)(Code)(Java Doc)
public int getMaximum(int field)(Code)(Java Doc)
public int getMinimum(int field)(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isLeapYear(int year)(Code)(Java Doc)
public void roll(int field, boolean up)(Code)(Java Doc)
public void roll(int field, int amount)(Code)(Java Doc)
public void setGregorianChange(Date date)(Code)(Java Doc)
public void setTimeZone(TimeZone zone)(Code)(Java Doc)

Fields inherited from java.util.Calendar
final public static int ALL_STYLES(Code)(Java Doc)
final public static int AM(Code)(Java Doc)
final public static int AM_PM(Code)(Java Doc)
final public static int APRIL(Code)(Java Doc)
final public static int AUGUST(Code)(Java Doc)
final public static int DATE(Code)(Java Doc)
final public static int DAY_OF_MONTH(Code)(Java Doc)
final public static int DAY_OF_WEEK(Code)(Java Doc)
final public static int DAY_OF_WEEK_IN_MONTH(Code)(Java Doc)
final public static int DAY_OF_YEAR(Code)(Java Doc)
final public static int DECEMBER(Code)(Java Doc)
final public static int DST_OFFSET(Code)(Java Doc)
final public static int ERA(Code)(Java Doc)
final public static int FEBRUARY(Code)(Java Doc)
final public static int FIELD_COUNT(Code)(Java Doc)
final public static int FRIDAY(Code)(Java Doc)
final public static int HOUR(Code)(Java Doc)
final public static int HOUR_OF_DAY(Code)(Java Doc)
final public static int JANUARY(Code)(Java Doc)
final public static int JULY(Code)(Java Doc)
final public static int JUNE(Code)(Java Doc)
final public static int LONG(Code)(Java Doc)
final public static int MARCH(Code)(Java Doc)
final public static int MAY(Code)(Java Doc)
final public static int MILLISECOND(Code)(Java Doc)
final public static int MINUTE(Code)(Java Doc)
final public static int MONDAY(Code)(Java Doc)
final public static int MONTH(Code)(Java Doc)
final public static int NOVEMBER(Code)(Java Doc)
final public static int OCTOBER(Code)(Java Doc)
final public static int PM(Code)(Java Doc)
final public static int SATURDAY(Code)(Java Doc)
final public static int SECOND(Code)(Java Doc)
final public static int SEPTEMBER(Code)(Java Doc)
final public static int SHORT(Code)(Java Doc)
final public static int SUNDAY(Code)(Java Doc)
final public static int THURSDAY(Code)(Java Doc)
final public static int TUESDAY(Code)(Java Doc)
final public static int UNDECIMBER(Code)(Java Doc)
final public static int WEDNESDAY(Code)(Java Doc)
final public static int WEEK_OF_MONTH(Code)(Java Doc)
final public static int WEEK_OF_YEAR(Code)(Java Doc)
final public static int YEAR(Code)(Java Doc)
final public static int ZONE_OFFSET(Code)(Java Doc)
protected boolean areFieldsSet(Code)(Java Doc)
protected int fields(Code)(Java Doc)
protected boolean isSet(Code)(Java Doc)
protected boolean isTimeSet(Code)(Java Doc)
protected long time(Code)(Java Doc)

Methods inherited from java.util.Calendar
abstract public void add(int field, int amount)(Code)(Java Doc)
public boolean after(Object when)(Code)(Java Doc)
public boolean before(Object when)(Code)(Java Doc)
final public void clear()(Code)(Java Doc)
final public void clear(int field)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public int compareTo(Calendar anotherCalendar)(Code)(Java Doc)
protected void complete()(Code)(Java Doc)
abstract protected void computeFields()(Code)(Java Doc)
abstract protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public int get(int field)(Code)(Java Doc)
public int getActualMaximum(int field)(Code)(Java Doc)
public int getActualMinimum(int field)(Code)(Java Doc)
public static synchronized Locale[] getAvailableLocales()(Code)(Java Doc)
public String getDisplayName(int field, int style, Locale locale)(Code)(Java Doc)
public Map<String, Integer> getDisplayNames(int field, int style, Locale locale)(Code)(Java Doc)
public int getFirstDayOfWeek()(Code)(Java Doc)
abstract public int getGreatestMinimum(int field)(Code)(Java Doc)
public static Calendar getInstance()(Code)(Java Doc)
public static Calendar getInstance(TimeZone zone)(Code)(Java Doc)
public static Calendar getInstance(Locale aLocale)(Code)(Java Doc)
public static Calendar getInstance(TimeZone zone, Locale aLocale)(Code)(Java Doc)
abstract public int getLeastMaximum(int field)(Code)(Java Doc)
abstract public int getMaximum(int field)(Code)(Java Doc)
public int getMinimalDaysInFirstWeek()(Code)(Java Doc)
abstract public int getMinimum(int field)(Code)(Java Doc)
final public Date getTime()(Code)(Java Doc)
public long getTimeInMillis()(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final protected int internalGet(int field)(Code)(Java Doc)
public boolean isLenient()(Code)(Java Doc)
final public boolean isSet(int field)(Code)(Java Doc)
abstract public void roll(int field, boolean up)(Code)(Java Doc)
public void roll(int field, int amount)(Code)(Java Doc)
public void set(int field, int value)(Code)(Java Doc)
final public void set(int year, int month, int date)(Code)(Java Doc)
final public void set(int year, int month, int date, int hourOfDay, int minute)(Code)(Java Doc)
final public void set(int year, int month, int date, int hourOfDay, int minute, int second)(Code)(Java Doc)
public void setFirstDayOfWeek(int value)(Code)(Java Doc)
public void setLenient(boolean lenient)(Code)(Java Doc)
public void setMinimalDaysInFirstWeek(int value)(Code)(Java Doc)
final public void setTime(Date date)(Code)(Java Doc)
public void setTimeInMillis(long millis)(Code)(Java Doc)
public void setTimeZone(TimeZone value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.