001/*
002 =================== DO NOT EDIT THIS FILE ====================
003 Generated by Modello 1.9.0-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 * <code>&lt;field xml.attribute="true"&gt;</code>: fields as XML
019 * attribute instead of element,
020 *         for every simple type.
021 *       
022 * 
023 * @version $Revision$ $Date$
024 */
025@SuppressWarnings( "all" )
026public class XmlAttributes
027    implements java.io.Serializable
028{
029
030      //--------------------------/
031     //- Class/Member Variables -/
032    //--------------------------/
033
034    /**
035     * <code>boolean</code> primitive.
036     */
037    private boolean primitiveBoolean = true;
038
039    /**
040     * <code>char</code> primitive.
041     */
042    private char primitiveChar = 'H';
043
044    /**
045     * <code>byte</code> primitive.
046     */
047    private byte primitiveByte = 12;
048
049    /**
050     * <code>short</code> primitive.
051     */
052    private short primitiveShort = 1212;
053
054    /**
055     * <code>int</code> primitive.
056     */
057    private int primitiveInt = 121212;
058
059    /**
060     * <code>long</code> primitive.
061     */
062    private long primitiveLong = 1234567890123L;
063
064    /**
065     * <code>float</code> primitive.
066     */
067    private float primitiveFloat = 12.12f;
068
069    /**
070     * <code>double</code> primitive.
071     */
072    private double primitiveDouble = 12.12;
073
074    /**
075     * <code>String</code> class.
076     */
077    private String objectString = "default value";
078
079    /**
080     * <code>Date</code> class.
081     */
082    private java.util.Date objectDate;
083
084    /**
085     * <code>&lt;field xml.attribute="true"
086     * xml.tagName="tag-name"&gt;</code>.
087     */
088    private String attribute = "default";
089
090
091      //-----------/
092     //- Methods -/
093    //-----------/
094
095    /**
096     * Get <code>&lt;field xml.attribute="true"
097     * xml.tagName="tag-name"&gt;</code>.
098     * 
099     * @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}