|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jcrontab.data.CrontabParser
This class parses a Line and returns CrontabEntryBean. This class + Is done to do more modular and eficient
Constructor Summary | |
CrontabParser()
|
Method Summary | |
CrontabEntryBean |
marshall(java.lang.String entry)
Parses a string describing this time table entry and sets the neded variables in order to build a CrontabEntry. |
void |
parseToken(java.lang.String token,
boolean[] arrayBool,
boolean bBeginInOne)
Parses a token and fills the array of booleans that represents this CrontabEntryBean |
java.lang.String |
unmarshall(CrontabEntryBean ceb)
Parses a string describing this time table entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CrontabParser()
Method Detail |
public CrontabEntryBean marshall(java.lang.String entry) throws CrontabEntryException
entry
- the line to parse
CrontabEntryException
- Error parsing the stringpublic java.lang.String unmarshall(CrontabEntryBean ceb) throws CrontabEntryException
CrontabEntryException
- Error parsing the stringpublic void parseToken(java.lang.String token, boolean[] arrayBool, boolean bBeginInOne) throws CrontabEntryException
token
- String to parser usually smth like [ * , 2-3 , 2,3,4 ,4/5 ]arrayBool
- this array is the most efficient way to compare entriesbBeginInOne
- says if the array begins in 0 or in 1
CrontabEntryException
- Error parsing the string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |