Class CronItem

java.lang.Object
com.netscape.cmscore.jobs.CronItem

public class CronItem extends Object
class representing one Job cron item

here, 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.

for each of the 5 cron fields, it's represented as a CronItem

Version:
$Revision$, $Date$
Author:
cfu
  • Field Details

  • Constructor Details

    • CronItem

      public CronItem(int min, int max)
  • Method Details

    • set

      public void set(String sItem) throws EBaseException
      parses and sets a string cron item
      Parameters:
      sItem - the string representing an item of a cron string. item can be potentially comma separated with ranges specified with '-'s
      Throws:
      EBaseException
    • getElements

      public Vector<CronRange> getElements()
      get the vector stuffed with elements where each element is represented as CronRange
      Returns:
      a vector of CronRanges