Coverage Report - org.kuali.student.r2.common.messages.dto.MessageGroupKeysInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
MessageGroupKeysInfo
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.MessageGroupKeys;
 19  
 import org.w3c.dom.Element;
 20  
 
 21  
 import javax.xml.bind.annotation.*;
 22  
 import java.util.ArrayList;
 23  
 import java.util.List;
 24  
 
 25  
 /**
 26  
  * Refer to interface javadoc
 27  
  *
 28  
  * @Version 2.0
 29  
  * @Author Sri komandur@uw.edu
 30  
  */
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "MessageGroupKeysInfo", propOrder = {"messageGroupKeys", "_futureElements"})
 33  
 public class MessageGroupKeysInfo implements MessageGroupKeys, java.io.Serializable {
 34  
 
 35  
     private static final long serialVersionUID = 1L;
 36  
 
 37  
     @XmlElement
 38  
     private List<String> messageGroupKeys;
 39  
 
 40  
     @XmlAnyElement
 41  
     private List<Element> _futureElements;
 42  
 
 43  0
     public MessageGroupKeysInfo() {
 44  0
     }
 45  
 
 46  0
     public MessageGroupKeysInfo(MessageGroupKeys messageGroupKeys) {
 47  0
         if (null != messageGroupKeys) {
 48  0
             this.messageGroupKeys = (null != messageGroupKeys.getMessageGroupKeys()) ? new ArrayList<String>(messageGroupKeys.getMessageGroupKeys()) : null;
 49  
         }
 50  0
     }
 51  
 
 52  
     @Override
 53  
     public List<String> getMessageGroupKeys() {
 54  0
         if (messageGroupKeys == null) {
 55  0
             this.messageGroupKeys = new ArrayList<String>();
 56  
         }
 57  0
         return this.messageGroupKeys;
 58  
     }
 59  
 
 60  
     public void setMessageGroupKeys(List<String> messageGroupKeys) {
 61  0
         this.messageGroupKeys = messageGroupKeys;
 62  0
     }
 63  
 }