Class SelectingUnrepresentableChange
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default SelectingUnrepresentableChange object.SelectingUnrepresentableChange(ModifiedAttributeMode modifiedAttributeMode) Constructs a SelectingUnrepresentableChange object using the providedModifiedAttributeMode.SelectingUnrepresentableChange(UnmarkedChangeMode unmarkedChangeMode) Constructs a SelectingUnrepresentableChange object using the providedUnmarkedChangeMode. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the modifiedAttributeMode parameter.Gets the value of the unmarkedChangeMode parameter.voidSpecifies how modified attributes should be included in the output.voidSpecifies how to handle data that cannot contain difference markup.
-
Constructor Details
-
SelectingUnrepresentableChange
public SelectingUnrepresentableChange()Constructs a default SelectingUnrepresentableChange object. These parameters are used to specify how unrepresentable change can be handled. -
SelectingUnrepresentableChange
Constructs a SelectingUnrepresentableChange object using the providedModifiedAttributeMode.- Parameters:
modifiedAttributeMode- Specifies how modified attributes should be included in the output.
-
SelectingUnrepresentableChange
Constructs a SelectingUnrepresentableChange object using the providedUnmarkedChangeMode.- Parameters:
unmarkedChangeMode- Specifies how to handle data that cannot contain difference markup.
-
-
Method Details
-
getModifiedAttributeMode
Gets the value of the modifiedAttributeMode parameter.- Returns:
- the value of the modifiedAttributeMode parameter
-
setModifiedAttributeMode
Specifies how modified attributes should be included in the output.
Not all output formats allow the markup of attribute changes. When this is the case, a decision needs to be made on which version of the attribute should be present in the result file. This parameter is used to define what behaviour is required.
Default:
ModifiedAttributeMode.AUTOMATIC- Parameters:
value- the value to set for the modifiedAttributeMode parameter- Throws:
IllegalArgumentException- if the value is null
-
getUnmarkedChangeMode
Gets the value of the unmarkedChangeMode parameter.- Returns:
- the value of the unmarkedChangeMode parameter
-
setUnmarkedChangeMode
Specifies how to handle data that cannot contain difference markup.
Some differences between two XML documents cannot feasibly be displayed in a valid output document. These typically include changes to the XML declaration, doctype, internal subset and processing instructions. In these situations it is useful to specify what should be done.
Note that the internal subset can contain local element, attribute, and entity declarations, as well as processing instructions, comments, and entity-references.
- Parameters:
value- the value to set for the unmarkedChangeMode parameter- Throws:
IllegalArgumentException- if the value is null
-