KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > instrument > Folder


1 //$Id: Folder.java,v 1.2 2005/06/19 02:01:04 oneovthafew Exp $
2
package org.hibernate.test.instrument;
3
4 import java.util.ArrayList JavaDoc;
5 import java.util.Collection JavaDoc;
6
7 /**
8  * @author Gavin King
9  */

10 public class Folder {
11     private Long JavaDoc id;
12     private String JavaDoc name;
13     private Folder parent;
14     private Collection JavaDoc subfolders = new ArrayList JavaDoc();
15     private Collection JavaDoc documents = new ArrayList JavaDoc();
16     boolean nameWasread;
17     
18     /**
19      * @return Returns the id.
20      */

21     public Long JavaDoc getId() {
22         return id;
23     }
24     /**
25      * @param id The id to set.
26      */

27     public void setId(Long JavaDoc id) {
28         this.id = id;
29     }
30     /**
31      * @return Returns the name.
32      */

33     public String JavaDoc getName() {
34         nameWasread = true;
35         return name;
36     }
37     /**
38      * @param name The name to set.
39      */

40     public void setName(String JavaDoc name) {
41         this.name = name;
42     }
43     /**
44      * @return Returns the documents.
45      */

46     public Collection JavaDoc getDocuments() {
47         return documents;
48     }
49     /**
50      * @param documents The documents to set.
51      */

52     public void setDocuments(Collection JavaDoc documents) {
53         this.documents = documents;
54     }
55     /**
56      * @return Returns the parent.
57      */

58     public Folder getParent() {
59         return parent;
60     }
61     /**
62      * @param parent The parent to set.
63      */

64     public void setParent(Folder parent) {
65         this.parent = parent;
66     }
67     /**
68      * @return Returns the subfolders.
69      */

70     public Collection JavaDoc getSubfolders() {
71         return subfolders;
72     }
73     /**
74      * @param subfolders The subfolders to set.
75      */

76     public void setSubfolders(Collection JavaDoc subfolders) {
77         this.subfolders = subfolders;
78     }
79 }
80
Popular Tags