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.genericattributes.business;
35
36 import fr.paris.lutece.plugins.referencelist.business.ReferenceItem;
37 import fr.paris.lutece.portal.business.file.File;
38 import fr.paris.lutece.portal.business.regularexpression.RegularExpression;
39 import java.io.Serializable;
40
41 import java.util.Date;
42 import java.util.List;
43
44
45
46
47 public class Field implements Serializable
48 {
49 private static final long serialVersionUID = -3613999153894144425L;
50 private int _nIdField;
51 private Entry _parentEntry;
52 private String _strCode;
53 private String _strTitle;
54 private String _strValue;
55 private String _strComment;
56 private int _nPosition;
57 private boolean _bDefaultValue;
58 private Date _tValueTypeDate;
59 private List<Entry> _listConditionalQuestions;
60 private List<RegularExpression> _listRegularExpressionList;
61 private boolean _bNoDisplayTitle;
62 private File _fileImage;
63
64 private ReferenceItem _linkedItem;
65
66
67
68
69
70 public int getIdField( )
71 {
72 return _nIdField;
73 }
74
75
76
77
78
79
80
81 public void setIdField( int idField )
82 {
83 _nIdField = idField;
84 }
85
86
87
88
89
90 public int getPosition( )
91 {
92 return _nPosition;
93 }
94
95
96
97
98
99
100
101 public void setPosition( int position )
102 {
103 _nPosition = position;
104 }
105
106
107
108
109
110 public Entry getParentEntry( )
111 {
112 return _parentEntry;
113 }
114
115
116
117
118
119
120
121 public void setParentEntry( Entry entry )
122 {
123 _parentEntry = entry;
124 }
125
126
127
128
129
130 public List<RegularExpression> getRegularExpressionList( )
131 {
132 return _listRegularExpressionList;
133 }
134
135
136
137
138
139
140
141 public void setRegularExpressionList( List<RegularExpression> regularExpressionList )
142 {
143 _listRegularExpressionList = regularExpressionList;
144 }
145
146
147
148
149
150 public String getTitle( )
151 {
152 return _strTitle;
153 }
154
155
156
157
158
159
160
161 public void setTitle( String title )
162 {
163 _strTitle = title;
164 }
165
166
167
168
169
170 public String getValue( )
171 {
172 return _strValue;
173 }
174
175
176
177
178
179
180
181 public void setValue( String value )
182 {
183 _strValue = value;
184 }
185
186
187
188
189
190
191 public String getComment( )
192 {
193 return _strComment;
194 }
195
196
197
198
199
200
201
202 public void setComment( String strComment )
203 {
204 this._strComment = strComment;
205 }
206
207
208
209
210
211 public List<Entry> getConditionalQuestions( )
212 {
213 return _listConditionalQuestions;
214 }
215
216
217
218
219
220
221
222 public void setConditionalQuestions( List<Entry> conditionalQuestions )
223 {
224 _listConditionalQuestions = conditionalQuestions;
225 }
226
227
228
229
230
231 public boolean isDefaultValue( )
232 {
233 return _bDefaultValue;
234 }
235
236
237
238
239
240
241
242 public void setDefaultValue( boolean defaultValue )
243 {
244 _bDefaultValue = defaultValue;
245 }
246
247
248
249
250
251 public Date getValueTypeDate( )
252 {
253 return _tValueTypeDate;
254 }
255
256
257
258
259
260
261
262 public void setValueTypeDate( Date defaultValueTypeDate )
263 {
264 _tValueTypeDate = defaultValueTypeDate;
265 }
266
267
268
269
270
271 public boolean isNoDisplayTitle( )
272 {
273 return _bNoDisplayTitle;
274 }
275
276
277
278
279
280
281
282 public void setNoDisplayTitle( boolean bNoDisplayTitle )
283 {
284 _bNoDisplayTitle = bNoDisplayTitle;
285 }
286
287
288
289
290 public String getCode( )
291 {
292 return _strCode;
293 }
294
295
296
297
298
299 public void setCode( String strCode )
300 {
301 this._strCode = strCode;
302 }
303
304
305
306
307 public ReferenceItem getLinkedItem( )
308 {
309 return _linkedItem;
310 }
311
312
313
314
315
316 public void setLinkedItem( ReferenceItem linkedItem )
317 {
318 _linkedItem = linkedItem;
319 }
320
321
322
323
324
325
326 public File getFileImage( ) {
327 return _fileImage;
328 }
329
330
331
332
333
334
335 public void setFileImage( File strFileStoreKey ) {
336 this._fileImage = strFileStoreKey;
337 }
338
339 }