org.rhq.core.clientapi.descriptor.configuration
Enum MeasurementUnitsDescriptor

java.lang.Object
  extended by java.lang.Enum<MeasurementUnitsDescriptor>
      extended by org.rhq.core.clientapi.descriptor.configuration.MeasurementUnitsDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MeasurementUnitsDescriptor>

public enum MeasurementUnitsDescriptor
extends java.lang.Enum<MeasurementUnitsDescriptor>

Java class for measurementUnitsDescriptor.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="measurementUnitsDescriptor">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="none"/>
     <enumeration value="percentage"/>
     <enumeration value="bits"/>
     <enumeration value="kilobits"/>
     <enumeration value="megabits"/>
     <enumeration value="gigabits"/>
     <enumeration value="terabits"/>
     <enumeration value="petabits"/>
     <enumeration value="bytes"/>
     <enumeration value="kilobytes"/>
     <enumeration value="megabytes"/>
     <enumeration value="gigabytes"/>
     <enumeration value="terabytes"/>
     <enumeration value="epoch_milliseconds"/>
     <enumeration value="nanoseconds"/>
     <enumeration value="milliseconds"/>
     <enumeration value="seconds"/>
     <enumeration value="minutes"/>
     <enumeration value="hours"/>
     <enumeration value="days"/>
     <enumeration value="kelvin"/>
     <enumeration value="celsius"/>
     <enumeration value="fahrenheit"/>
   </restriction>
 </simpleType>
 


Enum Constant Summary
BITS
           
BYTES
           
CELSIUS
           
DAYS
           
EPOCH_MILLISECONDS
           
FAHRENHEIT
           
GIGABITS
           
GIGABYTES
           
HOURS
           
KELVIN
           
KILOBITS
           
KILOBYTES
           
MEGABITS
           
MEGABYTES
           
MILLISECONDS
           
MINUTES
           
NANOSECONDS
           
NONE
           
PERCENTAGE
           
PETABITS
           
SECONDS
           
TERABITS
           
TERABYTES
           
 
Method Summary
static MeasurementUnitsDescriptor fromValue(java.lang.String v)
           
 java.lang.String value()
           
static MeasurementUnitsDescriptor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MeasurementUnitsDescriptor[] 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

NONE

public static final MeasurementUnitsDescriptor NONE

PERCENTAGE

public static final MeasurementUnitsDescriptor PERCENTAGE

BITS

public static final MeasurementUnitsDescriptor BITS

KILOBITS

public static final MeasurementUnitsDescriptor KILOBITS

MEGABITS

public static final MeasurementUnitsDescriptor MEGABITS

GIGABITS

public static final MeasurementUnitsDescriptor GIGABITS

TERABITS

public static final MeasurementUnitsDescriptor TERABITS

PETABITS

public static final MeasurementUnitsDescriptor PETABITS

BYTES

public static final MeasurementUnitsDescriptor BYTES

KILOBYTES

public static final MeasurementUnitsDescriptor KILOBYTES

MEGABYTES

public static final MeasurementUnitsDescriptor MEGABYTES

GIGABYTES

public static final MeasurementUnitsDescriptor GIGABYTES

TERABYTES

public static final MeasurementUnitsDescriptor TERABYTES

EPOCH_MILLISECONDS

public static final MeasurementUnitsDescriptor EPOCH_MILLISECONDS

NANOSECONDS

public static final MeasurementUnitsDescriptor NANOSECONDS

MILLISECONDS

public static final MeasurementUnitsDescriptor MILLISECONDS

SECONDS

public static final MeasurementUnitsDescriptor SECONDS

MINUTES

public static final MeasurementUnitsDescriptor MINUTES

HOURS

public static final MeasurementUnitsDescriptor HOURS

DAYS

public static final MeasurementUnitsDescriptor DAYS

KELVIN

public static final MeasurementUnitsDescriptor KELVIN

CELSIUS

public static final MeasurementUnitsDescriptor CELSIUS

FAHRENHEIT

public static final MeasurementUnitsDescriptor FAHRENHEIT
Method Detail

values

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

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

valueOf

public static MeasurementUnitsDescriptor valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public java.lang.String value()

fromValue

public static MeasurementUnitsDescriptor fromValue(java.lang.String v)


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