Class CommentWrapper
java.lang.Object
org.wickedsource.docxstamper.util.CommentWrapper
CommentWrapper class.
- Version:
- 1.6.6
- Author:
- Joseph Verron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldchildren.org.docx4j.wml.Comments.CommentGetter for the fieldcomment.org.docx4j.wml.CommentRangeEndGetter for the fieldcommentRangeEnd.org.docx4j.wml.CommentRangeStartGetter for the fieldcommentRangeStart.org.docx4j.wml.R.CommentReferenceGetter for the fieldcommentReference.org.docx4j.wml.ContentAccessorgetParent.getRepeatElements.org.docx4j.openpackaging.packages.WordprocessingMLPackagegetSubTemplate(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Creates a new document containing only the elements between the comment range anchors.org.docx4j.openpackaging.packages.WordprocessingMLPackagetryBuildingSubtemplate(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Creates a new document containing only the elements between the comment range anchors.
-
Constructor Details
-
CommentWrapper
public CommentWrapper()
-
-
Method Details
-
getParent
public org.docx4j.wml.ContentAccessor getParent()getParent.
- Returns:
- the comment's author.
-
getRepeatElements
getRepeatElements.
- Returns:
- the elements in the document that are between the comment range anchors.
-
getSubTemplate
public org.docx4j.openpackaging.packages.WordprocessingMLPackage getSubTemplate(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) throws Exception Creates a new document containing only the elements between the comment range anchors.- Parameters:
document- the document from which to copy the elements.- Returns:
- a new document containing only the elements between the comment range anchors.
- Throws:
Exception- if the subtemplate could not be created.
-
tryBuildingSubtemplate
public org.docx4j.openpackaging.packages.WordprocessingMLPackage tryBuildingSubtemplate(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Creates a new document containing only the elements between the comment range anchors. If the subtemplate could not be created, aDocxStamperExceptionis thrown.- Parameters:
document- the document from which to copy the elements.- Returns:
- a new document containing only the elements between the comment range anchors.
-
getCommentRangeEnd
public org.docx4j.wml.CommentRangeEnd getCommentRangeEnd()Getter for the field
commentRangeEnd.- Returns:
- a
CommentRangeEndobject
-
getCommentRangeStart
public org.docx4j.wml.CommentRangeStart getCommentRangeStart()Getter for the field
commentRangeStart.- Returns:
- a
CommentRangeStartobject
-
getCommentReference
public org.docx4j.wml.R.CommentReference getCommentReference()Getter for the field
commentReference.- Returns:
- a
R.CommentReferenceobject
-
getChildren
Getter for the field
children.- Returns:
- a
Setobject
-
getComment
public org.docx4j.wml.Comments.Comment getComment()Getter for the field
comment.- Returns:
- a
Comments.Commentobject
-