Coverage Report - org.kuali.student.r2.lum.program.dto.CommonWithCredentialProgramInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CommonWithCredentialProgramInfo
0%
0/76
0%
0/20
1.294
 
 1  
 package org.kuali.student.r2.lum.program.dto;
 2  
 
 3  
 import java.util.ArrayList;
 4  
 import java.util.List;
 5  
 
 6  
 import javax.xml.bind.annotation.XmlElement;
 7  
 import javax.xml.bind.annotation.XmlTransient;
 8  
 
 9  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 10  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 11  
 import org.kuali.student.r2.core.versionmanagement.dto.VersionInfo;
 12  
 import org.kuali.student.r2.lum.course.dto.LoDisplayInfo;
 13  
 import org.kuali.student.r2.lum.course.infc.LoDisplay;
 14  
 import org.kuali.student.r2.lum.program.infc.CommonWithCredentialProgram;
 15  
 
 16  0
 @SuppressWarnings("serial")
 17  
 @XmlTransient
 18  
 public abstract class CommonWithCredentialProgramInfo extends IdNamelessEntityInfo implements CommonWithCredentialProgram {
 19  
 
 20  
     @XmlElement
 21  
     private VersionInfo version;
 22  
     @XmlElement
 23  
     private RichTextInfo descr;
 24  
     @XmlElement
 25  
     private String shortTitle;
 26  
     @XmlElement
 27  
     private String longTitle;
 28  
     @XmlElement
 29  
     private String transcriptTitle;
 30  
     @XmlElement
 31  
     private String code;
 32  
     @XmlElement
 33  
     private String universityClassification;
 34  
     @XmlElement
 35  
     private String startTerm;
 36  
     @XmlElement
 37  
     private String endTerm;
 38  
     @XmlElement
 39  
     private String endProgramEntryTerm;
 40  
     @XmlElement
 41  
     private List<String> divisionsContentOwner;
 42  
     @XmlElement
 43  
     private List<String> divisionsStudentOversight;
 44  
     @XmlElement
 45  
     private List<String> unitsContentOwner;
 46  
     @XmlElement
 47  
     private List<String> unitsStudentOversight;
 48  
     @XmlElement
 49  
     private List<LoDisplayInfo> learningObjectives;
 50  
     @XmlElement
 51  
     private List<String> programRequirements;
 52  
 
 53  0
     public CommonWithCredentialProgramInfo() {
 54  0
     }
 55  
 
 56  
     public CommonWithCredentialProgramInfo(CommonWithCredentialProgram input) {
 57  0
         super(input);
 58  0
         if (input != null) {
 59  0
             this.version = input.getVersion() != null
 60  
                     ? new VersionInfo(input.getVersion())
 61  
                     : null;
 62  0
             this.descr = input.getDescr() != null
 63  
                     ? new RichTextInfo(input.getDescr())
 64  
                     : null;
 65  0
             this.shortTitle = input.getShortTitle();
 66  0
             this.longTitle = input.getLongTitle();
 67  0
             this.transcriptTitle = input.getTranscriptTitle();
 68  0
             this.code = input.getCode();
 69  0
             this.universityClassification = input.getUniversityClassification();
 70  0
             this.startTerm = input.getStartTerm();
 71  0
             this.endTerm = input.getEndTerm();
 72  0
             this.endProgramEntryTerm = input.getEndProgramEntryTerm();
 73  0
             this.programRequirements = input.getProgramRequirements() != null
 74  
                     ? new ArrayList<String>(input.getProgramRequirements())
 75  
                     : new ArrayList<String>();
 76  0
             this.divisionsContentOwner = input.getDivisionsContentOwner() != null
 77  
                     ? new ArrayList<String>(input.getDivisionsContentOwner())
 78  
                     : new ArrayList<String>();
 79  0
             this.divisionsStudentOversight = input.getDivisionsStudentOversight() != null
 80  
                     ? new ArrayList<String>(input.getDivisionsContentOwner())
 81  
                     : new ArrayList<String>();
 82  0
             this.unitsContentOwner = input.getUnitsContentOwner() != null
 83  
                     ? new ArrayList<String>(input.getUnitsContentOwner())
 84  
                     : new ArrayList<String>();
 85  0
             this.unitsStudentOversight = input.getUnitsStudentOversight() != null
 86  
                     ? new ArrayList<String>(input.getUnitsStudentOversight())
 87  
                     : new ArrayList<String>();
 88  0
             List<LoDisplayInfo> los = new ArrayList<LoDisplayInfo>();
 89  0
             if (input.getLearningObjectives() != null) {
 90  0
                 for (LoDisplay loDisplay : input.getLearningObjectives()) {
 91  0
                     LoDisplayInfo loDisplayInfo = new LoDisplayInfo(loDisplay);
 92  0
                     los.add(loDisplayInfo);
 93  0
                 }
 94  
             }
 95  0
             this.learningObjectives = los;
 96  
         }
 97  0
     }
 98  
 
 99  
     @Override
 100  
     public VersionInfo getVersion() {
 101  0
         return version;
 102  
     }
 103  
 
 104  
     public void setVersion(VersionInfo version) {
 105  0
         this.version = version;
 106  0
     }
 107  
 
 108  
     @Override
 109  
     public RichTextInfo getDescr() {
 110  0
         return descr;
 111  
     }
 112  
 
 113  
     public void setDescr(RichTextInfo descr) {
 114  0
         this.descr = descr;
 115  0
     }
 116  
 
 117  
     @Override
 118  
     public String getShortTitle() {
 119  0
         return shortTitle;
 120  
     }
 121  
 
 122  
     public void setShortTitle(String shortTitle) {
 123  0
         this.shortTitle = shortTitle;
 124  0
     }
 125  
 
 126  
     @Override
 127  
     public String getLongTitle() {
 128  0
         return longTitle;
 129  
     }
 130  
 
 131  
     public void setLongTitle(String longTitle) {
 132  0
         this.longTitle = longTitle;
 133  0
     }
 134  
 
 135  
     @Override
 136  
     public String getTranscriptTitle() {
 137  0
         return transcriptTitle;
 138  
     }
 139  
 
 140  
     public void setTranscriptTitle(String transcriptTitle) {
 141  0
         this.transcriptTitle = transcriptTitle;
 142  0
     }
 143  
 
 144  
     @Override
 145  
     public String getCode() {
 146  0
         return code;
 147  
     }
 148  
 
 149  
     public void setCode(String code) {
 150  0
         this.code = code;
 151  0
     }
 152  
 
 153  
     @Override
 154  
     public String getUniversityClassification() {
 155  0
         return universityClassification;
 156  
     }
 157  
 
 158  
     public void setUniversityClassification(String universityClassification) {
 159  0
         this.universityClassification = universityClassification;
 160  0
     }
 161  
 
 162  
     @Override
 163  
     public String getStartTerm() {
 164  0
         return startTerm;
 165  
     }
 166  
 
 167  
     public void setStartTerm(String startTerm) {
 168  0
         this.startTerm = startTerm;
 169  0
     }
 170  
 
 171  
     @Override
 172  
     public String getEndTerm() {
 173  0
         return endTerm;
 174  
     }
 175  
 
 176  
     public void setEndTerm(String endTerm) {
 177  0
         this.endTerm = endTerm;
 178  0
     }
 179  
 
 180  
     @Override
 181  
     public String getEndProgramEntryTerm() {
 182  0
         return endProgramEntryTerm;
 183  
     }
 184  
 
 185  
     public void setEndProgramEntryTerm(String endProgramEntryTermId) {
 186  0
         this.endProgramEntryTerm = endProgramEntryTermId;
 187  0
     }
 188  
 
 189  
     @Override
 190  
     public List<String> getDivisionsContentOwner() {
 191  0
         return divisionsContentOwner;
 192  
     }
 193  
 
 194  
     public void setDivisionsContentOwner(List<String> divisionsContentOwnerIds) {
 195  0
         this.divisionsContentOwner = divisionsContentOwnerIds;
 196  0
     }
 197  
 
 198  
     @Override
 199  
     public List<String> getDivisionsStudentOversight() {
 200  0
         return divisionsStudentOversight;
 201  
     }
 202  
 
 203  
     public void setDivisionsStudentOversight(List<String> divisionsStudentOversightIds) {
 204  0
         this.divisionsStudentOversight = divisionsStudentOversightIds;
 205  0
     }
 206  
 
 207  
     @Override
 208  
     public List<String> getUnitsContentOwner() {
 209  0
         return unitsContentOwner;
 210  
     }
 211  
 
 212  
     public void setUnitsContentOwner(List<String> unitsContentOwner) {
 213  0
         this.unitsContentOwner = unitsContentOwner;
 214  0
     }
 215  
 
 216  
     @Override
 217  
     public List<String> getUnitsStudentOversight() {
 218  0
         return unitsStudentOversight;
 219  
     }
 220  
 
 221  
     public void setUnitsStudentOversight(List<String> unitsStudentOversight) {
 222  0
         this.unitsStudentOversight = unitsStudentOversight;
 223  0
     }
 224  
 
 225  
     @Override
 226  
     public List<LoDisplayInfo> getLearningObjectives() {
 227  0
         return learningObjectives;
 228  
     }
 229  
 
 230  
     public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
 231  0
         this.learningObjectives = learningObjectives;
 232  0
     }
 233  
 
 234  
     @Override
 235  
     public List<String> getProgramRequirements() {
 236  0
         return programRequirements;
 237  
     }
 238  
 
 239  
     public void setProgramRequirements(List<String> programRequirements) {
 240  0
         this.programRequirements = programRequirements;
 241  0
     }
 242  
 
 243  
   
 244  
 }