Coverage Report - org.kuali.student.enrollment.lpr.dto.LprTransactionItemRequestOptionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LprTransactionItemRequestOptionInfo
0%
0/26
0%
0/2
1.222
 
 1  
 /*
 2  
  * Copyright 2007 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.util.List;
 14  
 
 15  
 import javax.xml.bind.annotation.XmlAccessType;
 16  
 import javax.xml.bind.annotation.XmlAccessorType;
 17  
 import javax.xml.bind.annotation.XmlAnyElement;
 18  
 import javax.xml.bind.annotation.XmlElement;
 19  
 import javax.xml.bind.annotation.XmlType;
 20  
 
 21  
 import org.kuali.student.enrollment.lpr.infc.LprTransactionItemRequestOption;
 22  
 import org.w3c.dom.Element;
 23  
 
 24  
 /**
 25  
  * @author Kuali Student Team (sambitpatnaik)
 26  
  */
 27  
 @XmlAccessorType(XmlAccessType.FIELD)
 28  
 @XmlType(name = "RequestOptionInfo", propOrder = {"id", "optionKey", "optionValue", "_futureElements"})
 29  
 public class LprTransactionItemRequestOptionInfo implements LprTransactionItemRequestOption {
 30  
 
 31  
     @XmlElement
 32  
     private String id;
 33  
     @XmlElement
 34  
     private String optionKey;
 35  
     @XmlElement
 36  
     private String optionValue;
 37  
     @XmlAnyElement
 38  
     private List<Element> _futureElements;
 39  
 
 40  0
     public LprTransactionItemRequestOptionInfo() {
 41  0
     }
 42  
 
 43  0
     public LprTransactionItemRequestOptionInfo(LprTransactionItemRequestOption reqOp) {
 44  0
         if (null == reqOp) {
 45  0
             return;
 46  
         }
 47  0
         this.optionValue = reqOp.getOptionValue();
 48  0
         this.optionKey = reqOp.getOptionKey();
 49  0
     }
 50  
 
 51  
     public void setOptionValue(String optionValue) {
 52  0
         this.optionValue = optionValue;
 53  0
     }
 54  
 
 55  
     @Override
 56  
     public String getId() {
 57  0
         return id;
 58  
     }
 59  
 
 60  
     @Override
 61  
     public String getOptionKey() {
 62  0
         return optionKey;
 63  
     }
 64  
 
 65  
     @Override
 66  
     public String getOptionValue() {
 67  0
         return optionValue;
 68  
     }
 69  
 
 70  
     public void setId(String id) {
 71  0
         this.id = id;
 72  0
     }
 73  
 
 74  
     public void setOptionKey(String optionKey) {
 75  0
         this.optionKey = optionKey;
 76  0
     }
 77  
 
 78  
         @Override
 79  
         public String toString() {
 80  0
                 StringBuilder builder = new StringBuilder();
 81  0
                 builder.append("LprTransactionItemRequestOptionInfo [id=");
 82  0
                 builder.append(id);
 83  0
                 builder.append(", optionKey=");
 84  0
                 builder.append(optionKey);
 85  0
                 builder.append(", optionValue=");
 86  0
                 builder.append(optionValue);
 87  0
                 builder.append("]");
 88  0
                 return builder.toString();
 89  
         }
 90  
     
 91  
     
 92  
 }