]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/common/properties/MessageKeyEnum.java
Salome HOME
ce03ca850e0edeeed0704e13531f2616eee9cbfb
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / common / properties / MessageKeyEnum.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
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 {0}.
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 {0}.
30          */
31         LCK_000003("LCK-000003"),
32         /**
33          * Lock reference is timeout and could have been modified by user {0}.
34          */
35         LCK_000004("LCK-000004"),
36         /**
37          * Unable to re-index the study #{0}, reason: {1}.
38          */
39         STD_000001("STD-000001"),
40         /**
41          * Scenario doesn't contain the step number #{0}.
42          */
43         SCN_000001("SCN-000001"),
44         /**
45          * Scenario doesn't contain the document #{0}.
46          */
47         SCN_000002("SCN-000002"),
48         /**
49          * The existing file {0} has been deleted when check-in the scenario #{1}.
50          */
51         SCN_000003("SCN-000003"),
52         /**
53          * Can not delete the existing destination file to move file from {0} to {1} when check-in the scenario #{2}.
54          */
55         SCN_000004("SCN-000004"),
56         /**
57          * Can not move file from {0} to {1} when check-in the scenario #{2}.
58          */
59         SCN_000005("SCN-000005"),
60         /**
61          * SCN-000006=Scenario #{0} is not found.
62          */
63         SCN_000006("SCN-000006"),
64         /**
65          * SCN-000007=The user {0} does not participate in the scenario #{1}.
66          */
67         SCN_000007("SCN-000007"),
68         /**
69          * SCN-000008=The scenario #{0} is already checked out by the user {1}.
70          */
71         SCN_000008("SCN-000008"),
72         /**
73          * USR-000001=User {0} is not found in the database.
74          */
75         USR_000001("USR-000001"),
76         /**
77          * Simulation context type "{0}" already exists.
78          */
79         KNT_000001("KNT-000001"),
80         /**
81          * Knowledge element type "{0}" already exists.
82          */
83         SCT_000001("SCT-000001"),
84         /**
85          * Document type "{0}" already exists.
86          */
87         DCT_000001("DCT-000001");
88         
89         /**
90         * Value.
91         */
92         private final String _value;
93                 
94         /**
95         * The enum contructor with param(s).
96         * @param value The value
97         */
98         MessageKeyEnum(final String value) {
99                 this._value = value;
100         }
101          
102         /** 
103         * {@inheritDoc}
104         * @see java.lang.Enum#toString()
105         */
106         @Override
107         public String toString() {
108                 return this._value;
109         }
110
111 }