Class ZonedDateTimeDeserializer

java.lang.Object
cz.cvut.kbss.jsonld.deserialization.datetime.ZonedDateTimeDeserializer
All Implemented Interfaces:
Configurable, ValueDeserializer<ZonedDateTime>

public class ZonedDateTimeDeserializer extends Object implements ValueDeserializer<ZonedDateTime>
Deserializes values to ZonedDateTime.
  • Constructor Details

  • Method Details

    • deserialize

      public ZonedDateTime deserialize(jakarta.json.JsonValue jsonNode, DeserializationContext<ZonedDateTime> ctx)
      Description copied from interface: ValueDeserializer
      Deserializes the specified JSON-LD node.
      Specified by:
      deserialize in interface ValueDeserializer<ZonedDateTime>
      Parameters:
      jsonNode - JSON-LD node to deserialize
      ctx - Deserialization context
      Returns:
      Deserialized object
    • configure

      public void configure(Configuration config)
      Description copied from interface: ValueDeserializer
      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
      Specified by:
      configure in interface ValueDeserializer<ZonedDateTime>
      Parameters:
      config - Configuration to apply