Enum CompiledJson.TypeSignature

java.lang.Object
java.lang.Enum<CompiledJson.TypeSignature>
com.dslplatform.json.CompiledJson.TypeSignature
All Implemented Interfaces:
Serializable, Comparable<CompiledJson.TypeSignature>, java.lang.constant.Constable
Enclosing class:
CompiledJson

public static enum CompiledJson.TypeSignature extends Enum<CompiledJson.TypeSignature>
Some types (abstract classes and interfaces) require additional metadata so they can be correctly deserialized. This information can be excluded by using EXCLUDE type signature. An example of valid use case for exclusion is if there is some other way of handling deserialization, or if they are never deserialized at all.
  • Enum Constant Details

    • DEFAULT

      public static final CompiledJson.TypeSignature DEFAULT
      Embed additional metadata as the first property during serialization
    • EXCLUDE

      public static final CompiledJson.TypeSignature EXCLUDE
      Exclude additional metadata from serialization of abstract classes and interfaces
  • Constructor Details

    • TypeSignature

      private TypeSignature()
  • Method Details

    • values

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

      public static CompiledJson.TypeSignature 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