org.xwiki.localization.internal.message
Class ParameterTranslationMessageElement
java.lang.Object
org.xwiki.localization.internal.message.ParameterTranslationMessageElement
- All Implemented Interfaces:
- TranslationMessageElement
public class ParameterTranslationMessageElement
- extends Object
- implements TranslationMessageElement
A TranslationMessageElement
resolved based on a passed parameter.
- Since:
- 4.3M2
Method Summary |
Block |
render(Locale locale,
Collection<TranslationBundle> bundles,
Object... parameters)
Execute the transformation (resolve any variable or parameter in its content) and produce a Block to insert in an
into a XDOM or to render as it is. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterTranslationMessageElement
public ParameterTranslationMessageElement(int index,
Parser plainParser)
- Parameters:
index
- the index of the paramater to returnplainParser
- used to parse the String content
render
public Block render(Locale locale,
Collection<TranslationBundle> bundles,
Object... parameters)
- Description copied from interface:
TranslationMessageElement
- Execute the transformation (resolve any variable or parameter in its content) and produce a Block to insert in an
into a XDOM or to render as it is.
- Specified by:
render
in interface TranslationMessageElement
- Parameters:
locale
- the locale to used to resolve variablesbundles
- the bundles to resolve variables withparameters
- the parameters
- Returns:
- the result translation