Class DateSerializer
java.lang.Object
cz.cvut.kbss.jsonld.serialization.serializer.datetime.DateSerializer
- All Implemented Interfaces:
- Configurable,- ValueSerializer<Date>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidconfigure(Configuration config) Applies the specified configuration to this serializer.serialize(Date value, SerializationContext<Date> ctx) Serializes the specified value, returning a JSON-LD node representing it.
- 
Constructor Details- 
DateSerializer
 
- 
- 
Method Details- 
serializeDescription copied from interface:ValueSerializerSerializes 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:
- serializein interface- ValueSerializer<Date>
- Parameters:
- value- Value to serialize
- ctx- Serialization context
- Returns:
- Serialization result
 
- 
configureDescription copied from interface:ValueSerializerApplies the specified configuration to this serializer.Should be called at the beginning of serialization of an object graph so that potential runtime changes in configuration can be reflected by the serialization process. Implementations are free to apply configuration on initialization and rely on the default implementation of this method which does nothing. - Specified by:
- configurein interface- Configurable
- Specified by:
- configurein interface- ValueSerializer<Date>
- Parameters:
- config- Configuration to apply
 
 
-