1 package net.sourceforge.formview.usecases.dto; 2 3 import java.util.ArrayList ; 4 import java.util.Collection ; 5 6 public class ProjectDTO { 7 8 private String id; 9 private String name; 10 private String date; 11 private ManagerDTO manager; 12 private Collection developers; 13 14 public ProjectDTO() { 15 this.developers = new ArrayList (); 16 17 } 18 19 public ProjectDTO(String id, String name, String date, ManagerDTO manager, Collection 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 getDate() { 28 return date; 29 } 30 31 public void setDate(String date) { 32 this.date = date; 33 } 34 35 public String getId() { 36 return id; 37 } 38 39 public void setId(String 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 getName() { 52 return name; 53 } 54 55 public void setName(String name) { 56 this.name = name; 57 } 58 59 public Collection getDevelopers() { 60 return developers; 61 } 62 63 public void setDevelopers(Collection developers) { 64 this.developers = developers; 65 } 66 67 public void addDeveloper(DeveloperDTO developer) { 68 developers.add(developer); 69 } 70 71 72 } 73 | Popular Tags |