public class CommentUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteComment(CommentWrapper comment) |
static org.docx4j.wml.Comments.Comment |
getCommentFor(org.docx4j.wml.ContentAccessor object,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
Returns the first comment found for the given docx object.
|
static Map<BigInteger,CommentWrapper> |
getComments(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) |
static String |
getCommentString(org.docx4j.wml.Comments.Comment comment)
Returns the string value of the specified comment object.
|
static String |
getCommentStringFor(org.docx4j.wml.ContentAccessor object,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document) |
public static org.docx4j.wml.Comments.Comment getCommentFor(org.docx4j.wml.ContentAccessor object,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
object - the object whose comment to load.document - the document in which the object is embedded (needed to load the comment from the comments.xml part).org.docx4j.openpackaging.exceptions.Docx4JException - in case of a Docx4J processing error.public static String getCommentStringFor(org.docx4j.wml.ContentAccessor object, org.docx4j.openpackaging.packages.WordprocessingMLPackage document) throws org.docx4j.openpackaging.exceptions.Docx4JException
org.docx4j.openpackaging.exceptions.Docx4JExceptionpublic static String getCommentString(org.docx4j.wml.Comments.Comment comment)
public static void deleteComment(CommentWrapper comment)
public static Map<BigInteger,CommentWrapper> getComments(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
Copyright © 2017. All rights reserved.