1 | public class C2 extends B {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Event {↵
|
3 | private String address;↵ | | 3 | private ↵
|
4 | private C1 c1;↵ | | |
|
5 | ↵ | | 4 | Long id;↵
|
|
6 | private String c2Name;↵ | | 5 | private String ↵
|
7 | private Collection c1s = new ArrayList();↵ | | |
|
8 | /**↵ | | |
|
9 | * Returns the address.↵ | | |
|
10 | * @return String↵ | | |
|
11 | */↵ | | |
|
12 | ↵ | | 6 | title;↵
|
| | | 7 | private Date date;↵
|
|
| | | 8 | public Event() {}↵
|
|
13 | public String getAddress() {↵ | | 9 | public Long get↵
|
14 | return address;↵ | | |
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | /**↵ | | |
|
18 | * Sets the address.↵ | | |
|
19 | * @param address The address to set↵ | | |
|
20 | */↵ | | |
|
21 | public void setAddress(String address) {↵ | | |
|
22 | this.address = address;↵ | | |
|
23 | }↵ | | |
|
24 | ↵ | | |
|
25 | /**↵ | | |
|
26 | * @return Returns the c.↵ | | |
|
27 | */↵ | | |
|
28 | public C1 getC1() {↵ | | |
|
29 | return c1;↵ | | |
|
30 | }↵ | | |
|
|
31 | /**↵ | | |
|
32 | * @param c The c to set.↵ | | |
|
33 | */↵ | | |
|
34 | public void setC1(C1 c) {↵ | | |
|
35 | this.c1 = c;↵ | | |
|
36 | }↵ | | |
|
|
37 | /**↵ | | |
|
38 | * @return Returns the cs.↵ | | |
|
39 | */↵ | | |
|
40 | public Collection getC1s() {↵ | | |
|
41 | return c1s;↵ | | |
|
42 | }↵ | | |
|
|
43 | /**↵ | | |
|
44 | * @param cs The cs to set.↵ | | |
|
45 | */↵ | | |
|
46 | public void setC1s(Collection cs) {↵ | | |
|
47 | this.c1s = cs;↵ | | |
|
48 | }↵ | | |
|
|
49 | public String getC2Name() {↵ | | |
|
50 | return c2Name;↵ | | |
|
51 | }↵ | | |
|
|
52 | ↵ | | 10 | Id() {↵
|
| | | 11 | return id;↵
|
| | | 12 | }↵
|
|
| | | 13 | private void setId(Long id) {↵
|
| | | 14 | this.id = id;↵
|
| | | 15 | }↵
|
|
| | | 16 | public Date getDate() {↵
|
| | | 17 | return date;↵
|
| | | 18 | }↵
|
|
| | | 19 | public void setDate(Date date) {↵
|
| | | 20 | this.date = date;↵
|
| | | 21 | }↵
|
|
| | | 22 | public String getTitle() {↵
|
| | | 23 | return title;↵
|
| | | 24 | }↵
|
|
| | | 25 | public void setTitle(String title) {↵
|
| | | 26 | this.title = title;↵
|
| | | 27 | }↵
|
| | | 28 | ↵
|
|
| | | 29 | private Set participants = new HashSet();↵
|
|
| | | 30 | public Set getParticipants() {↵
|
| | | 31 | return participants;↵
|
| | | 32 | }↵
|
|
53 | public void setC2Name(String name) {↵ | | 33 | public void set↵
|
54 | c2Name = name | | 34 | Participants(Set participants) {↵
|
| | | 35 | this.participants = participants
|