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   * <code>&lt;field xml.attribute="true"&gt;</code>: fields as XML
19   * attribute instead of element,
20   *         for every simple type.
21   *       
22   * 
23   * @version $Revision$ $Date$
24   */
25  @SuppressWarnings( "all" )
26  public class XmlAttributes
27      implements java.io.Serializable
28  {
29  
30        //--------------------------/
31       //- Class/Member Variables -/
32      //--------------------------/
33  
34      /**
35       * <code>boolean</code> primitive.
36       */
37      private boolean primitiveBoolean = true;
38  
39      /**
40       * <code>char</code> primitive.
41       */
42      private char primitiveChar = 'H';
43  
44      /**
45       * <code>byte</code> primitive.
46       */
47      private byte primitiveByte = 12;
48  
49      /**
50       * <code>short</code> primitive.
51       */
52      private short primitiveShort = 1212;
53  
54      /**
55       * <code>int</code> primitive.
56       */
57      private int primitiveInt = 121212;
58  
59      /**
60       * <code>long</code> primitive.
61       */
62      private long primitiveLong = 1234567890123L;
63  
64      /**
65       * <code>float</code> primitive.
66       */
67      private float primitiveFloat = 12.12f;
68  
69      /**
70       * <code>double</code> primitive.
71       */
72      private double primitiveDouble = 12.12;
73  
74      /**
75       * <code>String</code> class.
76       */
77      private String objectString = "default value";
78  
79      /**
80       * <code>Date</code> class.
81       */
82      private java.util.Date objectDate;
83  
84      /**
85       * <code>&lt;field xml.attribute="true"
86       * xml.tagName="tag-name"&gt;</code>.
87       */
88      private String attribute = "default";
89  
90  
91        //-----------/
92       //- Methods -/
93      //-----------/
94  
95      /**
96       * Get <code>&lt;field xml.attribute="true"
97       * xml.tagName="tag-name"&gt;</code>.
98       * 
99       * @return String
100      */
101     public String getAttribute()
102     {
103         return this.attribute;
104     } //-- String getAttribute()
105 
106     /**
107      * Get <code>Date</code> class.
108      * 
109      * @return Date
110      */
111     public java.util.Date getObjectDate()
112     {
113         return this.objectDate;
114     } //-- java.util.Date getObjectDate()
115 
116     /**
117      * Get <code>String</code> class.
118      * 
119      * @return String
120      */
121     public String getObjectString()
122     {
123         return this.objectString;
124     } //-- String getObjectString()
125 
126     /**
127      * Get <code>byte</code> primitive.
128      * 
129      * @return byte
130      */
131     public byte getPrimitiveByte()
132     {
133         return this.primitiveByte;
134     } //-- byte getPrimitiveByte()
135 
136     /**
137      * Get <code>char</code> primitive.
138      * 
139      * @return char
140      */
141     public char getPrimitiveChar()
142     {
143         return this.primitiveChar;
144     } //-- char getPrimitiveChar()
145 
146     /**
147      * Get <code>double</code> primitive.
148      * 
149      * @return double
150      */
151     public double getPrimitiveDouble()
152     {
153         return this.primitiveDouble;
154     } //-- double getPrimitiveDouble()
155 
156     /**
157      * Get <code>float</code> primitive.
158      * 
159      * @return float
160      */
161     public float getPrimitiveFloat()
162     {
163         return this.primitiveFloat;
164     } //-- float getPrimitiveFloat()
165 
166     /**
167      * Get <code>int</code> primitive.
168      * 
169      * @return int
170      */
171     public int getPrimitiveInt()
172     {
173         return this.primitiveInt;
174     } //-- int getPrimitiveInt()
175 
176     /**
177      * Get <code>long</code> primitive.
178      * 
179      * @return long
180      */
181     public long getPrimitiveLong()
182     {
183         return this.primitiveLong;
184     } //-- long getPrimitiveLong()
185 
186     /**
187      * Get <code>short</code> primitive.
188      * 
189      * @return short
190      */
191     public short getPrimitiveShort()
192     {
193         return this.primitiveShort;
194     } //-- short getPrimitiveShort()
195 
196     /**
197      * Get <code>boolean</code> primitive.
198      * 
199      * @return boolean
200      */
201     public boolean isPrimitiveBoolean()
202     {
203         return this.primitiveBoolean;
204     } //-- boolean isPrimitiveBoolean()
205 
206     /**
207      * Set <code>&lt;field xml.attribute="true"
208      * xml.tagName="tag-name"&gt;</code>.
209      * 
210      * @param attribute
211      */
212     public void setAttribute( String attribute )
213     {
214         this.attribute = attribute;
215     } //-- void setAttribute( String )
216 
217     /**
218      * Set <code>Date</code> class.
219      * 
220      * @param objectDate
221      */
222     public void setObjectDate( java.util.Date objectDate )
223     {
224         this.objectDate = objectDate;
225     } //-- void setObjectDate( java.util.Date )
226 
227     /**
228      * Set <code>String</code> class.
229      * 
230      * @param objectString
231      */
232     public void setObjectString( String objectString )
233     {
234         this.objectString = objectString;
235     } //-- void setObjectString( String )
236 
237     /**
238      * Set <code>boolean</code> primitive.
239      * 
240      * @param primitiveBoolean
241      */
242     public void setPrimitiveBoolean( boolean primitiveBoolean )
243     {
244         this.primitiveBoolean = primitiveBoolean;
245     } //-- void setPrimitiveBoolean( boolean )
246 
247     /**
248      * Set <code>byte</code> primitive.
249      * 
250      * @param primitiveByte
251      */
252     public void setPrimitiveByte( byte primitiveByte )
253     {
254         this.primitiveByte = primitiveByte;
255     } //-- void setPrimitiveByte( byte )
256 
257     /**
258      * Set <code>char</code> primitive.
259      * 
260      * @param primitiveChar
261      */
262     public void setPrimitiveChar( char primitiveChar )
263     {
264         this.primitiveChar = primitiveChar;
265     } //-- void setPrimitiveChar( char )
266 
267     /**
268      * Set <code>double</code> primitive.
269      * 
270      * @param primitiveDouble
271      */
272     public void setPrimitiveDouble( double primitiveDouble )
273     {
274         this.primitiveDouble = primitiveDouble;
275     } //-- void setPrimitiveDouble( double )
276 
277     /**
278      * Set <code>float</code> primitive.
279      * 
280      * @param primitiveFloat
281      */
282     public void setPrimitiveFloat( float primitiveFloat )
283     {
284         this.primitiveFloat = primitiveFloat;
285     } //-- void setPrimitiveFloat( float )
286 
287     /**
288      * Set <code>int</code> primitive.
289      * 
290      * @param primitiveInt
291      */
292     public void setPrimitiveInt( int primitiveInt )
293     {
294         this.primitiveInt = primitiveInt;
295     } //-- void setPrimitiveInt( int )
296 
297     /**
298      * Set <code>long</code> primitive.
299      * 
300      * @param primitiveLong
301      */
302     public void setPrimitiveLong( long primitiveLong )
303     {
304         this.primitiveLong = primitiveLong;
305     } //-- void setPrimitiveLong( long )
306 
307     /**
308      * Set <code>short</code> primitive.
309      * 
310      * @param primitiveShort
311      */
312     public void setPrimitiveShort( short primitiveShort )
313     {
314         this.primitiveShort = primitiveShort;
315     } //-- void setPrimitiveShort( short )
316 
317 }