Interface ValueDeserializer<T>

Type Parameters:
T - Target type
All Superinterfaces:
Configurable
All Known Implementing Classes:
DateDeserializer, DurationDeserializer, InstantDeserializer, LocalDateDeserializer, LocalDateTimeDeserializer, LocalTimeDeserializer, OffsetDateTimeDeserializer, OffsetTimeDeserializer, PeriodDeserializer, ZonedDateTimeDeserializer

public interface ValueDeserializer<T> extends Configurable
Deserializes JSON-LD nodes to Java objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Applies the specified configuration to this deserializer.
    deserialize(jakarta.json.JsonValue jsonNode, DeserializationContext<T> ctx)
    Deserializes the specified JSON-LD node.
  • Method Details

    • deserialize

      T deserialize(jakarta.json.JsonValue jsonNode, DeserializationContext<T> ctx)
      Deserializes the specified JSON-LD node.
      Parameters:
      jsonNode - JSON-LD node to deserialize
      ctx - Deserialization context
      Returns:
      Deserialized object
    • configure

      default void configure(Configuration config)
      Applies the specified configuration to this deserializer.

      Should be called at the beginning of deserialization of JSON-LD content so that potential runtime changes in configuration can be reflected by the deserialization process.

      Implementations are free to apply configuration on initialization and rely on the default implementation of this method which does nothing.

      Specified by:
      configure in interface Configurable
      Parameters:
      config - Configuration to apply