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