1 | public abstract class Item {↵ | | 1 | public class Parent {↵
|
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
|
3 | private String name;↵ | | 3 | private String name;↵
|
|
4 | private Folder parent;↵ | | 4 | private Col↵
|
| | | 5 | lection children = new HashSet();↵
|
5 | /**↵ | | 6 | /**↵
|
6 | * @return Returns the parent.↵ | | 7 | * @return Returns the children.↵
|
7 | */↵ | | 8 | */↵
|
|
8 | public Folder getParent() {↵ | | 9 | public Collection getChildren() {↵
|
|
9 | return parent;↵ | | 10 | return ↵
|
| | | 11 | children;↵
|
10 | }↵ | | 12 | }↵
|
|
11 | /**↵ | | 13 | /**↵
|
12 | * @param parent The parent to set.↵ | | 14 | * @param children The children to set.↵
|
13 | */↵ | | 15 | */↵
|
|
14 | public void setParent(Folder parent) {↵ | | 16 | public void setChildren(Collection children) {↵
|
|
15 | this.parent = parent;↵ | | 17 | this.children = ↵
|
| | | 18 | children;↵
|
16 | }↵ | | 19 | }↵
|
|
17 | /**↵ | | 20 | /**↵
|
18 | * @return Returns the id.↵ | | 21 | * @return Returns the id.↵
|
19 | */↵ | | 22 | */↵
|
|
20 | public Long getId() {↵ | | 23 | public Long getId() {↵
|
|
21 | return id;↵ | | 24 | return id;↵
|
|
22 | }↵ | | 25 | }↵
|
|
23 | /**↵ | | 26 | /**↵
|
24 | * @param id The id to set.↵ | | 27 | * @param id The id to set.↵
|
25 | */↵ | | 28 | */↵
|
|
26 | public void setId(Long id) {↵ | | 29 | public void setId(Long id) {↵
|
|
27 | this.id = id;↵ | | 30 | this.id = id;↵
|
|
28 | }↵ | | 31 | }↵
|
|
29 | /**↵ | | 32 | /**↵
|
30 | * @return Returns the name.↵ | | 33 | * @return Returns the name.↵
|
31 | */↵ | | 34 | */↵
|
|
32 | public String getName() {↵ | | 35 | public String getName() {↵
|
|
33 | return name;↵ | | 36 | return name;↵
|
|
34 | }↵ | | 37 | }↵
|
|
35 | /**↵ | | 38 | /**↵
|
36 | * @param name The name to set.↵ | | 39 | * @param name The name to set.↵
|
37 | */↵ | | 40 | */↵
|
|
38 | public void setName(String name) {↵ | | 41 | public void setName(String name) {↵
|
|
39 | this.name = name; | | 42 | this.name = name;↵
|
| | | 43 |
|