Coverage Report - org.kuali.student.r2.core.search.dto.SearchResultCellInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
SearchResultCellInfo
0%
0/18
0%
0/2
1.125
 
 1  
 /*
 2  
  * Copyright 2010 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.osedu.org/licenses/ECL-2.0
 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.core.search.dto;
 18  
 
 19  
 import java.util.List;
 20  
 import java.io.Serializable;
 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.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.r2.core.search.infc.SearchResultCell;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "SearchResultCellInfo", propOrder = {
 34  
                 "key", "value", "_futureElements" })
 35  
 
 36  
 public class SearchResultCellInfo 
 37  
     implements SearchResultCell, Serializable {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
 
 41  
     @XmlAttribute
 42  
     private String key;    
 43  
 
 44  
     @XmlElement    
 45  
     private String value;
 46  
     
 47  
     @XmlAnyElement
 48  
     private List<Element> _futureElements;
 49  
 
 50  
 
 51  
     /**
 52  
      * Constructs a new SearchResultCellInfo.
 53  
      */
 54  0
     public SearchResultCellInfo() {
 55  0
     }
 56  
 
 57  
     /**
 58  
      * Constructs a new SearchResultCellInfo from another
 59  
      * SearchResultCell.
 60  
      *
 61  
      * @param cell the SearchResultCell to copy
 62  
      */
 63  0
     public SearchResultCellInfo(SearchResultCell cell) {
 64  0
         if (cell != null) {
 65  0
             this.key = cell.getKey();
 66  0
             this.value = cell.getValue();
 67  
         }
 68  0
     }
 69  
     
 70  
     /**
 71  
      * Constructs a new SearchResultCellInfo.
 72  
      *
 73  
      * @param key the key to the search result cell
 74  
      * @param value the value of the search result cell
 75  
      */
 76  0
     public SearchResultCellInfo(String key, String value) {
 77  0
         this.key = key;
 78  0
         this.value = value;
 79  0
     }
 80  
     
 81  
     @Override
 82  
     public String getValue() {
 83  0
         return value;
 84  
     }
 85  
     
 86  
     public void setValue(String value) {
 87  0
         this.value = value;
 88  0
     }
 89  
     
 90  
     @Override
 91  
     public String getKey() {
 92  0
         return key;
 93  
     }
 94  
     
 95  
     public void setKey(String key) {
 96  0
         this.key = key;
 97  0
     }
 98  
     
 99  
     @Override
 100  
     public String toString() {
 101  0
         return "SearchResultCell[key=" + key + ", value=" + value + "]";
 102  
     }
 103  
 }