| 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 |
| Modifier and Type | Method and Description |
|---|---|
| public ValueReader | modifyValueReader(JSONReader
Context that may be used to access configuration readContext, Class<?> Type of values to read type, ValueReader ValueReader that is to be usedOverrides com. Method called after |
| public ValueWriter | overrideStandardValueWriter(JSONWriter
Context that may be used to access configuration writeContext, Class<?> Type of values to write type, int Internal identifier of standard type (not usually useful,
but could potentially be used for delegating) stdTypeId)Overrides com. Method called instead of |
| public POJODefinition | pojoDefinitionForDeserialization(JSONReader readContext, Class<?> pojoType)
Overrides com.
|
| public POJODefinition | pojoDefinitionForSerialization(JSONWriter writeContext, Class<?> pojoType)
Overrides com.
|
| _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 com. Doc from com. 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 com. Doc from com. Method called instead of
| |
| pojoDefinitionForDeserialization | back to summary |
|---|---|
| public POJODefinition pojoDefinitionForDeserialization(JSONReader readContext, Class<?> pojoType) Overrides com.
| |
| pojoDefinitionForSerialization | back to summary |
|---|---|
| public POJODefinition pojoDefinitionForSerialization(JSONWriter writeContext, Class<?> pojoType) Overrides com.
| |
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 | read(JSONReader
Context object that allows calling other read methods for contained
values of different types (for example for collection readers). reader, JsonParser Underlying parser used for reading decoded token stream p)Implements abstract com. Method called to deserialize value of type supported by this reader, using given parser. |
| _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 IOException Implements abstract com. Doc from com. Method called to deserialize value of type supported by this reader, using given parser. Parser is already positioned to the (first) token of the value to read.
| |
JsonValue tagged method.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AnnotationBasedValueRWModifier. | |
| public static AnnotationBasedValueRWModifier. | |
| public Class | valueType()
Implements com. Accessor for non-generic (type-erased) type of values this reader produces from input. |
| public void | writeValue(JSONWriter context, JsonGenerator g, Object value)
Implements com.
|
| _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 com. Doc from com. 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 IOException Implements com.
| |
| 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 com. Accessor for non-generic (type-erased) type of values this reader produces from input. |
| public void | writeValue(JSONWriter context, JsonGenerator g, Object value)
Implements com.
|
| _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 com. Doc from com. 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 IOException Implements com.
| |