Class ContextBuildingIndividualSerializer
java.lang.Object
cz.cvut.kbss.jsonld.serialization.serializer.compact.IndividualSerializer
cz.cvut.kbss.jsonld.serialization.serializer.context.ContextBuildingIndividualSerializer
- All Implemented Interfaces:
Configurable
,ValueSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration config) Applies the specified configuration to this serializer.serialize
(Object value, SerializationContext ctx) Serializes the specified value, returning a JSON-LD node representing it.
-
Constructor Details
-
ContextBuildingIndividualSerializer
public ContextBuildingIndividualSerializer()
-
-
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
- Overrides:
serialize
in classIndividualSerializer
- Parameters:
value
- Value to serializectx
- Serialization context- Returns:
- Serialization result
-
configure
Description copied from interface:ValueSerializer
Applies 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.
- Parameters:
config
- Configuration to apply
-