View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.rice.kim.api.jaxb;
20  
21  import java.io.Serializable;
22  import java.util.ArrayList;
23  import java.util.List;
24  import java.util.Map;
25  
26  import javax.xml.bind.annotation.XmlAccessType;
27  import javax.xml.bind.annotation.XmlAccessorType;
28  import javax.xml.bind.annotation.XmlElement;
29  import javax.xml.bind.annotation.XmlType;
30  
31  import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter;
32  
33  /**
34   * An XML element that can have zero or more StringMapEntry elements. This is similar
35   * to the StringMapEntryList, except this element's children are &lt;qualification&gt; elements.
36   * 
37   * @author Kuali Rice Team (rice.collab@kuali.org)
38   */
39  @XmlAccessorType(XmlAccessType.FIELD)
40  @XmlType(name="QualificationListType", propOrder={"qualifications"})
41  public class QualificationList implements Serializable {
42      
43      private static final long serialVersionUID = 1L;
44      
45      @XmlElement(name="qualification")
46      private List<MapStringStringAdapter.StringMapEntry> qualifications;
47      
48      public QualificationList () {
49          qualifications = new ArrayList<MapStringStringAdapter.StringMapEntry>();
50      }
51      
52      public QualificationList(Map<String, String> map) {
53          this();
54          for (Map.Entry<String,String> tempEntry : map.entrySet()) {
55              qualifications.add(new MapStringStringAdapter.StringMapEntry(tempEntry));
56          }
57      }
58  
59      /**
60       * @return the qualifications
61       */
62      public List<MapStringStringAdapter.StringMapEntry> getQualifications() {
63          return this.qualifications;
64      }
65  
66      /**
67       * @param qualifications the qualifications to set
68       */
69      public void setQualifications(List<MapStringStringAdapter.StringMapEntry> qualifications) {
70          this.qualifications = qualifications;
71      }
72  
73      
74  }