Coverage Report - org.kuali.student.r2.core.proposal.dto.ProposalDocRelationInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ProposalDocRelationInfo
0%
0/17
0%
0/2
1.125
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 2.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.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
 6  
  * agreed to in writing, software distributed under the License is distributed
 7  
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 8  
  * express or implied. See the License for the specific language governing
 9  
  * permissions and limitations under the License.
 10  
  */
 11  
 
 12  
 package org.kuali.student.r2.core.proposal.dto;
 13  
 
 14  
 import java.io.Serializable;
 15  
 import java.util.Date;
 16  
 import java.util.HashMap;
 17  
 import java.util.List;
 18  
 import java.util.Map;
 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.XmlAttribute;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 27  
 
 28  
 import org.kuali.student.common.dto.HasAttributes;
 29  
 import org.kuali.student.common.dto.HasTypeState;
 30  
 import org.kuali.student.common.dto.Idable;
 31  
 import org.kuali.student.common.dto.MetaInfo;
 32  
 import org.kuali.student.common.dto.RichTextInfo;
 33  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 34  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 35  
 import org.kuali.student.r2.core.proposal.infc.ProposalDocRelation;
 36  
 import org.w3c.dom.Element;
 37  
 
 38  
 /**
 39  
  * This is a description of what this class does - sambit don't forget to fill
 40  
  * this in.
 41  
  * 
 42  
  * @author KS Team(sambitpa@kuali.org)
 43  
  */
 44  
 @XmlType(name = "ProposalDocRelationInfo", propOrder = {"id", "typeKey", "stateKey", "proposalId", "documentId", "title", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"})
 45  
 @XmlAccessorType(XmlAccessType.FIELD)
 46  
 public class ProposalDocRelationInfo extends RelationshipInfo implements ProposalDocRelation, Serializable {
 47  
 
 48  
     private static final long serialVersionUID = 1L;
 49  
 
 50  
     @XmlElement
 51  
     private String proposalId;
 52  
 
 53  
     @XmlElement
 54  
     private String documentId;
 55  
 
 56  
     @XmlElement
 57  
     private String title;
 58  
 
 59  
     @XmlAnyElement
 60  
     private List<Element> _futureElements;
 61  
 
 62  0
     public ProposalDocRelationInfo() {
 63  
 
 64  0
     }
 65  
 
 66  
     public ProposalDocRelationInfo(ProposalDocRelation proposalDocRelation) {
 67  0
         super(proposalDocRelation);
 68  0
         if (proposalDocRelation != null) {
 69  0
             this.proposalId = proposalDocRelation.getProposalId();
 70  0
             this.documentId = proposalDocRelation.getDocumentId();
 71  0
             this.title = proposalDocRelation.getTitle();
 72  
         }
 73  0
     }
 74  
 
 75  
     /**
 76  
      * Unique identifier for a Proposal.
 77  
      */
 78  
     public String getProposalId() {
 79  0
         return proposalId;
 80  
     }
 81  
 
 82  
     public void setProposalId(String proposalId) {
 83  0
         this.proposalId = proposalId;
 84  0
     }
 85  
 
 86  
     /**
 87  
      * Unique identifier for a document.
 88  
      */
 89  
     public String getDocumentId() {
 90  0
         return documentId;
 91  
     }
 92  
 
 93  
     public void setDocumentId(String documentId) {
 94  0
         this.documentId = documentId;
 95  0
     }
 96  
 
 97  
     /**
 98  
      * The title of the document usage in the context of the Proposal.
 99  
      */
 100  
     public String getTitle() {
 101  0
         return title;
 102  
     }
 103  
 
 104  
     public void setTitle(String title) {
 105  0
         this.title = title;
 106  0
     }
 107  
 
 108  
 }