KickJava   Java API By Example, From Geeks To Geeks.

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


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