Coverage Report - org.kuali.rice.core.util.jaxb.StringMapEntryList
 
Classes in this File Line Coverage Branch Coverage Complexity
StringMapEntryList
0%
0/9
0%
0/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 javax.xml.bind.annotation.XmlAccessType;
 19  
 import javax.xml.bind.annotation.XmlAccessorType;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 import java.io.Serializable;
 23  
 import java.util.ArrayList;
 24  
 import java.util.Collections;
 25  
 import java.util.List;
 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  0
         private StringMapEntryList() {
 38  0
                 this.entries = null;
 39  0
         }
 40  
         
 41  0
         public StringMapEntryList(List<StringMapEntry> entries) {
 42  0
                 this.entries = new ArrayList<StringMapEntry>(entries);
 43  0
         }
 44  
         
 45  
         /**
 46  
          * @return the attribute
 47  
          */
 48  
         public List<StringMapEntry> getEntries() {
 49  0
                 if (this.entries == null) {
 50  0
                         return Collections.emptyList();
 51  
                 }
 52  0
                 return Collections.unmodifiableList(entries);
 53  
         }
 54  
 }