Top Fields Constructors Methods
com.fasterxml.jackson.databind.deser.std

public Class UUIDDeserializer

extends FromStringDeserializer<UUID>
Class Inheritance
Imports
java.io.IOException, java.util.Arrays, .UUID, com.fasterxml.jackson.core.Base64Variants, com.fasterxml.jackson.databind.DeserializationContext, .JsonMappingException, com.fasterxml.jackson.databind.exc.InvalidFormatException

Field Summary

Modifier and TypeField and Description
pack-priv static final int[]
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv int
_badChar(String uuidStr, int index, DeserializationContext ctxt, char c)

private UUID
protected UUID
_deserialize(String id, DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserialize.

Main method from trying to deserialize actual value from non-empty String.
protected UUID
_deserializeEmbedded(Object ob, DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserializeEmbedded.

Overridable method to allow coercion from embedded value that is neither null nor 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)

pack-priv int
public Object
getEmptyValue(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.JsonDeserializer.getEmptyValue.

Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).
pack-priv int
pack-priv int
Inherited from com.fasterxml.jackson.databind.deser.std.FromStringDeserializer:
_deserializeFromEmptyString_deserializeFromEmptyString_deserializeFromEmptyStringDefault_deserializeFromOther_shouldTrimdeserializefindDeserializerlogicalTypetypes

Field Detail

HEX_DIGITSback to summary
pack-priv static final int[] HEX_DIGITS
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer.serialVersionUID.

Constructor Detail

UUIDDeserializerback to summary
public UUIDDeserializer()

Method Detail

_badCharback to summary
pack-priv int _badChar(String uuidStr, int index, DeserializationContext ctxt, char c) throws JsonMappingException
_badFormatback to summary
private UUID _badFormat(String uuidStr, DeserializationContext ctxt) throws IOException
_deserializeback to summary
protected UUID _deserialize(String id, DeserializationContext ctxt) throws IOException

Implements abstract com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserialize.

Doc from com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserialize.

Main method from trying to deserialize actual value from non-empty String.

Annotations
@Override
_deserializeEmbeddedback to summary
protected UUID _deserializeEmbedded(Object ob, DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserializeEmbedded.

Doc from com.fasterxml.jackson.databind.deser.std.FromStringDeserializer._deserializeEmbedded.

Overridable method to allow coercion from embedded value that is neither null nor directly assignable to target type. Used, for example, by UUIDDeserializer to coerce from byte[].

Annotations
@Override
_fromBytesback to summary
private UUID _fromBytes(byte[] bytes, DeserializationContext ctxt) throws JsonMappingException
_intback to summary
private static int _int(byte[] b, int offset)
_longback to summary
private static long _long(byte[] b, int offset)
byteFromCharsback to summary
pack-priv int byteFromChars(String str, int index, DeserializationContext ctxt) throws JsonMappingException
getEmptyValueback to summary
public Object getEmptyValue(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.JsonDeserializer.getEmptyValue.

Doc from com.fasterxml.jackson.databind.JsonDeserializer.getEmptyValue.

Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings). Usually this is same as getNullValue (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 getEmptyAccessPattern() returns.

Default implementation simply calls getNullValue and returns value.

Annotations
@Override
intFromCharsback to summary
pack-priv int intFromChars(String str, int index, DeserializationContext ctxt) throws JsonMappingException
shortFromCharsback to summary
pack-priv int shortFromChars(String str, int index, DeserializationContext ctxt) throws JsonMappingException