atg.repository.search
Interface MetaPropertyValueFormatter
- All Known Implementing Classes:
- DefaultMetaPropertyValueFormatter, PriceMetaPropertyValueFormatter
public interface MetaPropertyValueFormatter
Implementations of this interface should be able to convert a value from search results,
i.e. as stored in the search index, into a more user readable String.
e.g. dates are stored in the index as timestamps and could be converted into locale specific
date strings.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Method Summary |
java.lang.String |
formatDisplayValue(MetaProperty pProperty,
java.util.Locale pLocale,
java.lang.String pValue)
Convert a value from search results,
i.e. |
CLASS_VERSION
static final java.lang.String CLASS_VERSION
- Class version string
- See Also:
- Constant Field Values
formatDisplayValue
java.lang.String formatDisplayValue(MetaProperty pProperty,
java.util.Locale pLocale,
java.lang.String pValue)
- Convert a value from search results,
i.e. as stored in the search index, into a more user readable String for the given property.
- Parameters:
pProperty
- MetaProperty for the given valuepLocale
- Optional Locale to use for formatting the string, may be null.pValue
- Search indexed value as returned in the search results
- Returns:
- String formatted into a more user readable version for display on a UI