Class EntityRenderer
java.lang.Object
de.hybris.platform.commons.translator.renderers.AbstractRenderer
de.hybris.platform.commons.translator.renderers.EntityRenderer
EntityRenderer for all nodes created from html entitiesit gets additional inputStream with rules how to render nodes.
-
Field Summary
Fields inherited from class de.hybris.platform.commons.translator.renderers.AbstractRenderer
end, properties, start -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrenderTextFromNode(AbstractNode node, Translator translator) this method is using data fromchangeRulesMap, which is a map where keys are input and values are output texts.voidsetEntitiesReplaceFileStream(InputStream entitiesReplaceFileStream) Methods inherited from class de.hybris.platform.commons.translator.renderers.AbstractRenderer
setEnd, setProperties, setStart
-
Constructor Details
-
EntityRenderer
public EntityRenderer()
-
-
Method Details
-
renderTextFromNode
this method is using data fromchangeRulesMap, which is a map where keys are input and values are output texts. When therenderTextFromNodemethod is called by the,TranslatornodeTextfrom a given node is compared with all keys fromchangeRulesMap. If a matching key is found thenodeTextis replaced by the output value ofchangeRulesMapfor this key.- Specified by:
renderTextFromNodein classAbstractRenderer
-
setEntitiesReplaceFileStream
- Parameters:
entitiesReplaceFileStream- the entitiesReplaceFileStream to set
-