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 * Class Thing.
019 * 
020 * @version $Revision$ $Date$
021 */
022@SuppressWarnings( "all" )
023public class Thing
024    extends SuperThing
025    implements java.io.Serializable, java.lang.Cloneable
026{
027
028      //--------------------------/
029     //- Class/Member Variables -/
030    //--------------------------/
031
032    /**
033     * Field someBoolean.
034     */
035    private boolean someBoolean = false;
036
037    /**
038     * Field someChar.
039     */
040    private char someChar = '\0';
041
042    /**
043     * Field someByte.
044     */
045    private byte someByte = 0;
046
047    /**
048     * Field someShort.
049     */
050    private short someShort = 0;
051
052    /**
053     * Field someInt.
054     */
055    private int someInt = 0;
056
057    /**
058     * Field someLong.
059     */
060    private long someLong = 0L;
061
062    /**
063     * Field someFloat.
064     */
065    private float someFloat = 0.0f;
066
067    /**
068     * Field someDouble.
069     */
070    private double someDouble = 0.0;
071
072    /**
073     * Field someString.
074     */
075    private String someString;
076
077    /**
078     * Field someDate.
079     */
080    private java.util.Date someDate;
081
082    /**
083     * Field someDom.
084     */
085    private Object someDom;
086
087    /**
088     * Field someProperties.
089     */
090    private java.util.Properties someProperties;
091
092    /**
093     * Field someStringList.
094     */
095    private java.util.List<String> someStringList;
096
097    /**
098     * Field someStringSet.
099     */
100    private java.util.Set<String> someStringSet;
101
102    /**
103     * Field deepThingy.
104     */
105    private Thingy deepThingy;
106
107    /**
108     * Field deepThingyList.
109     */
110    private java.util.List<Thingy> deepThingyList;
111
112    /**
113     * Field deepThingySet.
114     */
115    private java.util.Set<Thingy> deepThingySet;
116
117    /**
118     * Field shallowThingy.
119     */
120    private Thingy shallowThingy;
121
122    /**
123     * Field shallowThingyList.
124     */
125    private java.util.List<Thingy> shallowThingyList;
126
127    /**
128     * Field shallowThingySet.
129     */
130    private java.util.Set<Thingy> shallowThingySet;
131
132
133      //-----------/
134     //- Methods -/
135    //-----------/
136
137    /**
138     * Method addDeepThingyList.
139     * 
140     * @param thingy
141     */
142    public void addDeepThingyList( Thingy thingy )
143    {
144        getDeepThingyList().add( thingy );
145    } //-- void addDeepThingyList( Thingy )
146
147    /**
148     * Method addDeepThingySet.
149     * 
150     * @param thingy
151     */
152    public void addDeepThingySet( Thingy thingy )
153    {
154        getDeepThingySet().add( thingy );
155    } //-- void addDeepThingySet( Thingy )
156
157    /**
158     * Method addShallowThingyList.
159     * 
160     * @param thingy
161     */
162    public void addShallowThingyList( Thingy thingy )
163    {
164        getShallowThingyList().add( thingy );
165    } //-- void addShallowThingyList( Thingy )
166
167    /**
168     * Method addShallowThingySet.
169     * 
170     * @param thingy
171     */
172    public void addShallowThingySet( Thingy thingy )
173    {
174        getShallowThingySet().add( thingy );
175    } //-- void addShallowThingySet( Thingy )
176
177    /**
178     * Method addSomeProperty.
179     * 
180     * @param key
181     * @param value
182     */
183    public void addSomeProperty( String key, String value )
184    {
185        getSomeProperties().put( key, value );
186    } //-- void addSomeProperty( String, String )
187
188    /**
189     * Method addSomeStringList.
190     * 
191     * @param string
192     */
193    public void addSomeStringList( String string )
194    {
195        getSomeStringList().add( string );
196    } //-- void addSomeStringList( String )
197
198    /**
199     * Method addSomeStringSet.
200     * 
201     * @param string
202     */
203    public void addSomeStringSet( String string )
204    {
205        getSomeStringSet().add( string );
206    } //-- void addSomeStringSet( String )
207
208    /**
209     * Method clone.
210     * 
211     * @return Thing
212     */
213    public Thing clone()
214    {
215        try
216        {
217            Thing copy = (Thing) super.clone();
218
219            if ( this.someDate != null )
220            {
221                copy.someDate = (java.util.Date) this.someDate.clone();
222            }
223
224            if ( this.someDom != null )
225            {
226                copy.someDom = new org.codehaus.plexus.util.xml.Xpp3Dom( (org.codehaus.plexus.util.xml.Xpp3Dom) this.someDom );
227            }
228
229            if ( this.someProperties != null )
230            {
231                copy.someProperties = (java.util.Properties) this.someProperties.clone();
232            }
233
234            if ( this.someStringList != null )
235            {
236                copy.someStringList = new java.util.ArrayList<String>();
237                copy.someStringList.addAll( this.someStringList );
238            }
239
240            if ( this.someStringSet != null )
241            {
242                copy.someStringSet = new java.util.HashSet<String>();
243                copy.someStringSet.addAll( this.someStringSet );
244            }
245
246            if ( this.deepThingy != null )
247            {
248                copy.deepThingy = (Thingy) this.deepThingy.clone();
249            }
250
251            if ( this.deepThingyList != null )
252            {
253                copy.deepThingyList = new java.util.ArrayList<Thingy>();
254                for ( Thingy item : this.deepThingyList )
255                {
256                    copy.deepThingyList.add( ( (Thingy) item).clone() );
257                }
258            }
259
260            if ( this.deepThingySet != null )
261            {
262                copy.deepThingySet = new java.util.HashSet<Thingy>();
263                for ( Thingy item : this.deepThingySet )
264                {
265                    copy.deepThingySet.add( ( (Thingy) item).clone() );
266                }
267            }
268
269            if ( this.shallowThingyList != null )
270            {
271                copy.shallowThingyList = new java.util.ArrayList<Thingy>();
272                copy.shallowThingyList.addAll( this.shallowThingyList );
273            }
274
275            if ( this.shallowThingySet != null )
276            {
277                copy.shallowThingySet = new java.util.HashSet<Thingy>();
278                copy.shallowThingySet.addAll( this.shallowThingySet );
279            }
280
281            cloneCustomFields( copy );
282
283            return copy;
284        }
285        catch ( java.lang.Exception ex )
286        {
287            throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
288                + " does not support clone()" ).initCause( ex );
289        }
290    } //-- Thing clone()
291
292    /**
293     * Get the deepThingy field.
294     * 
295     * @return Thingy
296     */
297    public Thingy getDeepThingy()
298    {
299        return this.deepThingy;
300    } //-- Thingy getDeepThingy()
301
302    /**
303     * Method getDeepThingyList.
304     * 
305     * @return List
306     */
307    public java.util.List<Thingy> getDeepThingyList()
308    {
309        if ( this.deepThingyList == null )
310        {
311            this.deepThingyList = new java.util.ArrayList<Thingy>();
312        }
313
314        return this.deepThingyList;
315    } //-- java.util.List<Thingy> getDeepThingyList()
316
317    /**
318     * Method getDeepThingySet.
319     * 
320     * @return Set
321     */
322    public java.util.Set<Thingy> getDeepThingySet()
323    {
324        if ( this.deepThingySet == null )
325        {
326            this.deepThingySet = new java.util.HashSet<Thingy>();
327        }
328
329        return this.deepThingySet;
330    } //-- java.util.Set<Thingy> getDeepThingySet()
331
332    /**
333     * Get the shallowThingy field.
334     * 
335     * @return Thingy
336     */
337    public Thingy getShallowThingy()
338    {
339        return this.shallowThingy;
340    } //-- Thingy getShallowThingy()
341
342    /**
343     * Method getShallowThingyList.
344     * 
345     * @return List
346     */
347    public java.util.List<Thingy> getShallowThingyList()
348    {
349        if ( this.shallowThingyList == null )
350        {
351            this.shallowThingyList = new java.util.ArrayList<Thingy>();
352        }
353
354        return this.shallowThingyList;
355    } //-- java.util.List<Thingy> getShallowThingyList()
356
357    /**
358     * Method getShallowThingySet.
359     * 
360     * @return Set
361     */
362    public java.util.Set<Thingy> getShallowThingySet()
363    {
364        if ( this.shallowThingySet == null )
365        {
366            this.shallowThingySet = new java.util.HashSet<Thingy>();
367        }
368
369        return this.shallowThingySet;
370    } //-- java.util.Set<Thingy> getShallowThingySet()
371
372    /**
373     * Get the someByte field.
374     * 
375     * @return byte
376     */
377    public byte getSomeByte()
378    {
379        return this.someByte;
380    } //-- byte getSomeByte()
381
382    /**
383     * Get the someChar field.
384     * 
385     * @return char
386     */
387    public char getSomeChar()
388    {
389        return this.someChar;
390    } //-- char getSomeChar()
391
392    /**
393     * Get the someDate field.
394     * 
395     * @return Date
396     */
397    public java.util.Date getSomeDate()
398    {
399        return this.someDate;
400    } //-- java.util.Date getSomeDate()
401
402    /**
403     * Get the someDom field.
404     * 
405     * @return Object
406     */
407    public Object getSomeDom()
408    {
409        return this.someDom;
410    } //-- Object getSomeDom()
411
412    /**
413     * Get the someDouble field.
414     * 
415     * @return double
416     */
417    public double getSomeDouble()
418    {
419        return this.someDouble;
420    } //-- double getSomeDouble()
421
422    /**
423     * Get the someFloat field.
424     * 
425     * @return float
426     */
427    public float getSomeFloat()
428    {
429        return this.someFloat;
430    } //-- float getSomeFloat()
431
432    /**
433     * Get the someInt field.
434     * 
435     * @return int
436     */
437    public int getSomeInt()
438    {
439        return this.someInt;
440    } //-- int getSomeInt()
441
442    /**
443     * Get the someLong field.
444     * 
445     * @return long
446     */
447    public long getSomeLong()
448    {
449        return this.someLong;
450    } //-- long getSomeLong()
451
452    /**
453     * Method getSomeProperties.
454     * 
455     * @return Properties
456     */
457    public java.util.Properties getSomeProperties()
458    {
459        if ( this.someProperties == null )
460        {
461            this.someProperties = new org.codehaus.modello.OrderedProperties();
462        }
463
464        return this.someProperties;
465    } //-- java.util.Properties getSomeProperties()
466
467    /**
468     * Get the someShort field.
469     * 
470     * @return short
471     */
472    public short getSomeShort()
473    {
474        return this.someShort;
475    } //-- short getSomeShort()
476
477    /**
478     * Get the someString field.
479     * 
480     * @return String
481     */
482    public String getSomeString()
483    {
484        return this.someString;
485    } //-- String getSomeString()
486
487    /**
488     * Method getSomeStringList.
489     * 
490     * @return List
491     */
492    public java.util.List<String> getSomeStringList()
493    {
494        if ( this.someStringList == null )
495        {
496            this.someStringList = new java.util.ArrayList<String>();
497        }
498
499        return this.someStringList;
500    } //-- java.util.List<String> getSomeStringList()
501
502    /**
503     * Method getSomeStringSet.
504     * 
505     * @return Set
506     */
507    public java.util.Set<String> getSomeStringSet()
508    {
509        if ( this.someStringSet == null )
510        {
511            this.someStringSet = new java.util.HashSet<String>();
512        }
513
514        return this.someStringSet;
515    } //-- java.util.Set<String> getSomeStringSet()
516
517    /**
518     * Get the someBoolean field.
519     * 
520     * @return boolean
521     */
522    public boolean isSomeBoolean()
523    {
524        return this.someBoolean;
525    } //-- boolean isSomeBoolean()
526
527    /**
528     * Method removeDeepThingyList.
529     * 
530     * @param thingy
531     */
532    public void removeDeepThingyList( Thingy thingy )
533    {
534        getDeepThingyList().remove( thingy );
535    } //-- void removeDeepThingyList( Thingy )
536
537    /**
538     * Method removeDeepThingySet.
539     * 
540     * @param thingy
541     */
542    public void removeDeepThingySet( Thingy thingy )
543    {
544        getDeepThingySet().remove( thingy );
545    } //-- void removeDeepThingySet( Thingy )
546
547    /**
548     * Method removeShallowThingyList.
549     * 
550     * @param thingy
551     */
552    public void removeShallowThingyList( Thingy thingy )
553    {
554        getShallowThingyList().remove( thingy );
555    } //-- void removeShallowThingyList( Thingy )
556
557    /**
558     * Method removeShallowThingySet.
559     * 
560     * @param thingy
561     */
562    public void removeShallowThingySet( Thingy thingy )
563    {
564        getShallowThingySet().remove( thingy );
565    } //-- void removeShallowThingySet( Thingy )
566
567    /**
568     * Method removeSomeStringList.
569     * 
570     * @param string
571     */
572    public void removeSomeStringList( String string )
573    {
574        getSomeStringList().remove( string );
575    } //-- void removeSomeStringList( String )
576
577    /**
578     * Method removeSomeStringSet.
579     * 
580     * @param string
581     */
582    public void removeSomeStringSet( String string )
583    {
584        getSomeStringSet().remove( string );
585    } //-- void removeSomeStringSet( String )
586
587    /**
588     * Set the deepThingy field.
589     * 
590     * @param deepThingy
591     */
592    public void setDeepThingy( Thingy deepThingy )
593    {
594        this.deepThingy = deepThingy;
595    } //-- void setDeepThingy( Thingy )
596
597    /**
598     * Set the deepThingyList field.
599     * 
600     * @param deepThingyList
601     */
602    public void setDeepThingyList( java.util.List<Thingy> deepThingyList )
603    {
604        this.deepThingyList = deepThingyList;
605    } //-- void setDeepThingyList( java.util.List )
606
607    /**
608     * Set the deepThingySet field.
609     * 
610     * @param deepThingySet
611     */
612    public void setDeepThingySet( java.util.Set<Thingy> deepThingySet )
613    {
614        this.deepThingySet = deepThingySet;
615    } //-- void setDeepThingySet( java.util.Set )
616
617    /**
618     * Set the shallowThingy field.
619     * 
620     * @param shallowThingy
621     */
622    public void setShallowThingy( Thingy shallowThingy )
623    {
624        this.shallowThingy = shallowThingy;
625    } //-- void setShallowThingy( Thingy )
626
627    /**
628     * Set the shallowThingyList field.
629     * 
630     * @param shallowThingyList
631     */
632    public void setShallowThingyList( java.util.List<Thingy> shallowThingyList )
633    {
634        this.shallowThingyList = shallowThingyList;
635    } //-- void setShallowThingyList( java.util.List )
636
637    /**
638     * Set the shallowThingySet field.
639     * 
640     * @param shallowThingySet
641     */
642    public void setShallowThingySet( java.util.Set<Thingy> shallowThingySet )
643    {
644        this.shallowThingySet = shallowThingySet;
645    } //-- void setShallowThingySet( java.util.Set )
646
647    /**
648     * Set the someBoolean field.
649     * 
650     * @param someBoolean
651     */
652    public void setSomeBoolean( boolean someBoolean )
653    {
654        this.someBoolean = someBoolean;
655    } //-- void setSomeBoolean( boolean )
656
657    /**
658     * Set the someByte field.
659     * 
660     * @param someByte
661     */
662    public void setSomeByte( byte someByte )
663    {
664        this.someByte = someByte;
665    } //-- void setSomeByte( byte )
666
667    /**
668     * Set the someChar field.
669     * 
670     * @param someChar
671     */
672    public void setSomeChar( char someChar )
673    {
674        this.someChar = someChar;
675    } //-- void setSomeChar( char )
676
677    /**
678     * Set the someDate field.
679     * 
680     * @param someDate
681     */
682    public void setSomeDate( java.util.Date someDate )
683    {
684        this.someDate = someDate;
685    } //-- void setSomeDate( java.util.Date )
686
687    /**
688     * Set the someDom field.
689     * 
690     * @param someDom
691     */
692    public void setSomeDom( Object someDom )
693    {
694        this.someDom = someDom;
695    } //-- void setSomeDom( Object )
696
697    /**
698     * Set the someDouble field.
699     * 
700     * @param someDouble
701     */
702    public void setSomeDouble( double someDouble )
703    {
704        this.someDouble = someDouble;
705    } //-- void setSomeDouble( double )
706
707    /**
708     * Set the someFloat field.
709     * 
710     * @param someFloat
711     */
712    public void setSomeFloat( float someFloat )
713    {
714        this.someFloat = someFloat;
715    } //-- void setSomeFloat( float )
716
717    /**
718     * Set the someInt field.
719     * 
720     * @param someInt
721     */
722    public void setSomeInt( int someInt )
723    {
724        this.someInt = someInt;
725    } //-- void setSomeInt( int )
726
727    /**
728     * Set the someLong field.
729     * 
730     * @param someLong
731     */
732    public void setSomeLong( long someLong )
733    {
734        this.someLong = someLong;
735    } //-- void setSomeLong( long )
736
737    /**
738     * Set the someProperties field.
739     * 
740     * @param someProperties
741     */
742    public void setSomeProperties( java.util.Properties someProperties )
743    {
744        this.someProperties = someProperties;
745    } //-- void setSomeProperties( java.util.Properties )
746
747    /**
748     * Set the someShort field.
749     * 
750     * @param someShort
751     */
752    public void setSomeShort( short someShort )
753    {
754        this.someShort = someShort;
755    } //-- void setSomeShort( short )
756
757    /**
758     * Set the someString field.
759     * 
760     * @param someString
761     */
762    public void setSomeString( String someString )
763    {
764        this.someString = someString;
765    } //-- void setSomeString( String )
766
767    /**
768     * Set the someStringList field.
769     * 
770     * @param someStringList
771     */
772    public void setSomeStringList( java.util.List<String> someStringList )
773    {
774        this.someStringList = someStringList;
775    } //-- void setSomeStringList( java.util.List )
776
777    /**
778     * Set the someStringSet field.
779     * 
780     * @param someStringSet
781     */
782    public void setSomeStringSet( java.util.Set<String> someStringSet )
783    {
784        this.someStringSet = someStringSet;
785    } //-- void setSomeStringSet( java.util.Set )
786
787    
788    public java.util.Properties customProperties = new java.util.Properties();
789
790    private void cloneCustomFields( Thing copy )
791    {
792        if ( this.customProperties != null )
793        {
794            copy.customProperties = (java.util.Properties) this.customProperties.clone();
795        }
796    }
797            
798          
799}