001/* 002 * The Kuali Financial System, a comprehensive financial management system for higher education. 003 * 004 * Copyright 2005-2014 The Kuali Foundation 005 * 006 * This program is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU Affero General Public License as 008 * published by the Free Software Foundation, either version 3 of the 009 * License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU Affero General Public License for more details. 015 * 016 * You should have received a copy of the GNU Affero General Public License 017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 018 */ 019package org.kuali.rice.kim.api.jaxb; 020 021import java.io.Serializable; 022import java.util.ArrayList; 023import java.util.List; 024import java.util.Map; 025 026import javax.xml.bind.annotation.XmlAccessType; 027import javax.xml.bind.annotation.XmlAccessorType; 028import javax.xml.bind.annotation.XmlElement; 029import javax.xml.bind.annotation.XmlType; 030 031import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter; 032 033/** 034 * An XML element that can have zero or more StringMapEntry elements. This is similar 035 * to the StringMapEntryList, except this element's children are <qualification> elements. 036 * 037 * @author Kuali Rice Team (rice.collab@kuali.org) 038 */ 039@XmlAccessorType(XmlAccessType.FIELD) 040@XmlType(name="QualificationListType", propOrder={"qualifications"}) 041public class QualificationList implements Serializable { 042 043 private static final long serialVersionUID = 1L; 044 045 @XmlElement(name="qualification") 046 private List<MapStringStringAdapter.StringMapEntry> qualifications; 047 048 public QualificationList () { 049 qualifications = new ArrayList<MapStringStringAdapter.StringMapEntry>(); 050 } 051 052 public QualificationList(Map<String, String> map) { 053 this(); 054 for (Map.Entry<String,String> tempEntry : map.entrySet()) { 055 qualifications.add(new MapStringStringAdapter.StringMapEntry(tempEntry)); 056 } 057 } 058 059 /** 060 * @return the qualifications 061 */ 062 public List<MapStringStringAdapter.StringMapEntry> getQualifications() { 063 return this.qualifications; 064 } 065 066 /** 067 * @param qualifications the qualifications to set 068 */ 069 public void setQualifications(List<MapStringStringAdapter.StringMapEntry> qualifications) { 070 this.qualifications = qualifications; 071 } 072 073 074}