Class EntityRenderer
- java.lang.Object
-
- de.hybris.platform.commons.translator.renderers.AbstractRenderer
-
- de.hybris.platform.commons.translator.renderers.EntityRenderer
-
public class EntityRenderer extends AbstractRenderer
EntityRendererfor all nodes created from html entities
it 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 Constructor Description EntityRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringrenderTextFromNode(AbstractNode node, Translator translator)this method is using data fromchangeRulesMap, which is a map where keys are input and values are output texts.voidsetEntitiesReplaceFileStream(java.io.InputStream entitiesReplaceFileStream)-
Methods inherited from class de.hybris.platform.commons.translator.renderers.AbstractRenderer
setEnd, setProperties, setStart
-
-
-
-
Method Detail
-
renderTextFromNode
public java.lang.String renderTextFromNode(AbstractNode node, Translator translator)
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
public void setEntitiesReplaceFileStream(java.io.InputStream entitiesReplaceFileStream)
- Parameters:
entitiesReplaceFileStream- the entitiesReplaceFileStream to set
-
-