001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 2.1.2,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.maven.doxia.module.fml.model;
007
008/**
009 * 
010 *         A Faq.
011 *       
012 * 
013 * @version $Revision$ $Date$
014 */
015@SuppressWarnings( "all" )
016public class Faq
017    implements java.io.Serializable
018{
019
020      //--------------------------/
021     //- Class/Member Variables -/
022    //--------------------------/
023
024    /**
025     * 
026     *             The FAQ identifier.
027     *           
028     */
029    private String id;
030
031    /**
032     * 
033     *             The question.
034     *           
035     */
036    private String question;
037
038    /**
039     * 
040     *             The answer.
041     *           
042     */
043    private String answer;
044
045
046      //-----------/
047     //- Methods -/
048    //-----------/
049
050    /**
051     * Method equals.
052     * 
053     * @param other a other object.
054     * @return boolean
055     */
056    public boolean equals( Object other )
057    {
058        if ( this == other )
059        {
060            return true;
061        }
062
063        if ( !( other instanceof Faq ) )
064        {
065            return false;
066        }
067
068        Faq that = (Faq) other;
069        boolean result = true;
070
071        result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
072        result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
073        result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
074
075        return result;
076    } //-- boolean equals( Object )
077
078    /**
079     * Get the answer.
080     * 
081     * @return String
082     */
083    public String getAnswer()
084    {
085        return this.answer;
086    } //-- String getAnswer()
087
088    /**
089     * Get the FAQ identifier.
090     * 
091     * @return String
092     */
093    public String getId()
094    {
095        return this.id;
096    } //-- String getId()
097
098    /**
099     * Get the question.
100     * 
101     * @return String
102     */
103    public String getQuestion()
104    {
105        return this.question;
106    } //-- String getQuestion()
107
108    /**
109     * Method hashCode.
110     * 
111     * @return int
112     */
113    public int hashCode()
114    {
115        int result = 17;
116
117        result = 37 * result + ( id != null ? id.hashCode() : 0 );
118        result = 37 * result + ( question != null ? question.hashCode() : 0 );
119        result = 37 * result + ( answer != null ? answer.hashCode() : 0 );
120
121        return result;
122    } //-- int hashCode()
123
124    /**
125     * Set the answer.
126     * 
127     * @param answer a answer object.
128     */
129    public void setAnswer( String answer )
130    {
131        this.answer = answer;
132    } //-- void setAnswer( String )
133
134    /**
135     * Set the FAQ identifier.
136     * 
137     * @param id a id object.
138     */
139    public void setId( String id )
140    {
141        this.id = id;
142    } //-- void setId( String )
143
144    /**
145     * Set the question.
146     * 
147     * @param question a question object.
148     */
149    public void setQuestion( String question )
150    {
151        this.question = question;
152    } //-- void setQuestion( String )
153
154    /**
155     * Method toString.
156     * 
157     * @return String
158     */
159    public java.lang.String toString()
160    {
161        StringBuilder buf = new StringBuilder( 128 );
162
163        buf.append( "id = '" );
164        buf.append( getId() );
165        buf.append( "'" );
166        buf.append( "\n" ); 
167        buf.append( "question = '" );
168        buf.append( getQuestion() );
169        buf.append( "'" );
170        buf.append( "\n" ); 
171        buf.append( "answer = '" );
172        buf.append( getAnswer() );
173        buf.append( "'" );
174
175        return buf.toString();
176    } //-- java.lang.String toString()
177
178}