View Javadoc
1   /*
2    * Copyright 2007 Kasper B. Graversen
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.supercsv.mock.dozer;
17  
18  import java.util.List;
19  
20  /**
21   * A person's response to a survey.
22   */
23  public class SurveyResponse {
24  	
25  	private int age;
26  	
27  	private Boolean consentGiven;
28  	
29  	private List<Answer> answers;
30  	
31  	public SurveyResponse() {
32  	}
33  
34  	public SurveyResponse(final int age, final Boolean consentGiven, final List<Answer> answers) {
35  		this.age = age;
36  		this.consentGiven = consentGiven;
37  		this.answers = answers;
38  	}
39  
40  	public int getAge() {
41  		return age;
42  	}
43  	
44  	public void setAge(int age) {
45  		this.age = age;
46  	}
47  	
48  	public Boolean getConsentGiven() {
49  		return consentGiven;
50  	}
51  	
52  	public void setConsentGiven(Boolean consentGiven) {
53  		this.consentGiven = consentGiven;
54  	}
55  	
56  	public List<Answer> getAnswers() {
57  		return answers;
58  	}
59  	
60  	public void setAnswers(List<Answer> answers) {
61  		this.answers = answers;
62  	}
63  	
64  	@Override
65  	public String toString() {
66  		return String.format("SurveyResponse [age=%s, consentGiven=%s, answers=%s]", age, consentGiven, answers);
67  	}
68  	
69  }