Coverage Report - org.kuali.student.enrollment.lpr.dto.LprInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprInfo
0%
0/39
0%
0/6
1.273
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.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.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.enrollment.lpr.dto;
 12  
 
 13  
 import java.io.Serializable;
 14  
 import java.util.ArrayList;
 15  
 import java.util.List;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAccessType;
 18  
 import javax.xml.bind.annotation.XmlAccessorType;
 19  
 import javax.xml.bind.annotation.XmlAnyElement;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 
 23  
 import org.kuali.student.enrollment.lpr.infc.Lpr;
 24  
 import org.kuali.student.r2.common.dto.RelationshipInfo;
 25  
 import org.w3c.dom.Element;
 26  
 
 27  
 @XmlAccessorType(XmlAccessType.FIELD)
 28  
 @XmlType(name = "LprInfo", propOrder = {"id", "typeKey", "stateKey", "luiId", "personId",
 29  
         "resultValuesGroupKeys", "commitmentPercent", "effectiveDate", "expirationDate", "meta", "attributes",
 30  
         "_futureElements"})
 31  
 public class LprInfo extends RelationshipInfo implements Lpr, Serializable {
 32  
 
 33  
     private static final long serialVersionUID = 1L;
 34  
 
 35  
     @XmlElement
 36  
     private String luiId;
 37  
 
 38  
     @XmlElement
 39  
     private String personId;
 40  
 
 41  
     @XmlElement
 42  
     private List<String> resultValuesGroupKeys;
 43  
 
 44  
     @XmlElement
 45  
     private String commitmentPercent;
 46  
 
 47  
     @XmlAnyElement
 48  
     private List<Element> _futureElements;
 49  
 
 50  0
     public LprInfo() {
 51  0
     }
 52  
 
 53  
     public LprInfo(Lpr lpr) {
 54  0
         super(lpr);
 55  0
         if (lpr != null) {
 56  0
             this.luiId = lpr.getLuiId();
 57  0
             this.personId = lpr.getPersonId();
 58  0
             this.commitmentPercent = lpr.getCommitmentPercent();
 59  0
             if (lpr.getResultValuesGroupKeys() != null) {
 60  0
                 this.resultValuesGroupKeys = new ArrayList<String>(lpr.getResultValuesGroupKeys());
 61  
             }
 62  
         }
 63  0
     }
 64  
 
 65  
     @Override
 66  
     public String getLuiId() {
 67  0
         return luiId;
 68  
     }
 69  
 
 70  
     public void setLuiId(String luiId) {
 71  0
         this.luiId = luiId;
 72  0
     }
 73  
 
 74  
     @Override
 75  
     public String getPersonId() {
 76  0
         return personId;
 77  
     }
 78  
 
 79  
     public void setPersonId(String personId) {
 80  0
         this.personId = personId;
 81  0
     }
 82  
 
 83  
     @Override
 84  
     public String getCommitmentPercent() {
 85  0
         return commitmentPercent;
 86  
     }
 87  
 
 88  
     public void setCommitmentPercent(String commitmentPercent) {
 89  0
         this.commitmentPercent = commitmentPercent;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public List<String> getResultValuesGroupKeys() {
 94  0
         if (this.resultValuesGroupKeys == null) {
 95  0
             this.resultValuesGroupKeys = new ArrayList<String>();
 96  
         }
 97  0
         return resultValuesGroupKeys;
 98  
     }
 99  
 
 100  
     public void setResultValuesGroupKeys(List<String> resultValuesGroupKeys) {
 101  0
         this.resultValuesGroupKeys = resultValuesGroupKeys;
 102  0
     }
 103  
 
 104  
         @Override
 105  
         public String toString() {
 106  0
                 StringBuilder builder = new StringBuilder();
 107  0
                 builder.append("LprInfo [id=");
 108  0
                 builder.append(getId());
 109  0
                 builder.append(", type=");
 110  0
                 builder.append(getTypeKey());
 111  0
                 builder.append(", state=");
 112  0
                 builder.append(getStateKey());
 113  0
                 builder.append(", luiId=");
 114  0
                 builder.append(luiId);
 115  0
                 builder.append(", personId=");
 116  0
                 builder.append(personId);
 117  0
                 builder.append(", commitmentPercent=");
 118  0
                 builder.append(commitmentPercent);
 119  0
                 builder.append("]");
 120  0
                 return builder.toString();
 121  
         }
 122  
     
 123  
     
 124  
 }