Package com.dslplatform.json
Enum CompiledJson.TypeSignature
- All Implemented Interfaces:
Serializable,Comparable<CompiledJson.TypeSignature>,java.lang.constant.Constable
- Enclosing class:
CompiledJson
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompiledJson.TypeSignatureReturns the enum constant of this type with the specified name.static CompiledJson.TypeSignature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Embed additional metadata as the first property during serialization -
EXCLUDE
Exclude additional metadata from serialization of abstract classes and interfaces
-
-
Constructor Details
-
TypeSignature
private TypeSignature()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-