1 | public class Several implements Serializable {↵ | | 1 | public class Single implements Serializable {↵
|
2 | private String id;↵ | | 2 | private String id;↵
|
3 | private String prop;↵ | | 3 | private String prop;↵
|
4 | private Single single;↵ | | 4 | private String string;↵
|
5 | private String string;↵ | | 5 | private Collection several = new HashSet();↵
|
6 | /**↵ | | 6 | /**↵
|
7 | * Returns the id.↵ | | 7 | * Returns the id.↵
|
8 | * @return String↵ | | 8 | * @return String↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getId() {↵ | | 10 | public String getId() {↵
|
11 | return id;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
13 | ↵ | | 13 | ↵
|
14 | /**↵ | | 14 | /**↵
|
15 | * Returns the prop.↵ | | 15 | * Returns the prop.↵
|
16 | * @return String↵ | | 16 | * @return String↵
|
17 | */↵ | | 17 | */↵
|
18 | public String getProp() {↵ | | 18 | public String getProp() {↵
|
19 | return prop;↵ | | 19 | return prop;↵
|
20 | }↵ | | 20 | }↵
|
21 | ↵ | | 21 | ↵
|
22 | /**↵ | | 22 | /**↵
|
23 | * Returns the single.↵ | | 23 | * Returns the several.↵
|
24 | * @return Single↵ | | 24 | * @return Set↵
|
25 | */↵ | | 25 | */↵
|
26 | public Single getSingle() {↵ | | 26 | public Collection getSeveral() {↵
|
27 | return single;↵ | | 27 | return several;↵
|
28 | }↵ | | 28 | }↵
|
29 | ↵ | | 29 | ↵
|
30 | /**↵ | | 30 | /**↵
|
31 | * Sets the id.↵ | | 31 | * Sets the id.↵
|
32 | * @param id The id to set↵ | | 32 | * @param id The id to set↵
|
33 | */↵ | | 33 | */↵
|
34 | public void setId(String id) {↵ | | 34 | public void setId(String id) {↵
|
35 | this.id = id;↵ | | 35 | this.id = id;↵
|
36 | }↵ | | 36 | }↵
|
37 | ↵ | | 37 | ↵
|
38 | /**↵ | | 38 | /**↵
|
39 | * Sets the prop.↵ | | 39 | * Sets the prop.↵
|
40 | * @param prop The prop to set↵ | | 40 | * @param prop The prop to set↵
|
41 | */↵ | | 41 | */↵
|
42 | public void setProp(String prop) {↵ | | 42 | public void setProp(String prop) {↵
|
43 | this.prop = prop;↵ | | 43 | this.prop = prop;↵
|
44 | }↵ | | 44 | }↵
|
45 | ↵ | | 45 | ↵
|
46 | /**↵ | | 46 | /**↵
|
47 | * Sets the single.↵ | | 47 | * Sets the several.↵
|
48 | * @param single The single to set↵ | | 48 | * @param several The several to set↵
|
49 | */↵ | | 49 | */↵
|
50 | public void setSingle(Single single) {↵ | | 50 | public void setS↵
|
51 | this.single = single↵ | | 51 | everal(Collection several) {↵
|
52 | ;↵ | | 52 | this.several = several;↵
|
53 | }↵ | | 53 | }↵
|
54 | ↵ | | 54 | ↵
|
55 | /**↵ | | 55 | /**↵
|
56 | * Returns the string.↵ | | 56 | * Returns the string.↵
|
57 | * @return String↵ | | 57 | * @return String↵
|
58 | */↵ | | 58 | */↵
|
59 | public String getString() {↵ | | 59 | public String getString() {↵
|
60 | return string;↵ | | 60 | return string;↵
|
61 | }↵ | | 61 | }↵
|
62 | ↵ | | 62 | ↵
|
63 | /**↵ | | 63 | /**↵
|
64 | * Sets the string.↵ | | 64 | * Sets the string.↵
|
65 | * @param string The string to set↵ | | 65 | * @param string The string to set↵
|
66 | */↵ | | 66 | */↵
|
67 | public void setString(String string) {↵ | | 67 | public void setString(String string) {↵
|
68 | this.string = string;↵ | | 68 | this.string = string;↵
|
69 | | | 69 |
|