Interface Comment
public interface Comment
The Comment interface provides methods for managing comments in a document.
-
Method Summary
Modifier and TypeMethodDescriptionConverts the comment to a Placeholder representation.Retrieves the children of the comment.org.docx4j.wml.Comments.CommentRetrieves the comment associated with this object.org.docx4j.wml.CommentRangeEndRetrieves theCommentRangeEndobject associated with this comment.org.docx4j.wml.CommentRangeStartRetrieves the CommentRangeStart object associated with this comment.org.docx4j.wml.R.CommentReferenceRetrieves theR.CommentReferenceobject associated with this comment.org.docx4j.openpackaging.packages.WordprocessingMLPackageRetrieves the WordprocessingMLPackage document.Retrieves the elements in the document that are between the comment range anchors.org.docx4j.wml.ContentAccessorRetrieves the parent of the comment.voidsetChildren(Set<Comment> comments) Sets the children of the comment.voidsetComment(org.docx4j.wml.Comments.Comment comment) Sets the comment for this object.voidsetCommentRangeEnd(org.docx4j.wml.CommentRangeEnd commentRangeEnd) Sets theCommentRangeEndobject associated with this comment.voidsetCommentRangeStart(org.docx4j.wml.CommentRangeStart commentRangeStart) Sets the CommentRangeStart object associated with this comment.voidsetCommentReference(org.docx4j.wml.R.CommentReference commentReference) Sets the comment reference for this comment.
-
Method Details
-
asPlaceholder
Placeholder asPlaceholder()Converts the comment to a Placeholder representation.- Returns:
- the Placeholder representation of the comment
-
getParent
org.docx4j.wml.ContentAccessor getParent()Retrieves the parent of the comment.- Returns:
- the parent of the comment
-
getElements
-
getCommentRangeEnd
org.docx4j.wml.CommentRangeEnd getCommentRangeEnd()Retrieves theCommentRangeEndobject associated with this comment.- Returns:
- the
CommentRangeEndobject associated with this comment
-
setCommentRangeEnd
void setCommentRangeEnd(org.docx4j.wml.CommentRangeEnd commentRangeEnd) Sets theCommentRangeEndobject associated with this comment.- Parameters:
commentRangeEnd- theCommentRangeEndobject to set
-
getCommentRangeStart
org.docx4j.wml.CommentRangeStart getCommentRangeStart()Retrieves the CommentRangeStart object associated with this comment.- Returns:
- the
CommentRangeStartobject associated with this comment
-
setCommentRangeStart
void setCommentRangeStart(org.docx4j.wml.CommentRangeStart commentRangeStart) Sets the CommentRangeStart object associated with this comment.- Parameters:
commentRangeStart- the CommentRangeStart object to set
-
getCommentReference
org.docx4j.wml.R.CommentReference getCommentReference()Retrieves theR.CommentReferenceobject associated with this comment.- Returns:
- the
R.CommentReferenceobject associated with this comment
-
setCommentReference
void setCommentReference(org.docx4j.wml.R.CommentReference commentReference) Sets the comment reference for this comment.- Parameters:
commentReference- the comment reference to set
-
getChildren
-
setChildren
-
getComment
org.docx4j.wml.Comments.Comment getComment()Retrieves the comment associated with this object.- Returns:
- the comment associated with this object
-
setComment
void setComment(org.docx4j.wml.Comments.Comment comment) Sets the comment for this object.- Parameters:
comment- the comment to set
-
getDocument
org.docx4j.openpackaging.packages.WordprocessingMLPackage getDocument()Retrieves the WordprocessingMLPackage document.- Returns:
- the WordprocessingMLPackage document.
-