View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-11-14 22:15:37,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.doxia.module.fml.model;
9   
10  /**
11   * 
12   *         A Faq.
13   *       
14   * 
15   * @version $Revision$ $Date$
16   */
17  @SuppressWarnings( "all" )
18  public class Faq
19      implements java.io.Serializable
20  {
21  
22        //--------------------------/
23       //- Class/Member Variables -/
24      //--------------------------/
25  
26      /**
27       * 
28       *             The FAQ identifier.
29       *           
30       */
31      private String id;
32  
33      /**
34       * 
35       *             The question.
36       *           
37       */
38      private String question;
39  
40      /**
41       * 
42       *             The answer.
43       *           
44       */
45      private String answer;
46  
47  
48        //-----------/
49       //- Methods -/
50      //-----------/
51  
52      /**
53       * Method equals.
54       * 
55       * @param other
56       * @return boolean
57       */
58      public boolean equals( Object other )
59      {
60          if ( this == other )
61          {
62              return true;
63          }
64  
65          if ( !( other instanceof Faq ) )
66          {
67              return false;
68          }
69  
70          Faq that = (Faq) other;
71          boolean result = true;
72  
73          result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
74          result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) );
75          result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) );
76  
77          return result;
78      } //-- boolean equals( Object )
79  
80      /**
81       * Get the answer.
82       * 
83       * @return String
84       */
85      public String getAnswer()
86      {
87          return this.answer;
88      } //-- String getAnswer()
89  
90      /**
91       * Get the FAQ identifier.
92       * 
93       * @return String
94       */
95      public String getId()
96      {
97          return this.id;
98      } //-- String getId()
99  
100     /**
101      * Get the question.
102      * 
103      * @return String
104      */
105     public String getQuestion()
106     {
107         return this.question;
108     } //-- String getQuestion()
109 
110     /**
111      * Method hashCode.
112      * 
113      * @return int
114      */
115     public int hashCode()
116     {
117         int result = 17;
118 
119         result = 37 * result + ( id != null ? id.hashCode() : 0 );
120         result = 37 * result + ( question != null ? question.hashCode() : 0 );
121         result = 37 * result + ( answer != null ? answer.hashCode() : 0 );
122 
123         return result;
124     } //-- int hashCode()
125 
126     /**
127      * Set the answer.
128      * 
129      * @param answer
130      */
131     public void setAnswer( String answer )
132     {
133         this.answer = answer;
134     } //-- void setAnswer( String )
135 
136     /**
137      * Set the FAQ identifier.
138      * 
139      * @param id
140      */
141     public void setId( String id )
142     {
143         this.id = id;
144     } //-- void setId( String )
145 
146     /**
147      * Set the question.
148      * 
149      * @param question
150      */
151     public void setQuestion( String question )
152     {
153         this.question = question;
154     } //-- void setQuestion( String )
155 
156     /**
157      * Method toString.
158      * 
159      * @return String
160      */
161     public java.lang.String toString()
162     {
163         StringBuilder buf = new StringBuilder( 128 );
164 
165         buf.append( "id = '" );
166         buf.append( getId() );
167         buf.append( "'" );
168         buf.append( "\n" ); 
169         buf.append( "question = '" );
170         buf.append( getQuestion() );
171         buf.append( "'" );
172         buf.append( "\n" ); 
173         buf.append( "answer = '" );
174         buf.append( getAnswer() );
175         buf.append( "'" );
176 
177         return buf.toString();
178     } //-- java.lang.String toString()
179 
180 }