public abstract class AbstractDeserializer<T>
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDeserializer(Class<?> pType) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(com.fasterxml.jackson.core.JsonParser pParser,
com.fasterxml.jackson.databind.DeserializationContext pContext)
Method reads version info data from the JSON data and creates a
VersionInfo object out of it. |
abstract T |
deserialize(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode)
Method deserializes the passed JSON
ObjectNode into its matching "real" object. |
protected BigDecimal |
getBigDecimalValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
BigDecimal pDefaultValue)
Method returns the
BigDecimal value from the field with the passed name from the passed JSON node. |
protected BigInteger |
getBigIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
BigInteger pDefaultValue)
Method returns the
BigInteger value from the field with the passed name from the passed JSON node. |
protected boolean |
getBooleanValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
boolean pDefaultValue)
Method returns the boolean value from the field with the passed name from the passed JSON node.
|
protected Boolean |
getBooleanValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Boolean pDefaultValue)
Method returns the
Boolean value from the field with the passed name from the passed JSON node. |
protected byte |
getByteValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
byte pDefaultValue)
Method returns the byte value from the field with the passed name from the passed JSON node.
|
protected Byte |
getByteValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Byte pDefaultValue)
Method returns the
Byte value from the field with the passed name from the passed JSON node. |
protected Calendar |
getCalendarValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Calendar pDefaultValue)
Method returns the
Calendar value from the field with the passed name from the passed JSON node. |
protected Date |
getDateValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Date pDefaultValue)
Method returns the
Date value from the field with the passed name from the passed JSON node. |
protected double |
getDoubleValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
double pDefaultValue)
Method returns the double value from the field with the passed name from the passed JSON node.
|
protected Double |
getDoubleValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Double pDefaultValue)
Method returns the
Double value from the field with the passed name from the passed JSON node. |
protected float |
getFloatValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
float pDefaultValue)
Method returns the float value from the field with the passed name from the passed JSON node.
|
protected Float |
getFloatValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Float pDefaultValue)
Method returns the
Float value from the field with the passed name from the passed JSON node. |
protected int |
getIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
int pDefaultValue)
Method returns the int value from the field with the passed name from the passed JSON node.
|
protected Integer |
getIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Integer pDefaultValue)
Method returns the
Integer value from the field with the passed name from the passed JSON node. |
protected long |
getLongValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
long pDefaultValue)
Method returns the long value from the field with the passed name from the passed JSON node.
|
protected Long |
getLongValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Long pDefaultValue)
Method returns the
Long value from the field with the passed name from the passed JSON node. |
protected short |
getShortValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
short pDefaultValue)
Method returns the short value from the field with the passed name from the passed JSON node.
|
protected Short |
getShortValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
Short pDefaultValue)
Method returns the
Short value from the field with the passed name from the passed JSON node. |
protected String |
getStringValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
String pDefaultValue)
Method returns the
String value from the field with the passed name from the passed JSON node. |
_byteOverflow, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkTextualNull, _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, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializerdeserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializerprotected AbstractDeserializer(Class<?> pType)
public final T deserialize(com.fasterxml.jackson.core.JsonParser pParser, com.fasterxml.jackson.databind.DeserializationContext pContext) throws com.fasterxml.jackson.core.JacksonException, IOException
VersionInfo object out of it.deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<T>pParser - JSON parser. The parameter must not be null.pContext - Context information. The parameter is not used by this implementation.com.fasterxml.jackson.core.JacksonExceptionIOExceptionpublic abstract T deserialize(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode)
ObjectNode into its matching "real" object.pObjectNode - JSON data that should be converted into an real object. The parameter must not be null.protected final String getStringValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, String pDefaultValue)
String value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.String Value of the passed field or its default value.protected final Date getDateValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Date pDefaultValue)
Date value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Date Value of the passed field or its default value.protected final Calendar getCalendarValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Calendar pDefaultValue)
Calendar value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Calendar Value of the passed field or its default value.protected final boolean getBooleanValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
boolean pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Boolean getBooleanValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Boolean pDefaultValue)
Boolean value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Boolean Value of the passed field or its default value.protected final byte getByteValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
byte pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Byte getByteValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Byte pDefaultValue)
Byte value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Byte Value of the passed field or its default value.protected final short getShortValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
short pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Short getShortValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Short pDefaultValue)
Short value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Short Value of the passed field or its default value.protected final int getIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
int pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Integer getIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Integer pDefaultValue)
Integer value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Integer Value of the passed field or its default value.protected final long getLongValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
long pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Long getLongValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Long pDefaultValue)
Long value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Long Value of the passed field or its default value.protected final BigInteger getBigIntegerValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, BigInteger pDefaultValue)
BigInteger value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.BigInteger Value of the passed field or its default value.protected final float getFloatValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
float pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Float getFloatValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Float pDefaultValue)
Float value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Float Value of the passed field or its default value.protected final double getDoubleValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode,
String pFieldName,
double pDefaultValue)
pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null.protected final Double getDoubleValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, Double pDefaultValue)
Double value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.Double Value of the passed field or its default value.protected final BigDecimal getBigDecimalValueFromNode(com.fasterxml.jackson.databind.node.ObjectNode pObjectNode, String pFieldName, BigDecimal pDefaultValue)
BigDecimal value from the field with the passed name from the passed JSON node.pObjectNode - Node from which the field should be read. The parameter must not be null.pFieldName - Name of the field from which the value should be read. The parameter must not be null.pDefaultValue - Default value that should be used in case that the field is not present or null. The parameter
may be null.BigDecimal Value of the passed field or its default value.Copyright © 2022. All rights reserved.