Class RegistryDelta

java.lang.Object
network.ike.docs.plugin.diff.RegistryDelta

public final class RegistryDelta extends Object
Entry-keyed delta of the IKE topic registry between the two sides of a doc-diff comparison, rendered as an AsciiDoc partial (ike-issues#650). Both sides are generated from the files on that side (RegistryIndex.load(GitSource, String, String)); no hand-kept registry is read.

Always keyed by entry id, never by line. Output is condensed for review — summary/notes changes are flagged as rewritten rather than reproduced, list fields report added/removed items, scalars report old → new. Covers per-domain topic entries, the topic counts, and assembly membership.

  • Constructor Details

    • RegistryDelta

      public RegistryDelta(String fromRef, String toRef)
      Create a delta generator over one comparison.
      Parameters:
      fromRef - the from-side ref
      toRef - the to-side ref (may be GitSource.WORKTREE)
  • Method Details

    • render

      public String render(RegistryIndex oldIndex, RegistryIndex newIndex)
      Render the delta as an AsciiDoc partial with a level-1 title.
      Parameters:
      oldIndex - the registry generated for the from side
      newIndex - the registry generated for the to side
      Returns:
      the partial's text, or an empty string when nothing in the registry changed