1
2
3
4
5
6 package org.codehaus.modello.test.features;
7
8
9
10
11
12 import org.codehaus.modello.test.features.other.PackageNameFeature;
13 import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
14
15
16
17
18
19
20 @SuppressWarnings( "all" )
21 public class Features
22 implements java.io.Serializable
23 {
24
25
26
27
28
29
30
31
32
33 private String versionField = "1.0.0";
34
35
36
37
38 private String comment;
39
40
41
42
43 private String description;
44
45
46
47
48
49 private String required;
50
51
52
53
54
55
56
57
58
59 private String identifier;
60
61
62
63
64
65 private Reference identifierPart2;
66
67
68
69
70 private SimpleTypes simpleTypes;
71
72
73
74
75 private SimpleTypes defaultValues;
76
77
78
79
80 private ArrayFeatures arrays;
81
82
83
84
85 private AssociationFeatures associationFeatures;
86
87
88
89
90 private JavaFeatures javaFeatures;
91
92
93
94
95 private XmlFeatures xmlFeatures;
96
97
98
99
100 private XdocFeatures xdocFeatures;
101
102
103
104
105 private NodeItem node;
106
107
108
109
110 private Thing cloneable;
111
112
113
114
115 private File file;
116
117
118
119
120 private Action action;
121
122
123
124
125 private String modelEncoding = "UTF-8";
126
127
128
129
130
131
132
133
134
135
136
137
138 public boolean equals( Object other )
139 {
140 if ( this == other )
141 {
142 return true;
143 }
144
145 if ( !( other instanceof Features ) )
146 {
147 return false;
148 }
149
150 Features../../../../../org/codehaus/modello/test/features/Features.html#Features">Features that = (Features) other;
151 boolean result = true;
152
153 result = result && ( getIdentifier() == null ? that.getIdentifier() == null : getIdentifier().equals( that.getIdentifier() ) );
154 result = result && ( getIdentifierPart2() == null ? that.getIdentifierPart2() == null : getIdentifierPart2().equals( that.getIdentifierPart2() ) );
155
156 return result;
157 }
158
159
160
161
162
163
164 public Action getAction()
165 {
166 return this.action;
167 }
168
169
170
171
172
173
174 public ArrayFeatures getArrays()
175 {
176 return this.arrays;
177 }
178
179
180
181
182
183
184 public AssociationFeatures getAssociationFeatures()
185 {
186 return this.associationFeatures;
187 }
188
189
190
191
192
193
194 public Thing getCloneable()
195 {
196 return this.cloneable;
197 }
198
199
200
201
202
203
204 public String getComment()
205 {
206 return this.comment;
207 }
208
209
210
211
212
213
214 public SimpleTypes getDefaultValues()
215 {
216 return this.defaultValues;
217 }
218
219
220
221
222
223
224 public String getDescription()
225 {
226 return this.description;
227 }
228
229
230
231
232
233
234 public File getFile()
235 {
236 return this.file;
237 }
238
239
240
241
242
243
244
245
246
247
248
249
250 public String getIdentifier()
251 {
252 return this.identifier;
253 }
254
255
256
257
258
259
260
261 public Reference getIdentifierPart2()
262 {
263 return this.identifierPart2;
264 }
265
266
267
268
269
270
271 public JavaFeatures getJavaFeatures()
272 {
273 return this.javaFeatures;
274 }
275
276
277
278
279
280
281 public String getModelEncoding()
282 {
283 return this.modelEncoding;
284 }
285
286
287
288
289
290
291 public NodeItem getNode()
292 {
293 return this.node;
294 }
295
296
297
298
299
300
301
302
303 public String getRequired()
304 {
305 return this.required;
306 }
307
308
309
310
311
312
313 public SimpleTypes getSimpleTypes()
314 {
315 return this.simpleTypes;
316 }
317
318
319
320
321
322
323
324 public String getVersionField()
325 {
326 return this.versionField;
327 }
328
329
330
331
332
333
334 public XdocFeatures getXdocFeatures()
335 {
336 return this.xdocFeatures;
337 }
338
339
340
341
342
343
344 public XmlFeatures getXmlFeatures()
345 {
346 return this.xmlFeatures;
347 }
348
349
350
351
352
353
354 public int hashCode()
355 {
356 int result = 17;
357
358 result = 37 * result + ( identifier != null ? identifier.hashCode() : 0 );
359 result = 37 * result + ( identifierPart2 != null ? identifierPart2.hashCode() : 0 );
360
361 return result;
362 }
363
364
365
366
367
368
369 public void setAction( Action action )
370 {
371 this.action = action;
372 }
373
374
375
376
377
378
379 public void setArrays( ArrayFeatures arrays )
380 {
381 this.arrays = arrays;
382 }
383
384
385
386
387
388
389 public void setAssociationFeatures( AssociationFeatures associationFeatures )
390 {
391 this.associationFeatures = associationFeatures;
392 }
393
394
395
396
397
398
399 public void setCloneable( Thing cloneable )
400 {
401 this.cloneable = cloneable;
402 }
403
404
405
406
407
408
409 public void setComment( String comment )
410 {
411 this.comment = comment;
412 }
413
414
415
416
417
418
419 public void setDefaultValues( SimpleTypes defaultValues )
420 {
421 this.defaultValues = defaultValues;
422 }
423
424
425
426
427
428
429 public void setDescription( String description )
430 {
431 this.description = description;
432 }
433
434
435
436
437
438
439 public void setFile( File file )
440 {
441 this.file = file;
442 }
443
444
445
446
447
448
449
450
451
452
453
454
455 public void setIdentifier( String identifier )
456 {
457 this.identifier = identifier;
458 }
459
460
461
462
463
464
465
466 public void setIdentifierPart2( Reference identifierPart2 )
467 {
468 this.identifierPart2 = identifierPart2;
469 }
470
471
472
473
474
475
476 public void setJavaFeatures( JavaFeatures javaFeatures )
477 {
478 this.javaFeatures = javaFeatures;
479 }
480
481
482
483
484
485
486 public void setModelEncoding( String modelEncoding )
487 {
488 this.modelEncoding = modelEncoding;
489 }
490
491
492
493
494
495
496 public void setNode( NodeItem node )
497 {
498 this.node = node;
499 }
500
501
502
503
504
505
506
507
508 public void setRequired( String required )
509 {
510 this.required = required;
511 }
512
513
514
515
516
517
518 public void setSimpleTypes( SimpleTypes simpleTypes )
519 {
520 this.simpleTypes = simpleTypes;
521 }
522
523
524
525
526
527
528
529 public void setVersionField( String versionField )
530 {
531 this.versionField = versionField;
532 }
533
534
535
536
537
538
539 public void setXdocFeatures( XdocFeatures xdocFeatures )
540 {
541 this.xdocFeatures = xdocFeatures;
542 }
543
544
545
546
547
548
549 public void setXmlFeatures( XmlFeatures xmlFeatures )
550 {
551 this.xmlFeatures = xmlFeatures;
552 }
553
554
555
556
557
558
559 public java.lang.String toString()
560 {
561 StringBuilder buf = new StringBuilder( 128 );
562
563 buf.append( "identifier = '" );
564 buf.append( getIdentifier() );
565 buf.append( "'" );
566 buf.append( "\n" );
567 buf.append( "identifierPart2 = '" );
568 buf.append( getIdentifierPart2() );
569 buf.append( "'" );
570
571 return buf.toString();
572 }
573
574
575
576
577
578 public final static String CODE_SEGMENT = "freedom with codeSegment";
579
580 }