Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | StdScalarSerializer(Class<?> t, boolean dummy)
Alternate constructor that is (alas!) needed to work around kinks of generic type handling |
| protected | StdScalarSerializer(StdScalarSerializer<?>
Original instance to copy settings from src)
Deprecated
as a consequence of
Basic copy-constructor
StdScalarSerializer being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType
Type of element (entity like property) being visited typeHint)Overrides com. Implements com. |
| public JsonNode | getSchema(SerializerProvider
The serializer provider. provider, Type A hint about the type. typeHint)Overrides com. Implements com.
Deprecated
Since 2.15
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
| public void | serializeWithType(T
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider, TypeSerializer Type serializer to use for including type information typeSer)Overrides com. |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(Class<T> t) | |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(Class<?> t, boolean dummy) Alternate constructor that is (alas!) needed to work around kinks of generic type handling
| |
| StdScalarSerializer | back to summary |
|---|---|
| protected StdScalarSerializer(StdScalarSerializer<?> src)
Deprecated as a consequence of Basic copy-constructor
| |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException Overrides com. Implements com. Doc from com. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| getSchema | back to summary |
|---|---|
| public JsonNode getSchema(SerializerProvider provider, Type typeHint) throws JsonMappingException Overrides com. Implements com. Doc from com. Deprecated Since 2.15 Default implementation simply claims type is "string"; usually overriden by custom serializers.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(T value, JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer) throws IOException Overrides com. 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.
| |