001/*
002 =================== DO NOT EDIT THIS FILE ====================
003 Generated by Modello 1.9.2-SNAPSHOT,
004 any modifications will be overwritten.
005 ==============================================================
006 */
007
008package org.codehaus.modello.test.features;
009
010  //---------------------------------/
011 //- Imported classes and packages -/
012//---------------------------------/
013
014import org.codehaus.modello.test.features.other.PackageNameFeature;
015import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
016
017/**
018 * 
019 *         <code>&lt;field&gt;&lt;type&gt;<i>chose a
020 * type</i>&lt;/type&gt;&lt;field&gt;</code>:
021 *         Test of every simple types supported.
022 *       
023 * 
024 * @version $Revision$ $Date$
025 */
026@SuppressWarnings( "all" )
027public class SimpleTypes
028    implements java.io.Serializable
029{
030
031      //--------------------------/
032     //- Class/Member Variables -/
033    //--------------------------/
034
035    /**
036     * <code>boolean</code> primitive.
037     */
038    private boolean primitiveBoolean = true;
039
040    /**
041     * <code>char</code> primitive.
042     */
043    private char primitiveChar = 'H';
044
045    /**
046     * <code>byte</code> primitive.
047     */
048    private byte primitiveByte = 12;
049
050    /**
051     * <code>short</code> primitive.
052     */
053    private short primitiveShort = 1212;
054
055    /**
056     * <code>int</code> primitive.
057     */
058    private int primitiveInt = 121212;
059
060    /**
061     * <code>long</code> primitive.
062     */
063    private long primitiveLong = 1234567890123L;
064
065    /**
066     * <code>float</code> primitive.
067     */
068    private float primitiveFloat = 12.12f;
069
070    /**
071     * <code>double</code> primitive.
072     */
073    private double primitiveDouble = 12.12;
074
075    /**
076     * <code>String</code> class.
077     */
078    private String objectString = "default value";
079
080    /**
081     * <code>Date</code> class.
082     */
083    private java.util.Date objectDate = new java.util.Date( 1356383532012L );
084
085    /**
086     * <code>boolean</code> primitive.
087     */
088    private boolean primitiveBooleanNoDefault = false;
089
090    /**
091     * <code>char</code> primitive.
092     */
093    private char primitiveCharNoDefault = '\0';
094
095    /**
096     * <code>byte</code> primitive.
097     */
098    private byte primitiveByteNoDefault = 0;
099
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}