Enum Class BlockKind
- All Implemented Interfaces:
Serializable, Comparable<BlockKind>, Constable
Visual / structural classification of a
TextSection as detected by Layer 1
parsing — a geometric / typographic judgement, NOT a semantic one. The library answers
"this looks like a heading" / "this looks like a body paragraph"; whether a heading
means "Section 5.3 — Indemnities" vs "Acme Corp Limited" is a semantic question the
LLM answers downstream. (Per the layer-separation principle: parser → context →
LLM → citation match → audit.)
The enum constants are frozen at v0.1.0 — adding new kinds in future requires a major bump per CONTRIBUTING.md "Public API contracts".
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
HEADING
A heading-like block — bigger font OR all-caps short text. -
BODY
A regular body paragraph. -
LIST
A list item (bulleted or numbered). -
OTHER
Could not classify — default for parsers that don't analyse layout.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-