Class AdvancedBehaviour
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the outputEncodingDeclaration parameter.Gets the value of the topicPublicId parameter.Gets the value of the topicSystemId parameter.Gets the value of the xmlVersionDeclaration parameter.booleanGets the value of the forceSpecialization parameter.voidsetForceSpecialization(boolean value) Specifies whether or not to force result specialization when the input types are different.voidSets the character encoding output to use in the XML declaration.voidsetTopicPublicId(String value) Specifies the publicId to use for a Topic doctype.voidsetTopicSystemId(String value) Specifies the systemId to use for a Topic doctype.voidSets the version to use in the XML declaration.
-
Constructor Details
-
AdvancedBehaviour
public AdvancedBehaviour()Create a newAdvancedBehaviourinstance.AdvancedBehaviourcontains parameters used to override or force specific behaviours.
-
-
Method Details
-
getOutputEncodingDeclaration
Gets the value of the outputEncodingDeclaration parameter.- Returns:
- the value of the outputEncodingDeclaration parameter
-
setOutputEncodingDeclaration
Sets the character encoding output to use in the XML declaration. For example, 'UTF-8', 'ISO-8859-1', 'windows-1252', and 'ascii'. Precisely which encodings are available is dependent on the specific Java or .NET runtime environment that you use. Note that an invalid output encoding will cause an exception to be raised.
The 'system' special value is introduced; selecting it has the affect of choosing the 'B' document's character encoding.
Default:
"system"- Parameters:
value- the value to set for the outputEncodingDeclaration parameter- Throws:
IllegalArgumentException- if the value is null
-
getTopicPublicId
Gets the value of the topicPublicId parameter.- Returns:
- the value of the topicPublicId parameter
-
setTopicPublicId
Specifies the publicId to use for a Topic doctype.
A value should only be passed if you wish to override the default values for the publicId (-//OASIS//DTD DITA 1.1 Topic//EN for DITA 1.1 and -//OASIS//DTD DITA 1.2 Topic//EN for DITA 1.2)
Note that this value is only used if the following are true:
- The input documents are different DITA specializations, or only one of them is specialized
- At least one of the input documents specified a doctype
- The comparison has not been configured to re-specialize the result document even if the inputs were different types
Default:
""- Parameters:
value- the value to set for the topicPublicId parameter- Throws:
IllegalArgumentException- if the value is null
-
getTopicSystemId
Gets the value of the topicSystemId parameter.- Returns:
- the value of the topicSystemId parameter
-
setTopicSystemId
Specifies the systemId to use for a Topic doctype.
A value should only be passed if you wish to override the default values for the publicId (http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd for DITA 1.1 and http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/topic.dtd for DITA 1.2)
Note that this value is only used if the following are true:
- The input documents are different DITA specializations, or only one of them is specialized
- At least one of the input documents specified a doctype
- The comparison has not been configured to re-specialize the result document even if the inputs were different types
Default:
""- Parameters:
value- the value to set for the topicSystemId parameter- Throws:
IllegalArgumentException- if the value is null
-
getXmlVersionDeclaration
Gets the value of the xmlVersionDeclaration parameter.- Returns:
- the value of the xmlVersionDeclaration parameter
-
setXmlVersionDeclaration
Sets the version to use in the XML declaration.
The 'system' special value is introduced; selecting it has the affect of choosing 'B' document's xml-version (as provided by the parser).
Default:
XmlVersionDeclaration.SYSTEM- Parameters:
value- the value to set for the xmlVersionDeclaration parameter- Throws:
IllegalArgumentException- if the value is null- See Also:
-
isForceSpecialization
public boolean isForceSpecialization()Gets the value of the forceSpecialization parameter.- Returns:
- the value of the forceSpecialization parameter
-
setForceSpecialization
public void setForceSpecialization(boolean value) Specifies whether or not to force result specialization when the input types are different.
If this value is set to
falseand the input documents are different DITA types, the result document will be left in its generalized form with class attributes to indicate what the specializations are.If this value is set to
trueand the input documents are different DITA types, the result document will be specialized to the DITA type of the second input. Please note that this may produce a result document that is not valid against its doctype.Default:
false- Parameters:
value- the value to set for the forceSpecialization parameter
-