Salome HOME
6c1950b7625bd5acc202e4c0ebc43230e2d14a7b
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / common / properties / MessageKeyEnum.java
1 /*****************************************************************************
2  * Company         EURIWARE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   03.10.2012
6  * @author         Author: Maria KRUCHININA
7  * @version        Revision: 
8  *****************************************************************************/
9
10 package org.splat.common.properties; 
11
12 /**
13  * Enumeration of all exception's code.
14  * Values are in the src/conf/log-messages.properties file.
15  * @author Maria KRUCHININA
16  *
17  */
18 public enum MessageKeyEnum {
19         
20         /**
21          * Lock reference already exists for user {2}.
22          */
23         LCK_000001("LCK-000001"),
24         /**
25          * Lock reference does not exists.
26          */
27         LCK_000002("LCK-000002"),
28         /**
29          * Lock reference protected and can be only deleted or updated by user {2}.
30          */
31         LCK_000003("LCK-000003"),
32         /**
33          * Lock reference is timeout and could have been modified by user {2}.
34          */
35         LCK_000004("LCK-000004");
36         
37         /**
38         * Value.
39         */
40         private final String _value;
41                 
42         /**
43         * The enum contructor with param(s).
44         * @param value The value
45         */
46         MessageKeyEnum(final String value) {
47                 this._value = value;
48         }
49          
50         /** 
51         * {@inheritDoc}
52         * @see java.lang.Enum#toString()
53         */
54         @Override
55         public String toString() {
56                 return this._value;
57         }
58
59 }