1 /*
2 * Copyright (c) 2002-2025, City of Paris
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice
10 * and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice
13 * and the following disclaimer in the documentation and/or other materials
14 * provided with the distribution.
15 *
16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 *
32 * License 1.0
33 */
34 package fr.paris.lutece.portal.web.template;
35
36 import java.util.List;
37 import java.util.Map;
38 import java.sql.Date;
39 import java.sql.Timestamp;
40 import java.util.ArrayList;
41 import java.util.HashMap;
42
43 /**
44 * This is the business class for the object MockObject
45 */
46 public class MockObject
47 {
48 // Variables declarations
49 private int _nIdObject;
50 private String _strName;
51 private String _strDescription;
52 private boolean _bEnable;
53 private int _nStatus;
54 private double _dRatio;
55 private String _strPassword;
56 private long _lElapsedTime;
57 private int _nIdForeign;
58 private String _strEmail;
59 private String _strText;
60 private List _listAttributes = new ArrayList( );
61 private Map _mapParameters = new HashMap( );
62 private Date _dateDateCreated;
63 private Timestamp _dateDateUpdated;
64
65 /**
66 * Returns the IdObject
67 *
68 * @return The IdObject
69 */
70 public int getIdObject( )
71 {
72 return _nIdObject;
73 }
74
75 /**
76 * Sets the IdObject
77 *
78 * @param nIdObject
79 * The IdObject
80 */
81 public void setIdObject( int nIdObject )
82 {
83 _nIdObject = nIdObject;
84 }
85
86 /**
87 * Returns the Name
88 *
89 * @return The Name
90 */
91 public String getName( )
92 {
93 return _strName;
94 }
95
96 /**
97 * Sets the Name
98 *
99 * @param strName
100 * The Name
101 */
102 public void setName( String strName )
103 {
104 _strName = strName;
105 }
106
107 /**
108 * Returns the Description
109 *
110 * @return The Description
111 */
112 public String getDescription( )
113 {
114 return _strDescription;
115 }
116
117 /**
118 * Sets the Description
119 *
120 * @param strDescription
121 * The Description
122 */
123 public void setDescription( String strDescription )
124 {
125 _strDescription = strDescription;
126 }
127
128 /**
129 * Returns the Enable
130 *
131 * @return The Enable
132 */
133 public boolean getEnable( )
134 {
135 return _bEnable;
136 }
137
138 /**
139 * Sets the Enable
140 *
141 * @param bEnable
142 * The Enable
143 */
144 public void setEnable( boolean bEnable )
145 {
146 _bEnable = bEnable;
147 }
148
149 /**
150 * Returns the Status
151 *
152 * @return The Status
153 */
154 public int getStatus( )
155 {
156 return _nStatus;
157 }
158
159 /**
160 * Sets the Status
161 *
162 * @param nStatus
163 * The Status
164 */
165 public void setStatus( int nStatus )
166 {
167 _nStatus = nStatus;
168 }
169
170 /**
171 * Returns the Ratio
172 *
173 * @return The Ratio
174 */
175 public double getRatio( )
176 {
177 return _dRatio;
178 }
179
180 /**
181 * Sets the Ratio
182 *
183 * @param dRatio
184 * The Ratio
185 */
186 public void setRatio( double dRatio )
187 {
188 _dRatio = dRatio;
189 }
190
191 /**
192 * Returns the Password
193 *
194 * @return The Password
195 */
196 public String getPassword( )
197 {
198 return _strPassword;
199 }
200
201 /**
202 * Sets the Password
203 *
204 * @param strPassword
205 * The Password
206 */
207 public void setPassword( String strPassword )
208 {
209 _strPassword = strPassword;
210 }
211
212 /**
213 * Returns the ElapsedTime
214 *
215 * @return The ElapsedTime
216 */
217 public long getElapsedTime( )
218 {
219 return _lElapsedTime;
220 }
221
222 /**
223 * Sets the ElapsedTime
224 *
225 * @param lElapsedTime
226 * The ElapsedTime
227 */
228 public void setElapsedTime( long lElapsedTime )
229 {
230 _lElapsedTime = lElapsedTime;
231 }
232
233 /**
234 * Returns the IdForeign
235 *
236 * @return The IdForeign
237 */
238 public int getIdForeign( )
239 {
240 return _nIdForeign;
241 }
242
243 /**
244 * Sets the IdForeign
245 *
246 * @param nIdForeign
247 * The IdForeign
248 */
249 public void setIdForeign( int nIdForeign )
250 {
251 _nIdForeign = nIdForeign;
252 }
253
254 /**
255 * Returns the Email
256 *
257 * @return The Email
258 */
259 public String getEmail( )
260 {
261 return _strEmail;
262 }
263
264 /**
265 * Sets the Email
266 *
267 * @param strEmail
268 * The Email
269 */
270 public void setEmail( String strEmail )
271 {
272 _strEmail = strEmail;
273 }
274
275 /**
276 * Returns the Text
277 *
278 * @return The Text
279 */
280 public String getText( )
281 {
282 return _strText;
283 }
284
285 /**
286 * Sets the Text
287 *
288 * @param strText
289 * The Text
290 */
291 public void setText( String strText )
292 {
293 _strText = strText;
294 }
295
296 /**
297 * Returns the Attributes
298 *
299 * @return The Attributes
300 */
301 public List getAttributes( )
302 {
303 return _listAttributes;
304 }
305
306 /**
307 * Sets the Attributes
308 *
309 * @param listAttributes
310 * The Attributes
311 */
312 public void setAttributes( List listAttributes )
313 {
314 _listAttributes = listAttributes;
315 }
316
317 /**
318 * Returns the Parameters
319 *
320 * @return The Parameters
321 */
322 public Map getParameters( )
323 {
324 return _mapParameters;
325 }
326
327 /**
328 * Sets the Parameters
329 *
330 * @param mapParameters
331 * The Parameters
332 */
333 public void setParameters( Map mapParameters )
334 {
335 _mapParameters = mapParameters;
336 }
337
338 /**
339 * Returns the DateCreated
340 *
341 * @return The DateCreated
342 */
343 public Date getDateCreated( )
344 {
345 return _dateDateCreated;
346 }
347
348 /**
349 * Sets the DateCreated
350 *
351 * @param dateDateCreated
352 * The DateCreated
353 */
354 public void setDateCreated( Date dateDateCreated )
355 {
356 _dateDateCreated = dateDateCreated;
357 }
358
359 /**
360 * Returns the DateUpdated
361 *
362 * @return The DateUpdated
363 */
364 public Timestamp getDateUpdated( )
365 {
366 return _dateDateUpdated;
367 }
368
369 /**
370 * Sets the DateUpdated
371 *
372 * @param dateDateUpdated
373 * The DateUpdated
374 */
375 public void setDateUpdated( Timestamp dateDateUpdated )
376 {
377 _dateDateUpdated = dateDateUpdated;
378 }
379 }