Class BitolContextDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<BitolContext>
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolContextDeserializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class BitolContextDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<BitolContext>
BitolContextDeserializer reads the AI context block, which ODCS v3.2.0 allows to be written either as an object
or as a plain string that is equivalent to supplying the instructions alone.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) Read either a context object or the string shorthand.Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
BitolContextDeserializer
public BitolContextDeserializer()Default constructor
-
-
Method Details
-
deserialize
public BitolContext deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException Read either a context object or the string shorthand.- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<BitolContext>- Parameters:
parser- parser positioned at the start of the contextcontext- deserialization context- Returns:
- context bean or null if the section is null
- Throws:
IOException- problem reading the document
-