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