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.document.business.attributes;
35
36 import java.util.List;
37
38
39
40
41 public class DocumentAttribute
42 {
43
44 private int _nIdDocumentAttribute;
45 private String _strCodeDocumentType;
46 private String _strCodeAttributeType;
47 private String _strCode;
48 private String _strName;
49 private String _strDescription;
50 private int _nAttributeOrder;
51 private boolean _bRequired;
52 private boolean _bSearchable;
53 private List<AttributeTypeParameter> _listParameters;
54 private String _strTextValue;
55 private byte [ ] _bytes;
56 private boolean _bBinary;
57 private String _strValueContentType;
58 private IMapProvider _mapProvider;
59
60
61
62
63
64
65 public int getId( )
66 {
67 return _nIdDocumentAttribute;
68 }
69
70
71
72
73
74
75
76 public void setId( int nIdDocumentAttribute )
77 {
78 _nIdDocumentAttribute = nIdDocumentAttribute;
79 }
80
81
82
83
84
85
86 public String getCodeDocumentType( )
87 {
88 return _strCodeDocumentType;
89 }
90
91
92
93
94
95
96
97 public void setCodeDocumentType( String strCodeDocumentType )
98 {
99 _strCodeDocumentType = strCodeDocumentType;
100 }
101
102
103
104
105
106
107 public String getCodeAttributeType( )
108 {
109 return _strCodeAttributeType;
110 }
111
112
113
114
115
116
117
118 public void setCodeAttributeType( String strCodeAttributeType )
119 {
120 _strCodeAttributeType = strCodeAttributeType;
121 }
122
123
124
125
126
127
128 public String getCode( )
129 {
130 return _strCode;
131 }
132
133
134
135
136
137
138
139 public void setCode( String strCode )
140 {
141 _strCode = strCode;
142 }
143
144
145
146
147
148
149 public String getName( )
150 {
151 return _strName;
152 }
153
154
155
156
157
158
159
160 public void setName( String strName )
161 {
162 _strName = strName;
163 }
164
165
166
167
168
169
170 public String getDescription( )
171 {
172 return _strDescription;
173 }
174
175
176
177
178
179
180
181 public void setDescription( String strDescription )
182 {
183 _strDescription = strDescription;
184 }
185
186
187
188
189
190
191 public int getAttributeOrder( )
192 {
193 return _nAttributeOrder;
194 }
195
196
197
198
199
200
201
202 public void setAttributeOrder( int nAttributeOrder )
203 {
204 _nAttributeOrder = nAttributeOrder;
205 }
206
207
208
209
210
211
212 public boolean isRequired( )
213 {
214 return _bRequired;
215 }
216
217
218
219
220
221
222
223 public void setRequired( boolean bRequired )
224 {
225 _bRequired = bRequired;
226 }
227
228
229
230
231
232
233 public boolean isSearchable( )
234 {
235 return _bSearchable;
236 }
237
238
239
240
241
242
243
244 public void setSearchable( boolean bSearchable )
245 {
246 _bSearchable = bSearchable;
247 }
248
249
250
251
252
253
254 public boolean isBinary( )
255 {
256 return _bBinary;
257 }
258
259
260
261
262
263
264
265 public void setBinary( boolean bBinary )
266 {
267 _bBinary = bBinary;
268 }
269
270
271
272
273
274
275
276 public void setParameters( List<AttributeTypeParameter> listParameters )
277 {
278 _listParameters = listParameters;
279 }
280
281
282
283
284
285
286 public List<AttributeTypeParameter> getParameters( )
287 {
288 return _listParameters;
289 }
290
291
292
293
294
295
296
297 public void setTextValue( String strTextValue )
298 {
299 _strTextValue = strTextValue;
300 }
301
302
303
304
305
306
307 public String getTextValue( )
308 {
309 return _strTextValue;
310 }
311
312
313
314
315
316
317
318 public void setBinaryValue( byte [ ] bytes )
319 {
320 _bytes = bytes;
321 }
322
323
324
325
326
327
328 public byte [ ] getBinaryValue( )
329 {
330 return _bytes;
331 }
332
333
334
335
336
337
338
339 public void setValueContentType( String strValueContentType )
340 {
341 _strValueContentType = strValueContentType;
342 }
343
344
345
346
347
348
349 public String getValueContentType( )
350 {
351 return _strValueContentType;
352 }
353
354
355
356
357 public IMapProvider getMapProvider( )
358 {
359 return _mapProvider;
360 }
361
362
363
364
365
366 public void setMapProvider( IMapProvider mapProvider )
367 {
368 this._mapProvider = mapProvider;
369 }
370 }