org.kuali.rice.kns.web.comparator
Class CellComparatorHelper

java.lang.Object
  extended by org.kuali.rice.kns.web.comparator.CellComparatorHelper

public class CellComparatorHelper
extends Object

This class...


Constructor Summary
CellComparatorHelper()
           
 
Method Summary
static Comparator getAppropriateComparatorForPropertyClass(Class propClass)
          This method returns a comparator to be used for comparing the contents of cells, that is the compareTo method will be invoked w/ displaytag Cell objects
static Comparator getAppropriateValueComparatorForPropertyClass(Class propClass)
          This method returns a comparator to be used for comparing propertyValues (in String form)
static String getSanitizedStaticValue(org.displaytag.model.Cell cell)
          This method is intended to be used in conjunction with displaytag.
static String getSanitizedStaticValue(String staticValue)
          Remove all end-of-line and tab characters (\r, \n, \t).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellComparatorHelper

public CellComparatorHelper()
Method Detail

getSanitizedStaticValue

public static String getSanitizedStaticValue(org.displaytag.model.Cell cell)
This method is intended to be used in conjunction with displaytag.

Parameters:
cell -
Returns:
a sanitized version of cell.getStaticValue().toString().
See Also:
getSanitizedStaticValue(String)

getSanitizedStaticValue

public static String getSanitizedStaticValue(String staticValue)
Remove all end-of-line and tab characters (\r, \n, \t). If the value is enclosed in an html anchor tag, strip the html anchor tag. If the value ends in one or many " "s, strip them off. Return the modified String.

Parameters:
staticValue -
Returns:
a sanitized version of staticValue

getAppropriateComparatorForPropertyClass

public static Comparator getAppropriateComparatorForPropertyClass(Class propClass)
This method returns a comparator to be used for comparing the contents of cells, that is the compareTo method will be invoked w/ displaytag Cell objects

Parameters:
propClass -
Returns:

getAppropriateValueComparatorForPropertyClass

public static Comparator getAppropriateValueComparatorForPropertyClass(Class propClass)
This method returns a comparator to be used for comparing propertyValues (in String form)

Parameters:
propClass -
Returns:


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.