org.anadix
Enum ItemStatus

java.lang.Object
  extended by java.lang.Enum<ItemStatus>
      extended by org.anadix.ItemStatus
All Implemented Interfaces:
Serializable, Comparable<ItemStatus>

public enum ItemStatus
extends Enum<ItemStatus>

Enumeration of statuses for report items

Version:
$Id: $
Author:
tomason

Enum Constant Summary
ERROR
          Report item is an error
INFO
          Report item that indicates an info
MANUAL
          Report item that requires a manual check
OK
          Report item that is fine
WARNING
          Report item is a warning
 
Method Summary
static ItemStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ItemStatus[] 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

ERROR

public static final ItemStatus ERROR
Report item is an error


WARNING

public static final ItemStatus WARNING
Report item is a warning


OK

public static final ItemStatus OK
Report item that is fine


MANUAL

public static final ItemStatus MANUAL
Report item that requires a manual check


INFO

public static final ItemStatus INFO
Report item that indicates an info

Method Detail

values

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

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

valueOf

public static ItemStatus 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 © 2011. All Rights Reserved.