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