Coverage Report - org.kuali.student.enrollment.courseofferingset.dto.SocInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
SocInfo
0%
0/18
0%
0/2
1.25
 
 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.Soc;
 27  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 28  
 import org.w3c.dom.Element;
 29  
 
 30  
 
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "SocInfo", propOrder = {"id",
 33  
     "typeKey",
 34  
     "stateKey",
 35  
     "name",
 36  
     "descr",
 37  
     "termId",
 38  
     "subjectArea",
 39  
     "unitsContentOwnerId",
 40  
     "meta",
 41  
     "attributes",
 42  
     "_futureElements"})
 43  
 public class SocInfo
 44  
         extends IdEntityInfo
 45  
         implements Soc {
 46  
 
 47  
     private static final long serialVersionUID = 1L;
 48  
     @XmlElement
 49  
     private String termId;
 50  
     @XmlElement
 51  
     private String subjectArea;
 52  
     @XmlElement
 53  
     private String unitsContentOwnerId;
 54  
     @XmlAnyElement
 55  
     private List<Element> _futureElements;
 56  
 
 57  
     /**
 58  
      * Constructs a new CourseOfferingInfo.
 59  
      */
 60  0
     public SocInfo() {
 61  0
     }
 62  
 
 63  
     /**
 64  
      * Constructs a new CourseOfferingInfo from another
 65  
      * CourseOffering.
 66  
      *
 67  
      * @param offering the course offering to copy
 68  
      */
 69  
     public SocInfo(Soc offering) {
 70  
 
 71  0
         super(offering);
 72  
 
 73  0
         if (offering == null) {
 74  0
             return;
 75  
         }
 76  
 
 77  0
         this.termId = offering.getTermId();
 78  0
         this.subjectArea = offering.getSubjectArea();
 79  0
         this.unitsContentOwnerId = offering.getUnitsContentOwnerId();
 80  
 
 81  
 
 82  0
     }
 83  
 
 84  
     @Override
 85  
     public String getTermId() {
 86  0
         return this.termId;
 87  
     }
 88  
 
 89  
     public void setTermId(String termId) {
 90  0
         this.termId = termId;
 91  0
     }
 92  
 
 93  
     @Override
 94  
     public String getSubjectArea() {
 95  0
         return subjectArea;
 96  
     }
 97  
 
 98  
     public void setSubjectArea(String subjectArea) {
 99  0
         this.subjectArea = subjectArea;
 100  0
     }
 101  
 
 102  
     @Override
 103  
     public String getUnitsContentOwnerId() {
 104  0
         return unitsContentOwnerId;
 105  
     }
 106  
 
 107  
     public void setUnitsContentOwnerId(String unitsContentOwnerId) {
 108  0
         this.unitsContentOwnerId = unitsContentOwnerId;
 109  0
     }
 110  
     
 111  
     
 112  
 }