de.nava.informa.core
Enum ChannelUpdatePeriod

java.lang.Object
  extended by java.lang.Enum<ChannelUpdatePeriod>
      extended by de.nava.informa.core.ChannelUpdatePeriod
All Implemented Interfaces:
Serializable, Comparable<ChannelUpdatePeriod>

public enum ChannelUpdatePeriod
extends Enum<ChannelUpdatePeriod>


Enum Constant Summary
UPDATE_DAILY
          Update of channel expected to be specified in number of days
UPDATE_HOURLY
          Update of channel expected to be specified in number of hours
UPDATE_MONTHLY
          Update of channel expected to be specified in number of months
UPDATE_WEEKLY
          Update of channel expected to be specified in number of weeks
UPDATE_YEARLY
          Update of channel expected to be specified in number of years
 
Method Summary
 int getMinutesInPeriod()
           
 long getMsInPeriod()
           
 String toString()
           
static ChannelUpdatePeriod valueFromText(String text)
           
static ChannelUpdatePeriod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChannelUpdatePeriod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UPDATE_HOURLY

public static final ChannelUpdatePeriod UPDATE_HOURLY
Update of channel expected to be specified in number of hours


UPDATE_DAILY

public static final ChannelUpdatePeriod UPDATE_DAILY
Update of channel expected to be specified in number of days


UPDATE_WEEKLY

public static final ChannelUpdatePeriod UPDATE_WEEKLY
Update of channel expected to be specified in number of weeks


UPDATE_MONTHLY

public static final ChannelUpdatePeriod UPDATE_MONTHLY
Update of channel expected to be specified in number of months


UPDATE_YEARLY

public static final ChannelUpdatePeriod UPDATE_YEARLY
Update of channel expected to be specified in number of years

Method Detail

values

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

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

valueOf

public static ChannelUpdatePeriod 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

toString

public String toString()
Overrides:
toString in class Enum<ChannelUpdatePeriod>
See Also:
Enum.toString()

getMsInPeriod

public long getMsInPeriod()
Returns:
Miliseconds in the period.

getMinutesInPeriod

public int getMinutesInPeriod()
Returns:
Minutes in the period.

valueFromText

public static ChannelUpdatePeriod valueFromText(String text)
Parameters:
text - Text representation of the period.
Returns:
The channel update period specified by the text representation.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.