001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 2.3.0,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.codehaus.modello.test.features;
007
008  //---------------------------------/
009 //- Imported classes and packages -/
010//---------------------------------/
011
012import org.codehaus.modello.test.features.other.PackageNameFeature;
013import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
014
015/**
016 * A model class that has only XMl attributes fields and exactly
017 * one field with
018 *         <code>Content</code> type.
019 * 
020 * @version $Revision$ $Date$
021 */
022@SuppressWarnings( "all" )
023public class ContentTest
024    implements java.io.Serializable
025{
026
027      //--------------------------/
028     //- Class/Member Variables -/
029    //--------------------------/
030
031    /**
032     * The field of the class with <code>Content</code> type.
033     */
034    private String content;
035
036    /**
037     * An XML attribute.
038     */
039    private String attr;
040
041    /**
042     * A 2nd XML attribute.
043     */
044    private int attr2 = 0;
045
046
047      //-----------/
048     //- Methods -/
049    //-----------/
050
051    /**
052     * Get an XML attribute.
053     * 
054     * @return String
055     */
056    public String getAttr()
057    {
058        return this.attr;
059    } //-- String getAttr()
060
061    /**
062     * Get a 2nd XML attribute.
063     * 
064     * @return int
065     */
066    public int getAttr2()
067    {
068        return this.attr2;
069    } //-- int getAttr2()
070
071    /**
072     * Get the field of the class with <code>Content</code> type.
073     * 
074     * @return String
075     */
076    public String getContent()
077    {
078        return this.content;
079    } //-- String getContent()
080
081    /**
082     * Set an XML attribute.
083     * 
084     * @param attr a attr object.
085     */
086    public void setAttr( String attr )
087    {
088        this.attr = attr;
089    } //-- void setAttr( String )
090
091    /**
092     * Set a 2nd XML attribute.
093     * 
094     * @param attr2 a attr2 object.
095     */
096    public void setAttr2( int attr2 )
097    {
098        this.attr2 = attr2;
099    } //-- 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}