ToStringSerializer.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final Map | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Overrides tools. Implements tools. Default implementation specifies no format. |
| public static final ValueSerializer | |
| public boolean | isEmpty(SerializationContext prov, Object value)
Overrides tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| public void | serialize(Object value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public void | serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)
Overrides tools. Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. |
| _type | back to summary |
|---|---|
| private final int _type | |
| _types | back to summary |
|---|---|
| private static final Map<Class<?>, Integer> _types | |
| TYPE_CLASS | back to summary |
|---|---|
| protected static final int TYPE_CLASS | |
| TYPE_CURRENCY | back to summary |
|---|---|
| protected static final int TYPE_CURRENCY | |
| TYPE_FILE | back to summary |
|---|---|
| protected static final int TYPE_FILE | |
| TYPE_LOCALE | back to summary |
|---|---|
| protected static final int TYPE_LOCALE | |
| TYPE_PATH | back to summary |
|---|---|
| protected static final int TYPE_PATH | |
| TYPE_PATTERN | back to summary |
|---|---|
| protected static final int TYPE_PATTERN | |
| TYPE_URI | back to summary |
|---|---|
| protected static final int TYPE_URI | |
| TYPE_URL | back to summary |
|---|---|
| protected static final int TYPE_URL | |
| JDKStringLikeSerializer | back to summary |
|---|---|
| public JDKStringLikeSerializer(Class<?> handledType, int type) | |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Overrides tools. Implements tools. Doc from tools. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| find | back to summary |
|---|---|
| public static final ValueSerializer | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializationContext prov, Object value) Overrides tools. Doc from tools. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). Default implementation will consider only null values to be empty.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) throws JacksonException Overrides tools. Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix. This should work for most cases; some sub-classes may want to change this behavior.
| |