Coverage Report - org.kuali.student.r2.core.class1.enumerationmanagement.model.EnumerationRichTextEntity
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumerationRichTextEntity
0%
0/14
0%
0/2
1.25
 
 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.core.class1.enumerationmanagement.model;
 17  
 
 18  
 import javax.persistence.Entity;
 19  
 import javax.persistence.Table;
 20  
 
 21  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 22  
 import org.kuali.student.r2.common.entity.RichTextEntity;
 23  
 import org.kuali.student.r2.common.infc.RichText;
 24  
 
 25  
 @Entity
 26  
 @Table(name = "KSEM_RICH_TEXT_T")
 27  
 public class EnumerationRichTextEntity extends RichTextEntity {
 28  
 
 29  0
     public EnumerationRichTextEntity(){}
 30  
     
 31  0
     public EnumerationRichTextEntity(String plain, String formatted){
 32  0
         this.setFormatted(formatted);
 33  0
         this.setPlain(plain);
 34  0
     }
 35  
     
 36  0
     public EnumerationRichTextEntity(RichText rt) {
 37  0
         if (null != rt) {
 38  0
             this.setFormatted(rt.getFormatted());
 39  0
             this.setPlain(rt.getPlain());
 40  
         }
 41  0
     }
 42  
     
 43  
     public RichTextInfo toDto() {
 44  0
         RichTextInfo rti = new RichTextInfo();
 45  0
         rti.setPlain(getPlain());
 46  0
         rti.setFormatted(getFormatted());
 47  0
         return rti;
 48  
     }
 49  
 }