Enum Class DeserializationConfiguration.Feature

java.lang.Object
java.lang.Enum<DeserializationConfiguration.Feature>
io.micronaut.serde.config.DeserializationConfiguration.Feature
All Implemented Interfaces:
Serializable, Comparable<DeserializationConfiguration.Feature>, Constable
Enclosing interface:
DeserializationConfiguration

public static enum DeserializationConfiguration.Feature extends Enum<DeserializationConfiguration.Feature>
Deserialization format features.
Since:
3.0
  • Enum Constant Details

    • ACCEPT_SINGLE_VALUE_AS_ARRAY

      public static final DeserializationConfiguration.Feature ACCEPT_SINGLE_VALUE_AS_ARRAY
      Accept a scalar JSON value as a single-element array or collection.
    • ACCEPT_CASE_INSENSITIVE_PROPERTIES

      public static final DeserializationConfiguration.Feature ACCEPT_CASE_INSENSITIVE_PROPERTIES
      Match bean property names without considering case.
    • READ_UNKNOWN_ENUM_VALUES_AS_NULL

      public static final DeserializationConfiguration.Feature READ_UNKNOWN_ENUM_VALUES_AS_NULL
      Deserialize unknown enum values as null.
    • READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE

      public static final DeserializationConfiguration.Feature READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE
      Deserialize unknown enum values using the enum constant marked as the default value.
    • READ_DATE_TIMESTAMPS_AS_NANOSECONDS

      public static final DeserializationConfiguration.Feature READ_DATE_TIMESTAMPS_AS_NANOSECONDS
      Interpret numeric date/time timestamps as nanoseconds when timestamps are enabled.
    • ACCEPT_CASE_INSENSITIVE_VALUES

      public static final DeserializationConfiguration.Feature ACCEPT_CASE_INSENSITIVE_VALUES
      Match scalar values, such as enum names, without considering case.
    • ADJUST_DATES_TO_CONTEXT_TIME_ZONE

      public static final DeserializationConfiguration.Feature ADJUST_DATES_TO_CONTEXT_TIME_ZONE
      Adjust date/time values to the configured context time zone during deserialization.
  • Method Details

    • values

      public static DeserializationConfiguration.Feature[] 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 DeserializationConfiguration.Feature 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