|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcrontab.CrontabBean
This Bean represents an Event. Basically defines all the information necesary. Extends Seriazable to be saved in binary format when neded.
Field Summary | |
boolean |
bextraInfo
This CrontabBean bextraInfo to save time if the extraInfo Exists |
Calendar |
cal
This calendar defines the CrontabBean |
String |
className
This CrontabBean name |
String[] |
extraInfo
This CrontabBean extraInfo I mean the parameters given :-) |
int |
id
This CrontabBean Id |
String |
methodName
This CrontabBean methodName |
long |
timeMillis
Time in milliseconds from 1970 to the execution of this CrontabBean |
Constructor Summary | |
CrontabBean()
Default void constuctor. |
Method Summary | |
Calendar |
getCalendar()
This CrontabBean calendar getter |
String |
getClassName()
This CrontabBean className getter |
String[] |
getExtraInfo()
This CrontabBean extraInfo getter |
int |
getId()
This CrontabBean id getter |
String |
getMethodName()
This CrontabBean methodName getter |
long |
getTime()
This CrontabBean timeMillis getter |
void |
setCalendar(Calendar cal)
This CrontabBean calendar setter |
void |
setClassName(String className)
This CrontabBean className setter |
void |
setExtraInfo(String[] extraInfo)
This CrontabBean extraInfo setter |
void |
setId(int id)
This CrontabBean Id setter |
void |
setMethodName(String methodName)
This CrontabBean methodName setter |
void |
setTime(long timeMillis)
This CrontabBean timeMillis setter |
static CrontabBean[] |
toArray(Object[] obj)
Helps to do the castings in a more simple way. |
String |
toString()
This Method returns this Bean in a String |
String |
toXML()
This Method returns this Bean in a xml format This method is here to make easier integration with web-apps and other systems |
void |
toXML(PrintWriter pw)
This Method writes this Bean in the given PrintWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Calendar cal
public long timeMillis
public int id
public String className
public String methodName
public boolean bextraInfo
public String[] extraInfo
Constructor Detail |
public CrontabBean()
Method Detail |
public void setId(int id)
public void setTime(long timeMillis)
timeMillis
- Time in Milliseconds from 1970public void setClassName(String className)
className
- the name of the classpublic void setMethodName(String methodName)
methodName
- The name of the given Methodpublic void setExtraInfo(String[] extraInfo)
extraInfo
- the parameters given to the classpublic void setCalendar(Calendar cal)
cal
- the given calendarpublic int getId()
public long getTime()
public Calendar getCalendar()
public String getClassName()
public String getMethodName()
public String[] getExtraInfo()
public String toString()
public String toXML()
public void toXML(PrintWriter pw)
pw
- PrintWriter where the xml eban will be writtenpublic static CrontabBean[] toArray(Object[] obj)
obj
- Object to cast to CrontabEntryBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |