public class OutputFormatConfiguration
extends java.lang.Object
Specifies configuration options related to the format of the comparison result from a DocumentComparator
.
These options include tracked change formats and the enabling of change grouping.
Constructor and Description |
---|
OutputFormatConfiguration()
Constructs a new
OutputFormatConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
FrameMakerTrackChangesTableChangeMode |
getFramemakerTableChangeMode()
Returns the FrameMaker table change mode.
|
boolean |
getGrouping()
Returns a boolean value specifying whether grouping adjacent changes is enabled or not.
|
ModifiedAttributeMode |
getModifiedAttributeMode()
Returns the
ModifiedAttributeMode instance representing the currently configured behaviour. |
ModifiedFormatOutput |
getModifiedFormatOutput()
Returns the
ModifiedFormatOutput instance representing the currently configured behaviour. |
OrderlessPresentationMode |
getOrderlessPresentationMode()
Returns the
OrderlessPresentationMode in use. |
ResultFormat |
getResultFormat()
Returns the currently configured
ResultFormat . |
java.lang.String |
getTrackChangesAuthor()
Returns the String currently set as the author for tracked change results.
|
java.util.Calendar |
getTrackChangesDate()
Returns the Calendar instance currently configured to represent the date used when generating track changes.
|
XmetalTrackChangesTableChangeMode |
getXmetalTcsTableChangeMode()
Returns the XMetal table change mode.
|
boolean |
isAttributeChangeMarked()
Returns a boolean value specifying whether an
deltaxml:attributeChanges attribute is set on an element whose
attributes have changed. |
void |
setAttributeChangeMarked(boolean leaveMarker)
Sets the behaviour for marking elements with an attribute changed marker.
|
void |
setFramemakerTableChangeMode(FrameMakerTrackChangesTableChangeMode framemakerTableChangeMode)
Specifies how changes in FrameMaker tables should be tracked.
|
void |
setGrouping(boolean grouping)
Sets whether grouping adjacent changes is enabled or not.
|
void |
setModifiedAttributeMode(ModifiedAttributeMode mode)
Sets the behaviour for the outputting of modified attributes.
|
void |
setModifiedFormatOutput(ModifiedFormatOutput mode)
Sets the behaviour for outputting elements with modified formatting.
|
void |
setOrderlessPresentationMode(OrderlessPresentationMode value)
Sets the
OrderlessPresentationMode to use when elements are compared in an orderless manner. |
void |
setResultFormat(ResultFormat format)
Sets the result format that should be output from the comparison.
|
void |
setTrackChangesAuthor(java.lang.String author)
Sets the String to use for the author when generating tracked changes.
|
void |
setTrackChangesDate(java.util.Calendar date)
Specifies a Calendar instance to use as the date representation when generating tracked changes.
|
void |
setXmetalTcsTableChangeMode(XmetalTrackChangesTableChangeMode value)
Specifies how changes in XMetaL tables should be tracked.
|
public OutputFormatConfiguration()
Constructs a new OutputFormatConfiguration
instance.
public ResultFormat getResultFormat()
Returns the currently configured ResultFormat
.
ResultFormat
describing the format of the result documentpublic void setResultFormat(ResultFormat format) throws java.lang.IllegalStateException
Sets the result format that should be output from the comparison.
N.B. A ResultFormat
which produces a tracked change result is incompatible with an existing setting
of ModifiedFormatOutput.CHANGE
in this OutputFormatConfiguration
object.
format
- an instance of ResultFormat
specifying which format to use for the result documentjava.lang.IllegalStateException
- when the ModifiedFormatOutput
is set to ModifiedFormatOutput.CHANGE
and the
ResultFormat
set is not ResultFormat.DELTA
public java.lang.String getTrackChangesAuthor()
Returns the String currently set as the author for tracked change results.
public void setTrackChangesAuthor(java.lang.String author)
Sets the String to use for the author when generating tracked changes.
N.B. This setting only takes effect if the current ResultFormat
is one of the tracked change
representations.
author
- a String representing the author name to use when generating tracked changes in the result documentpublic java.util.Calendar getTrackChangesDate()
Returns the Calendar instance currently configured to represent the date used when generating track changes.
public void setTrackChangesDate(java.util.Calendar date)
Specifies a Calendar instance to use as the date representation when generating tracked changes. A null value can be used to generate the current date/time when the comparison runs
N.B. This setting only takes effect if the current ResultFormat
is one of the tracked change
representations.
date
- a Calendar representation of the date to use when generating tracked changes in the result documentpublic void setModifiedFormatOutput(ModifiedFormatOutput mode) throws java.lang.IllegalStateException
Sets the behaviour for outputting elements with modified formatting.
N.B. A setting of ModifiedFormatOutput.CHANGE
is incompatible with a ResultFormat
setting
that produces a tracked change result.
mode
- the ModifiedFormatOutput
representation of the behaviour to applyjava.lang.IllegalStateException
- when the ResultFormat
is not ResultFormat.DELTA
and the
ModifiedFormatOutput
is set to ModifiedFormatOutput.CHANGE
public ModifiedFormatOutput getModifiedFormatOutput()
Returns the ModifiedFormatOutput
instance representing the currently configured behaviour.
ModifiedFormatOutput
instancepublic void setModifiedAttributeMode(ModifiedAttributeMode mode)
Sets the behaviour for the outputting of modified attributes.
mode
- the ModifiedAttributeMode
representation of the behaviour to applypublic ModifiedAttributeMode getModifiedAttributeMode()
Returns the ModifiedAttributeMode
instance representing the currently configured behaviour.
ModifiedFormatOutput
instancepublic void setAttributeChangeMarked(boolean leaveMarker)
Sets the behaviour for marking elements with an attribute changed marker. When enabled the leave attribute change marker adds
a deltaxml:attributeChanges
attribute to any element that has attribute change, so long as the modified
attribute processing is enabled OutputFormatConfiguration.setModifiedAttributeMode(ModifiedAttributeMode)
.
Notes:
deltaxml:attributeChanges
has a value of true
.leaveMarker
- whether to create a new attribute, deltaxml:attributeChanges
, which specifies that at least
one other attribute on the element has changed.public boolean isAttributeChangeMarked()
Returns a boolean value specifying whether an deltaxml:attributeChanges
attribute is set on an element whose
attributes have changed.
deltaxml:attributeChanges
attribute is set on an element whose
attributes have changed.public void setXmetalTcsTableChangeMode(XmetalTrackChangesTableChangeMode value)
Specifies how changes in XMetaL tables should be tracked.
The XMetaL editor cannot track the addition or deletion of a row or cell within a table. Such changes can be pushed down to the cell level, pushed up to the table level (e.g. a CALS or HTML 'table' element), or ignored. The advantage of pushing the changes down to the cell content level, is that this provides the highest level of change granularity, at the cost of having to accept or reject every changed cell in the table independently.
The push up processing means that any table that contains a row or cell level update is represented by a table level add and delete.
The ignore option is similar to the way in which track changes within tables are handled in XMetaL; as neither row insertion and deletion or cell splitting and merging is tracked. However, for clarity this mode of operation ignores all changes within a table, it simply produces the 'B' version of the table.
Default: XmetalTrackChangesTableChangeMode.DOWN
value
- the value to set for the xmetalTcsTableChangeMode parameterXmetalTrackChangesTableChangeMode
public XmetalTrackChangesTableChangeMode getXmetalTcsTableChangeMode()
Returns the XMetal table change mode.
OutputFormatConfiguration.setXmetalTcsTableChangeMode(XmetalTrackChangesTableChangeMode)
public void setOrderlessPresentationMode(OrderlessPresentationMode value)
Sets the OrderlessPresentationMode
to use when elements are compared in an orderless manner.
value
- the OrderlessPresentationMode
instance to usefor details of the effects of each value
public OrderlessPresentationMode getOrderlessPresentationMode()
Returns the OrderlessPresentationMode
in use.
OrderlessPresentationMode
representing the setting currently in use.public boolean getGrouping()
Returns a boolean value specifying whether grouping adjacent changes is enabled or not.
OutputFormatConfiguration.setGrouping(boolean)
public void setGrouping(boolean grouping)
Sets whether grouping adjacent changes is enabled or not.
grouping
- to set grouping adjacent changesOutputFormatConfiguration.getGrouping()
public FrameMakerTrackChangesTableChangeMode getFramemakerTableChangeMode()
Returns the FrameMaker table change mode.
OutputFormatConfiguration.setFramemakerTableChangeMode(FrameMakerTrackChangesTableChangeMode)
public void setFramemakerTableChangeMode(FrameMakerTrackChangesTableChangeMode framemakerTableChangeMode)
Specifies how changes in FrameMaker tables should be tracked.
The FrameMaker editor cannot track the addition or deletion of a row or cell within a table. Such changes can be pushed down to the cell level, pushed up to the table level (e.g. a CALS or HTML 'table' element), or ignored. The advantage of pushing the changes down to the cell content level, is that this provides the highest level of change granularity, at the cost of having to accept or reject every changed cell in the table independently.
The push up processing means that any table that contains a row or cell level update is represented by a table level add and delete.
The ignore option is similar to the way in which track changes within tables are handled in XMetaL; as neither row insertion and deletion or cell splitting and merging is tracked. However, for clarity this mode of operation ignores all changes within a table, it simply produces the 'B' version of the table.
Default: FrameMakerTrackChangesTableChangeMode.DOWN
framemakerTableChangeMode
- the value to set for the frameMakerTcsTableChangeMode parameterFrameMakerTrackChangesTableChangeMode