Coverage Report - org.kuali.student.r2.core.hold.dto.IssueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
IssueInfo
0%
0/9
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  
 package org.kuali.student.r2.core.hold.dto;
 16  
 
 17  
 import java.io.Serializable;
 18  
 import java.util.List;
 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.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 
 26  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 27  
 import org.kuali.student.r2.core.hold.infc.Issue;
 28  
 import org.w3c.dom.Element;
 29  
 
 30  
 @XmlAccessorType(XmlAccessType.FIELD)
 31  
 @XmlType(name = "IssueInfo", propOrder = {
 32  
     "id", "typeKey", "stateKey", "name",
 33  
     "descr", "organizationId", "meta",
 34  
     "attributes", "_futureElements"})
 35  
 public class IssueInfo extends IdEntityInfo implements Issue, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
     @XmlElement
 39  
     private String organizationId;
 40  
     @XmlAnyElement
 41  
     private List<Element> _futureElements;
 42  
 
 43  0
     public IssueInfo() {
 44  0
     }
 45  
 
 46  
     /**
 47  
      * Constructs a new IssueInfo from another Issue.
 48  
      * 
 49  
      * @param issue the Issue to copy
 50  
      */
 51  
     public IssueInfo(Issue issue) {
 52  0
         super(issue);
 53  0
         if (null != issue) {
 54  0
             this.organizationId = issue.getOrganizationId();
 55  
         }
 56  0
     }
 57  
 
 58  
     @Override
 59  
     public String getOrganizationId() {
 60  0
         return organizationId;
 61  
     }
 62  
 
 63  
     public void setOrganizationId(String orgId) {
 64  0
         this.organizationId = orgId;
 65  0
     }
 66  
 }