Package mondrian.rolap.format
Class FormatterFactory
java.lang.Object
mondrian.rolap.format.FormatterFactory
Formatter factory to provide a single point
to create different formatters for element values.
Uses provided context data to instantiate a formatter for the element
either by specified class name or script.
-
Method Summary
Modifier and TypeMethodDescriptionGiven the name of a cell formatter class and/or a cell formatter script, returns a cell formatter.Given the name of a property formatter class and/or a property formatter script, returns a property formatter.Given the name of a member formatter class and/or a member formatter script, returns a member formatter.static FormatterFactory
instance()
-
Method Details
-
instance
-
createCellFormatter
Given the name of a cell formatter class and/or a cell formatter script, returns a cell formatter.Returns null if empty context is passed.
-
createRolapMemberFormatter
Given the name of a member formatter class and/or a member formatter script, returns a member formatter.Returns default formatter implementation if empty context is passed.
-
createPropertyFormatter
Given the name of a property formatter class and/or a property formatter script, returns a property formatter.Returns default formatter implementation if empty context is passed.
-