Enum JsonGroupAsBehavior

    • Enum Constant Detail

      • KEYED

        public static final JsonGroupAsBehavior KEYED
        In JSON, the group of instances will be represented as a JSON object, with each instance's JSON key used as the property and the remaining data represented as a child object of that property.
      • SINGLETON_OR_LIST

        public static final JsonGroupAsBehavior SINGLETON_OR_LIST
        In JSON, the group of instances will be represented as a single JSON object if there is one, or as an array of JSON objects if there is more than one. An empty array will be used when no items exist in the group.
      • LIST

        public static final JsonGroupAsBehavior LIST
        In JSON, the group of instances will be represented as an array of JSON objects if there is more than one. An empty array will be used when no items exist in the group.
      • NONE

        public static final JsonGroupAsBehavior NONE
        In JSON, the group of instances will be represented as a single JSON object.
    • Method Detail

      • values

        public static JsonGroupAsBehavior[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JsonGroupAsBehavior c : JsonGroupAsBehavior.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JsonGroupAsBehavior valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null