Package mondrian.rolap.format
Class FormatterFactory
- java.lang.Object
-
- mondrian.rolap.format.FormatterFactory
-
public class FormatterFactory extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CellFormatter
createCellFormatter(FormatterCreateContext context)
Given the name of a cell formatter class and/or a cell formatter script, returns a cell formatter.PropertyFormatter
createPropertyFormatter(FormatterCreateContext context)
Given the name of a property formatter class and/or a property formatter script, returns a property formatter.MemberFormatter
createRolapMemberFormatter(FormatterCreateContext context)
Given the name of a member formatter class and/or a member formatter script, returns a member formatter.static FormatterFactory
instance()
-
-
-
Method Detail
-
instance
public static FormatterFactory instance()
-
createCellFormatter
public CellFormatter createCellFormatter(FormatterCreateContext context)
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
public MemberFormatter createRolapMemberFormatter(FormatterCreateContext context)
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
public PropertyFormatter createPropertyFormatter(FormatterCreateContext context)
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.
-
-