org.rhq.enterprise.gui.util
Enum MetricsDisplayMode

java.lang.Object
  extended by java.lang.Enum<MetricsDisplayMode>
      extended by org.rhq.enterprise.gui.util.MetricsDisplayMode
All Implemented Interfaces:
Serializable, Comparable<MetricsDisplayMode>

public enum MetricsDisplayMode
extends Enum<MetricsDisplayMode>

Describe the operation mode for metrics view we are in.

Author:
Heiko W. Rupp

Enum Constant Summary
AUTOGROUP
          Schedules for all resources of an autogroup
COMPGROUP
          Schedules for all resources of a compatible group
RESOURCE
          A schedules for a single resource
RESOURCE_DEFAULT
          Definitions for a resource type
UNSET
          Unset - instead of returning null
 
Method Summary
static MetricsDisplayMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MetricsDisplayMode[] 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

RESOURCE

public static final MetricsDisplayMode RESOURCE
A schedules for a single resource


RESOURCE_DEFAULT

public static final MetricsDisplayMode RESOURCE_DEFAULT
Definitions for a resource type


COMPGROUP

public static final MetricsDisplayMode COMPGROUP
Schedules for all resources of a compatible group


AUTOGROUP

public static final MetricsDisplayMode AUTOGROUP
Schedules for all resources of an autogroup


UNSET

public static final MetricsDisplayMode UNSET
Unset - instead of returning null

Method Detail

values

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

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

valueOf

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


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.