Class FromStringDeserializer.Std
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.JsonDeserializer<T>
 - 
- com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
 - 
- com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
 - 
- com.fasterxml.jackson.databind.deser.std.FromStringDeserializer<java.lang.Object>
 - 
- com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.Std
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 NullValueProvider,ValueInstantiator.Gettable,java.io.Serializable
- Enclosing class:
 - FromStringDeserializer<T>
 
public static class FromStringDeserializer.Std extends FromStringDeserializer<java.lang.Object>
"Chameleon" deserializer that works on simple types that are deserialized from a simple String.- Since:
 - 2.4
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
FromStringDeserializer.Std 
- 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static intSTD_CHARSETstatic intSTD_CLASSstatic intSTD_CURRENCYstatic intSTD_FILEstatic intSTD_INET_ADDRESSstatic intSTD_INET_SOCKET_ADDRESSstatic intSTD_JAVA_TYPEstatic intSTD_LOCALEstatic intSTD_PATTERNstatic intSTD_TIME_ZONEstatic intSTD_URIstatic intSTD_URL 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetEmptyValue(DeserializationContext ctxt)Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).- 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
deserialize, findDeserializer, logicalType, types 
- 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer
deserialize, deserializeWithType, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate 
- 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
getValueClass, getValueInstantiator, getValueType, getValueType, handledType 
- 
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer 
 - 
 
 - 
 
- 
- 
Field Detail
- 
STD_FILE
public static final int STD_FILE
- See Also:
 - Constant Field Values
 
 
- 
STD_URL
public static final int STD_URL
- See Also:
 - Constant Field Values
 
 
- 
STD_URI
public static final int STD_URI
- See Also:
 - Constant Field Values
 
 
- 
STD_CLASS
public static final int STD_CLASS
- See Also:
 - Constant Field Values
 
 
- 
STD_JAVA_TYPE
public static final int STD_JAVA_TYPE
- See Also:
 - Constant Field Values
 
 
- 
STD_CURRENCY
public static final int STD_CURRENCY
- See Also:
 - Constant Field Values
 
 
- 
STD_PATTERN
public static final int STD_PATTERN
- See Also:
 - Constant Field Values
 
 
- 
STD_LOCALE
public static final int STD_LOCALE
- See Also:
 - Constant Field Values
 
 
- 
STD_CHARSET
public static final int STD_CHARSET
- See Also:
 - Constant Field Values
 
 
- 
STD_TIME_ZONE
public static final int STD_TIME_ZONE
- See Also:
 - Constant Field Values
 
 
- 
STD_INET_ADDRESS
public static final int STD_INET_ADDRESS
- See Also:
 - Constant Field Values
 
 
- 
STD_INET_SOCKET_ADDRESS
public static final int STD_INET_SOCKET_ADDRESS
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getEmptyValue
public java.lang.Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException
Description copied from class:JsonDeserializerMethod called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings). Usually this is same asJsonDeserializer.getNullValue(com.fasterxml.jackson.databind.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
JsonDeserializer.getEmptyAccessPattern()returns.Default implementation simply calls
JsonDeserializer.getNullValue(com.fasterxml.jackson.databind.DeserializationContext)and returns value.- Overrides:
 getEmptyValuein classJsonDeserializer<java.lang.Object>- Throws:
 JsonMappingException
 
 - 
 
 -