KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > formview > usecases > dto > ProjectDTO


1 package net.sourceforge.formview.usecases.dto;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.Collection JavaDoc;
5
6 public class ProjectDTO {
7
8     private String JavaDoc id;
9     private String JavaDoc name;
10     private String JavaDoc date;
11     private ManagerDTO manager;
12     private Collection JavaDoc developers;
13     
14     public ProjectDTO() {
15         this.developers = new ArrayList JavaDoc();
16         
17     }
18
19     public ProjectDTO(String JavaDoc id, String JavaDoc name, String JavaDoc date, ManagerDTO manager, Collection JavaDoc developers) {
20         this.id = id;
21         this.name = name;
22         this.date = date;
23         this.manager = manager;
24         this.developers = developers;
25     }
26
27     public String JavaDoc getDate() {
28         return date;
29     }
30
31     public void setDate(String JavaDoc date) {
32         this.date = date;
33     }
34
35     public String JavaDoc getId() {
36         return id;
37     }
38
39     public void setId(String JavaDoc id) {
40         this.id = id;
41     }
42
43     public ManagerDTO getManager() {
44         return manager;
45     }
46
47     public void setManager(ManagerDTO manager) {
48         this.manager = manager;
49     }
50
51     public String JavaDoc getName() {
52         return name;
53     }
54
55     public void setName(String JavaDoc name) {
56         this.name = name;
57     }
58
59     public Collection JavaDoc getDevelopers() {
60         return developers;
61     }
62
63     public void setDevelopers(Collection JavaDoc developers) {
64         this.developers = developers;
65     }
66     
67     public void addDeveloper(DeveloperDTO developer) {
68         developers.add(developer);
69     }
70     
71     
72 }
73
Popular Tags