Class ExcelParagraph

java.lang.Object
pro.verron.officestamper.experimental.ExcelParagraph

public class ExcelParagraph extends Object
The ExcelParagraph class represents a paragraph in an Excel document. It provides methods to replace expressions and retrieve the aggregated text over all runs.
  • Constructor Details

    • ExcelParagraph

      public ExcelParagraph(org.xlsx4j.sml.CTRst paragraph)
      Constructs a new ParagraphWrapper for the given paragraph.
      Parameters:
      paragraph - the paragraph to wrap.
  • Method Details

    • replace

      public void replace(Placeholder placeholder, String replacement)
      Replaces the given expression with the replacement object within the paragraph. The replacement object must be a valid DOCX4J Object.
      Parameters:
      placeholder - the expression to be replaced.
      replacement - the object to replace the expression.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asString

      public String asString()
      Returns the aggregated text over all runs.
      Returns:
      the text of all runs.