Class InstantDeserializer
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.datetime.InstantDeserializer
- All Implemented Interfaces:
Configurable
,ValueDeserializer<Instant>
Deserializes values to
Instant
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration config) Applies the specified configuration to this deserializer.deserialize
(jakarta.json.JsonValue jsonNode, DeserializationContext<Instant> ctx) Deserializes the specified JSON-LD node.
-
Constructor Details
-
InstantDeserializer
-
-
Method Details
-
deserialize
Description copied from interface:ValueDeserializer
Deserializes the specified JSON-LD node.- Specified by:
deserialize
in interfaceValueDeserializer<Instant>
- Parameters:
jsonNode
- JSON-LD node to deserializectx
- Deserialization context- Returns:
- Deserialized object
-
configure
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 interfaceConfigurable
- Specified by:
configure
in interfaceValueDeserializer<Instant>
- Parameters:
config
- Configuration to apply
-