1 | public class C2 extends B {↵ | | 1 | public class Several implements Serializable {↵
|
2 | private String address;↵ | | 2 | private String id;↵
|
3 | private C1 c1;↵ | | 3 | private String prop;↵
|
4 | private String c2Name;↵ | | 4 | private Single single;↵
|
5 | private Collection c1s = new ArrayList();↵ | | 5 | private String string;↵
|
6 | /**↵ | | 6 | /**↵
|
7 | * Returns the address.↵ | | 7 | * Returns the id.↵
|
8 | * @return String↵ | | 8 | * @return String↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getAddress() {↵ | | 10 | public String getId() {↵
|
11 | return address;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
13 | ↵ | | 13 | ↵
|
14 | /**↵ | | 14 | /**↵
|
15 | * Sets the address.↵ | | 15 | * Returns the ↵
|
16 | * @param address The address to set↵ | | |
|
17 | */↵ | | |
|
18 | public void setAddress(String address) {↵ | | |
|
19 | this.address = address↵ | | 16 | prop.↵
|
| | | 17 | * @return String↵
|
| | | 18 | */↵
|
| | | 19 | public String getProp() {↵
|
20 | ;↵ | | 20 | return prop;↵
|
21 | }↵ | | 21 | }↵
|
22 | ↵ | | 22 | ↵
|
23 | /**↵ | | 23 | /**↵
|
24 | * @return Returns the c.↵ | | 24 | * Return↵
|
25 | */↵ | | |
|
26 | public C1 getC1↵ | | 25 | s the single.↵
|
| | | 26 | * @return Single↵
|
| | | 27 | */↵
|
27 | () {↵ | | 28 | public Single getSingle() {↵
|
28 | return c1;↵ | | 29 | return single;↵
|
29 | }↵ | | 30 | }↵
|
| | | 31 | ↵
|
30 | /**↵ | | 32 | /**↵
|
31 | ↵ | | 33 | * Sets the id.↵
|
32 | * @param c The c to set.↵ | | 34 | * @param id The id to set↵
|
33 | */↵ | | 35 | */↵
|
34 | public void setC1(C1 c) {↵ | | 36 | public void setId(String id) {↵
|
35 | this.c1 = c;↵ | | 37 | this.id = id;↵
|
36 | }↵ | | 38 | }↵
|
| | | 39 | ↵
|
37 | /**↵ | | 40 | /**↵
|
38 | * @return Returns the cs.↵ | | 41 | * ↵
|
39 | */↵ | | |
|
40 | public Collection getC1s() {↵ | | |
|
41 | return c1s↵ | | 42 | Sets the prop.↵
|
| | | 43 | * @param prop The prop to set↵
|
| | | 44 | */↵
|
| | | 45 | public void setProp(String prop) {↵
|
42 | ;↵ | | 46 | this.prop = prop;↵
|
43 | }↵ | | 47 | }↵
|
| | | 48 | ↵
|
44 | /**↵ | | 49 | /**↵
|
45 | ↵ | | 50 | * Sets the single.↵
|
46 | * @param cs The cs to set.↵ | | 51 | * @param single The single to set↵
|
47 | */↵ | | 52 | */↵
|
48 | public void setC1s(Collection cs) {↵ | | 53 | public void setSingle(Single single) {↵
|
49 | this.c1s = cs;↵ | | 54 | this.↵
|
50 | }↵ | | |
|
| | | 55 | single = single;↵
|
| | | 56 | }↵
|
| | | 57 | ↵
|
| | | 58 | /**↵
|
| | | 59 | * Returns the string.↵
|
| | | 60 | * @return String↵
|
| | | 61 | */↵
|
51 | public String getC2Name() {↵ | | 62 | public String getString() {↵
|
52 | return c2Name;↵ | | 63 | return ↵
|
53 | }↵ | | |
|
| | | 64 | string;↵
|
| | | 65 | }↵
|
| | | 66 | ↵
|
| | | 67 | /**↵
|
| | | 68 | * Sets the string.↵
|
| | | 69 | * @param string The string to set↵
|
| | | 70 | */↵
|
54 | public void setC2Name(String name) {↵ | | 71 | public void setString(String ↵
|
55 | c2Name = name↵ | | 72 | string) {↵
|
56 | ;↵ | | 73 | this.string = string;↵
|
57 | | | 74 |
|