com.caucho.config.timer
Class CronExpression

java.lang.Object
  extended by com.caucho.config.timer.CronExpression
All Implemented Interfaces:
java.io.Serializable

public class CronExpression
extends java.lang.Object
implements java.io.Serializable

Cron expression.

Author:
Reza Rahman
See Also:
Serialized Form

Constructor Summary
CronExpression(java.lang.String second, java.lang.String minute, java.lang.String hour, java.lang.String dayOfWeek, java.lang.String dayOfMonth, java.lang.String month, java.lang.String year)
          Constructs a new cron expression.
 
Method Summary
 java.lang.String getDayOfMonth()
          Gets the day of month expression.
 java.lang.String getDayOfWeek()
          Gets the day of week expression.
 java.lang.String getHour()
          Gets the hour expression.
 java.lang.String getMinute()
          Gets the minutes expression.
 java.lang.String getMonth()
          Gets the month expression.
 java.lang.String getSecond()
          Gets the seconds expression.
 java.lang.String getYear()
          Gets the year expression.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CronExpression

public CronExpression(java.lang.String second,
                      java.lang.String minute,
                      java.lang.String hour,
                      java.lang.String dayOfWeek,
                      java.lang.String dayOfMonth,
                      java.lang.String month,
                      java.lang.String year)
Constructs a new cron expression.

Parameters:
second - Second part of cron expression.
minute - Minute part of cron expression.
hour - Hour part of cron expression.
dayOfWeek - Day of week part of cron expression.
dayOfMonth - Day of month part of cron expression.
month - Month part of cron expression.
year - Year part of cron expression.
Method Detail

getSecond

public java.lang.String getSecond()
Gets the seconds expression.

Returns:
Seconds expression.

getMinute

public java.lang.String getMinute()
Gets the minutes expression.

Returns:
Minutes expression.

getHour

public java.lang.String getHour()
Gets the hour expression.

Returns:
Hour expression.

getDayOfWeek

public java.lang.String getDayOfWeek()
Gets the day of week expression.

Returns:
Day of week expression.

getDayOfMonth

public java.lang.String getDayOfMonth()
Gets the day of month expression.

Returns:
Day of month expression.

getMonth

public java.lang.String getMonth()
Gets the month expression.

Returns:
Month expression.

getYear

public java.lang.String getYear()
Gets the year expression.

Returns:
Year expression.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object