Class SectionUtil
java.lang.Object
org.wickedsource.docxstamper.util.SectionUtil
Utility class to handle section breaks in paragraphs.
- Version:
- 1.6.6
- Author:
- Joseph Verron
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplySectionBreakToParagraph(org.docx4j.wml.SectPr sectPr, org.docx4j.wml.P paragraph) Creates a new section break object.static org.docx4j.wml.SectPrgetParagraphSectionBreak(org.docx4j.wml.P p) Creates a new section break object.static org.docx4j.wml.SectPrgetPreviousSectionBreakIfPresent(Object firstObject, org.docx4j.wml.ContentAccessor parent) Creates a new section break object.static booleanisOddNumberOfSectionBreaks(List<Object> objects) Creates a new section break object.
-
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- aObjectobjectparent- aContentAccessorobject- 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- aPobject- Returns:
- a new section break object.
-
isOddNumberOfSectionBreaks
Creates a new section break object.- Parameters:
objects- aListobject- 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- aSectProbjectparagraph- aPobject
-