Class OutputParameters
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newOutputParametersinstance.OutputParameters(boolean indentOutput) Create a newOutputParametersinstance, setting whether the result should be indented.OutputParameters(OutputFormat outputFormat) Create a newOutputParametersinstance, specifies what type of output is produced. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the ditaMarkup parameter.Gets the value of the outputFormat parameter.Gets the value of the preservationMode parameter.Gets the value of the trackedChanges parameter.booleanGets the value of the grouping parameter.booleanGets the value of the indentOutput parameter.voidsetDitaMarkup(DitaMarkup value) Sets the value of the ditaMarkup parameter.voidsetGrouping(boolean value) Specifies whether adjacent changes (insertions or deletions) should be grouped into a single insertion and/or deletion block.voidsetIndentOutput(boolean value) Sets whether the result should be indented.voidsetOutputFormat(OutputFormat value) Specifies what type of output is produced.voidSets the mode to use for preserving original data.voidsetTrackedChanges(TrackedChanges value) Sets the value of the trackedChanges parameter.
-
Constructor Details
-
OutputParameters
public OutputParameters()Creates a newOutputParametersinstance. These parameters enable the form of the output to be configured. -
OutputParameters
public OutputParameters(boolean indentOutput) Create a newOutputParametersinstance, setting whether the result should be indented. These parameters enable the form of the output to be configured.- Parameters:
indentOutput- whether the result should be indented.
-
OutputParameters
Create a newOutputParametersinstance, specifies what type of output is produced. These parameters enable the form of the output to be configured.- Parameters:
outputFormat- specifies what type of output is produced.
-
-
Method Details
-
isGrouping
public boolean isGrouping()Gets the value of the grouping parameter.- Returns:
- the value of the grouping parameter
-
setGrouping
public void setGrouping(boolean value) Specifies whether adjacent changes (insertions or deletions) should be grouped into a single insertion and/or deletion block. One benefit of this is that changes to a consecutive group of words within a sentence are gathered into one insertion and one deletion block, rather than a series of individual word swaps. This makes it easier to read and understand the changes.
Note that when either HTML or CALS table processing modes are selected, then this grouping mechanism is turned off within the context of these tables. The table processing has its own specialised grouping mechanisms.
Default:
false- Parameters:
value- the value to set for the grouping parameter
-
isIndentOutput
public boolean isIndentOutput()Gets the value of the indentOutput parameter.- Returns:
- the value of the indentOutput parameter
-
setIndentOutput
public void setIndentOutput(boolean value) Sets whether the result should be indented.
If run with a compare method that produces a serialized result, a value of
truecauses the output to be pretty printed.Default:
false- Parameters:
value- the value to set for the indentOutput parameter
-
getOutputFormat
Gets the value of the outputFormat parameter.- Returns:
- the value of the outputFormat parameter
-
setOutputFormat
Specifies what type of output is produced.
Default:
OutputFormat.DITA_MARKUP- Parameters:
value- the value to set for the outputFormat parameter- Throws:
IllegalArgumentException- if the value is null
-
getPreservationMode
Gets the value of the preservationMode parameter.- Returns:
- the value of the preservationMode parameter
-
setPreservationMode
Sets the mode to use for preserving original data.
This mode can be used to preserve information for round trip processing.
The 'automatic' setting will have an effective setting of 'roundTrip' when the output format is a tracked change format and 'docAndAttrib' otherwise.
Default:
PreservationMode.AUTOMATIC- Parameters:
value- the value to set for the preservationMode parameter- Throws:
IllegalArgumentException- if the value is null- See Also:
-
getDitaMarkup
Gets the value of the ditaMarkup parameter.- Returns:
- the value of the ditaMarkup parameter
-
setDitaMarkup
Sets the value of the ditaMarkup parameter.- Parameters:
value- the new ditaMarkup- Throws:
IllegalArgumentException- if value is null- See Also:
-
getTrackedChanges
Gets the value of the trackedChanges parameter.- Returns:
- the value of the trackedChanges parameter
-
setTrackedChanges
Sets the value of the trackedChanges parameter.- Parameters:
value- the new trackedChanges- Throws:
IllegalArgumentException- if value is null- See Also:
-