| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
Translator.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 (AbstractNode) that can be translated
in next phase to output text |
AbstractNode |
Translator.prepareNode(AbstractNode node)
This is an optional method during translate process.
|
| Modifier and Type | Method and 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)
|
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
Translator.prepareNode(AbstractNode node)
This is an optional method during translate process.
|
java.lang.String |
Translator.renderContent(AbstractNode node)
generate output text from childNodes if they exists otherwise from nodeText from node itself
|
java.lang.String |
Translator.renderTextFromNode(AbstractNode node)
search for proper renderer and use it to render node content if render doesn't exist, get default renderer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ListNode
node for list elements (lists as ol, ul in html) instead of using child nodes it uses nodesList
|
class |
SimpleNode
Non abstract class that extedns AbstractNode,
without any other features |
class |
TableNode
Table node that holds a 2-dimensional array of table cells.
(First row has number 1, first column has number 1. |
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
TableNode.getCell(int colNumber,
int rowNumber)
get cell (node) from position x,y ((x,y-1) from the TableNode's array)
|
AbstractNode |
AbstractNode.getChildNodeByName(java.lang.String nodeName)
returns the node with the given name (or null, if no such code could be found)
|
AbstractNode |
ListNode.getElement(int atPosition) |
AbstractNode |
AbstractNode.getParentNode() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AbstractNode> |
AbstractNode.getChildNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractNode.addChildNode(AbstractNode child)
method that add one node to child nodes collection and set its parent as this node
|
void |
TableNode.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 cell
|
void |
ListNode.setElement(AbstractNode row,
int x_Position)
set element (node) at x position in nodesList
|
void |
AbstractNode.setParentNode(AbstractNode parentNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractNode.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 node
|
void |
AbstractNode.setChildNodes(java.util.List<AbstractNode> childNodes)
set collection of contained nodes
|
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
HtmlTableParser.createNode(java.lang.String start,
java.lang.String end,
java.lang.String text,
Translator translator)
create TableNode from text
|
AbstractNode |
HtmlSimpleParser.createNode(java.lang.String start,
java.lang.String end,
java.lang.String text,
Translator translator) |
abstract AbstractNode |
AbstractParser.createNode(java.lang.String start,
java.lang.String end,
java.lang.String text,
Translator translator)
Create
AbstractNode instance from a given text |
AbstractNode |
HtmlSimpleEntityParser.createNode(java.lang.String start,
java.lang.String end,
java.lang.String text,
Translator translator) |
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
Prerenderer.prepareNode(AbstractNode node)
Method that is used in
Translator when
translator.prepareNode method is called |
| Modifier and Type | Method and Description |
|---|---|
AbstractNode |
Prerenderer.prepareNode(AbstractNode node)
Method that is used in
Translator when
translator.prepareNode method is called |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
IndesignUtility.cellIsRenderable(AbstractNode node) |
static java.lang.String |
IndesignUtility.closeForcedParentsTags(AbstractNode node)
Get back the close tags of the node's open parents
Example: |
static java.lang.String |
IndesignUtility.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.String |
IndesignUtility.getBorder(AbstractNode node) |
static java.lang.String |
IndesignUtility.getCellpadding(AbstractNode node) |
static java.lang.String |
IndesignUtility.getCellspacing(AbstractNode node) |
static java.lang.String |
IndesignUtility.getColumnWidth(AbstractNode node,
int column)
This method
|
static java.lang.String |
IndesignUtility.initializeCharStyle(AbstractNode node) |
static void |
IndesignUtility.initializeParaStyle(AbstractNode node,
java.lang.String styleName) |
static java.lang.String |
IndesignUtility.openForcedParentsTags(AbstractNode node)
Get back the open tags of the node's closed parents
Example: |
static java.lang.String |
IndesignUtility.openParentsTags(AbstractNode node)
Get back the open tags of the node's closed parents
Check if the parent tag is already closed Example: |
static boolean |
IndesignUtility.parentIsMain(AbstractNode node) |
protected static java.lang.String |
IndesignUtility.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 parents |
java.lang.String |
VelocityRenderer.renderTextFromNode(AbstractNode node,
Translator translator) |
abstract java.lang.String |
AbstractRenderer.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) |
java.lang.String |
EntityRenderer.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. |
java.lang.String |
ReplaceRenderer.renderTextFromNode(AbstractNode node,
Translator translator) |
java.lang.String |
PlainTextRenderer.renderTextFromNode(AbstractNode node,
Translator translator) |
java.lang.String |
SimpleRenderer.renderTextFromNode(AbstractNode node,
Translator translator) |
Copyright © 2018 SAP SE. All Rights Reserved.