View Javadoc
1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    
4    Generated by Modello 2.4.0,
5    
6    any modifications will be overwritten.
7    
8    ==============================================================
9    */
10  
11  package org.apache.maven.doxia.module.fml.model;
12  
13  /**
14   * 
15   *         A Faq.
16   *       
17   * 
18   * @version $Revision$ $Date$
19   */
20  @SuppressWarnings( "all" )
21  public class Faq
22      implements java.io.Serializable
23  {
24  
25        //--------------------------/
26       //- Class/Member Variables -/
27      //--------------------------/
28  
29      /**
30       * 
31       *             The FAQ identifier.
32       *           
33       */
34      private String id;
35  
36      /**
37       * 
38       *             The question.
39       *           
40       */
41      private String question;
42  
43      /**
44       * 
45       *             The answer.
46       *           
47       */
48      private String answer;
49  
50  
51        //-----------/
52       //- Methods -/
53      //-----------/
54  
55      /**
56       * Method equals.
57       * 
58       * @param other a other object.
59       * @return boolean
60       */
61      public boolean equals( Object other )
62      {
63          if ( this == other )
64          {
65              return true;
66          }
67  
68          if ( !( other instanceof Faq ) )
69          {
70              return false;
71          }
72  
73          Faq that = (Faq) other;
74          boolean result = true;
75  
76          result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
77          result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
78          result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
79  
80          return result;
81      } //-- boolean equals( Object )
82  
83      /**
84       * Get the answer.
85       * 
86       * @return String
87       */
88      public String getAnswer()
89      {
90          return this.answer;
91      } //-- String getAnswer()
92  
93      /**
94       * Get the FAQ identifier.
95       * 
96       * @return String
97       */
98      public String getId()
99      {
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 }