Package com.microstrategy.web.transform
Class OutputFormatStyleMapper
- java.lang.Object
-
- com.microstrategy.web.transform.OutputFormatStyleMapper
-
- All Implemented Interfaces:
StyleMapper
public class OutputFormatStyleMapper extends java.lang.Object implements StyleMapper
This is a very simpleStyleMapper
object that evaluates theWebComponent.getOutputFormat()
property. It compares the value of this property (stored in theStyleRequestContext
object) with a numeric value specified as the "additional data".- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description OutputFormatStyleMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleMapperResult
mapStyle(java.lang.String styleName, StyleRequestContext context, java.lang.String addlData)
Determines whether the incoming style name ('styleName') should be mapped to a new style name based on the request context object ('context') and any other additional data ('addlData') provided by the Style Catalog Administrator.
-
-
-
Method Detail
-
mapStyle
public StyleMapperResult mapStyle(java.lang.String styleName, StyleRequestContext context, java.lang.String addlData)
Determines whether the incoming style name ('styleName') should be mapped to a new style name based on the request context object ('context') and any other additional data ('addlData') provided by the Style Catalog Administrator. The result is encapsulated in an instance of aStyleMapperResult
object.- Specified by:
mapStyle
in interfaceStyleMapper
- Parameters:
styleName
- The incoming style name that is being requested.context
- TheStyleRequestContext
object.addlData
- Any additional data supplied by the Style Catalog Administrator when defining this mapping.- Returns:
- An instance of a
StyleMapperResult
object indicating whether the conditions for mapper were met and a preferred style name to use.
-
-