Coverage Report - org.kuali.rice.krad.web.ui.HeaderField
 
Classes in this File Line Coverage Branch Coverage Complexity
HeaderField
0%
0/32
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2008 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  * http://www.opensource.org/licenses/ecl2.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 implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krad.web.ui;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 /**
 21  
  * 
 22  
  */
 23  
 public class HeaderField implements Serializable {
 24  
     private static final long serialVersionUID = 1L;
 25  
     
 26  0
     public static final HeaderField EMPTY_FIELD = new HeaderField();
 27  
     
 28  
     private String id;  // to be used as a unique identifier if needed
 29  
     private String ddAttributeEntryName;
 30  
     private String displayValue;
 31  
     private String nonLookupValue;
 32  
     private boolean lookupAware;
 33  
     
 34  0
     public HeaderField() {
 35  0
     }
 36  
     
 37  
     public HeaderField(String id, String ddAttributeEntryName, String displayValue, String nonLookupValue) {
 38  0
             this(ddAttributeEntryName, displayValue, nonLookupValue);
 39  0
             this.id = id;
 40  0
     }
 41  
     
 42  0
     public HeaderField(String ddAttributeEntryName, String displayValue, String nonLookupValue) {
 43  0
         this.ddAttributeEntryName = ddAttributeEntryName;
 44  0
         this.displayValue = displayValue;
 45  0
         this.nonLookupValue = nonLookupValue;
 46  0
         this.lookupAware = true;
 47  0
     }
 48  
     
 49  0
     public HeaderField(String ddAttributeEntryName, String displayValue) {
 50  0
         this.ddAttributeEntryName = ddAttributeEntryName;
 51  0
         this.displayValue = displayValue;
 52  0
         this.lookupAware = false;
 53  0
     }
 54  
     
 55  
     public String getId() {
 56  0
                 return this.id;
 57  
         }
 58  
 
 59  
         public void setId(String id) {
 60  0
                 this.id = id;
 61  0
         }
 62  
 
 63  
         public String getDdAttributeEntryName() {
 64  0
         return this.ddAttributeEntryName;
 65  
     }
 66  
     
 67  
     public void setDdAttributeEntryName(String ddAttributeEntryName) {
 68  0
         this.ddAttributeEntryName = ddAttributeEntryName;
 69  0
     }
 70  
     
 71  
     public String getDisplayValue() {
 72  0
         return this.displayValue;
 73  
     }
 74  
     
 75  
     public void setDisplayValue(String displayValue) {
 76  0
         this.displayValue = displayValue;
 77  0
     }
 78  
     
 79  
     public String getNonLookupValue() {
 80  0
         return this.nonLookupValue;
 81  
     }
 82  
     
 83  
     public void setNonLookupValue(String nonLookupValue) {
 84  0
         this.nonLookupValue = nonLookupValue;
 85  0
     }
 86  
     
 87  
     public boolean isLookupAware() {
 88  0
         return this.lookupAware;
 89  
     }
 90  
     
 91  
     public void setLookupAware(boolean lookupAware) {
 92  0
         this.lookupAware = lookupAware;
 93  0
     }
 94  
 }