Revision: 1791 http://spring-rich-c.svn.sourceforge.net/spring-rich-c/?rev=1791&view=rev Author: kevinstembridge Date: 2007-07-29 11:51:18 -0700 (Sun, 29 Jul 2007)
Log Message: ----------- Added javadoc, and extra constants defining severity labels. Modified Paths: -------------- trunk/spring-richclient/core/src/main/java/org/springframework/richclient/core/Severity.java Modified: trunk/spring-richclient/core/src/main/java/org/springframework/richclient/core/Severity.java =================================================================== --- trunk/spring-richclient/core/src/main/java/org/springframework/richclient/core/Severity.java 2007-07-29 18:41:05 UTC (rev 1790) +++ trunk/spring-richclient/core/src/main/java/org/springframework/richclient/core/Severity.java 2007-07-29 18:51:18 UTC (rev 1791) @@ -17,15 +17,36 @@ import org.springframework.core.enums.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. + * + */ public class Severity extends ShortCodedLabeledEnum { + + /** The label associated with the info level. */ + public static final String INFO_LABEL = "info"; + + /** The label associated with the warning level. */ + public static final String WARNING_LABEL = "warning"; + + /** The label associated with the error level. */ + public static final String ERROR_LABEL = "error"; - public static final Severity INFO = new Severity(0, "info"); + private static final long serialVersionUID = 86569930382195510L; - public static final Severity WARNING = new Severity(50, "warning"); + /** Info-level severity. */ + public static final Severity INFO = new Severity(0, INFO_LABEL); - public static final Severity ERROR = new Severity(100, "error"); + /** Warning-level severity. */ + public static final Severity WARNING = new Severity(50, WARNING_LABEL); + /** Error-level severity. */ + public static final Severity ERROR = new Severity(100, ERROR_LABEL); + protected Severity(int magnitude, String label) { super(magnitude, label); } -} \ No newline at end of file + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs