Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.web;
 
A simple bean for storing key/value pairs that can be used for a number of tasks. Right now it is used to hold information that will be display on a jsp for drop down boxes.

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 public class KeyValueSort implements KeyValue {
 
 	private static final long serialVersionUID = 3575440091286391804L;
 
 	private Object sortValue;
     private Class sortClass;
     private final ConcreteKeyValue keyValue;
     
     
 	public KeyValueSort() {
 	}
 
 	public KeyValueSort(String keyString value) {
 		 = new ConcreteKeyValue(keyvalue);
 	}
 
     public KeyValueSort(String keyString valueObject sortValueSearchableAttributeValue searchableAttributeValue) {
         this(key,value);
         this. = sortValue;
         this. = searchableAttributeValue;
     }
 
     public KeyValueSort(String keyString valueString userDisplayValueObject sortValueSearchableAttributeValue searchableAttributeValue) {
     	this(key,value,sortValue,searchableAttributeValue);
         this. = userDisplayValue;
     }
 
     public KeyValueSort(KeyValueSort kvs) {
         this(kvs.getKey(),kvs.getValue(),kvs.getUserDisplayValue(),kvs.getSortValue(),kvs.getSearchableAttributeValue());
     }
 
 	public Object getSortValue() {
 		return ;
 	}
 
 	public void setSortValue(Object sortValue) {
 		this. = sortValue;
         this. = sortValue.getClass();
 	}
 
     public Class getSortClass() {
         return ;
     }
 
         return ;
     }
     
     public String getUserDisplayValue() {
     	if (StringUtils.isNotBlank()) {
     		return ;
     	}
     	return getValue();
     }
 
 	public String getKey() {
 		return .getKey();
 	}
 
 	public String getValue() {
 		return .getValue();
 	}
 
 	public void setKey(String k) {
	}
	public void setValue(String v) {
	}
New to GrepCode? Check out our FAQ X