Coverage Report - org.kuali.student.r2.common.dto.SearchParamInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
SearchParamInfo
0%
0/14
0%
0/4
1.333
 
 1  
 /**
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.r2.common.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.ArrayList;
 21  
 import java.util.List;
 22  
 
 23  
 import javax.xml.bind.annotation.XmlAccessType;
 24  
 import javax.xml.bind.annotation.XmlAccessorType;
 25  
 import javax.xml.bind.annotation.XmlAnyElement;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlElementWrapper;
 29  
 import javax.xml.bind.annotation.XmlType;
 30  
 
 31  
 import org.kuali.student.r2.common.infc.SearchParam;
 32  
 import org.w3c.dom.Element;
 33  
 
 34  
 /**
 35  
  * A structure that holds a key value pair to supply a value to a
 36  
  * parameter for searching.
 37  
  *
 38  
  * @author nwright
 39  
  */
 40  
 
 41  
 @XmlAccessorType(XmlAccessType.FIELD)
 42  
 @XmlType(name = "SearchParamInfo", propOrder = {
 43  
                 "key", "values", "_futureElements"})
 44  
 @Deprecated
 45  
 public class SearchParamInfo 
 46  
     implements SearchParam, Serializable {
 47  
 
 48  
     private static final long serialVersionUID = 1L;
 49  
 
 50  
     @XmlAttribute
 51  
     private String key;
 52  
 
 53  
     @XmlElementWrapper(name="values")
 54  
     @XmlElement(name="value")
 55  
     private List<String> values;
 56  
 
 57  
     @XmlAnyElement
 58  
     private List<Element> _futureElements;
 59  
 
 60  
     
 61  
     /**
 62  
      * Constructs a new SearchParamInfo.
 63  
      */
 64  0
     public SearchParamInfo() {
 65  0
     }
 66  
 
 67  
     /**
 68  
      * Constructs a new SearchParamInfo from another SearchParam.
 69  
      *
 70  
      * @param param the SearchParam to copy
 71  
      */
 72  0
     public SearchParamInfo(SearchParam param) {
 73  0
         if (param != null) {
 74  0
             this.key = param.getKey();
 75  0
             if (param.getValues() != null) {
 76  0
                 this.values = new ArrayList<String>(param.getValues());
 77  
             }
 78  
         }
 79  0
     }
 80  
 
 81  
     @Override
 82  
     public String getKey() {
 83  0
         return key;
 84  
     }
 85  
 
 86  
     public void setKey(String key) {
 87  0
         this.key = key;
 88  0
     }
 89  
 
 90  
     @Override
 91  
     public List<String> getValues() {
 92  0
         return values;
 93  
     }
 94  
 
 95  
     public void setValues(List<String> values) {
 96  0
         this.values = values;
 97  0
     }
 98  
 }