Package mondrian.rolap.format
Class FormatterCreateContext.Builder
- java.lang.Object
-
- mondrian.rolap.format.FormatterCreateContext.Builder
-
- Enclosing class:
- FormatterCreateContext
public static class FormatterCreateContext.Builder extends Object
Builder to create an instance of FormatterCreateContext.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatterCreateContext
build()
FormatterCreateContext.Builder
formatterAttr(String formatterClassName)
In order to support previous version's configurations, a custom formatter can be specified by only specifying its class name in attribute "formatter".FormatterCreateContext.Builder
formatterDef(MondrianDef.ElementFormatter formatterDef)
Data from Mondrian xml schema file to create a custom implementation of a requested formatter.FormatterCreateContext.Builder
script(String scriptText, String scriptLanguage)
A script data used to create a script based implementation of a requested formatter.FormatterCreateContext.Builder
script(MondrianDef.Script script)
A script data used to create a script based implementation of a requested formatter.
-
-
-
Constructor Detail
-
Builder
public Builder(String elementName)
Mondrian schema element name formatter is being created for. Element name itself is used just to properly log errors if any.
-
-
Method Detail
-
formatterDef
public FormatterCreateContext.Builder formatterDef(MondrianDef.ElementFormatter formatterDef)
Data from Mondrian xml schema file to create a custom implementation of a requested formatter.
-
formatterAttr
public FormatterCreateContext.Builder formatterAttr(String formatterClassName)
In order to support previous version's configurations, a custom formatter can be specified by only specifying its class name in attribute "formatter". Note: formatter as an element will supersede this class.
-
script
public FormatterCreateContext.Builder script(String scriptText, String scriptLanguage)
A script data used to create a script based implementation of a requested formatter.
-
script
public FormatterCreateContext.Builder script(MondrianDef.Script script)
A script data used to create a script based implementation of a requested formatter.
-
build
public FormatterCreateContext build()
-
-