java.lang.Object
pro.verron.officestamper.test.Stringifier
Stringifier class.
- Since:
- 1.6.5
- Version:
- ${version}
- Author:
- Joseph Verron
-
Constructor Summary
ConstructorDescriptionStringifier
(Supplier<org.docx4j.openpackaging.packages.WordprocessingMLPackage> documentSupplier) Constructor for Stringifier. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<org.docx4j.wml.Comments.Comment> findComment
(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, BigInteger id) Finds a comment with the given ID in the specified WordprocessingMLPackage document.stringify.static String
stringifyExcel
(org.docx4j.openpackaging.packages.SpreadsheetMLPackage presentation) static String
stringifyPowerpoint
(org.docx4j.openpackaging.packages.PresentationMLPackage presentation)
-
Constructor Details
-
Stringifier
public Stringifier(Supplier<org.docx4j.openpackaging.packages.WordprocessingMLPackage> documentSupplier) Constructor for Stringifier.
- Since:
- 1.6.6
-
-
Method Details
-
stringifyPowerpoint
public static String stringifyPowerpoint(org.docx4j.openpackaging.packages.PresentationMLPackage presentation) -
stringifyExcel
public static String stringifyExcel(org.docx4j.openpackaging.packages.SpreadsheetMLPackage presentation) -
findComment
public static Optional<org.docx4j.wml.Comments.Comment> findComment(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, BigInteger id) throws org.docx4j.openpackaging.exceptions.Docx4JException Finds a comment with the given ID in the specified WordprocessingMLPackage document.- Parameters:
document
- the WordprocessingMLPackage document to search for the commentid
- the ID of the comment to find- Returns:
- an Optional containing the Comment if found, or an empty Optional if not found
- Throws:
org.docx4j.openpackaging.exceptions.Docx4JException
- if an error occurs while searching for the comment
-
stringify
stringify.
-