public class EntityRenderer extends AbstractRenderer
EntityRenderer for all nodes created from html entitiesend, properties, start| Constructor and Description |
|---|
EntityRenderer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
renderTextFromNode(AbstractNode node,
Translator translator)
this method is using data from
changeRulesMap, which is a map where keys are input and values are
output texts. |
void |
setEntitiesReplaceFileStream(java.io.InputStream entitiesReplaceFileStream) |
setEnd, setProperties, setStartpublic java.lang.String renderTextFromNode(AbstractNode node, Translator translator)
changeRulesMap, which is a map where keys are input and values are
output texts. When the renderTextFromNode method is called by the Translator,
nodeText from a given node is compared with all keys from changeRulesMap. If a matching
key is found the nodeText is replaced by the output value of changeRulesMap for this
key.renderTextFromNode in class AbstractRendererpublic void setEntitiesReplaceFileStream(java.io.InputStream entitiesReplaceFileStream)
entitiesReplaceFileStream - the entitiesReplaceFileStream to setCopyright © 2018 SAP SE. All Rights Reserved.