1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 2.3.0,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.codehaus.modello.test.features;
7
8 //---------------------------------/
9 //- Imported classes and packages -/
10 //---------------------------------/
11
12 import org.codehaus.modello.test.features.other.PackageNameFeature;
13 import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
14
15 /**
16 * A model class that has only XMl attributes fields and exactly
17 * one field with
18 * <code>Content</code> type.
19 *
20 * @version $Revision$ $Date$
21 */
22 @SuppressWarnings( "all" )
23 public class ContentTest
24 implements java.io.Serializable
25 {
26
27 //--------------------------/
28 //- Class/Member Variables -/
29 //--------------------------/
30
31 /**
32 * The field of the class with <code>Content</code> type.
33 */
34 private String content;
35
36 /**
37 * An XML attribute.
38 */
39 private String attr;
40
41 /**
42 * A 2nd XML attribute.
43 */
44 private int attr2 = 0;
45
46
47 //-----------/
48 //- Methods -/
49 //-----------/
50
51 /**
52 * Get an XML attribute.
53 *
54 * @return String
55 */
56 public String getAttr()
57 {
58 return this.attr;
59 } //-- String getAttr()
60
61 /**
62 * Get a 2nd XML attribute.
63 *
64 * @return int
65 */
66 public int getAttr2()
67 {
68 return this.attr2;
69 } //-- int getAttr2()
70
71 /**
72 * Get the field of the class with <code>Content</code> type.
73 *
74 * @return String
75 */
76 public String getContent()
77 {
78 return this.content;
79 } //-- String getContent()
80
81 /**
82 * Set an XML attribute.
83 *
84 * @param attr a attr object.
85 */
86 public void setAttr( String attr )
87 {
88 this.attr = attr;
89 } //-- void setAttr( String )
90
91 /**
92 * Set a 2nd XML attribute.
93 *
94 * @param attr2 a attr2 object.
95 */
96 public void setAttr2( int attr2 )
97 {
98 this.attr2 = attr2;
99 } //-- void setAttr2( int )
100
101 /**
102 * Set the field of the class with <code>Content</code> type.
103 *
104 * @param content a content object.
105 */
106 public void setContent( String content )
107 {
108 this.content = content;
109 } //-- void setContent( String )
110
111 }