| Modifier and Type | Class and Description |
|---|---|
| private static class | AnnotationBasedValueRWModifier.
Deserialize into an enum using the |
| private static class | AnnotationBasedValueRWModifier.
Serialize an enum using the |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final JsonAutoDetect. | _visibility
Visibility settings to use for auto-detecting accessors. |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| _visibility | back to summary |
|---|---|
| protected final JsonAutoDetect. Visibility settings to use for auto-detecting accessors. | |
| SER_ENUM_ID | back to summary |
|---|---|
| protected static final int SER_ENUM_ID | |
| AnnotationBasedValueRWModifier | back to summary |
|---|---|
| public AnnotationBasedValueRWModifier(JsonAutoDetect. | |
| modifyValueReader | back to summary |
|---|---|
| public ValueReader modifyValueReader(JSONReader readContext, Class<?> type, ValueReader defaultReader) Overrides tools. Doc from tools. Method called after
This method is often used to create a new
| |
| overrideStandardValueWriter | back to summary |
|---|---|
| public ValueWriter overrideStandardValueWriter(JSONWriter writeContext, Class<?> type, int stdTypeId) Overrides tools. Doc from tools. Method called instead of
| |
| pojoDefinitionForDeserialization | back to summary |
|---|---|
| public POJODefinition pojoDefinitionForDeserialization(JSONReader readContext, Class<?> pojoType) Overrides tools.
| |
| pojoDefinitionForSerialization | back to summary |
|---|---|
| public POJODefinition pojoDefinitionForSerialization(JSONWriter writeContext, Class<?> pojoType) Overrides tools.
| |
JsonCreator tagged method
| Modifier and Type | Field and Description |
|---|---|
| private final Method |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AnnotationBasedValueRWModifier. | Returns: a newEnumJsonCreatorReader to deserialize with, or null if there
is no JsonCreator method to usethe type to scan type)Scan the methods of the enum type to find a static method tagged with |
| public Object |
| _jsonCreatorMethod | back to summary |
|---|---|
| private final Method _jsonCreatorMethod | |
| EnumJsonCreatorReader | back to summary |
|---|---|
| private EnumJsonCreatorReader(Class<?> valueType, Method jsonCreatorMethod) | |
| of | back to summary |
|---|---|
| public static AnnotationBasedValueRWModifier. Scan the methods of the enum type to find a static method tagged with
| |
| read | back to summary |
|---|---|
| public Object read(JSONReader reader, JsonParser p) throws JacksonException Implements abstract tools.
| |
JsonValue tagged method.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AnnotationBasedValueRWModifier. | |
| public static AnnotationBasedValueRWModifier. | |
| public Class | valueType()
Implements tools. Accessor for non-generic (type-erased) type of values this reader produces from input. |
| public void | writeValue(JSONWriter context, JsonGenerator g, Object pojo)
Implements tools.
|
| _jsonValueMethod | back to summary |
|---|---|
| private final Method _jsonValueMethod | |
| _valueType | back to summary |
|---|---|
| private final Class<?> _valueType | |
| EnumJsonValueWriter | back to summary |
|---|---|
| private EnumJsonValueWriter(Class<?> _valueType, Method _jsonValueMethod) | |
| getJsonValueFunction | back to summary |
|---|---|
| private static AnnotationBasedValueRWModifier. | |
| of | back to summary |
|---|---|
| public static AnnotationBasedValueRWModifier. Scan the methods of the enum to find a
| |
| valueType | back to summary |
|---|---|
| public Class Implements tools. Doc from tools. Accessor for non-generic (type-erased) type of values this reader produces from input.
| |
| writeValue | back to summary |
|---|---|
| public void writeValue(JSONWriter context, JsonGenerator g, Object pojo) throws JacksonException Implements tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | valueType()
Implements tools. Accessor for non-generic (type-erased) type of values this reader produces from input. |
| public void | writeValue(JSONWriter context, JsonGenerator g, Object value)
Implements tools.
|
| _valueType | back to summary |
|---|---|
| private final Class<?> _valueType | |
| enumMap | back to summary |
|---|---|
| private final Map<String, String> enumMap | |
| EnumWriter | back to summary |
|---|---|
| public EnumWriter(Class<?> type) | |
| valueType | back to summary |
|---|---|
| public Class Implements tools. Doc from tools. Accessor for non-generic (type-erased) type of values this reader produces from input.
| |
| writeValue | back to summary |
|---|---|
| public void writeValue(JSONWriter context, JsonGenerator g, Object value) throws JacksonException Implements tools.
| |