Class FromStringDeserializer.Std
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonDeserializer<T>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.FromStringDeserializer<Object>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.Std
- All Implemented Interfaces:
NullValueProvider
,ValueInstantiator.Gettable
,Serializable
- Enclosing class:
- FromStringDeserializer<T>
"Chameleon" deserializer that works on simple types that are deserialized
from a simple String.
- Since:
- 2.4
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
FromStringDeserializer.Std
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdDeserializer
_valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_deserialize
(String value, DeserializationContext ctxt) Main method from trying to deserialize actual value from non-empty String.protected Object
protected int
protected boolean
Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.FromStringDeserializer
_deserializeEmbedded, _deserializeFromEmptyString, _deserializeFromEmptyString, _deserializeFromOther, deserialize, findDeserializer, logicalType, types
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer
deserialize, deserializeWithType, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonDeserializer
deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
-
Field Details
-
STD_FILE
public static final int STD_FILE- See Also:
-
STD_URL
public static final int STD_URL- See Also:
-
STD_URI
public static final int STD_URI- See Also:
-
STD_CLASS
public static final int STD_CLASS- See Also:
-
STD_JAVA_TYPE
public static final int STD_JAVA_TYPE- See Also:
-
STD_CURRENCY
public static final int STD_CURRENCY- See Also:
-
STD_PATTERN
public static final int STD_PATTERN- See Also:
-
STD_LOCALE
public static final int STD_LOCALE- See Also:
-
STD_CHARSET
public static final int STD_CHARSET- See Also:
-
STD_TIME_ZONE
public static final int STD_TIME_ZONE- See Also:
-
STD_INET_ADDRESS
public static final int STD_INET_ADDRESS- See Also:
-
STD_INET_SOCKET_ADDRESS
public static final int STD_INET_SOCKET_ADDRESS- See Also:
-
LOCALE_EXT_MARKER
- See Also:
-
_kind
protected final int _kind
-
-
Constructor Details
-
Std
-
-
Method Details
-
_deserialize
Description copied from class:FromStringDeserializer
Main method from trying to deserialize actual value from non-empty String.- Specified by:
_deserialize
in classFromStringDeserializer<Object>
- Throws:
IOException
-
getEmptyValue
Description copied from class:JsonDeserializer
Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings). Usually this is same asJsonDeserializer.getNullValue(edu.internet2.middleware.grouperClientExt.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(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.DeserializationContext)
and returns value.- Overrides:
getEmptyValue
in classJsonDeserializer<Object>
- Throws:
JsonMappingException
-
_deserializeFromEmptyStringDefault
- Overrides:
_deserializeFromEmptyStringDefault
in classFromStringDeserializer<Object>
- Throws:
IOException
-
_shouldTrim
protected boolean _shouldTrim()- Overrides:
_shouldTrim
in classFromStringDeserializer<Object>
-
_firstHyphenOrUnderscore
-