Class ToStringSerializer
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializer<T>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.ToStringSerializer
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,Serializable
Simple general purpose serializer, useful for any
type for which
Object.toString()
returns the desired JSON
value.
Since 2.10 extends ToStringSerializerBase
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorDescriptionNote: usually you should NOT create new instances, but instead useinstance
which is stateless and fully thread-safe.ToStringSerializer
(Class<?> handledType) Sometimes it may actually make sense to retain actual handled type. -
Method Summary
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.ToStringSerializerBase
acceptJsonFormatVisitor, getSchema, isEmpty, serialize, serializeWithType
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
-
Field Details
-
instance
Singleton instance to use.
-
-
Constructor Details
-
ToStringSerializer
public ToStringSerializer()Note: usually you should NOT create new instances, but instead use
instance
which is stateless and fully thread-safe. However, there are cases where constructor is needed; for example, when using explicit serializer annotations likeJsonSerialize.using()
. -
ToStringSerializer
Sometimes it may actually make sense to retain actual handled type.- Since:
- 2.5
-
-
Method Details
-
valueToString
- Specified by:
valueToString
in classToStringSerializerBase
-