public class StorePriceMetaPropertyValueFormatter
extends atg.commerce.search.PriceMetaPropertyValueFormatter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
StorePriceMetaPropertyValueFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatDisplayValue(atg.repository.search.MetaProperty pProperty,
java.util.Locale pLocale,
java.lang.String pValue) |
protected java.text.Format |
getCurrencyFormat(atg.repository.search.MetaProperty pProperty,
java.util.Locale pLocale)
Creates a
Format instance to be used. |
public static final java.lang.String CLASS_VERSION
public StorePriceMetaPropertyValueFormatter()
public java.lang.String formatDisplayValue(atg.repository.search.MetaProperty pProperty, java.util.Locale pLocale, java.lang.String pValue)
formatDisplayValue
in interface atg.repository.search.MetaPropertyValueFormatter
formatDisplayValue
in class atg.commerce.search.PriceMetaPropertyValueFormatter
java.lang.NumberFormatException
- - If wrong decimal value is passed through the pValue
parameter.protected java.text.Format getCurrencyFormat(atg.repository.search.MetaProperty pProperty, java.util.Locale pLocale)
Creates a Format
instance to be used. This Format
instance
will be used by formatDisplayValue(MetaProperty, Locale, String)
method
to convert facet value returned by Search to the value displayed to user.
Override this method in order to define different price format for facets.
If overridden, do not return null
! This will cause the
formatDisplayValue(MetaProperty, Locale, String)
method to crash.
pProperty
- - price
meta-propertypLocale
- - current locale; if this parameter is null
, default Locale
will be used.Format
instance to be used when converting search price value to the displayable value.