1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package fr.paris.lutece.plugins.indicator.business;
35
36 import org.hibernate.validator.constraints.NotEmpty;
37
38 import javax.validation.constraints.Size;
39
40 import java.io.Serializable;
41
42
43
44
45 public class Indicator implements Serializable
46 {
47 private static final long serialVersionUID = 1L;
48
49
50 private int _nId;
51 @NotEmpty( message = "#i18n{indicator.validation.indicator.IndKey.notEmpty}" )
52 @Size( max = 50, message = "#i18n{indicator.validation.indicator.IndKey.size}" )
53 private String _strIndKey;
54 @NotEmpty( message = "#i18n{indicator.validation.indicator.Label.notEmpty}" )
55 @Size( max = 50, message = "#i18n{indicator.validation.indicator.Label.size}" )
56 private String _strLabel;
57 @NotEmpty( message = "#i18n{indicator.validation.indicator.Description.notEmpty}" )
58 @Size( max = 255, message = "#i18n{indicator.validation.indicator.Description.size}" )
59 private String _strDescription;
60 private int _nIndValue;
61 private int _nIndTarget;
62 @NotEmpty( message = "#i18n{indicator.validation.indicator.HistoryPeriod.notEmpty}" )
63 @Size( max = 50, message = "#i18n{indicator.validation.indicator.HistoryPeriod.size}" )
64 private String _strHistoryPeriod;
65
66
67
68
69
70 public int getId( )
71 {
72 return _nId;
73 }
74
75
76
77
78
79 public void setId( int nId )
80 {
81 _nId = nId;
82 }
83
84
85
86
87
88 public String getIndKey( )
89 {
90 return _strIndKey;
91 }
92
93
94
95
96
97 public void setIndKey( String strIndKey )
98 {
99 _strIndKey = strIndKey;
100 }
101
102
103
104
105
106 public String getLabel( )
107 {
108 return _strLabel;
109 }
110
111
112
113
114
115 public void setLabel( String strLabel )
116 {
117 _strLabel = strLabel;
118 }
119
120
121
122
123
124 public String getDescription( )
125 {
126 return _strDescription;
127 }
128
129
130
131
132
133 public void setDescription( String strDescription )
134 {
135 _strDescription = strDescription;
136 }
137
138
139
140
141
142 public int getValue( )
143 {
144 return _nIndValue;
145 }
146
147
148
149
150
151 public void setIndValue( int nIndValue )
152 {
153 _nIndValue = nIndValue;
154 }
155
156
157
158
159
160 public int getIndTarget( )
161 {
162 return _nIndTarget;
163 }
164
165
166
167
168
169 public void setIndTarget( int nIndTarget )
170 {
171 _nIndTarget = nIndTarget;
172 }
173
174
175
176
177
178 public String getHistoryPeriod( )
179 {
180 return _strHistoryPeriod;
181 }
182
183
184
185
186
187 public void setHistoryPeriod( String strHistoryPeriod )
188 {
189 _strHistoryPeriod = strHistoryPeriod;
190 }
191 }