Coverage Report - org.kuali.student.enrollment.classI.hold.dto.IssueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
IssueInfo
0%
0/9
N/A
1
IssueInfo$Builder
0%
0/10
N/A
1
 
 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.classI.hold.dto;
 16  
 
 17  
 import java.io.Serializable;
 18  
 import java.util.Date;
 19  
 import java.util.List;
 20  
 import org.w3c.dom.Element;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 30  
 import org.kuali.student.r2.common.infc.ModelBuilder;
 31  
 import org.kuali.student.enrollment.classI.hold.infc.Issue;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "IssueInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "organizationId", "metaInfo", "attributes", "_futureElements"})
 35  
 
 36  
 public class IssueInfo extends IdEntityInfo implements Issue, Serializable {
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private final String organizationId;
 41  
 
 42  
     @XmlAnyElement
 43  
     private final List<Element> _futureElements;
 44  
 
 45  0
     private IssueInfo() {
 46  0
         organizationId = null;
 47  0
         _futureElements = null;
 48  0
     }
 49  
 
 50  
     /**
 51  
      * Constructs a new IssueInfo from another Issue.
 52  
      *
 53  
      * @param issue the Issue to copy
 54  
      */
 55  
     public IssueInfo(Issue issue) {
 56  0
         super(issue);
 57  0
         this.organizationId = issue.getOrganizationId();
 58  0
         _futureElements = null;
 59  0
     }
 60  
 
 61  
     @Override
 62  
     public String getOrganizationId() {
 63  0
         return organizationId;
 64  
     }
 65  
 
 66  
 
 67  
     /**
 68  
      * The builder class for this IssueInfo.
 69  
      */
 70  0
     public static class Builder extends IdEntityInfo.Builder implements ModelBuilder<IssueInfo>, Issue {
 71  
 
 72  
         private String organizationId;
 73  
 
 74  
         /**
 75  
          * Constructs a new builder.
 76  
          */
 77  0
         public Builder() {
 78  0
         }
 79  
 
 80  
         /**
 81  
          * Constructs a new builder initialized from another 
 82  
          * Issue.
 83  
          */
 84  
         public Builder(Issue issue) {
 85  0
             super(issue);
 86  0
             this.organizationId = issue.getOrganizationId();
 87  0
         }
 88  
 
 89  
         @Override
 90  
         public IssueInfo build() {
 91  0
             return new IssueInfo(this);
 92  
         }
 93  
 
 94  
         @Override
 95  
         public String getOrganizationId() {
 96  0
             return organizationId;
 97  
         }
 98  
 
 99  
         public void setOrganizationId(String organizationId) {
 100  0
             this.organizationId = organizationId;
 101  0
         }
 102  
     }
 103  
 }