Package com.deltaxml.docbook.config
Class Alignment
java.lang.Object
com.deltaxml.docbook.config.Alignment
Contains parameters that affect the alignment/matching of elements.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a defaultAlignmentobject.Alignment(KeyingMode keyingMode) Constructs anAlignmentobject using the providedKeyingMode. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the keyingMode parameter.voidsetKeyingMode(KeyingMode value) Sets the mode to use for adding keys to the input documents.
-
Constructor Details
-
Alignment
public Alignment()Constructs a defaultAlignmentobject. Contains parameters that affect the alignment/matching of elements. -
Alignment
Constructs anAlignmentobject using the providedKeyingMode.- Parameters:
keyingMode- WhichKeyingModeto use for alignment.
-
-
Method Details
-
getKeyingMode
Gets the value of the keyingMode parameter.- Returns:
- the value of the keyingMode parameter
-
setKeyingMode
Sets the mode to use for adding keys to the input documents.
Keys can be added to the input documents to force particular parts of the document to match up during a comparison. This method can be used to turn on keying and also gives an option of what to use as keys in the input document.
Default:
KeyingMode.PRESERVE- Parameters:
value- the value to set for the keyingMode parameter- Throws:
IllegalArgumentException- if the value is null- See Also:
-