Class TextReplacement

java.lang.Object
uno.anahata.asi.toolkit.resources.text.TextReplacement

public class TextReplacement extends Object
Represents a single text replacement operation within a file.
Author:
anahata
  • Field Details

    • target

      private String target
      The exact string to be replaced.
    • replacement

      private String replacement
      The replacement string.
    • reason

      private String reason
      A detailed explanation of why this replacement is being made.
    • totalOccurrences

      private int totalOccurrences
      The total number of times the target string must appear in the file. This acts as a checksum to ensure context integrity.
    • occurrenceIndexes

      private List<Integer> occurrenceIndexes
      The 1-based indices of the specific occurrences to replace. If null or empty, ALL matching occurrences will be replaced.
  • Constructor Details

    • TextReplacement

      public TextReplacement()