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   /***
10   * "interactions" property may be an empty list but never null
11   * 
12   * @author anthonyperritano
13   * 
14   */
15  public class ItemBody {
16  
17  	private String indentifier;
18  
19  	private List<BlockInteraction> interactions = new ArrayList<BlockInteraction>();
20  
21  	private String label;
22  
23  	public ItemBody() {
24  	}
25  
26  	public ItemBody(String identifier) {
27  		this.indentifier = identifier;
28  	}
29  
30  	public void addInteraction(BlockInteraction someInteraction) {
31  		interactions.add(someInteraction);
32  	}
33  
34  	public String getIndentifier() {
35  		return indentifier;
36  	}
37  
38  	public List<BlockInteraction> getInteractions() {
39  		return interactions;
40  	}
41  
42  	public String getLabel() {
43  		return label;
44  	}
45  
46  	public void setIndentifier(String indentifier) {
47  		this.indentifier = indentifier;
48  	}
49  
50  	public void setInteractions(List<BlockInteraction> interactions) {
51  		if (interactions == null)
52  			throw new NullPointerException();
53  		this.interactions = interactions;
54  	}
55  
56  	public void setLabel(String label) {
57  		this.label = label;
58  	}
59  
60  }