![JAR search and dependency download from the Maven repository](/logo.png)
pro.verron.officestamper.core.TableCellUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine Show documentation
Show all versions of engine Show documentation
Office-stamper is a Java template engine for docx documents, forked from org.wickedsource.docx-stamper
package pro.verron.officestamper.core;
import jakarta.xml.bind.JAXBElement;
import org.docx4j.wml.ObjectFactory;
import org.docx4j.wml.P;
import org.docx4j.wml.Tbl;
import org.docx4j.wml.Tc;
import pro.verron.officestamper.api.OfficeStamperException;
import java.util.function.Predicate;
/**
* Utility class for table cells
*
* @author Joseph Verron
* @author Tom Hombergs
* @version ${version}
* @since 1.0.0
*/
public class TableCellUtil {
private static final ObjectFactory objectFactory = new ObjectFactory();
private TableCellUtil() {
throw new OfficeStamperException("Utility class shouldn't be instantiated");
}
/**
* Checks if a table cell contains a paragraph or a table
*
* @param cell the table cell
*
* @return true if the table cell contains a paragraph or a table, false otherwise
*/
public static boolean hasNoParagraphOrTable(Tc cell) {
Predicate
© 2015 - 2025 Weber Informatics LLC | Privacy Policy