001/*
002 Licensed to the Apache Software Foundation (ASF) under one
003 or more contributor license agreements.  See the NOTICE file
004 distributed with this work for additional information
005 regarding copyright ownership.  The ASF licenses this file
006 to you under the Apache License, Version 2.0 (the
007 "License"); you may not use this file except in compliance
008 with the License.  You may obtain a copy of the License at
009 
010     http://www.apache.org/licenses/LICENSE-2.0
011 
012 Unless required by applicable law or agreed to in writing,
013 software distributed under the License is distributed on an
014 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 KIND, either express or implied.  See the License for the
016 specific language governing permissions and limitations
017 under the License.
018 =================== DO NOT EDIT THIS FILE ====================
019 Generated by Modello 2.5.1,
020 any modifications will be overwritten.
021 ==============================================================
022 */
023
024package org.apache.maven.doxia.module.fml.model;
025
026/**
027 * 
028 *         A Faq.
029 *       
030 * 
031 * @version $Revision$ $Date$
032 */
033@SuppressWarnings( "all" )
034public class Faq
035    implements java.io.Serializable
036{
037
038      //--------------------------/
039     //- Class/Member Variables -/
040    //--------------------------/
041
042    /**
043     * 
044     *             The FAQ identifier.
045     *           
046     */
047    private String id;
048
049    /**
050     * 
051     *             The question.
052     *           
053     */
054    private String question;
055
056    /**
057     * 
058     *             The answer.
059     *           
060     */
061    private String answer;
062
063
064      //-----------/
065     //- Methods -/
066    //-----------/
067
068    /**
069     * Method equals.
070     * 
071     * @param other a other object.
072     * @return boolean
073     */
074    public boolean equals( Object other )
075    {
076        if ( this == other )
077        {
078            return true;
079        }
080
081        if ( !( other instanceof Faq ) )
082        {
083            return false;
084        }
085
086        Faq that = (Faq) other;
087        boolean result = true;
088
089        result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
090        result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
091        result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
092
093        return result;
094    } //-- boolean equals( Object )
095
096    /**
097     * Get the answer.
098     * 
099     * @return String
100     */
101    public String getAnswer()
102    {
103        return this.answer;
104    } //-- String getAnswer()
105
106    /**
107     * Get the FAQ identifier.
108     * 
109     * @return String
110     */
111    public String getId()
112    {
113        return this.id;
114    } //-- String getId()
115
116    /**
117     * Get the question.
118     * 
119     * @return String
120     */
121    public String getQuestion()
122    {
123        return this.question;
124    } //-- String getQuestion()
125
126    /**
127     * Method hashCode.
128     * 
129     * @return int
130     */
131    public int hashCode()
132    {
133        int result = 17;
134
135        result = 37 * result + ( id != null ? id.hashCode() : 0 );
136        result = 37 * result + ( question != null ? question.hashCode() : 0 );
137        result = 37 * result + ( answer != null ? answer.hashCode() : 0 );
138
139        return result;
140    } //-- int hashCode()
141
142    /**
143     * Set the answer.
144     * 
145     * @param answer a answer object.
146     */
147    public void setAnswer( String answer )
148    {
149        this.answer = answer;
150    } //-- void setAnswer( String )
151
152    /**
153     * Set the FAQ identifier.
154     * 
155     * @param id a id object.
156     */
157    public void setId( String id )
158    {
159        this.id = id;
160    } //-- void setId( String )
161
162    /**
163     * Set the question.
164     * 
165     * @param question a question object.
166     */
167    public void setQuestion( String question )
168    {
169        this.question = question;
170    } //-- void setQuestion( String )
171
172    /**
173     * Method toString.
174     * 
175     * @return String
176     */
177    public java.lang.String toString()
178    {
179        StringBuilder buf = new StringBuilder( 128 );
180
181        buf.append( "id = '" );
182        buf.append( getId() );
183        buf.append( "'" );
184        buf.append( "\n" ); 
185        buf.append( "question = '" );
186        buf.append( getQuestion() );
187        buf.append( "'" );
188        buf.append( "\n" ); 
189        buf.append( "answer = '" );
190        buf.append( getAnswer() );
191        buf.append( "'" );
192
193        return buf.toString();
194    } //-- java.lang.String toString()
195
196}