1 package com.sun.facelets.bean; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 public final class Company { 7 8 private List departments; 9 private String name; 10 private Employee president; 11 12 public Company() { 13 super(); 14 this.departments = new ArrayList (); 15 } 16 17 public List getDepartments() { 18 return departments; 19 } 20 21 public void setDepartments(List departments) { 22 this.departments = departments; 23 } 24 25 public String getName() { 26 return name; 27 } 28 29 public void setName(String 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 |