Class BslDocCommentSerializer.Builder
java.lang.Object
com._1c.g5.v8.dt.bsl.documentation.comment.BslDocCommentSerializer.Builder
- Enclosing class:
- BslDocCommentSerializer
The configuration builder of
serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlign fields of type definition field extention to the parent element indentaion.alignFields
(boolean alignFields) Sets that it need to align fieldsof type section to type name position.build()
Builds newserializer
with build configuration.Set Ignore line numbers of the model and make defaul line fomatting.lineSeparator
(String lineSeparator) Sets the line separator.Sets the link need to serialize in brackets.Sets the string presentation must be in new format.Sets the string presentation must be in old formatsectionSpace
(int sectionSpace) Sets the line numbers of space between sections.setOldFormat
(boolean oldFormat) Sets the string presentation must be in old format or in new format.setScriptVariant
(boolean isRussian) Sets the script variant of documentation comment model presentation.setScriptVariant
(ScriptVariant variant) Sets the script variant of documentation comment model presentation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds newserializer
with build configuration.- Returns:
- the bsl doc comment serializer
-
sectionSpace
Sets the line numbers of space between sections. Default is 2.- Parameters:
sectionSpace
- the section space, must be more then 0.- Returns:
- the builder
-
ignoreLineNumbers
Set Ignore line numbers of the model and make defaul line fomatting.- Returns:
- the builder
-
oldFormat
Sets the string presentation must be in old format- Returns:
- the builder
-
newFormat
Sets the string presentation must be in new format.- Returns:
- the builder
-
alignFields
Align fields of type definition field extention to the parent element indentaion.- Returns:
- the builder
-
alignFields
Sets that it need to align fieldsof type section to type name position.- Parameters:
alignFields
- true, if need to align fields, otherwise start field from begin of line- Returns:
- the builder
-
linkInBrackets
Sets the link need to serialize in brackets.- Returns:
- the builder
-
lineSeparator
Sets the line separator.- Parameters:
lineSeparator
- the new line separator, cannot benull
.- Returns:
- the builder
-
setScriptVariant
Sets the script variant of documentation comment model presentation.- Parameters:
isRussian
-true
if it need Russian, otherwise is English- Returns:
- the builder
-
setScriptVariant
Sets the script variant of documentation comment model presentation.- Parameters:
variant
- the script variant, cannot benull
.- Returns:
- the builder
-
setOldFormat
Sets the string presentation must be in old format or in new format.- Parameters:
oldFormat
-true
if string presentation must be in old format,false
in new format
-