Coverage Report - org.kuali.student.enrollment.courseofferingset.dto.SocRolloverResultItemInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
SocRolloverResultItemInfo
0%
0/24
0%
0/4
1.3
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License.  You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.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
 13  
  * implied.  See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 package org.kuali.student.enrollment.courseofferingset.dto;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlAnyElement;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 
 26  
 import org.kuali.student.enrollment.courseofferingset.infc.SocRolloverResultItem;
 27  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 28  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 29  
 import org.w3c.dom.Element;
 30  
 
 31  
 
 32  0
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "SocRolloverResultItemInfo", propOrder = {"id",
 34  
     "typeKey",
 35  
     "stateKey",
 36  
     "socRolloverResultId",
 37  
     "sourceCourseOfferingId",
 38  
     "targetCourseOfferingId",
 39  
     "message",
 40  
     "meta",
 41  
     "attributes",
 42  
     "_futureElements"})
 43  
 public class SocRolloverResultItemInfo
 44  
         extends IdNamelessEntityInfo
 45  
         implements SocRolloverResultItem {
 46  
 
 47  
     private static final long serialVersionUID = 1L;
 48  
     @XmlElement
 49  
     private String socRolloverResultId;
 50  
     @XmlElement
 51  
     private String sourceCourseOfferingId;
 52  
     @XmlElement
 53  
     private String targetCourseOfferingId;
 54  
     @XmlElement
 55  
     private RichTextInfo message;
 56  
     @XmlAnyElement
 57  
     private List<Element> _futureElements;
 58  
 
 59  
    
 60  0
     public SocRolloverResultItemInfo() {
 61  0
     }
 62  
 
 63  
     
 64  
     public SocRolloverResultItemInfo(SocRolloverResultItem orig) {
 65  
 
 66  0
         super(orig);
 67  
 
 68  0
         if (orig == null) {
 69  0
             return;
 70  
         }
 71  
 
 72  0
         this.socRolloverResultId = orig.getSocRolloverResultId();
 73  0
         this.targetCourseOfferingId = orig.getTargetCourseOfferingId();
 74  0
         this.sourceCourseOfferingId = orig.getSourceCourseOfferingId();
 75  0
         if (orig.getMessage() != null) {
 76  0
             this.message = new RichTextInfo (orig.getMessage());
 77  
         }
 78  0
     }
 79  
 
 80  
     @Override
 81  
     public String getSocRolloverResultId() {
 82  0
         return socRolloverResultId;
 83  
     }
 84  
 
 85  
     public void setSocRolloverResultId(String rolloverResultId) {
 86  0
         this.socRolloverResultId = rolloverResultId;
 87  0
     }
 88  
     
 89  
     @Override
 90  
     public RichTextInfo getMessage() {
 91  0
         return message;
 92  
     }
 93  
 
 94  
     public void setMessage(RichTextInfo message) {
 95  0
         this.message = message;
 96  0
     }
 97  
 
 98  
     @Override
 99  
     public String getSourceCourseOfferingId() {
 100  0
         return sourceCourseOfferingId;
 101  
     }
 102  
 
 103  
     public void setSourceCourseOfferingId(String sourceCourseOfferingId) {
 104  0
         this.sourceCourseOfferingId = sourceCourseOfferingId;
 105  0
     }
 106  
 
 107  
     @Override
 108  
     public String getTargetCourseOfferingId() {
 109  0
         return targetCourseOfferingId;
 110  
     }
 111  
 
 112  
     public void setTargetCourseOfferingId(String targetCourseOfferingId) {
 113  0
         this.targetCourseOfferingId = targetCourseOfferingId;
 114  0
     }
 115  
 
 116  
     
 117  
     
 118  
 }