org.docx4j.finders.SectPrFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.docx4j.finders;
import java.util.ArrayList;
import java.util.List;
import org.docx4j.TraversalUtil.CallbackImpl;
import org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart;
import org.docx4j.wml.P;
import org.docx4j.wml.SectPr;
public class SectPrFinder extends CallbackImpl {
private List sectPrList = new ArrayList();
public SectPrFinder(MainDocumentPart mdp) {
// Handle the body level one
if (mdp.getJaxbElement().getBody().getSectPr()!=null) {
sectPrList.add(mdp.getJaxbElement().getBody().getSectPr());
}
}
private SectPrFinder(){};
/**
* @return the sectPrList
*/
public List getSectPrList() {
return sectPrList;
}
@Override
public List