Package com.atlan.serde
Class SetToStringSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
public class SetToStringSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Set<String>>
Serialization of sets into plain strings, as expected in certain places in the API.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorDescriptionSetToStringSerializer
(AtlanClient client) SetToStringSerializer
(Class<Set<String>> t, AtlanClient client) -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
SetToStringSerializer
-
SetToStringSerializer
-
-
Method Details
-
serialize
public void serialize(Set<String> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider arg2) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<Set<String>>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-
serialize
Serialize the provided set of values into a single string.- Parameters:
client
- connectivity to Atlanvalue
- set of values to serialize into a string- Returns:
- a string representing the entire set of values
- Throws:
IOException
- on any errors during parsing
-