View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.9.2-SNAPSHOT,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.codehaus.modello.test.features;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.codehaus.modello.test.features.other.PackageNameFeature;
15  import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
16  
17  /**
18   * 
19   *         <code>&lt;field&gt;&lt;type&gt;<i>chose a
20   * type</i>&lt;/type&gt;&lt;field&gt;</code>:
21   *         Test of every simple types supported.
22   *       
23   * 
24   * @version $Revision$ $Date$
25   */
26  @SuppressWarnings( "all" )
27  public class SimpleTypes
28      implements java.io.Serializable
29  {
30  
31        //--------------------------/
32       //- Class/Member Variables -/
33      //--------------------------/
34  
35      /**
36       * <code>boolean</code> primitive.
37       */
38      private boolean primitiveBoolean = true;
39  
40      /**
41       * <code>char</code> primitive.
42       */
43      private char primitiveChar = 'H';
44  
45      /**
46       * <code>byte</code> primitive.
47       */
48      private byte primitiveByte = 12;
49  
50      /**
51       * <code>short</code> primitive.
52       */
53      private short primitiveShort = 1212;
54  
55      /**
56       * <code>int</code> primitive.
57       */
58      private int primitiveInt = 121212;
59  
60      /**
61       * <code>long</code> primitive.
62       */
63      private long primitiveLong = 1234567890123L;
64  
65      /**
66       * <code>float</code> primitive.
67       */
68      private float primitiveFloat = 12.12f;
69  
70      /**
71       * <code>double</code> primitive.
72       */
73      private double primitiveDouble = 12.12;
74  
75      /**
76       * <code>String</code> class.
77       */
78      private String objectString = "default value";
79  
80      /**
81       * <code>Date</code> class.
82       */
83      private java.util.Date objectDate = new java.util.Date( 1356383532012L );
84  
85      /**
86       * <code>boolean</code> primitive.
87       */
88      private boolean primitiveBooleanNoDefault = false;
89  
90      /**
91       * <code>char</code> primitive.
92       */
93      private char primitiveCharNoDefault = '\0';
94  
95      /**
96       * <code>byte</code> primitive.
97       */
98      private byte primitiveByteNoDefault = 0;
99  
100     /**
101      * <code>short</code> primitive.
102      */
103     private short primitiveShortNoDefault = 0;
104 
105     /**
106      * <code>int</code> primitive.
107      */
108     private int primitiveIntNoDefault = 0;
109 
110     /**
111      * <code>long</code> primitive.
112      */
113     private long primitiveLongNoDefault = 0L;
114 
115     /**
116      * <code>float</code> primitive.
117      */
118     private float primitiveFloatNoDefault = 0.0f;
119 
120     /**
121      * <code>double</code> primitive.
122      */
123     private double primitiveDoubleNoDefault = 0.0;
124 
125     /**
126      * <code>String</code> class.
127      */
128     private String objectStringNoDefault;
129 
130     /**
131      * <code>Date</code> class.
132      */
133     private java.util.Date objectDateNoDefault;
134 
135     /**
136      * <code>DOM</code> type.
137      */
138     private Object dom;
139 
140     /**
141      * <code>Content</code> type: in fact, an association to a
142      * class with attributes and
143      *           one <code>Content</code> field.
144      */
145     private ContentTest content;
146 
147 
148       //-----------/
149      //- Methods -/
150     //-----------/
151 
152     /**
153      * Get <code>Content</code> type: in fact, an association to a
154      * class with attributes and
155      *           one <code>Content</code> field.
156      * 
157      * @return ContentTest
158      */
159     public ContentTest getContent()
160     {
161         return this.content;
162     } //-- ContentTest getContent()
163 
164     /**
165      * Get <code>DOM</code> type.
166      * 
167      * @return Object
168      */
169     public Object getDom()
170     {
171         return this.dom;
172     } //-- Object getDom()
173 
174     /**
175      * Get <code>Date</code> class.
176      * 
177      * @return Date
178      */
179     public java.util.Date getObjectDate()
180     {
181         return this.objectDate;
182     } //-- java.util.Date getObjectDate()
183 
184     /**
185      * Get <code>Date</code> class.
186      * 
187      * @return Date
188      */
189     public java.util.Date getObjectDateNoDefault()
190     {
191         return this.objectDateNoDefault;
192     } //-- java.util.Date getObjectDateNoDefault()
193 
194     /**
195      * Get <code>String</code> class.
196      * 
197      * @return String
198      */
199     public String getObjectString()
200     {
201         return this.objectString;
202     } //-- String getObjectString()
203 
204     /**
205      * Get <code>String</code> class.
206      * 
207      * @return String
208      */
209     public String getObjectStringNoDefault()
210     {
211         return this.objectStringNoDefault;
212     } //-- String getObjectStringNoDefault()
213 
214     /**
215      * Get <code>byte</code> primitive.
216      * 
217      * @return byte
218      */
219     public byte getPrimitiveByte()
220     {
221         return this.primitiveByte;
222     } //-- byte getPrimitiveByte()
223 
224     /**
225      * Get <code>byte</code> primitive.
226      * 
227      * @return byte
228      */
229     public byte getPrimitiveByteNoDefault()
230     {
231         return this.primitiveByteNoDefault;
232     } //-- byte getPrimitiveByteNoDefault()
233 
234     /**
235      * Get <code>char</code> primitive.
236      * 
237      * @return char
238      */
239     public char getPrimitiveChar()
240     {
241         return this.primitiveChar;
242     } //-- char getPrimitiveChar()
243 
244     /**
245      * Get <code>char</code> primitive.
246      * 
247      * @return char
248      */
249     public char getPrimitiveCharNoDefault()
250     {
251         return this.primitiveCharNoDefault;
252     } //-- char getPrimitiveCharNoDefault()
253 
254     /**
255      * Get <code>double</code> primitive.
256      * 
257      * @return double
258      */
259     public double getPrimitiveDouble()
260     {
261         return this.primitiveDouble;
262     } //-- double getPrimitiveDouble()
263 
264     /**
265      * Get <code>double</code> primitive.
266      * 
267      * @return double
268      */
269     public double getPrimitiveDoubleNoDefault()
270     {
271         return this.primitiveDoubleNoDefault;
272     } //-- double getPrimitiveDoubleNoDefault()
273 
274     /**
275      * Get <code>float</code> primitive.
276      * 
277      * @return float
278      */
279     public float getPrimitiveFloat()
280     {
281         return this.primitiveFloat;
282     } //-- float getPrimitiveFloat()
283 
284     /**
285      * Get <code>float</code> primitive.
286      * 
287      * @return float
288      */
289     public float getPrimitiveFloatNoDefault()
290     {
291         return this.primitiveFloatNoDefault;
292     } //-- float getPrimitiveFloatNoDefault()
293 
294     /**
295      * Get <code>int</code> primitive.
296      * 
297      * @return int
298      */
299     public int getPrimitiveInt()
300     {
301         return this.primitiveInt;
302     } //-- int getPrimitiveInt()
303 
304     /**
305      * Get <code>int</code> primitive.
306      * 
307      * @return int
308      */
309     public int getPrimitiveIntNoDefault()
310     {
311         return this.primitiveIntNoDefault;
312     } //-- int getPrimitiveIntNoDefault()
313 
314     /**
315      * Get <code>long</code> primitive.
316      * 
317      * @return long
318      */
319     public long getPrimitiveLong()
320     {
321         return this.primitiveLong;
322     } //-- long getPrimitiveLong()
323 
324     /**
325      * Get <code>long</code> primitive.
326      * 
327      * @return long
328      */
329     public long getPrimitiveLongNoDefault()
330     {
331         return this.primitiveLongNoDefault;
332     } //-- long getPrimitiveLongNoDefault()
333 
334     /**
335      * Get <code>short</code> primitive.
336      * 
337      * @return short
338      */
339     public short getPrimitiveShort()
340     {
341         return this.primitiveShort;
342     } //-- short getPrimitiveShort()
343 
344     /**
345      * Get <code>short</code> primitive.
346      * 
347      * @return short
348      */
349     public short getPrimitiveShortNoDefault()
350     {
351         return this.primitiveShortNoDefault;
352     } //-- short getPrimitiveShortNoDefault()
353 
354     /**
355      * Get <code>boolean</code> primitive.
356      * 
357      * @return boolean
358      */
359     public boolean isPrimitiveBoolean()
360     {
361         return this.primitiveBoolean;
362     } //-- boolean isPrimitiveBoolean()
363 
364     /**
365      * Get <code>boolean</code> primitive.
366      * 
367      * @return boolean
368      */
369     public boolean isPrimitiveBooleanNoDefault()
370     {
371         return this.primitiveBooleanNoDefault;
372     } //-- boolean isPrimitiveBooleanNoDefault()
373 
374     /**
375      * Set <code>Content</code> type: in fact, an association to a
376      * class with attributes and
377      *           one <code>Content</code> field.
378      * 
379      * @param content
380      */
381     public void setContent( ContentTest content )
382     {
383         this.content = content;
384     } //-- void setContent( ContentTest )
385 
386     /**
387      * Set <code>DOM</code> type.
388      * 
389      * @param dom
390      */
391     public void setDom( Object dom )
392     {
393         this.dom = dom;
394     } //-- void setDom( Object )
395 
396     /**
397      * Set <code>Date</code> class.
398      * 
399      * @param objectDate
400      */
401     public void setObjectDate( java.util.Date objectDate )
402     {
403         this.objectDate = objectDate;
404     } //-- void setObjectDate( java.util.Date )
405 
406     /**
407      * Set <code>Date</code> class.
408      * 
409      * @param objectDateNoDefault
410      */
411     public void setObjectDateNoDefault( java.util.Date objectDateNoDefault )
412     {
413         this.objectDateNoDefault = objectDateNoDefault;
414     } //-- void setObjectDateNoDefault( java.util.Date )
415 
416     /**
417      * Set <code>String</code> class.
418      * 
419      * @param objectString
420      */
421     public void setObjectString( String objectString )
422     {
423         this.objectString = objectString;
424     } //-- void setObjectString( String )
425 
426     /**
427      * Set <code>String</code> class.
428      * 
429      * @param objectStringNoDefault
430      */
431     public void setObjectStringNoDefault( String objectStringNoDefault )
432     {
433         this.objectStringNoDefault = objectStringNoDefault;
434     } //-- void setObjectStringNoDefault( String )
435 
436     /**
437      * Set <code>boolean</code> primitive.
438      * 
439      * @param primitiveBoolean
440      */
441     public void setPrimitiveBoolean( boolean primitiveBoolean )
442     {
443         this.primitiveBoolean = primitiveBoolean;
444     } //-- void setPrimitiveBoolean( boolean )
445 
446     /**
447      * Set <code>boolean</code> primitive.
448      * 
449      * @param primitiveBooleanNoDefault
450      */
451     public void setPrimitiveBooleanNoDefault( boolean primitiveBooleanNoDefault )
452     {
453         this.primitiveBooleanNoDefault = primitiveBooleanNoDefault;
454     } //-- void setPrimitiveBooleanNoDefault( boolean )
455 
456     /**
457      * Set <code>byte</code> primitive.
458      * 
459      * @param primitiveByte
460      */
461     public void setPrimitiveByte( byte primitiveByte )
462     {
463         this.primitiveByte = primitiveByte;
464     } //-- void setPrimitiveByte( byte )
465 
466     /**
467      * Set <code>byte</code> primitive.
468      * 
469      * @param primitiveByteNoDefault
470      */
471     public void setPrimitiveByteNoDefault( byte primitiveByteNoDefault )
472     {
473         this.primitiveByteNoDefault = primitiveByteNoDefault;
474     } //-- void setPrimitiveByteNoDefault( byte )
475 
476     /**
477      * Set <code>char</code> primitive.
478      * 
479      * @param primitiveChar
480      */
481     public void setPrimitiveChar( char primitiveChar )
482     {
483         this.primitiveChar = primitiveChar;
484     } //-- void setPrimitiveChar( char )
485 
486     /**
487      * Set <code>char</code> primitive.
488      * 
489      * @param primitiveCharNoDefault
490      */
491     public void setPrimitiveCharNoDefault( char primitiveCharNoDefault )
492     {
493         this.primitiveCharNoDefault = primitiveCharNoDefault;
494     } //-- void setPrimitiveCharNoDefault( char )
495 
496     /**
497      * Set <code>double</code> primitive.
498      * 
499      * @param primitiveDouble
500      */
501     public void setPrimitiveDouble( double primitiveDouble )
502     {
503         this.primitiveDouble = primitiveDouble;
504     } //-- void setPrimitiveDouble( double )
505 
506     /**
507      * Set <code>double</code> primitive.
508      * 
509      * @param primitiveDoubleNoDefault
510      */
511     public void setPrimitiveDoubleNoDefault( double primitiveDoubleNoDefault )
512     {
513         this.primitiveDoubleNoDefault = primitiveDoubleNoDefault;
514     } //-- void setPrimitiveDoubleNoDefault( double )
515 
516     /**
517      * Set <code>float</code> primitive.
518      * 
519      * @param primitiveFloat
520      */
521     public void setPrimitiveFloat( float primitiveFloat )
522     {
523         this.primitiveFloat = primitiveFloat;
524     } //-- void setPrimitiveFloat( float )
525 
526     /**
527      * Set <code>float</code> primitive.
528      * 
529      * @param primitiveFloatNoDefault
530      */
531     public void setPrimitiveFloatNoDefault( float primitiveFloatNoDefault )
532     {
533         this.primitiveFloatNoDefault = primitiveFloatNoDefault;
534     } //-- void setPrimitiveFloatNoDefault( float )
535 
536     /**
537      * Set <code>int</code> primitive.
538      * 
539      * @param primitiveInt
540      */
541     public void setPrimitiveInt( int primitiveInt )
542     {
543         this.primitiveInt = primitiveInt;
544     } //-- void setPrimitiveInt( int )
545 
546     /**
547      * Set <code>int</code> primitive.
548      * 
549      * @param primitiveIntNoDefault
550      */
551     public void setPrimitiveIntNoDefault( int primitiveIntNoDefault )
552     {
553         this.primitiveIntNoDefault = primitiveIntNoDefault;
554     } //-- void setPrimitiveIntNoDefault( int )
555 
556     /**
557      * Set <code>long</code> primitive.
558      * 
559      * @param primitiveLong
560      */
561     public void setPrimitiveLong( long primitiveLong )
562     {
563         this.primitiveLong = primitiveLong;
564     } //-- void setPrimitiveLong( long )
565 
566     /**
567      * Set <code>long</code> primitive.
568      * 
569      * @param primitiveLongNoDefault
570      */
571     public void setPrimitiveLongNoDefault( long primitiveLongNoDefault )
572     {
573         this.primitiveLongNoDefault = primitiveLongNoDefault;
574     } //-- void setPrimitiveLongNoDefault( long )
575 
576     /**
577      * Set <code>short</code> primitive.
578      * 
579      * @param primitiveShort
580      */
581     public void setPrimitiveShort( short primitiveShort )
582     {
583         this.primitiveShort = primitiveShort;
584     } //-- void setPrimitiveShort( short )
585 
586     /**
587      * Set <code>short</code> primitive.
588      * 
589      * @param primitiveShortNoDefault
590      */
591     public void setPrimitiveShortNoDefault( short primitiveShortNoDefault )
592     {
593         this.primitiveShortNoDefault = primitiveShortNoDefault;
594     } //-- void setPrimitiveShortNoDefault( short )
595 
596 }