| Package | Description |
|---|---|
| org.outerj.daisy.diff.html.dom |
| Modifier and Type | Class and Description |
|---|---|
class |
BodyNode
Represents the root of a HTML document.
|
class |
ImageNode
Represents an image in HTML.
|
class |
SeparatingNode
This is an artificial text node whose sole purpose is to separate
text nodes, so that they cannot be treated as a continuous text flow
by the RangeDifferencer.
|
class |
TagNode
Node that can contain other nodes.
|
class |
TextNode
Represents a piece of text in the HTML file.
|
class |
WhiteSpaceNode |
| Modifier and Type | Method and Description |
|---|---|
Node |
TextNode.copyTree() |
Node |
BodyNode.copyTree() |
Node |
TagNode.copyTree() |
abstract Node |
Node.copyTree() |
Node |
TagNode.getChild(int i) |
Node |
TextNode.getLeftMostChild() |
Node |
TagNode.getLeftMostChild() |
abstract Node |
Node.getLeftMostChild() |
Node |
TextNode.getRightMostChild() |
Node |
TagNode.getRightMostChild() |
abstract Node |
Node.getRightMostChild() |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
TextNode.getMinimalDeletedSet(long id) |
List<Node> |
BodyNode.getMinimalDeletedSet(long id) |
List<Node> |
TagNode.getMinimalDeletedSet(long id)
This recursive method considers a descendant deleted if all its
children had
TextNodes that now are marked as removed
with the provided id. |
abstract List<Node> |
Node.getMinimalDeletedSet(long id) |
Iterator<Node> |
TagNode.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
TagNode.addChild(int index,
Node node)
Inserts provided node in the collection of children at the specified index
if
this node is set as a parent for the parameter. |
void |
TagNode.addChild(Node node)
appends the provided node to the collection of children if
this node is set as the parameter's parent. |
int |
TagNode.getIndexOf(Node child)
If the provided parameter is in the same tree with
this object then this method fetches
index of the parameter object in the children collection. |
LastCommonParentResult |
Node.getLastCommonParent(Node other)
Descent the ancestors list for both nodes stopping either
at the first no-match case or when either of the lists is exhausted.
|
static boolean |
TagNode.isBlockLevel(Node node) |
static boolean |
TagNode.isInline(Node node) |
protected boolean |
TagNode.isSimilarTag(Node another)
Returns
true if this tag is similar to the given other tag. |
boolean |
TagNode.splitUntill(TagNode parent,
Node split,
boolean includeLeft)
Attempts to create 2
TagNodes with
the same name and attributes as the original this node. |
| Constructor and Description |
|---|
WhiteSpaceNode(TagNode parent,
String s,
Node like) |
Copyright © 2022. All rights reserved.