View Javadoc

1   /***
2    * 
3    */
4   package org.telscenter.pas.steps.domain;
5   
6   import java.util.ArrayList;
7   import java.util.List;
8   
9   import org.apache.commons.lang.builder.ToStringBuilder;
10  
11  import net.sf.sail.core.entity.Rim;
12  
13  /***
14   * @author anthonyperritano
15   */
16  public class ResponseDeclaration {
17  
18  	private List<String> correctResponses = new ArrayList<String>();
19  
20  	private String identifier;
21  
22  	private Rim<String> rim;
23  
24  	private String tempChoice;
25  
26  	public ResponseDeclaration() {
27  	}
28  
29  	public void addCorrectResponse(String responseIdentifier) {
30  		if (correctResponses != null) {
31  			correctResponses.add(responseIdentifier);
32  		}// if
33  	}
34  
35  	public List<String> getCorrectResponses() {
36  		return correctResponses;
37  	}
38  
39  	public String getIdentifier() {
40  		return identifier;
41  	}
42  
43  	public Rim<String> getRim() {
44  		return rim;
45  	}
46  
47  	public String getTempChoice() {
48  		return tempChoice;
49  	}
50  
51  	public void setCorrectResponses(List<String> correctResponses) {
52  		this.correctResponses = correctResponses;
53  	}
54  
55  	public void setIdentifier(String identifier) {
56  		this.identifier = identifier;
57  	}
58  
59  	public void setRim(Rim<String> rim) {
60  		this.rim = rim;
61  	}
62  
63  	public void setTempChoice(String tempChoice) {
64  		this.tempChoice = tempChoice;
65  	}
66  
67  	public String toString() {
68  		return ToStringBuilder.reflectionToString(this);
69  	}
70  }