public class CommentUtil extends Object
Constructor and Description |
---|
CommentUtil()
|
Modifier and Type | Method and Description |
---|---|
static void |
deleteCommentFromParagraph(org.docx4j.wml.P paragraph,
org.docx4j.wml.Comments.Comment 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 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) throws org.docx4j.openpackaging.exceptions.Docx4JException
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.Docx4JException
public static String getCommentString(org.docx4j.wml.Comments.Comment comment)
public static void deleteCommentFromParagraph(org.docx4j.wml.P paragraph, org.docx4j.wml.Comments.Comment comment)
Copyright © 2016. All rights reserved.