com.anasoft.os.daofusion.cto.server
Interface FilterValueConverter<T>

Type Parameters:
T - Type of filter values the underlying FilterCriterionProvider works with.
All Known Implementing Classes:
FilterValueConverters.DateConverter

public interface FilterValueConverter<T>

Contract for converting string-based filter values received from the FilterAndSortCriteria into their typed object representations.

Author:
vojtech.szocs
See Also:
FilterAndSortMapping

Method Summary
 T convert(java.lang.String stringValue)
          Converts the given stringValue into appropriate object representation.
 

Method Detail

convert

T convert(java.lang.String stringValue)
Converts the given stringValue into appropriate object representation.

Sample method implementations:

 return stringValue;
 
 return Integer.valueOf(stringValue);
 
 return Boolean.valueOf(stringValue);
 

Parameters:
stringValue - String-based filter value received from the FilterAndSortCriteria.
Returns:
Filter value object representation.


Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.