com.jalios.jcms.analytics.ui
Enum ReportHandler.PredefinedPeriod

java.lang.Object
  extended by java.lang.Enum<ReportHandler.PredefinedPeriod>
      extended by com.jalios.jcms.analytics.ui.ReportHandler.PredefinedPeriod
All Implemented Interfaces:
Serializable, Comparable<ReportHandler.PredefinedPeriod>
Enclosing class:
ReportHandler

public static enum ReportHandler.PredefinedPeriod
extends Enum<ReportHandler.PredefinedPeriod>


Enum Constant Summary
CURRENT_YEAR
           
LAST_12_MONTHS
           
LAST_3_MONTHS
           
LAST_30_DAYS
           
LAST_7_DAYS
           
LAST_YEAR
           
 
Method Summary
static ReportHandler.PredefinedPeriod getFromId(String id)
           
 String getId()
           
 String getLabel()
           
 void setId(String id)
           
 void setLabel(String label)
           
 String toString()
           
static ReportHandler.PredefinedPeriod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReportHandler.PredefinedPeriod[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LAST_7_DAYS

public static final ReportHandler.PredefinedPeriod LAST_7_DAYS

LAST_30_DAYS

public static final ReportHandler.PredefinedPeriod LAST_30_DAYS

LAST_3_MONTHS

public static final ReportHandler.PredefinedPeriod LAST_3_MONTHS

LAST_12_MONTHS

public static final ReportHandler.PredefinedPeriod LAST_12_MONTHS

LAST_YEAR

public static final ReportHandler.PredefinedPeriod LAST_YEAR

CURRENT_YEAR

public static final ReportHandler.PredefinedPeriod CURRENT_YEAR
Method Detail

values

public static ReportHandler.PredefinedPeriod[] 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 (ReportHandler.PredefinedPeriod c : ReportHandler.PredefinedPeriod.values())
    System.out.println(c);

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

valueOf

public static ReportHandler.PredefinedPeriod 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

getId

public String getId()

setId

public void setId(String id)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getFromId

public static ReportHandler.PredefinedPeriod getFromId(String id)

toString

public String toString()
Overrides:
toString in class Enum<ReportHandler.PredefinedPeriod>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.