Class DurationDeserializer
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.datetime.DurationDeserializer
- All Implemented Interfaces:
Configurable
,ValueDeserializer<Duration>
Deserializes JSON values to
Duration
.
The value is expected to be an ISO 8601-formatted string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(jakarta.json.JsonValue jsonNode, DeserializationContext<Duration> ctx) Deserializes the specified JSON-LD node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.jsonld.deserialization.ValueDeserializer
configure
-
Constructor Details
-
DurationDeserializer
public DurationDeserializer()
-
-
Method Details
-
deserialize
Description copied from interface:ValueDeserializer
Deserializes the specified JSON-LD node.- Specified by:
deserialize
in interfaceValueDeserializer<Duration>
- Parameters:
jsonNode
- JSON-LD node to deserializectx
- Deserialization context- Returns:
- Deserialized object
-