public abstract class ReaderWriterProvider extends Object
ValueReader
s and
ValueWriter
s.Modifier and Type | Class and Description |
---|---|
static class |
ReaderWriterProvider.Pair
Implementation that allows chaining of two providers, one (first) with higher precedence
than the other (second).
|
Constructor and Description |
---|
ReaderWriterProvider() |
Modifier and Type | Method and Description |
---|---|
ValueReader |
findCollectionReader(JSONReader readContext,
Class<?> type,
ResolvedType valueType,
ValueReader readerForValues) |
ValueReader |
findMapReader(JSONReader readContext,
Class<?> type,
ResolvedType valueType,
ValueReader readerForValues) |
ValueReader |
findValueReader(JSONReader readContext,
Class<?> type)
Method called to find custom reader for given type that is NOT one of
special container types (
Collection ,
Map ): typically value is a scalar, Bean or Enum. |
ValueWriter |
findValueWriter(JSONWriter writeContext,
Class<?> type) |
public ValueReader findValueReader(JSONReader readContext, Class<?> type)
Collection
,
Map
): typically value is a scalar, Bean or Enum.readContext
- context object that may be needed for resolving dependant
readerstype
- Raw type of bean to find reader forpublic ValueReader findCollectionReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
public ValueReader findMapReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
public ValueWriter findValueWriter(JSONWriter writeContext, Class<?> type)
Copyright © 2020 FasterXML. All rights reserved.