Class YamlConfigurationLoader.Builder

    • Method Detail

      • indent

        public YamlConfigurationLoader.Builder indent​(int indent)
        Sets the level of indentation the resultant loader should use.
        Parameters:
        indent - the indent level
        Returns:
        this builder (for chaining)
        Since:
        4.0.0
      • indent

        public int indent()
        Gets the level of indentation to be used by the resultant loader.
        Returns:
        the indent level
        Since:
        4.0.0
      • nodeStyle

        public YamlConfigurationLoader.Builder nodeStyle​(@Nullable NodeStyle style)
        Sets the node style the built loader should use.
        Flow
        the compact, json-like representation.
        Example: {value: [list, of, elements], another: value}
        Block
        expanded, traditional YAML
        Example: value: - list - of - elements another: value

        A null value will tell the loader to pick a value automatically based on the contents of each non-scalar node.

        Parameters:
        style - the node style to use
        Returns:
        this builder (for chaining)
        Since:
        4.0.0
      • nodeStyle

        public @Nullable NodeStyle nodeStyle()
        Gets the node style to be used by the resultant loader.
        Returns:
        the node style
        Since:
        4.0.0