Class UUIDDeserializer
java.lang.Object
tools.jackson.databind.ValueDeserializer<UUID>
tools.jackson.databind.deser.std.StdDeserializer<UUID>
tools.jackson.databind.deser.std.StdScalarDeserializer<UUID>
tools.jackson.databind.deser.std.FromStringDeserializer<UUID>
tools.jackson.databind.deser.jdk.UUIDDeserializer
- All Implemented Interfaces:
NullValueProvider, ValueInstantiator.Gettable
-
Nested Class Summary
Nested classes/interfaces inherited from class ValueDeserializer
ValueDeserializer.None -
Field Summary
FieldsFields inherited from class StdDeserializer
_valueClass, _valueType, F_MASK_INT_COERCIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int_badChar(String uuidStr, int index, DeserializationContext ctxt, char c) private UUID_badFormat(String uuidStr, DeserializationContext ctxt) protected UUID_deserialize(String id, DeserializationContext ctxt) Main method from trying to deserialize actual value from non-empty String.protected UUID_deserializeEmbedded(Object ob, DeserializationContext ctxt) Overridable method to allow coercion from embedded value that is neithernullnor directly assignable to target type.private UUID_fromBytes(byte[] bytes, DeserializationContext ctxt) private static int_int(byte[] b, int offset) private static long_long(byte[] b, int offset) (package private) intbyteFromChars(String str, int index, DeserializationContext ctxt) private StringconvertFromUrlSafe(String base64) private StringconvertToUrlSafe(String base64) Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).(package private) intintFromChars(String str, int index, DeserializationContext ctxt) (package private) intshortFromChars(String str, int index, DeserializationContext ctxt) Methods inherited from class FromStringDeserializer
_deserializeFromEmptyString, _deserializeFromEmptyStringDefault, _deserializeFromOther, _shouldTrim, deserialize, logicalTypeMethods inherited from class StdScalarDeserializer
deserialize, deserializeWithType, getEmptyAccessPattern, getNullAccessPattern, supportsUpdateMethods inherited from class StdDeserializer
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceIntegral, _deserializeFromArray, _deserializeFromEmptyString, _deserializeFromString, _deserializeFromStringForContainer, _deserializeWrappedValue, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _wrapIOFailure, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatFeature, findFormatOverrides, findFormatOverrides, findValueNullProvider, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializerMethods inherited from class ValueDeserializer
createContextual, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, resolve, unwrappingDeserializer
-
Field Details
-
HEX_DIGITS
static final int[] HEX_DIGITS
-
-
Constructor Details
-
UUIDDeserializer
public UUIDDeserializer()
-
-
Method Details
-
getEmptyValue
Description copied from class:ValueDeserializerMethod called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings). Usually this is same asValueDeserializer.getNullValue(DeserializationContext)(which in turn is usually simply Java null), but it can be overridden for specific types. Or, if type should never be converted from empty String, method can also throw an exception.This method may be called once, or multiple times, depending on what
ValueDeserializer.getEmptyAccessPattern()returns.Default implementation simply calls
ValueDeserializer.getNullValue(DeserializationContext)and returns value.- Overrides:
getEmptyValuein classValueDeserializer<UUID>
-
_deserialize
protected UUID _deserialize(String id, DeserializationContext ctxt) throws tools.jackson.core.JacksonException Description copied from class:FromStringDeserializerMain method from trying to deserialize actual value from non-empty String.- Specified by:
_deserializein classFromStringDeserializer<UUID>- Throws:
tools.jackson.core.JacksonException
-
_deserializeEmbedded
protected UUID _deserializeEmbedded(Object ob, DeserializationContext ctxt) throws tools.jackson.core.JacksonException Description copied from class:FromStringDeserializerOverridable method to allow coercion from embedded value that is neithernullnor directly assignable to target type. Used, for example, byUUIDDeserializerto coerce frombyte[].- Overrides:
_deserializeEmbeddedin classFromStringDeserializer<UUID>- Throws:
tools.jackson.core.JacksonException
-
_badFormat
private UUID _badFormat(String uuidStr, DeserializationContext ctxt) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
intFromChars
-
shortFromChars
-
byteFromChars
-
_badChar
-
_fromBytes
-
convertToUrlSafe
-
convertFromUrlSafe
-
_long
private static long _long(byte[] b, int offset) -
_int
private static int _int(byte[] b, int offset)
-