org.springframework.richclient.core
Class Severity

java.lang.Object
  extended by org.springframework.core.enums.AbstractLabeledEnum
      extended by org.springframework.core.enums.AbstractGenericLabeledEnum
          extended by org.springframework.core.enums.ShortCodedLabeledEnum
              extended by org.springframework.richclient.core.Severity
All Implemented Interfaces:
Serializable, Comparable, LabeledEnum

public class Severity
extends ShortCodedLabeledEnum

A typesafe enum representing different levels of severity. Each enum has an associated label, which may be useful for defining resources such as messages and icons in properties files.

See Also:
Serialized Form

Field Summary
static Severity ERROR
          Error-level severity.
static String ERROR_LABEL
          The label associated with the error level.
static Severity INFO
          Info-level severity.
static String INFO_LABEL
          The label associated with the info level.
static Severity WARNING
          Warning-level severity.
static String WARNING_LABEL
          The label associated with the warning level.
 
Fields inherited from interface org.springframework.core.enums.LabeledEnum
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER
 
Constructor Summary
protected Severity(int magnitude, String label)
          Constructor.
 
Method Summary
 
Methods inherited from class org.springframework.core.enums.ShortCodedLabeledEnum
getCode, getShortCode
 
Methods inherited from class org.springframework.core.enums.AbstractGenericLabeledEnum
getLabel
 
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum
compareTo, equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INFO_LABEL

public static final String INFO_LABEL
The label associated with the info level.

See Also:
Constant Field Values

WARNING_LABEL

public static final String WARNING_LABEL
The label associated with the warning level.

See Also:
Constant Field Values

ERROR_LABEL

public static final String ERROR_LABEL
The label associated with the error level.

See Also:
Constant Field Values

INFO

public static final Severity INFO
Info-level severity.


WARNING

public static final Severity WARNING
Warning-level severity.


ERROR

public static final Severity ERROR
Error-level severity.

Constructor Detail

Severity

protected Severity(int magnitude,
                   String label)
Constructor.

Parameters:
magnitude - how does it relate to other Severity levels, a higher magnitude means more severe.
label - label to associate with, may be used to access resources like messages/icons.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.