Interface IRendererContext
- All Known Implementing Classes:
RendererContext
public interface IRendererContext
This class represents the context during the transformation of model to viewmodel.
- Since:
- 9.2
- Author:
- A.Pragt
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the default language code.This method returns the current language code.com.aquima.interactions.foundation.IValueFormatter
This method returns the value formatted.newInstance
(PageContent content) Creates a new IRendererContext instance with the same underlying configuration as this instance, but which renders elements into the given PageContent.void
registerElement
(ElementModel element) Registers a view model.render
(com.aquima.interactions.composer.IElement element) Converts an element to a view model.
-
Method Details
-
render
Converts an element to a view model.- Parameters:
element
- The element to transform.- Returns:
- The transformed model.
-
registerElement
Registers a view model.- Parameters:
element
- The view model to register, not null.
-
getLanguageCode
String getLanguageCode()This method returns the current language code.- Returns:
- The current language code.
-
getDefaultLanguageCode
String getDefaultLanguageCode()This method returns the default language code.- Returns:
- The default language code.
-
getValueFormatter
com.aquima.interactions.foundation.IValueFormatter getValueFormatter()This method returns the value formatted.- Returns:
- The value formatter.
-
newInstance
Creates a new IRendererContext instance with the same underlying configuration as this instance, but which renders elements into the given PageContent.- Parameters:
content
- the PageContent where elements are rendered by the returned instance- Returns:
- a new IRendererContext instance
-