NullValueProvider that will simply return given
constant value when a null is encountered; or, with a specially
constructed instance (see skipper, indicate the need
for special behavior of skipping property altogether (not setting
as anything OR throwing exception).
| Modifier and Type | Field and Description |
|---|---|
| protected final AccessPattern | |
| protected final Object | |
| private static final NullsConstantProvider | |
| private static final long | |
| private static final NullsConstantProvider |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static NullsConstantProvider | |
| public AccessPattern | getNullAccessPattern()
Implements com. Accessor that may be used to determine if and when provider must be called to access null replacement value. |
| public Object | getNullValue(DeserializationContext ctxt)
Implements com. Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports. |
| public static boolean | isNuller(NullValueProvider p)
Utility method that can be used to check if given null value provider is "nuller", no-operation provider that will always simply return Java `null` for any and all input `null`s. |
| public static boolean | isSkipper(NullValueProvider p)
Utility method that can be used to check if given null value provider is "skipper", marker provider that means that all input `null`s should be skipped (ignored), instead of converted |
| public static NullsConstantProvider | |
| public static NullsConstantProvider | skipper()
Static accessor for a stateless instance used as marker, to indicate that all input `null` values should be skipped (ignored), so that no corresponding property value is set (with POJOs), and no content values (array/Collection elements, Map entries) are added. |
| _access | back to summary |
|---|---|
| protected final AccessPattern _access | |
| _nullValue | back to summary |
|---|---|
| protected final Object _nullValue | |
| NULLER | back to summary |
|---|---|
| private static final NullsConstantProvider NULLER | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SKIPPER | back to summary |
|---|---|
| private static final NullsConstantProvider SKIPPER | |
| NullsConstantProvider | back to summary |
|---|---|
| protected NullsConstantProvider(Object nvl) | |
| forValue | back to summary |
|---|---|
| public static NullsConstantProvider forValue(Object nvl) | |
| getNullAccessPattern | back to summary |
|---|---|
| public AccessPattern getNullAccessPattern() Implements com. Doc from com. Accessor that may be used to determine if and when provider must be called to access null replacement value.
| |
| getNullValue | back to summary |
|---|---|
| public Object getNullValue(DeserializationContext ctxt) Implements com. Doc from com. Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports. May return `null`, or value compatible with type binding. Note if
| |
| isNuller | back to summary |
|---|---|
| public static boolean isNuller(NullValueProvider p) Utility method that can be used to check if given null value provider is "nuller", no-operation provider that will always simply return Java `null` for any and all input `null`s. | |
| isSkipper | back to summary |
|---|---|
| public static boolean isSkipper(NullValueProvider p) Utility method that can be used to check if given null value provider is "skipper", marker provider that means that all input `null`s should be skipped (ignored), instead of converted | |
| nuller | back to summary |
|---|---|
| public static NullsConstantProvider nuller() | |
| skipper | back to summary |
|---|---|
| public static NullsConstantProvider skipper() Static accessor for a stateless instance used as marker, to indicate that all input `null` values should be skipped (ignored), so that no corresponding property value is set (with POJOs), and no content values (array/Collection elements, Map entries) are added. | |