public class CommentUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteComment(CommentWrapper comment) |
static org.docx4j.wml.Comments.Comment |
getCommentAround(org.docx4j.wml.R run,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
Returns the comment the given DOCX4J run is commented with.
|
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 java.util.Map<java.math.BigInteger,CommentWrapper> |
getComments(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) |
static java.lang.String |
getCommentString(org.docx4j.wml.Comments.Comment comment)
Returns the string value of the specified comment object.
|
static java.lang.String |
getCommentStringFor(org.docx4j.wml.ContentAccessor object,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document) |
public static org.docx4j.wml.Comments.Comment getCommentAround(org.docx4j.wml.R run,
org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
run - the DOCX4J run whose comment to retrieve.document - the document that contains the run.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 java.lang.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 java.lang.String getCommentString(org.docx4j.wml.Comments.Comment comment)
public static void deleteComment(CommentWrapper comment)
public static java.util.Map<java.math.BigInteger,CommentWrapper> getComments(org.docx4j.openpackaging.packages.WordprocessingMLPackage document)
Copyright © 2017. All rights reserved.