KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > bean > Department


1 package com.sun.facelets.bean;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6 public final class Department {
7
8     private String JavaDoc name;
9     private List JavaDoc employees;
10     private Employee director;
11     
12     public Department() {
13         super();
14         this.employees = new ArrayList JavaDoc();
15     }
16
17     public Employee getDirector() {
18         return director;
19     }
20
21     public void setDirector(Employee director) {
22         this.director = director;
23     }
24
25     public List JavaDoc getEmployees() {
26         return employees;
27     }
28
29     public void setEmployees(List JavaDoc employees) {
30         this.employees = employees;
31     }
32
33     public String JavaDoc getName() {
34         return name;
35     }
36
37     public void setName(String JavaDoc name) {
38         this.name = name;
39     }
40
41 }
42
Popular Tags