View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.doxia.module.fml.model;
25  
26  /**
27   * 
28   *         A Faq.
29   *       
30   * 
31   * @version $Revision$ $Date$
32   */
33  @SuppressWarnings( "all" )
34  public class Faq
35      implements java.io.Serializable
36  {
37  
38        //--------------------------/
39       //- Class/Member Variables -/
40      //--------------------------/
41  
42      /**
43       * 
44       *             The FAQ identifier.
45       *           
46       */
47      private String id;
48  
49      /**
50       * 
51       *             The question.
52       *           
53       */
54      private String question;
55  
56      /**
57       * 
58       *             The answer.
59       *           
60       */
61      private String answer;
62  
63  
64        //-----------/
65       //- Methods -/
66      //-----------/
67  
68      /**
69       * Method equals.
70       * 
71       * @param other a other object.
72       * @return boolean
73       */
74      public boolean equals( Object other )
75      {
76          if ( this == other )
77          {
78              return true;
79          }
80  
81          if ( !( other instanceof Faq ) )
82          {
83              return false;
84          }
85  
86          Faq that = (Faq) other;
87          boolean result = true;
88  
89          result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
90          result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
91          result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
92  
93          return result;
94      } //-- boolean equals( Object )
95  
96      /**
97       * Get the answer.
98       * 
99       * @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 }