Class FormattingElementsConfig
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newFormattingElementsConfiginstance.FormattingElementsConfig(boolean ignoreInlineFormatting) Creates a newFormattingElementsConfiginstance, setting the value of the ignoreInlineFormatting parameter. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the addInlineFormattingElements parameter.Gets the value of the inlineFormattingElements parameter.Gets the value of the removeInlineFormattingElements parameter.booleanGets the value of the ignoreInlineFormatting parameter.voidA comma and/or space separated list of inline formatting elements, which will be added to the value of the inline-formatting-elements parametervoidsetIgnoreInlineFormatting(boolean value) If set totrue, any changes that consist only of the addition, deletion or modification of DITA inline markup elements are not noted as changes.voidSets the comma and/or space separated list of inline formatting elements.voidA comma and/or space separated list of inline formatting elements, which will be removed from the value of the inline-formatting-elements parameter
-
Constructor Details
-
FormattingElementsConfig
public FormattingElementsConfig()Creates a newFormattingElementsConfiginstance. These parameters control which DITA elements are marked as inline formatting elements and how change within them is handled. -
FormattingElementsConfig
public FormattingElementsConfig(boolean ignoreInlineFormatting) Creates a newFormattingElementsConfiginstance, setting the value of the ignoreInlineFormatting parameter. These parameters control which DITA elements are marked as inline formatting elements and how change within them is handled.- Parameters:
ignoreInlineFormatting- the value of the ignoreInlineFormatting parameter.
-
-
Method Details
-
isIgnoreInlineFormatting
public boolean isIgnoreInlineFormatting()Gets the value of the ignoreInlineFormatting parameter.- Returns:
- the value of the ignoreInlineFormatting parameter
-
setIgnoreInlineFormatting
public void setIgnoreInlineFormatting(boolean value) If set to
true, any changes that consist only of the addition, deletion or modification of DITA inline markup elements are not noted as changes.When comparing the following 2 versions with ignore-inline-formatting switched on, no changes are marked up.
<p>This is an important point</p>
<p>This is an <b>important</b> point</p>
Default:
false- Parameters:
value- the value to set for the ignoreInlineFormatting parameter
-
getInlineFormattingElements
Gets the value of the inlineFormattingElements parameter.- Returns:
- the value of the inlineFormattingElements parameter
-
setInlineFormattingElements
Sets the comma and/or space separated list of inline formatting elements. Only active when ignore-inline-formatting is set to true
This parameter overrides the built in list of DITA inline elements. If the parameter ignore-inline-formatting is set to true then the addition, deletion or modification of these elements will not be treated as changes.
The built in list is shown in the default.
Default:
"apiname, b, cite, cmdname, codeph, filepath, i, lines, msgnum, msgph, parmname, pre, q, sep, sub, sup, systemoutput, term, tm, tt, u, uicontrol, userinput, var, wintitle"- Parameters:
value- the value to set for the inlineFormattingElements parameter- Throws:
IllegalArgumentException- if the value is null
-
getAddInlineFormattingElements
Gets the value of the addInlineFormattingElements parameter.- Returns:
- the value of the addInlineFormattingElements parameter
-
setAddInlineFormattingElements
A comma and/or space separated list of inline formatting elements, which will be added to the value of the inline-formatting-elements parameter
Use this list to add to the value of inline-formatting-elements which you wish to be ignored when considering change processing.
Elements in this list are added to the set in inline-formatting-elements, before the set in remove-inline-formatting-elements has been removed.
Default:
""- Parameters:
value- the value to set for the addInlineFormattingElements parameter- Throws:
IllegalArgumentException- if the value is null
-
getRemoveInlineFormattingElements
Gets the value of the removeInlineFormattingElements parameter.- Returns:
- the value of the removeInlineFormattingElements parameter
-
setRemoveInlineFormattingElements
A comma and/or space separated list of inline formatting elements, which will be removed from the value of the inline-formatting-elements parameter
Use this list to remove from the value of inline-formatting-elements when the defaults include elements you do not wish to be ignored when considering change processing.
Elements in this list are removed from the set in inline-formatting-elements, after the set in add-inline-formatting-elements has been added.
Default:
""- Parameters:
value- the value to set for the removeInlineFormattingElements parameter- Throws:
IllegalArgumentException- if the value is null
-