Enum Class BlockKind

java.lang.Object
java.lang.Enum<BlockKind>
ai.doctruth.BlockKind
All Implemented Interfaces:
Serializable, Comparable<BlockKind>, Constable

public enum BlockKind extends Enum<BlockKind>
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
  • Enum Constant Details

    • HEADING

      public static final BlockKind HEADING
      A heading-like block — bigger font OR all-caps short text.
    • BODY

      public static final BlockKind BODY
      A regular body paragraph.
    • LIST

      public static final BlockKind LIST
      A list item (bulleted or numbered).
    • OTHER

      public static final BlockKind OTHER
      Could not classify — default for parsers that don't analyse layout.
  • Method Details

    • values

      public static BlockKind[] 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

      public static BlockKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null