com.atlassian.confluence.content.render.xhtml.editor.macro
Interface MacroParameterTypeParser

All Known Implementing Classes:
MacroParameterTypeParserImpl

public interface MacroParameterTypeParser

Parses raw macro parameters to typed macro parameters

Since:
5.2

Method Summary
 Object parseMacroParameter(String macroName, String parameterName, String untypedValue, Map<String,String> untypedParameters, ConversionContext conversionContext)
           
 Map<String,Object> parseMacroParameters(String macroName, Map<String,String> untypedParameters, ConversionContext conversionContext)
          Given raw macro parameter types, this converts them to the appropriate kind of object.
 

Method Detail

parseMacroParameters

Map<String,Object> parseMacroParameters(String macroName,
                                        Map<String,String> untypedParameters,
                                        ConversionContext conversionContext)
                                        throws InvalidMacroParameterException
Given raw macro parameter types, this converts them to the appropriate kind of object.

Parameters:
macroName - The name of the macro whose parameters are to be parsed. Corresponds to the xhtml-macro name attribute
untypedParameters - A map of macro parameters as strings
Returns:
A map of macro parameters as various kinds of objects. See MacroParameterType
Throws:
InvalidMacroParameterException

parseMacroParameter

Object parseMacroParameter(String macroName,
                           String parameterName,
                           String untypedValue,
                           Map<String,String> untypedParameters,
                           ConversionContext conversionContext)
                           throws InvalidMacroParameterException
Throws:
InvalidMacroParameterException


Copyright © 2003–2015 Atlassian. All rights reserved.