public class MoveDetectionConfig
extends java.lang.Object
Constructor and Description |
---|
MoveDetectionConfig()
Initialise a MoveDetectionConfig without params.
|
MoveDetectionConfig(java.util.List<MoveCandidate> moveCandidates)
Initialises an unrestricted MoveDetectionConfig with a list of move candidates.
|
MoveDetectionConfig(MoveDetectionType moveDetectionType,
java.util.List<MoveCandidate> moveCandidates)
Initialises a MoveDetectionConfig for given parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultNamespace()
Get the default namespace in use.
|
java.util.List<MoveCandidate> |
getMoveCandidates()
Gets the list of MoveCandidates
|
MoveDetectionType |
getMoveDetectionType()
Gets the MoveDetectionType value
|
boolean |
getShowMoveSource()
Gets the value for showMoveSource
|
java.util.Map<java.lang.String,java.lang.String> |
getUserNamespaces()
Get the user namespaces that are currently set.
|
boolean |
isEnabled()
Query if move processing is enabled.
|
void |
setDefaultNamespace(java.lang.String defaultNamespace)
Set the default namespace if the input XML files have a default namespace definition.
|
void |
setEnabled(boolean enabled)
Enable or disable move processing.
|
void |
setMoveCandidates(java.util.List<MoveCandidate> moveCandidates)
Sets the list of MoveCandidates
|
void |
setMoveDetectionType(MoveDetectionType moveDetectionType)
Sets the moveDetectionType
|
void |
setShowMoveSource(boolean showMoveSource)
Sets showMoveSource
|
void |
setUserNamespaces(java.util.Map<java.lang.String,java.lang.String> userNamespaces)
Set any user namespaces required by the input XML files.
|
public MoveDetectionConfig()
public MoveDetectionConfig(java.util.List<MoveCandidate> moveCandidates)
moveCandidates
- A list of MoveCandidate objects.public MoveDetectionConfig(MoveDetectionType moveDetectionType, java.util.List<MoveCandidate> moveCandidates)
moveDetectionType
- Move detection type as defined in the MoveDetectionType enum.moveCandidates
- A list of MoveCandidate objects.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- Set to true to enable and false to disable moves processing.public java.util.List<MoveCandidate> getMoveCandidates()
public void setMoveCandidates(java.util.List<MoveCandidate> moveCandidates)
moveCandidates
- The List of MoveCandidates to be set.public boolean getShowMoveSource()
public void setShowMoveSource(boolean showMoveSource)
showMoveSource
- Boolean value to be set to showMoveSource.public MoveDetectionType getMoveDetectionType()
public void setMoveDetectionType(MoveDetectionType moveDetectionType)
moveDetectionType
- Move detection type as defined the MoveDetectionType enumeration.public java.lang.String getDefaultNamespace()
public void setDefaultNamespace(java.lang.String defaultNamespace)
defaultNamespace
- A default namespacepublic java.util.Map<java.lang.String,java.lang.String> getUserNamespaces()
public void setUserNamespaces(java.util.Map<java.lang.String,java.lang.String> userNamespaces)
userNamespaces
- a Map<String, String> containing pairs of namespace prefix and URL definitions.
If your inputs contain user namespace definitions then they should be added here to allow
any XPaths set in MoveCandidates that refer to elements in namespaces to be validated and work as expected.