mondrian.rolap
Class RolapResult.FormatValueFormatter

java.lang.Object
  extended by mondrian.rolap.RolapResult.FormatValueFormatter
All Implemented Interfaces:
RolapResult.ValueFormatter
Enclosing class:
RolapResult

static class RolapResult.FormatValueFormatter
extends Object
implements RolapResult.ValueFormatter

A FormatValueFormatter takes a Locale as a parameter and uses it to get the Format to be used in formatting an Object value with a given format string.


Field Summary
(package private)  Locale locale
           
 
Fields inherited from interface mondrian.rolap.RolapResult.ValueFormatter
EMPTY
 
Constructor Summary
RolapResult.FormatValueFormatter(Locale locale)
          Creates a FormatValueFormatter.
 
Method Summary
 String format(Object value, String formatString)
          Formats a value according to a format string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

final Locale locale
Constructor Detail

RolapResult.FormatValueFormatter

RolapResult.FormatValueFormatter(Locale locale)
Creates a FormatValueFormatter.

Parameters:
locale - Locale
Method Detail

format

public String format(Object value,
                     String formatString)
Description copied from interface: RolapResult.ValueFormatter
Formats a value according to a format string.

Specified by:
format in interface RolapResult.ValueFormatter
Parameters:
value - Value
formatString - Format string
Returns:
Formatted value

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads