Coverage Report - org.kuali.student.r2.common.messages.dto.LocaleKeysInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LocaleKeysInfo
0%
0/11
0%
0/6
1.75
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.r2.common.messages.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.messages.infc.LocaleKeys;
 19  
 import org.w3c.dom.Element;
 20  
 
 21  
 import java.util.ArrayList;
 22  
 import java.util.List;
 23  
 
 24  
 import javax.xml.bind.annotation.*;
 25  
 
 26  
 /**
 27  
  * Refer to interface javadoc
 28  
  *
 29  
  * @Version 2.0
 30  
  * @Author Sri komandur@uw.edu
 31  
  */
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "LocaleKeysInfo", propOrder = {"locales", "_futureElements"})
 34  
 public class LocaleKeysInfo implements LocaleKeys, java.io.Serializable {
 35  
         private static final long serialVersionUID = 1L;
 36  
 
 37  
         @XmlElement
 38  
         protected List<String> locales;
 39  
 
 40  
     @XmlAnyElement
 41  
     private List<Element> _futureElements;
 42  
 
 43  0
     public LocaleKeysInfo() {
 44  0
     }
 45  
 
 46  0
     public LocaleKeysInfo(LocaleKeys locales) {
 47  0
         if (null != locales) {
 48  0
             this.locales = (null != locales.getLocales()) ? new ArrayList<String>(locales.getLocales()) : null;
 49  
         }
 50  0
     }
 51  
 
 52  
         @Override
 53  
     public List<String> getLocales() {
 54  0
                 if (this.locales == null) {
 55  0
                         this.locales = new ArrayList<String>();
 56  
                 }
 57  0
                 return this.locales;
 58  
         }
 59  
 
 60  
         public void setLocales(List<String> locales) {
 61  0
                 this.locales = locales;
 62  
 
 63  0
         }
 64  
 }