Package com.atlan.serde
Class AssetSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<Asset>
com.atlan.serde.AssetSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
Serialization of all
Asset
objects, down through the entire inheritance hierarchy.
This custom serialization is necessary to create some specific aspects of complexity in Atlan's payloads:
- The nested
attributes
andrelationshipAttributes
structures. - Handling the extension of properties as you traverse down the inheritance structures, without needing to also extend these nested structures through inheritance.
- Automatically translating custom metadata into the nested
businessAttributes
structure, including translating human-readable names into Atlan's internal hashed-string representations.
- 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
ConstructorDescriptionAssetSerializer
(AtlanClient client) AssetSerializer
(Class<Asset> t, AtlanClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Asset asset, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) void
serializeWithType
(Asset value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) 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, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
AssetSerializer
-
AssetSerializer
-
-
Method Details
-
serializeWithType
public void serializeWithType(Asset value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException - Overrides:
serializeWithType
in classcom.fasterxml.jackson.databind.JsonSerializer<Asset>
- Throws:
IOException
-
serialize
public void serialize(Asset asset, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<Asset>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-