Class SectionUtil

java.lang.Object
org.wickedsource.docxstamper.util.SectionUtil

public class SectionUtil extends Object
Utility class to handle section breaks in paragraphs.
Version:
1.6.6
Author:
Joseph Verron
  • Method Details

    • getPreviousSectionBreakIfPresent

      public static org.docx4j.wml.SectPr getPreviousSectionBreakIfPresent(Object firstObject, org.docx4j.wml.ContentAccessor parent)
      Creates a new section break object.
      Parameters:
      firstObject - a Object object
      parent - a ContentAccessor object
      Returns:
      a new section break object.
    • getParagraphSectionBreak

      public static org.docx4j.wml.SectPr getParagraphSectionBreak(org.docx4j.wml.P p)
      Creates a new section break object.
      Parameters:
      p - a P object
      Returns:
      a new section break object.
    • isOddNumberOfSectionBreaks

      public static boolean isOddNumberOfSectionBreaks(List<Object> objects)
      Creates a new section break object.
      Parameters:
      objects - a List object
      Returns:
      a new section break object.
    • applySectionBreakToParagraph

      public static void applySectionBreakToParagraph(org.docx4j.wml.SectPr sectPr, org.docx4j.wml.P paragraph)
      Creates a new section break object.
      Parameters:
      sectPr - a SectPr object
      paragraph - a P object