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