Coverage Report - org.kuali.rice.core.util.jaxb.StringMapEntryList
 
Classes in this File Line Coverage Branch Coverage Complexity
StringMapEntryList
88%
8/9
50%
1/2
1.667
 
 1  
 /*
 2  
  * Copyright 2007-2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.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/ecl2.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.rice.core.util.jaxb;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 @XmlAccessorType(XmlAccessType.FIELD)
 28  
 @XmlType(name = "StringMapEntryListType")
 29  
 public class StringMapEntryList implements Serializable {
 30  
 
 31  
         private static final long serialVersionUID = 1L;
 32  
         
 33  
         @XmlElement(name = "entry")
 34  
         private final List<StringMapEntry> entries;
 35  
 
 36  
         @SuppressWarnings("unused")
 37  2
         private StringMapEntryList() {
 38  2
                 this.entries = null;
 39  2
         }
 40  
         
 41  1
         public StringMapEntryList(List<StringMapEntry> entries) {
 42  1
                 this.entries = entries;
 43  1
         }
 44  
         
 45  
         /**
 46  
          * @return the attribute
 47  
          */
 48  
         public List<StringMapEntry> getEntries() {
 49  4
                 if (this.entries == null) {
 50  0
                         return new ArrayList<StringMapEntry>();
 51  
                 }
 52  4
                 return entries;
 53  
         }
 54  
 }