Class ContextBuildingTemporalAmountSerializer
java.lang.Object
cz.cvut.kbss.jsonld.serialization.serializer.context.datetime.ContextBuildingTemporalAmountSerializer
- All Implemented Interfaces:
Configurable
,ValueSerializer<TemporalAmount>
public class ContextBuildingTemporalAmountSerializer
extends Object
implements ValueSerializer<TemporalAmount>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionserialize
(TemporalAmount value, SerializationContext<TemporalAmount> ctx) Serializes the specified value, returning a JSON-LD node representing it.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.serialization.serializer.ValueSerializer
configure
-
Constructor Details
-
ContextBuildingTemporalAmountSerializer
public ContextBuildingTemporalAmountSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ValueSerializer
Serializes the specified value, returning a JSON-LD node representing it.Note that if the value is a singular, the returned node should also contain the identifier of the serialized attribute (available through the provided serialization context).
- Specified by:
serialize
in interfaceValueSerializer<TemporalAmount>
- Parameters:
value
- Value to serializectx
- Serialization context- Returns:
- Serialization result
-