Class BslDocCommentSerializer.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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
      • lineSeparator

        public BslDocCommentSerializer.Builder lineSeparator​(String lineSeparator)
        Sets the line separator.
        Parameters:
        lineSeparator - the new line separator, cannot be null.
        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 be null.
        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