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 TypeMethodDescriptionvoidconfigure(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:ValueDeserializerDeserializes the specified JSON-LD node.- Specified by:
deserializein interfaceValueDeserializer<Instant>- Parameters:
jsonNode- JSON-LD node to deserializectx- Deserialization context- Returns:
- Deserialized object
-
configure
Description copied from interface:ValueDeserializerApplies 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:
configurein interfaceConfigurable- Specified by:
configurein interfaceValueDeserializer<Instant>- Parameters:
config- Configuration to apply
-