Top Description Inners
org.jabref.htmltonode.model

public sealed Interface Block

permits Paragraph, Heading, ListBlock, DefinitionList, Quote, Pre, Rule, Table, Container
Known Direct Implementers
org.jabref.htmltonode.model.Block.Paragraph, org.jabref.htmltonode.model.Block.Heading, org.jabref.htmltonode.model.Block.ListBlock, org.jabref.htmltonode.model.Block.DefinitionList, org.jabref.htmltonode.model.Block.Quote, org.jabref.htmltonode.model.Block.Pre, org.jabref.htmltonode.model.Block.Rule, org.jabref.htmltonode.model.Block.Table, org.jabref.htmltonode.model.Block.Container
Imports
java.util.List

Block-level content resulting from parsing HTML.

CSS classes from the source HTML (e.g. citeproc's csl-entry) are preserved on blocks so renderers can expose them as JavaFX style classes.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static record
Block.Container

A grouping block (<div> with multiple children, csl-bib-body, …).

public static record
Block.DefinitionItem

term == true for <dt>, false for <dd> (rendered indented).

public static record
Block.DefinitionList

<dl> as a flat sequence of terms and details.

public static record
Block.Heading

<h1>–<h6>; level is 1–6.

public static record
Block.ListBlock

<ul> / <ol start="…">.

public static record
public static record
Block.Paragraph

A paragraph of inline content.

public static record
Block.Pre

<pre>: whitespace preserved, monospace already applied to the runs' styles.

public static record
Block.Quote

<blockquote>.

public static record
public static record
Block.Table

Minimal <table> support: rows of cells, no row spans.

public static record
public static record
org.jabref.htmltonode.model back to summary

public final Record Block.Container

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
blocks:List<Block> 
cssClasses:List<String> 

A grouping block (<div> with multiple children, csl-bib-body, …).

Field Summary

Modifier and TypeField and Description
private final List<Block>
blocks

Record Component accessed by blocks().

private final List<String>
cssClasses

Record Component accessed by cssClasses().

Constructor Summary

AccessConstructor and Description
public
Container(List<Block> blocks, List<String> cssClasses)

Method Summary

Modifier and TypeMethod and Description
public List<Block>
blocks()

Record Component getter of blocks.

public List<String>
cssClasses()

Record Component getter of cssClasses.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

blocksback to summary
private final List<Block> blocks

Record Component accessed by blocks().

cssClassesback to summary
private final List<String> cssClasses

Record Component accessed by cssClasses().

Constructor Detail

Containerback to summary
public Container(List<Block> blocks, List<String> cssClasses)

Method Detail

blocksback to summary
public List<Block> blocks()

Record Component getter of blocks.

cssClassesback to summary
public List<String> cssClasses()

Record Component getter of cssClasses.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.DefinitionItem

extends Record
Class Inheritance
Record Components
term:boolean 
blocks:List<Block> 

term == true for <dt>, false for <dd> (rendered indented).

Field Summary

Modifier and TypeField and Description
private final List<Block>
blocks

Record Component accessed by blocks().

private final boolean
term

Record Component accessed by term().

Constructor Summary

AccessConstructor and Description
public
DefinitionItem(boolean term, List<Block> blocks)

Method Summary

Modifier and TypeMethod and Description
public List<Block>
blocks()

Record Component getter of blocks.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public boolean
term()

Record Component getter of term.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

blocksback to summary
private final List<Block> blocks

Record Component accessed by blocks().

termback to summary
private final boolean term

Record Component accessed by term().

Constructor Detail

DefinitionItemback to summary
public DefinitionItem(boolean term, List<Block> blocks)

Method Detail

blocksback to summary
public List<Block> blocks()

Record Component getter of blocks.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

termback to summary
public boolean term()

Record Component getter of term.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.DefinitionList

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
items:List<Block.DefinitionItem> 

<dl> as a flat sequence of terms and details.

Field Summary

Modifier and TypeField and Description
private final List<Block.DefinitionItem>
items

Record Component accessed by items().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Block.DefinitionItem>
items()

Record Component getter of items.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

itemsback to summary
private final List<Block.DefinitionItem> items

Record Component accessed by items().

Constructor Detail

DefinitionListback to summary
public DefinitionList(List<Block.DefinitionItem> items)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

itemsback to summary
public List<Block.DefinitionItem> items()

Record Component getter of items.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Heading

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
level:int 
inlines:List<Inline> 
cssClasses:List<String> 

<h1>–<h6>; level is 1–6.

Field Summary

Modifier and TypeField and Description
private final List<String>
cssClasses

Record Component accessed by cssClasses().

private final List<Inline>
inlines

Record Component accessed by inlines().

private final int
level

Record Component accessed by level().

Constructor Summary

AccessConstructor and Description
public
Heading(int level, List<Inline> inlines, List<String> cssClasses)

Method Summary

Modifier and TypeMethod and Description
public List<String>
cssClasses()

Record Component getter of cssClasses.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Inline>
inlines()

Record Component getter of inlines.

public int
level()

Record Component getter of level.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

cssClassesback to summary
private final List<String> cssClasses

Record Component accessed by cssClasses().

inlinesback to summary
private final List<Inline> inlines

Record Component accessed by inlines().

levelback to summary
private final int level

Record Component accessed by level().

Constructor Detail

Headingback to summary
public Heading(int level, List<Inline> inlines, List<String> cssClasses)

Method Detail

cssClassesback to summary
public List<String> cssClasses()

Record Component getter of cssClasses.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

inlinesback to summary
public List<Inline> inlines()

Record Component getter of inlines.

levelback to summary
public int level()

Record Component getter of level.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.ListBlock

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
ordered:boolean 
start:int 
items:List<Block.ListItem> 

<ul> / <ol start="…">.

Field Summary

Modifier and TypeField and Description
private final List<Block.ListItem>
items

Record Component accessed by items().

private final boolean
ordered

Record Component accessed by ordered().

private final int
start

Record Component accessed by start().

Constructor Summary

AccessConstructor and Description
public
ListBlock(boolean ordered, int start, List<Block.ListItem> items)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Block.ListItem>
items()

Record Component getter of items.

public boolean
ordered()

Record Component getter of ordered.

public int
start()

Record Component getter of start.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

itemsback to summary
private final List<Block.ListItem> items

Record Component accessed by items().

orderedback to summary
private final boolean ordered

Record Component accessed by ordered().

startback to summary
private final int start

Record Component accessed by start().

Constructor Detail

ListBlockback to summary
public ListBlock(boolean ordered, int start, List<Block.ListItem> items)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

itemsback to summary
public List<Block.ListItem> items()

Record Component getter of items.

orderedback to summary
public boolean ordered()

Record Component getter of ordered.

startback to summary
public int start()

Record Component getter of start.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.ListItem

extends Record
Class Inheritance
Record Components
blocks:List<Block> 

Field Summary

Modifier and TypeField and Description
private final List<Block>
blocks

Record Component accessed by blocks().

Constructor Summary

AccessConstructor and Description
public
ListItem(List<Block> blocks)

Method Summary

Modifier and TypeMethod and Description
public List<Block>
blocks()

Record Component getter of blocks.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

blocksback to summary
private final List<Block> blocks

Record Component accessed by blocks().

Constructor Detail

ListItemback to summary
public ListItem(List<Block> blocks)

Method Detail

blocksback to summary
public List<Block> blocks()

Record Component getter of blocks.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Paragraph

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
inlines:List<Inline> 
spaced:boolean 
cssClasses:List<String> 

A paragraph of inline content. spaced distinguishes <p> (vertical margins) from <div>/anonymous inline content (no margins).

Field Summary

Modifier and TypeField and Description
private final List<String>
cssClasses

Record Component accessed by cssClasses().

private final List<Inline>
inlines

Record Component accessed by inlines().

private final boolean
spaced

Record Component accessed by spaced().

Constructor Summary

AccessConstructor and Description
public
Paragraph(List<Inline> inlines, boolean spaced, List<String> cssClasses)

Method Summary

Modifier and TypeMethod and Description
public List<String>
cssClasses()

Record Component getter of cssClasses.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Inline>
inlines()

Record Component getter of inlines.

public boolean
spaced()

Record Component getter of spaced.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

cssClassesback to summary
private final List<String> cssClasses

Record Component accessed by cssClasses().

inlinesback to summary
private final List<Inline> inlines

Record Component accessed by inlines().

spacedback to summary
private final boolean spaced

Record Component accessed by spaced().

Constructor Detail

Paragraphback to summary
public Paragraph(List<Inline> inlines, boolean spaced, List<String> cssClasses)

Method Detail

cssClassesback to summary
public List<String> cssClasses()

Record Component getter of cssClasses.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

inlinesback to summary
public List<Inline> inlines()

Record Component getter of inlines.

spacedback to summary
public boolean spaced()

Record Component getter of spaced.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Pre

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
inlines:List<Inline> 
cssClasses:List<String> 

<pre>: whitespace preserved, monospace already applied to the runs' styles.

Field Summary

Modifier and TypeField and Description
private final List<String>
cssClasses

Record Component accessed by cssClasses().

private final List<Inline>
inlines

Record Component accessed by inlines().

Constructor Summary

AccessConstructor and Description
public
Pre(List<Inline> inlines, List<String> cssClasses)

Method Summary

Modifier and TypeMethod and Description
public List<String>
cssClasses()

Record Component getter of cssClasses.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Inline>
inlines()

Record Component getter of inlines.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

cssClassesback to summary
private final List<String> cssClasses

Record Component accessed by cssClasses().

inlinesback to summary
private final List<Inline> inlines

Record Component accessed by inlines().

Constructor Detail

Preback to summary
public Pre(List<Inline> inlines, List<String> cssClasses)

Method Detail

cssClassesback to summary
public List<String> cssClasses()

Record Component getter of cssClasses.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

inlinesback to summary
public List<Inline> inlines()

Record Component getter of inlines.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Quote

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
blocks:List<Block> 

<blockquote>.

Field Summary

Modifier and TypeField and Description
private final List<Block>
blocks

Record Component accessed by blocks().

Constructor Summary

AccessConstructor and Description
public
Quote(List<Block> blocks)

Method Summary

Modifier and TypeMethod and Description
public List<Block>
blocks()

Record Component getter of blocks.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

blocksback to summary
private final List<Block> blocks

Record Component accessed by blocks().

Constructor Detail

Quoteback to summary
public Quote(List<Block> blocks)

Method Detail

blocksback to summary
public List<Block> blocks()

Record Component getter of blocks.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Rule

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
no record components

<hr>.

Constructor Summary

AccessConstructor and Description
public
Rule()

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Constructor Detail

Ruleback to summary
public Rule()

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.Table

extends Record
implements Block
Class Inheritance
All Implemented Interfaces
org.jabref.htmltonode.model.Block
Record Components
rows:List<Block.TableRow> 

Minimal <table> support: rows of cells, no row spans.

Field Summary

Modifier and TypeField and Description
private final List<Block.TableRow>
rows

Record Component accessed by rows().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<Block.TableRow>
rows()

Record Component getter of rows.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

rowsback to summary
private final List<Block.TableRow> rows

Record Component accessed by rows().

Constructor Detail

Tableback to summary
public Table(List<Block.TableRow> rows)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

rowsback to summary
public List<Block.TableRow> rows()

Record Component getter of rows.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.TableCell

extends Record
Class Inheritance
Record Components
header:boolean 
columnSpan:int 
blocks:List<Block> 

Field Summary

Modifier and TypeField and Description
private final List<Block>
blocks

Record Component accessed by blocks().

private final int
columnSpan

Record Component accessed by columnSpan().

private final boolean
header

Record Component accessed by header().

Constructor Summary

AccessConstructor and Description
public
TableCell(boolean header, int columnSpan, List<Block> blocks)

Method Summary

Modifier and TypeMethod and Description
public List<Block>
blocks()

Record Component getter of blocks.

public int
columnSpan()

Record Component getter of columnSpan.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public boolean
header()

Record Component getter of header.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

blocksback to summary
private final List<Block> blocks

Record Component accessed by blocks().

columnSpanback to summary
private final int columnSpan

Record Component accessed by columnSpan().

headerback to summary
private final boolean header

Record Component accessed by header().

Constructor Detail

TableCellback to summary
public TableCell(boolean header, int columnSpan, List<Block> blocks)

Method Detail

blocksback to summary
public List<Block> blocks()

Record Component getter of blocks.

columnSpanback to summary
public int columnSpan()

Record Component getter of columnSpan.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

headerback to summary
public boolean header()

Record Component getter of header.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

org.jabref.htmltonode.model back to summary

public final Record Block.TableRow

extends Record
Class Inheritance
Record Components
cells:List<Block.TableCell> 

Field Summary

Modifier and TypeField and Description
private final List<Block.TableCell>
cells

Record Component accessed by cells().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<Block.TableCell>
cells()

Record Component getter of cells.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

cellsback to summary
private final List<Block.TableCell> cells

Record Component accessed by cells().

Constructor Detail

TableRowback to summary
public TableRow(List<Block.TableCell> cells)

Method Detail

cellsback to summary
public List<Block.TableCell> cells()

Record Component getter of cells.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.