Class FormatArguments

java.lang.Object
put.ai.se.jsontools.core.format.FormatArguments

public class FormatArguments extends Object
The objective of the JsonFormatParams class is to provide a base class for defining parameters used for formatting JSON strings. It encapsulates the formatting options and provides methods to access these options.
  • Field Details

    • filter

      private FilterArguments filter
    • prettify

      private boolean prettify
  • Constructor Details

    • FormatArguments

      public FormatArguments()
  • Method Details

    • getFilter

      public FilterArguments getFilter()
      Retrieves the filter parameters for JSON strings.
      Returns:
      A FilterArguments object used for storing filtering parameters.
    • setFilter

      public void setFilter(FilterArguments filter)
    • getPrettify

      public boolean getPrettify()
      Retrieves the formatting style for JSON strings.
      Returns:
      A boolean value that is true in case we should apply JsonPrettifier; JsonMinifier otherwise.
    • setPrettify

      public void setPrettify(boolean prettify)