Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.repository
Enum HrRecord.HarvestFrequency

java.lang.Object
  extended by java.lang.Enum<HrRecord.HarvestFrequency>
      extended by com.esri.gpt.catalog.harvest.repository.HrRecord.HarvestFrequency
All Implemented Interfaces:
Serializable, Comparable<HrRecord.HarvestFrequency>
Enclosing class:
HrRecord

public static enum HrRecord.HarvestFrequency
extends Enum<HrRecord.HarvestFrequency>

Harvest frequency.


Enum Constant Summary
BiWeekly
          once every two weeks harvest.
Dayly
          once a day.
Hourly
          once a hour.
Monthly
          monthly harvest.
Once
          one harvest only scheduled.
Skip
          do not perform scheduled harvests.
Weekly
          once a week harvest.
 
Method Summary
static HrRecord.HarvestFrequency checkValueOf(String frequency)
          Checks value of the frequency.
 Date getDueDate(Date lastDate)
          Gets due date.
static HrRecord.HarvestFrequency valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HrRecord.HarvestFrequency[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Monthly

public static final HrRecord.HarvestFrequency Monthly
monthly harvest.


BiWeekly

public static final HrRecord.HarvestFrequency BiWeekly
once every two weeks harvest.


Weekly

public static final HrRecord.HarvestFrequency Weekly
once a week harvest.


Dayly

public static final HrRecord.HarvestFrequency Dayly
once a day.


Hourly

public static final HrRecord.HarvestFrequency Hourly
once a hour.


Once

public static final HrRecord.HarvestFrequency Once
one harvest only scheduled.


Skip

public static final HrRecord.HarvestFrequency Skip
do not perform scheduled harvests.

Method Detail

values

public static HrRecord.HarvestFrequency[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HrRecord.HarvestFrequency c : HrRecord.HarvestFrequency.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HrRecord.HarvestFrequency valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

checkValueOf

public static HrRecord.HarvestFrequency checkValueOf(String frequency)
Checks value of the frequency.

Parameters:
frequency - value of frequency to parse
Returns:
parsed frequency

getDueDate

public Date getDueDate(Date lastDate)
Gets due date.

Parameters:
lastDate - date of the last harvest
Returns:
due date of the next harvest or null if no next harvest required

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.