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.dila.business.fichelocale.dto;
35
36 import java.io.Serializable;
37 import java.util.Date;
38
39
40
41
42
43 public class XmlDTO implements Serializable
44 {
45
46 private static final long serialVersionUID = 6791880867164758677L;
47
48
49
50
51 private Long _lId;
52
53
54
55
56 private String _strIdXml;
57
58
59
60
61 private String _strTitle;
62
63
64
65
66 private String _strBreadCrumb;
67
68
69
70
71 private Long _lIdAudience;
72
73
74
75
76 private String _strResourceType;
77
78
79
80
81 private Date _creationDate;
82
83
84
85
86 private Date _modificationDate;
87
88
89
90
91 public Long getId( )
92 {
93 return _lId;
94 }
95
96
97
98
99 public void setId( Long lId )
100 {
101 this._lId = lId;
102 }
103
104
105
106
107 public String getIdXml( )
108 {
109 return _strIdXml;
110 }
111
112
113
114
115 public void setIdXml( String strIdXml )
116 {
117 this._strIdXml = strIdXml;
118 }
119
120
121
122
123 public String getTitle( )
124 {
125 return _strTitle;
126 }
127
128
129
130
131 public void setTitle( String strTitle )
132 {
133 this._strTitle = strTitle;
134 }
135
136
137
138
139 public String getBreadCrumb( )
140 {
141 return _strBreadCrumb;
142 }
143
144
145
146
147 public void setBreadCrumb( String strBreadCrumb )
148 {
149 this._strBreadCrumb = strBreadCrumb;
150 }
151
152
153
154
155 public Long getIdAudience( )
156 {
157 return _lIdAudience;
158 }
159
160
161
162
163 public void setIdAudience( Long lIdAudience )
164 {
165 this._lIdAudience = lIdAudience;
166 }
167
168
169
170
171 public String getResourceType( )
172 {
173 return _strResourceType;
174 }
175
176
177
178
179 public void setResourceType( String strResourceType )
180 {
181 this._strResourceType = strResourceType;
182 }
183
184
185
186
187 public Date getModificationDate( )
188 {
189 if ( _modificationDate != null )
190 {
191 return (Date) _modificationDate.clone( );
192 }
193 else
194 {
195 return null;
196 }
197 }
198
199
200
201
202 public void setModificationDate( Date modificationDate )
203 {
204 if ( modificationDate != null )
205 {
206 this._modificationDate = (Date) modificationDate.clone( );
207 }
208 }
209
210
211
212
213 public Date getCreationDate( )
214 {
215 return (Date) _creationDate.clone( );
216 }
217
218
219
220
221 public void setCreationDate( Date creationDate )
222 {
223 this._creationDate = (Date) creationDate.clone( );
224 }
225
226
227
228
229
230
231 @Override
232 public int hashCode( )
233 {
234 final int prime = 31;
235 int result = 1;
236 result = ( prime * result ) + ( ( _lIdAudience == null ) ? 0 : _lIdAudience.hashCode( ) );
237 result = ( prime * result ) + ( ( _strIdXml == null ) ? 0 : _strIdXml.hashCode( ) );
238
239 return result;
240 }
241
242
243
244
245
246
247 @Override
248 public boolean equals( Object obj )
249 {
250 if ( this == obj )
251 {
252 return true;
253 }
254
255 if ( obj == null )
256 {
257 return false;
258 }
259
260 if ( getClass( ) != obj.getClass( ) )
261 {
262 return false;
263 }
264
265 XmlDTO other = (XmlDTO) obj;
266
267 if ( _lIdAudience == null )
268 {
269 if ( other._lIdAudience != null )
270 {
271 return false;
272 }
273 }
274 else if ( !_lIdAudience.equals( other._lIdAudience ) )
275 {
276 return false;
277 }
278
279 if ( _strIdXml == null )
280 {
281 if ( other._strIdXml != null )
282 {
283 return false;
284 }
285 }
286 else if ( !_strIdXml.equals( other._strIdXml ) )
287 {
288 return false;
289 }
290
291 return true;
292 }
293 }