com.sonyericsson.jenkins.plugins.bfa.graphs
Enum GraphType

java.lang.Object
  extended by java.lang.Enum<GraphType>
      extended by com.sonyericsson.jenkins.plugins.bfa.graphs.GraphType
All Implemented Interfaces:
Serializable, Comparable<GraphType>

public enum GraphType
extends Enum<GraphType>

Enum for graph types.

Author:
Fredrik Persson <fredrik6.persson@sonymobile.com>

Enum Constant Summary
BAR_CHART_BUILD_NBRS
          Constant for bar chart with build numbers.
BAR_CHART_CATEGORIES
          Constant for bar chart with categories.
BAR_CHART_CAUSES
          Constant for bar chart with FailureCauses.
BAR_CHART_CAUSES_SMALL
          Small bar chart.
PIE_CHART_CATEGORIES
          Constant for pie chart with categories.
PIE_CHART_CAUSES
          Constant for pie chart with FailureCauses.
TIME_SERIES_CHART_CATEGORIES
          Constant for time series chart with categories.
TIME_SERIES_CHART_CAUSES
          Constant for time series chart with FailureCauses.
TIME_SERIES_UNKNOWN_FAILURES
          Constant for time series chart displaying unknown failure causes.
 
Method Summary
 int getValue()
          Gets the integer representation of this enum.
static GraphType toEnum(int value)
          Maps an integer value to an enum.
static GraphType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GraphType[] 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

BAR_CHART_CAUSES_SMALL

public static final GraphType BAR_CHART_CAUSES_SMALL
Small bar chart.


BAR_CHART_CAUSES

public static final GraphType BAR_CHART_CAUSES
Constant for bar chart with FailureCauses.


BAR_CHART_CATEGORIES

public static final GraphType BAR_CHART_CATEGORIES
Constant for bar chart with categories.


BAR_CHART_BUILD_NBRS

public static final GraphType BAR_CHART_BUILD_NBRS
Constant for bar chart with build numbers.


PIE_CHART_CAUSES

public static final GraphType PIE_CHART_CAUSES
Constant for pie chart with FailureCauses.


PIE_CHART_CATEGORIES

public static final GraphType PIE_CHART_CATEGORIES
Constant for pie chart with categories.


TIME_SERIES_CHART_CAUSES

public static final GraphType TIME_SERIES_CHART_CAUSES
Constant for time series chart with FailureCauses.


TIME_SERIES_CHART_CATEGORIES

public static final GraphType TIME_SERIES_CHART_CATEGORIES
Constant for time series chart with categories.


TIME_SERIES_UNKNOWN_FAILURES

public static final GraphType TIME_SERIES_UNKNOWN_FAILURES
Constant for time series chart displaying unknown failure causes.

Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Gets the integer representation of this enum.

Returns:
integer representation

toEnum

public static GraphType toEnum(int value)
Maps an integer value to an enum.

Parameters:
value - to map
Returns:
matching enum type


Copyright © 2004-2014. All Rights Reserved.