Interface Comment
- All Known Implementing Classes:
StandardComment
public interface Comment
The Comment interface provides methods for managing comments in a document.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the expression associated with the implementing entity.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.@Nullable org.docx4j.wml.R.CommentReferenceRetrieves theR.CommentReferenceobject associated with this comment.Retrieves the elements in the document that are between the comment range anchors.getId()Retrieves the ID of this comment.Retrieves the paragraph associated with this comment.org.docx4j.wml.ContentAccessorRetrieves the parent of the comment.org.docx4j.wml.CTSmartTagRunRetrieves the CTSmartTagRun object associated with the start of this comment.
-
Method Details
-
getParagraph
-
getStartTagRun
org.docx4j.wml.CTSmartTagRun getStartTagRun()Retrieves the CTSmartTagRun object associated with the start of this comment.- Returns:
- the
CTSmartTagRunobject representing the start tag run of the comment
-
getCommentRangeStart
org.docx4j.wml.CommentRangeStart getCommentRangeStart()Retrieves the CommentRangeStart object associated with this comment.- Returns:
- the
CommentRangeStartobject associated with this 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
-
getCommentReference
@Nullable org.docx4j.wml.R.CommentReference getCommentReference()Retrieves theR.CommentReferenceobject associated with this comment.- Returns:
- the
R.CommentReferenceobject associated with this comment
-
getComment
org.docx4j.wml.Comments.Comment getComment()Retrieves the comment associated with this object.- Returns:
- the comment associated with this object
-
expression
String expression()Retrieves the expression associated with the implementing entity.- Returns:
- a string representing the expression
-
getId
-