Class MovesConfig

java.lang.Object
com.deltaxml.dita.config.MovesConfig

public class MovesConfig extends Object
These parameters control element moves handling and defines the values for the revision attribute.
  • Constructor Details

    • MovesConfig

      public MovesConfig()
      Creates a new MovesConfig instance. These parameters control element moves handling and defines the values for the revision attribute.
    • MovesConfig

      public MovesConfig(boolean detectMoves)
      Constructs a MovesConfig object using the provided detectMoves value.
      Parameters:
      detectMoves - whether to turn on or off Moves.
    • MovesConfig

      public MovesConfig(boolean detectMoves, boolean removeMoveSource)
      Constructs a MovesConfig object 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

      public String getMoveSourceRevision()
      Gets the value of the moveSourceRevision parameter.
      Returns:
      the value of the moveSourceRevision parameter
    • setMoveSourceRevision

      public void setMoveSourceRevision(String value)

      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

      public String getMoveTargetRevision()
      Gets the value of the moveTargetRevision parameter.
      Returns:
      the value of the moveTargetRevision parameter
    • setMoveTargetRevision

      public void setMoveTargetRevision(String value)

      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