public static class CompareOptions.Builder extends Object
CompareOptions builder.| Constructor and Description |
|---|
Builder()
Instantiates a new Builder object.
|
| Modifier and Type | Method and Description |
|---|---|
CompareOptions |
build()
Returns the object that was created and configured along with the builder.
|
CompareOptions.Builder |
setCalculateCoordinates(boolean value)
Sets a flag that indicates whether to calculate coordinates for changed components.
|
CompareOptions.Builder |
setCalculateCoordinatesMode(com.groupdocs.comparison.options.enums.CalculateCoordinatesModeEnumeration value)
Sets a calculate coordinates mode as
CalculateCoordinatesModeEnumeration object. |
CompareOptions.Builder |
setChangedItemStyle(StyleSettings value)
Sets a style settings that will be applied to changed items.
|
CompareOptions.Builder |
setCompareBookmarks(boolean value)
Sets a flag that indicates whether bookmarks in Word documents should be compared.
|
CompareOptions.Builder |
setCompareDocumentProperty(boolean value)
Sets a flag that indicates whether built and custom properties in Word documents should be compared.
|
CompareOptions.Builder |
setCompareVariableProperty(boolean value)
Sets a flag that indicates whether variables properties in Word documents should be compared.
|
CompareOptions.Builder |
setComparisonType(ComparisonType comparisonType)
Sets a type of source and target documents as
ComparisonType object so that Comparison will know how to compare them. |
CompareOptions.Builder |
setDeletedItemStyle(StyleSettings value)
Sets a style settings that will be applied to deleted items.
|
CompareOptions.Builder |
setDetalisationLevel(DetalisationLevel value)
Sets a level of comparison detalization represented as
DetalisationLevel. |
CompareOptions.Builder |
setDetectStyleChanges(boolean value)
Sets a flag that indicates whether to detect style changes or not.
|
CompareOptions.Builder |
setDiagramMasterSetting(DiagramMasterSetting value)
Sets a setting of master page for Diagram documents represented by
DiagramMasterSetting object. |
CompareOptions.Builder |
setDirectoryCompare(boolean value) |
CompareOptions.Builder |
setExtendedSummaryPage(boolean value)
Sets a flag that indicates whether to add extended file comparison information to the summary page or not.
|
CompareOptions.Builder |
setFolderComparisonExtension(com.groupdocs.comparison.options.enums.FolderComparisonExtension value) |
CompareOptions.Builder |
setGenerateSummaryPage(boolean value)
Sets a flag that indicates whether to add summary page with detected changes statistics to resultant document or not.
|
CompareOptions.Builder |
setHeaderFootersComparison(boolean value)
Sets a flag that indicates whether to compare header/footer contents.
|
CompareOptions.Builder |
setInsertedItemStyle(StyleSettings value)
Sets a style settings that will be applied to inserted items.
|
CompareOptions.Builder |
setLeaveGaps(boolean value)
Sets a flag that determines whether to leave empty lines instead of inserted/deleted components or not.
|
CompareOptions.Builder |
setMarkChangedContent(boolean value)
Sets a flag that indicates whether frames for shapes in Word Processing and for rectangles in Image documents will be used.
|
CompareOptions.Builder |
setMarkNestedContent(boolean value)
Sets a flag that indicates whether to mark the children of the deleted or inserted elements as deleted or inserted.
|
CompareOptions.Builder |
setOriginalSize(OriginalSize value)
Sets an original sizes of compared documents represented by
OriginalSize object. |
CompareOptions.Builder |
setPaperSize(PaperSize value)
Sets a size of a paper in result document as
PaperSize object. |
CompareOptions.Builder |
setPasswordSaveOption(PasswordSaveOption value)
Sets a password save option represented by
PasswordSaveOption object. |
CompareOptions.Builder |
setRevisionAuthorName(String value) |
CompareOptions.Builder |
setSensitivityOfComparison(int value)
Sets a sensitivity of comparison.
|
CompareOptions.Builder |
setShowDeletedContent(boolean value)
Sets a flag that indicates whether to show deleted components in resultant document or not.
|
CompareOptions.Builder |
setShowOnlyChanged(boolean value) |
CompareOptions.Builder |
setShowRevisions(boolean value)
Sets a flag that indicates whether others revisions in the resulting document should be displayed.
|
CompareOptions.Builder |
setUserMasterPath(String value) |
CompareOptions.Builder |
setWordsSeparatorChars(char[] value)
Sets an array of delimiters which will be used to split text into words.
|
CompareOptions.Builder |
setWordTrackChanges(boolean value)
Sets a flag that indicates whether Words Track Revisions should be compared.
|
public final CompareOptions build()
public CompareOptions.Builder setCalculateCoordinates(boolean value)
Sets a flag that indicates whether to calculate coordinates for changed components.
value - true if coordinates for changed components should be calculated, otherwise falsepublic CompareOptions.Builder setCalculateCoordinatesMode(com.groupdocs.comparison.options.enums.CalculateCoordinatesModeEnumeration value)
Sets a calculate coordinates mode as CalculateCoordinatesModeEnumeration object.
value - The calculate coordinates modepublic CompareOptions.Builder setChangedItemStyle(StyleSettings value)
Sets a style settings that will be applied to changed items.
value - Style settings of changed itemsIllegalArgumentException - if value is nullpublic CompareOptions.Builder setCompareBookmarks(boolean value)
Sets a flag that indicates whether bookmarks in Word documents should be compared.
value - true if bookmarks in Word documents should be compared, otherwise falsepublic CompareOptions.Builder setCompareDocumentProperty(boolean value)
Sets a flag that indicates whether built and custom properties in Word documents should be compared.
value - true if built and custom properties in Word documents should be compared, otherwise falsepublic CompareOptions.Builder setCompareVariableProperty(boolean value)
Sets a flag that indicates whether variables properties in Word documents should be compared.
value - true if variables properties in Word documents should be compared, otherwise falsepublic CompareOptions.Builder setComparisonType(ComparisonType comparisonType)
Sets a type of source and target documents as ComparisonType object so that Comparison will know how to compare them.
LoadOptions.setFileType(FileType) option will be omittedcomparisonType - The type of source and target documentspublic CompareOptions.Builder setDeletedItemStyle(StyleSettings value)
Sets a style settings that will be applied to deleted items.
value - Style settings of deleted itemsIllegalArgumentException - if value is nullpublic CompareOptions.Builder setDetalisationLevel(DetalisationLevel value)
Sets a level of comparison detalization represented as DetalisationLevel.
DetalisationLevel.LOWvalue - The level of comparison detalizationIllegalArgumentException - if value is nullpublic CompareOptions.Builder setDetectStyleChanges(boolean value)
Sets a flag that indicates whether to detect style changes or not.
value - true if style changes should be detected, otherwise falsepublic CompareOptions.Builder setDiagramMasterSetting(DiagramMasterSetting value)
Sets a setting of master page for Diagram documents represented by DiagramMasterSetting object.
value - The diagram master page settingIllegalArgumentException - if value is nullpublic CompareOptions.Builder setDirectoryCompare(boolean value)
public CompareOptions.Builder setExtendedSummaryPage(boolean value)
Sets a flag that indicates whether to add extended file comparison information to the summary page or not.
value - true if extended file comparison information should be added to summary page, otherwise falsepublic CompareOptions.Builder setFolderComparisonExtension(com.groupdocs.comparison.options.enums.FolderComparisonExtension value)
public CompareOptions.Builder setGenerateSummaryPage(boolean value)
Sets a flag that indicates whether to add summary page with detected changes statistics to resultant document or not.
value - true if summary page should be added, otherwise falsepublic CompareOptions.Builder setHeaderFootersComparison(boolean value)
Sets a flag that indicates whether to compare header/footer contents.
value - true if header/footer contents should be compared, otherwise falsepublic CompareOptions.Builder setInsertedItemStyle(StyleSettings value)
Sets a style settings that will be applied to inserted items.
value - Style settings of inserted itemsIllegalArgumentException - if value is nullpublic CompareOptions.Builder setLeaveGaps(boolean value)
Sets a flag that determines whether to leave empty lines instead of inserted/deleted components or not.
Whether to display empty lines instead of inserted/deleted components in the final document or not. Used withCompareOptions.isShowInsertedContent() or CompareOptions.isShowDeletedContent() properties.value - true if empty lines should be displayed instead of inserted/deleted components, otherwise falsepublic CompareOptions.Builder setMarkChangedContent(boolean value)
Sets a flag that indicates whether frames for shapes in Word Processing and for rectangles in Image documents will be used.
value - true if frames should be used, otherwise falsepublic CompareOptions.Builder setMarkNestedContent(boolean value)
Sets a flag that indicates whether to mark the children of the deleted or inserted elements as deleted or inserted.
value - true if the children of the deleted or inserted elements should be marked as deleted or inserted, otherwise falsepublic CompareOptions.Builder setOriginalSize(OriginalSize value)
Sets an original sizes of compared documents represented by OriginalSize object.
value - The original size of documentsIllegalArgumentException - if value is nullpublic CompareOptions.Builder setPaperSize(PaperSize value)
Sets a size of a paper in result document as PaperSize object.
value - The size of a paper in result documentpublic CompareOptions.Builder setPasswordSaveOption(PasswordSaveOption value)
Sets a password save option represented by PasswordSaveOption object.
value - The password save optionIllegalArgumentException - if value is nullpublic CompareOptions.Builder setRevisionAuthorName(String value)
public CompareOptions.Builder setSensitivityOfComparison(int value)
Sets a sensitivity of comparison.
The percentage of deleted and inserted elements of two compared objects in relation to all elements of these objects.value - The sensitivity of comparisonpublic CompareOptions.Builder setShowDeletedContent(boolean value)
Sets a flag that indicates whether to show deleted components in resultant document or not.
value - true if deleted components in resultant document should be shown, otherwise falsepublic CompareOptions.Builder setShowOnlyChanged(boolean value)
public CompareOptions.Builder setShowRevisions(boolean value)
Sets a flag that indicates whether others revisions in the resulting document should be displayed.
value - true if others revisions in the resulting document should be displayed, otherwise falsepublic CompareOptions.Builder setUserMasterPath(String value)
public CompareOptions.Builder setWordsSeparatorChars(char[] value)
Sets an array of delimiters which will be used to split text into words.
value - The array of delimiters to split text into wordsIllegalArgumentException - if value is nullpublic CompareOptions.Builder setWordTrackChanges(boolean value)
Sets a flag that indicates whether Words Track Revisions should be compared.
value - true if Words Track Revisions should be compared, otherwise falseCopyright © 2024. All rights reserved.