Coverage Report - org.kuali.student.r2.core.document.dto.RefDocRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RefDocRelationInfo
0%
0/27
0%
0/4
1.167
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * 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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.r2.core.document.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 19  
 import org.kuali.student.r2.core.document.infc.RefDocRelation;
 20  
 import org.w3c.dom.Element;
 21  
 
 22  
 import javax.xml.bind.annotation.*;
 23  
 import java.io.Serializable;
 24  
 import java.util.List;
 25  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 26  
 
 27  
 
 28  
 /**
 29  
  * Refer to interface javadoc
 30  
  *
 31  
  * @Version 2.0
 32  
  * @Author tom
 33  
  * @Author Sri komandur@uw.edu
 34  
  *
 35  
  */
 36  0
 @XmlAccessorType(XmlAccessType.FIELD)
 37  
 @XmlType(name = "RefDocRelationInfo", propOrder = { "id", "typeKey",
 38  
                 "stateKey", "refObjectTypeKey", "refObjectId", "documentId", "title", "descr", 
 39  
         "effectiveDate", "expirationDate", 
 40  
         "meta", "attributes", "_futureElements" })
 41  
 public class RefDocRelationInfo extends RelationshipInfo implements RefDocRelation, Serializable {
 42  
 
 43  
     private static final long serialVersionUID = 1L;
 44  
 
 45  
     @XmlElement
 46  
     private String refObjectTypeKey;
 47  
 
 48  
     @XmlElement
 49  
     private String refObjectId;
 50  
 
 51  
     @XmlElement
 52  
     private String documentId;
 53  
 
 54  
     @XmlElement
 55  
     private String title;
 56  
     
 57  
     @XmlElement
 58  
     private RichTextInfo descr;
 59  
     
 60  
     @XmlAnyElement
 61  
     private List<Element> _futureElements;
 62  
 
 63  0
     public RefDocRelationInfo() {
 64  0
     }
 65  
 
 66  
     public RefDocRelationInfo(RefDocRelation refDocRelation) {
 67  0
         super(refDocRelation);
 68  0
         if(null != refDocRelation) {
 69  0
             this.refObjectTypeKey = refDocRelation.getRefObjectTypeKey();
 70  0
             this.refObjectId = refDocRelation.getRefObjectId();
 71  0
             this.documentId = refDocRelation.getDocumentId();
 72  0
             this.title = refDocRelation.getTitle();
 73  0
             if (this.descr != null) {
 74  0
                 this.descr = new RichTextInfo (refDocRelation.getDescr());
 75  
             }
 76  
         }
 77  0
     }
 78  
 
 79  
     @Override
 80  
     public String getRefObjectTypeKey() {
 81  0
         return refObjectTypeKey;
 82  
     }
 83  
 
 84  
     public void setRefObjectTypeKey(String refObjectTypeKey) {
 85  0
         this.refObjectTypeKey = refObjectTypeKey;
 86  0
     }
 87  
 
 88  
     @Override
 89  
     public String getRefObjectId() {
 90  0
         return refObjectId;
 91  
     }
 92  
 
 93  
     public void setRefObjectId(String refObjectId) {
 94  0
         this.refObjectId = refObjectId;
 95  0
     }
 96  
 
 97  
     @Override
 98  
     public String getDocumentId() {
 99  0
         return documentId;
 100  
     }
 101  
 
 102  
     public void setDocumentId(String documentId) {
 103  0
         this.documentId = documentId;
 104  0
     }
 105  
 
 106  
     @Override
 107  
     public String getTitle() {
 108  0
         return title;
 109  
     }
 110  
 
 111  
     public void setTitle(String title) {
 112  0
         this.title = title;
 113  0
     }
 114  
 
 115  
     @Override
 116  
     public RichTextInfo getDescr() {
 117  0
         return descr;
 118  
     }
 119  
 
 120  
     public void setDescr(RichTextInfo descr) {
 121  0
         this.descr = descr;
 122  0
     }
 123  
  
 124  
 }