Uses of Class
de.hybris.platform.commons.translator.nodes.AbstractNode
Packages that use AbstractNode
Package
Description
-
Uses of AbstractNode in de.hybris.platform.commons.translator
Methods in de.hybris.platform.commons.translator that return AbstractNodeModifier and TypeMethodDescriptionTranslator.createNodesTree(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 textTranslator.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 AbstractNodeModifier and TypeMethodDescriptionconvert 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 AbstractNodeModifier and TypeMethodDescriptionTranslator.prepareNode(AbstractNode node) This is an optional method during translate process.Translator.renderContent(AbstractNode node) generate output text from childNodes if they exists otherwise from nodeText from node itselfTranslator.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.nodesModifier and TypeClassDescriptionclassnode for list elements (lists as ol, ul in html) instead of using child nodes it uses nodesListclassNon abstract class that extedns AbstractNode,
without any other featuresclassTable 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 AbstractNodeModifier and TypeMethodDescriptionTableNode.getCell(int colNumber, int rowNumber) get cell (node) from position x,y ((x,y-1) from the TableNode's array)AbstractNode.getChildNodeByName(String nodeName) returns the node with the given name (or null, if no such code could be found)ListNode.getElement(int atPosition) AbstractNode.getParentNode()Methods in de.hybris.platform.commons.translator.nodes that return types with arguments of type AbstractNodeMethods in de.hybris.platform.commons.translator.nodes with parameters of type AbstractNodeModifier and TypeMethodDescriptionvoidAbstractNode.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 AbstractNodeModifier and TypeMethodDescriptionvoidAbstractNode.addChildNodes(List<AbstractNode> childNodes) method that add all nodes from collection to this node child nodes collection, and set their parents as this nodevoidAbstractNode.setChildNodes(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 AbstractNodeModifier and TypeMethodDescriptionabstract AbstractNodeAbstractParser.createNode(String start, String end, String text, Translator translator) CreateAbstractNodeinstance from a given textHtmlSimpleEntityParser.createNode(String start, String end, String text, Translator translator) HtmlSimpleParser.createNode(String start, String end, String text, Translator translator) HtmlTableParser.createNode(String start, String end, 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 AbstractNodeModifier and TypeMethodDescriptionPrerenderer.prepareNode(AbstractNode node) Method that is used inTranslatorwhentranslator.prepareNodemethod is calledMethods in de.hybris.platform.commons.translator.prerenderers with parameters of type AbstractNodeModifier and TypeMethodDescriptionPrerenderer.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 AbstractNodeModifier and TypeMethodDescriptionstatic booleanIndesignUtility.cellIsRenderable(AbstractNode node) static StringIndesignUtility.closeForcedParentsTags(AbstractNode node) Get back the close tags of the node's open parents
Example: <cStrikethru:><cTypeface:>static StringIndesignUtility.closeParentsTags(AbstractNode node) Get back the close tags of the node's open parents
Check if the parent tag is already closed
Example: <cStrikethru:><cTypeface:>IndesignUtility.getBorder(AbstractNode node) static StringIndesignUtility.getCellpadding(AbstractNode node) static StringIndesignUtility.getCellspacing(AbstractNode node) static StringIndesignUtility.getColumnWidth(AbstractNode node, int column) This methodstatic StringIndesignUtility.initializeCharStyle(AbstractNode node) static voidIndesignUtility.initializeParaStyle(AbstractNode node, String styleName) static StringIndesignUtility.openForcedParentsTags(AbstractNode node) Get back the open tags of the node's closed parents
Example: <cTypeface:Bold><cStrikethru:1>static StringIndesignUtility.openParentsTags(AbstractNode node) Get back the open tags of the node's closed parents
Check if the parent tag is already closed
Example: <cTypeface:Bold><cStrikethru:1>static booleanIndesignUtility.parentIsMain(AbstractNode node) protected static 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 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)TranslatorEntityRenderer.renderTextFromNode(AbstractNode node, Translator translator) this method is using data fromchangeRulesMap, which is a map where keys are input and values are output texts.PlainTextRenderer.renderTextFromNode(AbstractNode node, Translator translator) ReplaceRenderer.renderTextFromNode(AbstractNode node, Translator translator) SimpleRenderer.renderTextFromNode(AbstractNode node, Translator translator) VelocityRenderer.renderTextFromNode(AbstractNode node, Translator translator)