// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package xmlproc;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Employees {
	private List<Employee> list = new ArrayList<>();
    @XmlElements(@XmlElement(name="employee",type=Employee.class))
    public List<Employee> getList(){
    	return list;
    }
    public void setList(List<Employee> list) {
    	this.list = list;
    }
    @Override
	public String toString() {
    	return list.toString();
    }
}
