org.xwiki.rendering.macro.chart
Interface ChartDataSource


@ComponentRole
public interface ChartDataSource

Interface for defining various data sources for charts.

Since:
2.0M1
Version:
$Id$

Field Summary
static String PARAMS
          Parameter identifier for data source specific parameters.
static String SOURCE
          Parameter identifier for data source.
 
Method Summary
 ChartModel buildModel(String macroContent, Map<String,String> macroParameters)
          Decodes the given macroContent / extraParams and builds a ChartModel.
 

Field Detail

SOURCE

static final String SOURCE
Parameter identifier for data source.

See Also:
Constant Field Values

PARAMS

static final String PARAMS
Parameter identifier for data source specific parameters.

See Also:
Constant Field Values
Method Detail

buildModel

ChartModel buildModel(String macroContent,
                      Map<String,String> macroParameters)
                      throws org.xwiki.rendering.macro.MacroExecutionException
Decodes the given macroContent / extraParams and builds a ChartModel.

Parameters:
macroContent - content of the macro.
macroParameters - parameters provided for the macro.
Returns:
a ChartModel corresponding to the parameters passed in.
Throws:
org.xwiki.rendering.macro.MacroExecutionException - if something goes wrong while decoding source / parameters.


Copyright © 2004-2011 XWiki. All Rights Reserved.