public class HtmlFosterRules
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
FOSTER_TABLE_ELEMENTS |
protected java.util.ArrayList<Element> |
fosterElements |
protected java.util.ArrayList<Text> |
fosterTexts |
protected java.util.ArrayList<Element> |
lastTables |
static java.lang.String[] |
TABLE_ELEMENTS |
Constructor and Description |
---|
HtmlFosterRules() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
findFosterNodes(Node node)
Finds foster elements.
|
protected Element |
findLastTable(Node node)
Finds the last table in stack of open elements.
|
protected void |
fixElements()
Performs the fix for elements.
|
void |
fixFosterElements(Document document)
Fixes foster elements.
|
protected void |
fixText() |
protected boolean |
isOneOfTableElements(Element element)
Returns
true if provided element is one of the table-related elements. |
protected boolean |
isParentNodeOneOfFosterTableElements(Node parentNode)
Returns
true if parent node is one of the table elements. |
protected boolean |
isTableElement(Node node)
Returns
true if given node is a table element. |
public static final java.lang.String[] FOSTER_TABLE_ELEMENTS
public static final java.lang.String[] TABLE_ELEMENTS
protected java.util.ArrayList<Element> lastTables
protected java.util.ArrayList<Element> fosterElements
protected java.util.ArrayList<Text> fosterTexts
protected boolean isOneOfTableElements(Element element)
true
if provided element is one of the table-related elements.protected boolean isTableElement(Node node)
true
if given node is a table element.protected boolean isParentNodeOneOfFosterTableElements(Node parentNode)
true
if parent node is one of the table elements.protected Element findLastTable(Node node)
public void fixFosterElements(Document document)
protected boolean findFosterNodes(Node node)
true
if there was no change in
DOM tree of the parent element. Otherwise, returns false
meaning that parent will scan its childs again.protected void fixElements()
protected void fixText()
Copyright © 2003-present Jodd Team