Package com.netscape.cmscore.jobs
Class CronRange
- java.lang.Object
-
- com.netscape.cmscore.jobs.CronRange
-
public class CronRange extends java.lang.Objectclass representing one Job cron elementhere, an "item" refers to one of the 5 fields in a cron string; "element" refers to any comma-deliminated element in an "item"...which includes both numbers and '-' separated ranges.
an Element can contain either an integer number or a range specified as CronRange. In case of integer numbers, begin and end are of the same value
- Version:
- $Revision$, $Date$
- Author:
- cfu
-
-
Constructor Summary
Constructors Constructor Description CronRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBegin()gets the lower boundary value of the rangeintgetEnd()gets the higher boundary value of the rangebooleanisValidRange(int min, int max)checks to see if the lower and higher boundary values are within the min/max.voidsetBegin(int i)sets the lower boundary value of the rangevoidsetEnd(int i)sets the higher boundary value of the range
-
-
-
Method Detail
-
setBegin
public void setBegin(int i)
sets the lower boundary value of the range
-
getBegin
public int getBegin()
gets the lower boundary value of the range
-
setEnd
public void setEnd(int i)
sets the higher boundary value of the range
-
getEnd
public int getEnd()
gets the higher boundary value of the range
-
isValidRange
public boolean isValidRange(int min, int max)checks to see if the lower and higher boundary values are within the min/max.- Parameters:
min- the minimum value one can specify in this fieldmax- the maximum value one can specify in this field- Returns:
- a boolean (true/false) on whether the begin/end values are within the min/max passed in the params
-
-