Class TextMerger

java.lang.Object
io.jmix.reports.yarg.formatters.impl.docx.TextMerger

public class TextMerger extends Object
  • Field Details

    • resultingTexts

      protected Set<org.docx4j.wml.Text> resultingTexts
    • textsToRemove

      protected Set<org.docx4j.wml.Text> textsToRemove
    • startText

      protected org.docx4j.wml.Text startText
    • mergedTexts

      protected Set<org.docx4j.wml.Text> mergedTexts
    • mergedTextsString

      protected StringBuilder mergedTextsString
    • regexpPattern

      protected Pattern regexpPattern
    • paragraph

      protected org.docx4j.wml.ContentAccessor paragraph
    • regexp

      protected String regexp
    • first2SymbolsOfRegexp

      protected String first2SymbolsOfRegexp
  • Constructor Details

    • TextMerger

      public TextMerger(org.docx4j.wml.ContentAccessor paragraph, String regexp)
  • Method Details

    • mergeMatchedTexts

      public Set<org.docx4j.wml.Text> mergeMatchedTexts()
    • removeUnnecessaryTexts

      protected void removeUnnecessaryTexts()
    • handleText

      protected void handleText(org.docx4j.wml.Text currentText)
    • addToMergeQueue

      protected void addToMergeQueue(org.docx4j.wml.Text currentText)
    • mergeQueueMatchesRegexp

      protected boolean mergeQueueMatchesRegexp()
    • handleMatchedText

      protected void handleMatchedText()