Coverage Report - org.kuali.student.r2.lum.program.dto.CommonWithCoreProgramInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CommonWithCoreProgramInfo
0%
0/19
0%
0/6
1.375
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.lum.program.dto;
 12  
 
 13  
 import java.io.Serializable;
 14  
 import java.util.ArrayList;
 15  
 import java.util.List;
 16  
 
 17  
 import javax.xml.bind.annotation.*;
 18  
 
 19  
 
 20  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 21  
 import org.kuali.student.r2.lum.program.infc.CommonWithCoreProgram;
 22  
 
 23  0
 @SuppressWarnings("serial")
 24  
 @XmlTransient
 25  
 public class CommonWithCoreProgramInfo extends CommonWithCredentialProgramInfo
 26  
         implements CommonWithCoreProgram,
 27  
         Serializable {
 28  
 
 29  
     @XmlElement
 30  
     private String referenceURL;
 31  
     @XmlElement
 32  
     private RichTextInfo catalogDescr;
 33  
     @XmlElement
 34  
     private List<String> catalogPublicationTargets;
 35  
    
 36  0
     public CommonWithCoreProgramInfo() {
 37  0
     }
 38  
 
 39  
     public CommonWithCoreProgramInfo(CommonWithCoreProgram input) {
 40  0
         super(input);
 41  0
         if (input != null) {
 42  0
             this.referenceURL = input.getReferenceURL();
 43  0
             if (input.getCatalogDescr() != null) {
 44  0
                 this.catalogDescr = new RichTextInfo(input.getCatalogDescr());
 45  
             }
 46  0
             this.catalogPublicationTargets = input.getCatalogPublicationTargets() != null
 47  
                     ? new ArrayList<String>(input.getCatalogPublicationTargets())
 48  
                     : new ArrayList<String>();
 49  
         }
 50  0
     }
 51  
 
 52  
     @Override
 53  
     public String getReferenceURL() {
 54  0
         return referenceURL;
 55  
     }
 56  
 
 57  
     public void setReferenceURL(String referenceURL) {
 58  0
         this.referenceURL = referenceURL;
 59  0
     }
 60  
 
 61  
     @Override
 62  
     public RichTextInfo getCatalogDescr() {
 63  0
         return catalogDescr;
 64  
     }
 65  
 
 66  
     public void setCatalogDescr(RichTextInfo catalogDescr) {
 67  0
         this.catalogDescr = catalogDescr;
 68  0
     }
 69  
 
 70  
     @Override
 71  
     public List<String> getCatalogPublicationTargets() {
 72  0
         return catalogPublicationTargets;
 73  
     }
 74  
 
 75  
     public void setCatalogPublicationTargets(List<String> catalogPublicationTargets) {
 76  0
         this.catalogPublicationTargets = catalogPublicationTargets;
 77  0
     }
 78  
 }