/** * Copyright 2010 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.drools.runtime.pipeline.impl; import java.util.ArrayList; import java.util.List; /** * Sample Department bean to demostrate main excel export features * author: Leonid Vysochyn */ public class Department { private String name; private Employee chief = new Employee(); private List staff = new ArrayList(); public Department() { } public Department(String name) { this.name = name; } public Department(String name, Employee chief, List staff) { this.name = name; this.chief = chief; this.staff = staff; } public void addEmployee(Employee employee) { this.staff.add(employee); } public String getName() { return name; } public void setName(String name) { this.name = name; } public Employee getChief() { return chief; } public void setChief(Employee chief) { this.chief = chief; } public List getStaff() { return staff; } public void setStaff(List staff) { this.staff = staff; } public String toString() { return "[Department name : " + this.name + " chief : " + this.chief + " staff : " + this.staff + "]"; } }