Uses of Class
de.hybris.platform.commons.translator.nodes.AbstractNode
-
-
Uses of AbstractNode in de.hybris.platform.commons.translator
Methods in de.hybris.platform.commons.translator that return AbstractNode Modifier and Type Method Description AbstractNodeTranslator. createNodesTree(java.lang.String text)search for parts of text that would be changed to special nodes (by using parsers from) and return nodes tree (TranslatorConfigurationAbstractNode) that can be translated in next phase to output textAbstractNodeTranslator. prepareNode(AbstractNode node)This is an optional method during translate process.Methods in de.hybris.platform.commons.translator that return types with arguments of type AbstractNode Modifier and Type Method Description java.util.List<AbstractNode>Translator. parseText(java.lang.String text)convert text to nodes list (if find any recognized text that should be changed to node)Methods in de.hybris.platform.commons.translator with parameters of type AbstractNode Modifier and Type Method Description AbstractNodeTranslator. prepareNode(AbstractNode node)This is an optional method during translate process.java.lang.StringTranslator. renderContent(AbstractNode node)generate output text from childNodes if they exists otherwise from nodeText from node itselfjava.lang.StringTranslator. renderTextFromNode(AbstractNode node)search for proper renderer and use it to render node content if render doesn't exist, get default renderer. -
Uses of AbstractNode in de.hybris.platform.commons.translator.nodes
Subclasses of AbstractNode in de.hybris.platform.commons.translator.nodes Modifier and Type Class Description classListNodenode for list elements (lists as ol, ul in html) instead of using child nodes it uses nodesListclassSimpleNodeNon abstract class that extedns AbstractNode,
without any other featuresclassTableNodeTable node that holds a 2-dimensional array of table cells.
(First row has number 1, first column has number 1.Methods in de.hybris.platform.commons.translator.nodes that return AbstractNode Modifier and Type Method Description AbstractNodeTableNode. getCell(int colNumber, int rowNumber)get cell (node) from position x,y ((x,y-1) from the TableNode's array)AbstractNodeAbstractNode. getChildNodeByName(java.lang.String nodeName)returns the node with the given name (or null, if no such code could be found)AbstractNodeListNode. getElement(int atPosition)AbstractNodeAbstractNode. getParentNode()Methods in de.hybris.platform.commons.translator.nodes that return types with arguments of type AbstractNode Modifier and Type Method Description java.util.List<AbstractNode>AbstractNode. getChildNodes()Methods in de.hybris.platform.commons.translator.nodes with parameters of type AbstractNode Modifier and Type Method Description voidAbstractNode. addChildNode(AbstractNode child)method that add one node to child nodes collection and set its parent as this nodevoidTableNode. setCell(AbstractNode cell, int colNumber, int rowNumber)set cell (node) to position x,y ((x,y-1) in the TableNode's array) we set cell even if it is a row cellvoidListNode. setElement(AbstractNode row, int x_Position)set element (node) at x position in nodesListvoidAbstractNode. setParentNode(AbstractNode parentNode)Method parameters in de.hybris.platform.commons.translator.nodes with type arguments of type AbstractNode Modifier and Type Method Description voidAbstractNode. addChildNodes(java.util.List<AbstractNode> childNodes)method that add all nodes from collection to this node child nodes collection, and set their parents as this nodevoidAbstractNode. setChildNodes(java.util.List<AbstractNode> childNodes)set collection of contained nodes -
Uses of AbstractNode in de.hybris.platform.commons.translator.parsers
Methods in de.hybris.platform.commons.translator.parsers that return AbstractNode Modifier and Type Method Description abstract AbstractNodeAbstractParser. createNode(java.lang.String start, java.lang.String end, java.lang.String text, Translator translator)CreateAbstractNodeinstance from a given textAbstractNodeHtmlSimpleEntityParser. createNode(java.lang.String start, java.lang.String end, java.lang.String text, Translator translator)AbstractNodeHtmlSimpleParser. createNode(java.lang.String start, java.lang.String end, java.lang.String text, Translator translator)AbstractNodeHtmlTableParser. createNode(java.lang.String start, java.lang.String end, java.lang.String text, Translator translator)create TableNode from text -
Uses of AbstractNode in de.hybris.platform.commons.translator.prerenderers
Methods in de.hybris.platform.commons.translator.prerenderers that return AbstractNode Modifier and Type Method Description AbstractNodePrerenderer. prepareNode(AbstractNode node)Method that is used inTranslatorwhentranslator.prepareNodemethod is calledMethods in de.hybris.platform.commons.translator.prerenderers with parameters of type AbstractNode Modifier and Type Method Description AbstractNodePrerenderer. prepareNode(AbstractNode node)Method that is used inTranslatorwhentranslator.prepareNodemethod is called -
Uses of AbstractNode in de.hybris.platform.commons.translator.renderers
Methods in de.hybris.platform.commons.translator.renderers with parameters of type AbstractNode Modifier and Type Method Description static booleanIndesignUtility. cellIsRenderable(AbstractNode node)static java.lang.StringIndesignUtility. closeForcedParentsTags(AbstractNode node)Get back the close tags of the node's open parents
Example:static java.lang.StringIndesignUtility. closeParentsTags(AbstractNode node)Get back the close tags of the node's open parents
Check if the parent tag is already closed
Example:java.lang.StringIndesignUtility. getBorder(AbstractNode node)static java.lang.StringIndesignUtility. getCellpadding(AbstractNode node)static java.lang.StringIndesignUtility. getCellspacing(AbstractNode node)static java.lang.StringIndesignUtility. getColumnWidth(AbstractNode node, int column)This methodstatic java.lang.StringIndesignUtility. initializeCharStyle(AbstractNode node)static voidIndesignUtility. initializeParaStyle(AbstractNode node, java.lang.String styleName)static java.lang.StringIndesignUtility. openForcedParentsTags(AbstractNode node)Get back the open tags of the node's closed parents
Example:static java.lang.StringIndesignUtility. openParentsTags(AbstractNode node)Get back the open tags of the node's closed parents
Check if the parent tag is already closed
Example:static booleanIndesignUtility. parentIsMain(AbstractNode node)protected static java.lang.StringIndesignUtility. parentTags(AbstractNode node, boolean checkOpenTags, boolean openClose)Get back the tags of the node's parents according to the openClose parameter
This method runs recursively up thru the node tree to find the parentsabstract java.lang.StringAbstractRenderer. renderTextFromNode(AbstractNode node, Translator translator)This method produces output text by using data from the node and by using a reference to the(for subnodes rendereing)Translatorjava.lang.StringEntityRenderer. renderTextFromNode(AbstractNode node, Translator translator)this method is using data fromchangeRulesMap, which is a map where keys are input and values are output texts.java.lang.StringPlainTextRenderer. renderTextFromNode(AbstractNode node, Translator translator)java.lang.StringReplaceRenderer. renderTextFromNode(AbstractNode node, Translator translator)java.lang.StringSimpleRenderer. renderTextFromNode(AbstractNode node, Translator translator)java.lang.StringVelocityRenderer. renderTextFromNode(AbstractNode node, Translator translator)
-