Enum Class JsonSourceType

java.lang.Object
java.lang.Enum<JsonSourceType>
io.jmix.reports.entity.JsonSourceType
All Implemented Interfaces:
EnumClass<Integer>, Serializable, Comparable<JsonSourceType>, Constable

public enum JsonSourceType extends Enum<JsonSourceType> implements EnumClass<Integer>
Determines source where JSON for a DataSetType.JSON data set is obtained.
  • Enum Constant Details

    • GROOVY_SCRIPT

      public static final JsonSourceType GROOVY_SCRIPT
      Groovy script, supposed to return JSON data as a string.
    • URL

      public static final JsonSourceType URL
      The reporting engine will perform an HTTP GET query against the URL.
    • PARAMETER

      public static final JsonSourceType PARAMETER
      An input parameter of ParameterType.TEXT type provides the JSON data.
    • DELEGATE

      public static final JsonSourceType DELEGATE
      Obtain JSON data by calling associated JsonInputProvider.
  • Method Details

    • values

      public static JsonSourceType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JsonSourceType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public Integer getId()
      Specified by:
      getId in interface EnumClass<Integer>
    • fromId

      public static JsonSourceType fromId(Integer id)