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