Coverage Report - org.kuali.student.lum.course.dto.CourseExpenditureInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseExpenditureInfo
0%
0/11
0%
0/4
1.5
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.lum.course.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.HashMap;
 21  
 import java.util.List;
 22  
 import java.util.Map;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 28  
 
 29  
 import org.kuali.student.common.dto.HasAttributes;
 30  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 31  
 import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo;
 32  
 
 33  
 /**
 34  
  * Detailed information about expenditure for the course.
 35  
  *
 36  
  * @Author KSContractMojo
 37  
  * @Author Daniel Epstein
 38  
  * @Since Mon Jul 26 14:12:42 EDT 2010
 39  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/courseExpenditureInfo+Structure">CourseExpenditureInfo</>
 40  
  *
 41  
  */
 42  
 @XmlAccessorType(XmlAccessType.FIELD)
 43  0
 public class CourseExpenditureInfo implements Serializable, HasAttributes {
 44  
 
 45  
     private static final long serialVersionUID = 1L;
 46  
 
 47  
     @XmlElement
 48  
     private List<AffiliatedOrgInfo> affiliatedOrgs;
 49  
 
 50  
     @XmlElement
 51  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 52  
     private Map<String, String> attributes;
 53  
 
 54  
     /**
 55  
      * List of affiliated organizations.
 56  
      */
 57  
     public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
 58  0
         if (affiliatedOrgs == null) {
 59  0
             affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
 60  
         }
 61  0
         return affiliatedOrgs;
 62  
     }
 63  
 
 64  
     public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
 65  0
         this.affiliatedOrgs = affiliatedOrgs;
 66  0
     }
 67  
 
 68  
     /**
 69  
      * List of key/value pairs, typically used for dynamic attributes.
 70  
      */
 71  
     public Map<String, String> getAttributes() {
 72  0
         if (attributes == null) {
 73  0
             attributes = new HashMap<String, String>();
 74  
         }
 75  0
         return attributes;
 76  
     }
 77  
 
 78  
     public void setAttributes(Map<String, String> attributes) {
 79  0
         this.attributes = attributes;
 80  0
     }
 81  
 }