Package mondrian.rolap
Interface RolapResult.ValueFormatter
-
- All Known Implementing Classes:
RolapResult.CellFormatterValueFormatter,RolapResult.FormatValueFormatter
- Enclosing class:
- RolapResult
static interface RolapResult.ValueFormatterFormatter to convert values into formatted strings.Every Cell has a value, a format string (or CellFormatter) and a formatted value string. There are a wide range of possible values (pick a Double, any Double - its a value). Because there are lots of possible values, there are also lots of possible formatted value strings. On the other hand, there are only a very small number of format strings and CellFormatter's. These formatters are to be cached in a synchronized HashMaps in order to limit how many copies need to be kept around.
There are two implementations of the ValueFormatter interface:
RolapResult.CellFormatterValueFormatter, which formats using a user-registeredCellFormatter; and-
RolapResult.FormatValueFormatter, which takes theLocaleobject.
-
-
Field Summary
Fields Modifier and Type Field Description static RolapResult.ValueFormatterEMPTYFormatter that always returns the empty string.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringformat(Object value, String formatString)Formats a value according to a format string.
-
-
-
Field Detail
-
EMPTY
static final RolapResult.ValueFormatter EMPTY
Formatter that always returns the empty string.
-
-