Package com.deltaxml.dita.config
Class MovesConfig
java.lang.Object
com.deltaxml.dita.config.MovesConfig
These parameters control element moves handling and defines the values for the revision attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newMovesConfiginstance.MovesConfig(boolean detectMoves) Constructs aMovesConfigobject using the provided detectMoves value.MovesConfig(boolean detectMoves, boolean removeMoveSource) Constructs aMovesConfigobject using the provided detectMoves & removeMoveSource values. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the moveSourceRevision parameter.Gets the value of the moveTargetRevision parameter.booleanGets the value of the detectMoves parameter.booleanGets the value of the removeMoveSource parameter.voidsetDetectMoves(boolean value) Specifies whether to enable or disable move detection feature during comparison.voidsetMoveSourceRevision(String value) Specifies the string value to use for the rev attribute for source of moved content.voidsetMoveTargetRevision(String value) Specifies the string value to use for the rev attribute for target of moved content.voidsetRemoveMoveSource(boolean value) Specifies whether to remove move source.
-
Constructor Details
-
MovesConfig
public MovesConfig()Creates a newMovesConfiginstance. These parameters control element moves handling and defines the values for the revision attribute. -
MovesConfig
public MovesConfig(boolean detectMoves) Constructs aMovesConfigobject using the provided detectMoves value.- Parameters:
detectMoves- whether to turn on or off Moves.
-
MovesConfig
public MovesConfig(boolean detectMoves, boolean removeMoveSource) Constructs aMovesConfigobject using the provided detectMoves & removeMoveSource values.- Parameters:
detectMoves- whether to enable moves.removeMoveSource- whether to remove the move source.
-
-
Method Details
-
isDetectMoves
public boolean isDetectMoves()Gets the value of the detectMoves parameter.- Returns:
- the value of the detectMoves parameter
-
setDetectMoves
public void setDetectMoves(boolean value) Specifies whether to enable or disable move detection feature during comparison.
If this feature is set to true then it overrides the value of the parameter ‘use-ids-as-keys’
DitaConfig.setUseIdsAsKeys(boolean)Default:
false- Parameters:
value- the value to set for the detectMoves parameter
-
isRemoveMoveSource
public boolean isRemoveMoveSource()Gets the value of the removeMoveSource parameter.- Returns:
- the value of the removeMoveSource parameter
-
setRemoveMoveSource
public void setRemoveMoveSource(boolean value) Specifies whether to remove move source.
Default:
false- Parameters:
value- the value to set for the removeMoveSource parameter
-
getMoveSourceRevision
Gets the value of the moveSourceRevision parameter.- Returns:
- the value of the moveSourceRevision parameter
-
setMoveSourceRevision
Specifies the string value to use for the rev attribute for source of moved content.
Default:
"deltaxml-move-source"- Parameters:
value- the value to set for the moveSourceRevision parameter- Throws:
IllegalArgumentException- if the value is null
-
getMoveTargetRevision
Gets the value of the moveTargetRevision parameter.- Returns:
- the value of the moveTargetRevision parameter
-
setMoveTargetRevision
Specifies the string value to use for the rev attribute for target of moved content.
Default:
"deltaxml-move-target"- Parameters:
value- the value to set for the moveTargetRevision parameter- Throws:
IllegalArgumentException- if the value is null
-