Package ai.libs.hasco.serialization
Class ComponentInstanceDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<T>
-
- com.fasterxml.jackson.databind.deser.std.StdDeserializer<ComponentInstance>
-
- ai.libs.hasco.serialization.ComponentInstanceDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
,java.io.Serializable
public class ComponentInstanceDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<ComponentInstance>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentInstanceDeserializer(java.util.Collection<Component> possibleComponents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentInstance
deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)
ComponentInstance
readAsTree(com.fasterxml.jackson.core.TreeNode p)
ComponentInstance
readFromJson(java.lang.String json)
-
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Constructor Detail
-
ComponentInstanceDeserializer
public ComponentInstanceDeserializer(java.util.Collection<Component> possibleComponents)
-
-
Method Detail
-
readFromJson
public ComponentInstance readFromJson(java.lang.String json) throws java.io.IOException
- Throws:
java.io.IOException
-
readAsTree
public ComponentInstance readAsTree(com.fasterxml.jackson.core.TreeNode p) throws java.io.IOException
- Throws:
java.io.IOException
-
deserialize
public ComponentInstance deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<ComponentInstance>
- Throws:
java.io.IOException
-
-