Class 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 Detail

      • 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.