Class BslDocCommentSerializer.Builder
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.documentation.comment.BslDocCommentSerializer.Builder
-
- Enclosing class:
- BslDocCommentSerializer
public static final class BslDocCommentSerializer.Builder extends Object
The configuration builder ofserializer
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BslDocCommentSerializer.Builder
alignFields()
Align fields of type definition field extention to the parent element indentaion.BslDocCommentSerializer.Builder
alignFields(boolean alignFields)
Sets that it need to align fieldsof type section to type name position.BslDocCommentSerializer
build()
Builds newserializer
with build configuration.BslDocCommentSerializer.Builder
ignoreLineNumbers()
Set Ignore line numbers of the model and make defaul line fomatting.BslDocCommentSerializer.Builder
lineSeparator(String lineSeparator)
Sets the line separator.BslDocCommentSerializer.Builder
linkInBrackets()
Sets the link need to serialize in brackets.BslDocCommentSerializer.Builder
newFormat()
Sets the string presentation must be in new format.BslDocCommentSerializer.Builder
oldFormat()
Sets the string presentation must be in old formatBslDocCommentSerializer.Builder
sectionSpace(int sectionSpace)
Sets the line numbers of space between sections.BslDocCommentSerializer.Builder
setOldFormat(boolean oldFormat)
Sets the string presentation must be in old format or in new format.BslDocCommentSerializer.Builder
setScriptVariant(boolean isRussian)
Sets the script variant of documentation comment model presentation.BslDocCommentSerializer.Builder
setScriptVariant(ScriptVariant variant)
Sets the script variant of documentation comment model presentation.
-
-
-
Method Detail
-
build
public BslDocCommentSerializer build()
Builds newserializer
with build configuration.- Returns:
- the bsl doc comment serializer
-
sectionSpace
public BslDocCommentSerializer.Builder sectionSpace(int 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
public BslDocCommentSerializer.Builder ignoreLineNumbers()
Set Ignore line numbers of the model and make defaul line fomatting.- Returns:
- the builder
-
oldFormat
public BslDocCommentSerializer.Builder oldFormat()
Sets the string presentation must be in old format- Returns:
- the builder
-
newFormat
public BslDocCommentSerializer.Builder newFormat()
Sets the string presentation must be in new format.- Returns:
- the builder
-
alignFields
public BslDocCommentSerializer.Builder alignFields()
Align fields of type definition field extention to the parent element indentaion.- Returns:
- the builder
-
alignFields
public BslDocCommentSerializer.Builder alignFields(boolean 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
public BslDocCommentSerializer.Builder linkInBrackets()
Sets the link need to serialize in brackets.- Returns:
- the builder
-
lineSeparator
public BslDocCommentSerializer.Builder lineSeparator(String lineSeparator)
Sets the line separator.- Parameters:
lineSeparator
- the new line separator, cannot benull
.- Returns:
- the builder
-
setScriptVariant
public BslDocCommentSerializer.Builder setScriptVariant(boolean isRussian)
Sets the script variant of documentation comment model presentation.- Parameters:
isRussian
-true
if it need Russian, otherwise is English- Returns:
- the builder
-
setScriptVariant
public BslDocCommentSerializer.Builder setScriptVariant(ScriptVariant variant)
Sets the script variant of documentation comment model presentation.- Parameters:
variant
- the script variant, cannot benull
.- Returns:
- the builder
-
setOldFormat
public BslDocCommentSerializer.Builder setOldFormat(boolean oldFormat)
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
-
-