KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > exception > SeverityEnum


1 /**
2  * Licensed under the Artistic License; you may not use this file
3  * except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://displaytag.sourceforge.net/license.html
7  *
8  * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */

12 package org.displaytag.exception;
13
14 import org.apache.commons.lang.enums.Enum;
15
16
17 /**
18  * Enumeration for logging severities.
19  * @author Fabrizio Giustina
20  * @version $Revision: 843 $ ($Author: fgiust $)
21  */

22 public final class SeverityEnum extends Enum JavaDoc
23 {
24
25     /**
26      * Severity FATAL.
27      */

28     public static final SeverityEnum FATAL = new SeverityEnum("fatal"); //$NON-NLS-1$
29

30     /**
31      * Severity ERROR.
32      */

33     public static final SeverityEnum ERROR = new SeverityEnum("error"); //$NON-NLS-1$
34

35     /**
36      * Severity WARN.
37      */

38     public static final SeverityEnum WARN = new SeverityEnum("warn"); //$NON-NLS-1$
39

40     /**
41      * Severity INFO.
42      */

43     public static final SeverityEnum INFO = new SeverityEnum("info"); //$NON-NLS-1$
44

45     /**
46      * Severity DEBUG.
47      */

48     public static final SeverityEnum DEBUG = new SeverityEnum("debug"); //$NON-NLS-1$
49

50     /**
51      * D1597A17A6.
52      */

53     private static final long serialVersionUID = 899149338534L;
54
55     /**
56      * private constructor. Use only constants
57      * @param severity Severity name as String
58      */

59     private SeverityEnum(String JavaDoc severity)
60     {
61         super(severity);
62     }
63
64 }
Popular Tags