ValueReaders and
ValueWriters.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ReaderWriterProvider.
Implementation that allows chaining of two providers, one (first) with higher precedence than the other (second). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueReader | findCollectionReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
|
| public ValueReader | findMapReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
|
| public ValueReader | findValueReader(JSONReader
context object that may be needed for resolving dependant
readers readContext, Class<?> Raw type of bean to find reader for type)Method called to find custom reader for given type that is NOT one of
special container types ( |
| public ValueWriter |
| ReaderWriterProvider | back to summary |
|---|---|
| public ReaderWriterProvider() | |
| findCollectionReader | back to summary |
|---|---|
| public ValueReader findCollectionReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) | |
| findMapReader | back to summary |
|---|---|
| public ValueReader findMapReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) | |
| findValueReader | back to summary |
|---|---|
| public ValueReader findValueReader(JSONReader readContext, Class<?> type) Method called to find custom reader for given type that is NOT one of
special container types (
| |
| findValueWriter | back to summary |
|---|---|
| public ValueWriter findValueWriter(JSONWriter writeContext, Class<?> type) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final ReaderWriterProvider | |
| protected final ReaderWriterProvider |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ValueReader | findCollectionReader(JSONReader ctxt, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
Overrides com.
|
| public ValueReader | findMapReader(JSONReader ctxt, Class<?> type, ResolvedType valueType, ValueReader readerForValues)
Overrides com.
|
| public ValueReader | findValueReader(JSONReader
context object that may be needed for resolving dependant
readers ctxt, Class<?> Raw type of bean to find reader for type)Overrides com. Method called to find custom reader for given type that is NOT one of
special container types ( |
| public ValueWriter | findValueWriter(JSONWriter ctxt, Class<?> type)
Overrides com.
|
| public static ReaderWriterProvider | Returns: Provider instance either constructed (2 non-null providers), or non-null provider given as-is, or, if both nulls,null.Primary provider primary, ReaderWriterProvider Secondary provider secondary)Factory method for "combining" given 2 providers so that if neither is |
| _primary | back to summary |
|---|---|
| protected final ReaderWriterProvider _primary | |
| _secondary | back to summary |
|---|---|
| protected final ReaderWriterProvider _secondary | |
| Pair | back to summary |
|---|---|
| protected Pair(ReaderWriterProvider p, ReaderWriterProvider s) | |
| findCollectionReader | back to summary |
|---|---|
| public ValueReader findCollectionReader(JSONReader ctxt, Class<?> type, ResolvedType valueType, ValueReader readerForValues) Overrides com.
| |
| findMapReader | back to summary |
|---|---|
| public ValueReader findMapReader(JSONReader ctxt, Class<?> type, ResolvedType valueType, ValueReader readerForValues) Overrides com.
| |
| findValueReader | back to summary |
|---|---|
| public ValueReader findValueReader(JSONReader ctxt, Class<?> type) Overrides com. Doc from com. Method called to find custom reader for given type that is NOT one of
special container types (
| |
| findValueWriter | back to summary |
|---|---|
| public ValueWriter findValueWriter(JSONWriter ctxt, Class<?> type) Overrides com.
| |
| of | back to summary |
|---|---|
| public static ReaderWriterProvider of(ReaderWriterProvider primary, ReaderWriterProvider secondary) Factory method for "combining" given 2 providers so that if neither is
| |