Class JsonLdDeserializer
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.JsonLdDeserializer
- All Implemented Interfaces:
Configured
- Direct Known Subclasses:
ExpandedJsonLdDeserializer
Takes a pre-processed JSON-LD structure and deserializes it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TargetClassResolver
protected ValueDeserializers
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
JsonLdDeserializer
(Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionGets the configuration holder for this JSON-LD processor.static JsonLdDeserializer
Creates deserializer for expanded JSON-LD.static JsonLdDeserializer
createExpandedDeserializer
(Configuration configuration) Creates deserializer for expanded JSON-LD, initialized with the specified configuration.abstract <T> T
deserialize
(jakarta.json.JsonValue jsonLd, Class<T> resultClass) Deserializes the specified JSON-LD data.<T> void
registerDeserializer
(Class<T> type, ValueDeserializer<T> deserializer) Registers a custom deserializer for the specified type.
-
Field Details
-
classResolver
-
deserializers
-
-
Constructor Details
-
JsonLdDeserializer
protected JsonLdDeserializer() -
JsonLdDeserializer
-
-
Method Details
-
configuration
Description copied from interface:Configured
Gets the configuration holder for this JSON-LD processor.- Specified by:
configuration
in interfaceConfigured
- Returns:
- Configuration
-
registerDeserializer
Registers a custom deserializer for the specified type.If a deserializer already existed for the type, it is replaced by the new one.
- Type Parameters:
T
- Target type- Parameters:
type
- Target type to register the deserializer fordeserializer
- Deserializer to register
-
deserialize
Deserializes the specified JSON-LD data.- Type Parameters:
T
- The type of the target object- Parameters:
jsonLd
- JSON-LD structureresultClass
- Type of the result instance- Returns:
- Deserialized Java instance
-
createExpandedDeserializer
Creates deserializer for expanded JSON-LD, initialized with the specified configuration.- Parameters:
configuration
- Configuration of the deserializer- Returns:
- New deserializer
-
createExpandedDeserializer
Creates deserializer for expanded JSON-LD.- Returns:
- New deserializer
-