Package com.atlan.serde
Class 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
attributesandrelationshipAttributesstructures. - 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
businessAttributesstructure, 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
ConstructorsConstructorDescriptionAssetSerializer(AtlanClient client) AssetSerializer(Class<Asset> t, AtlanClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(Asset asset, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) voidserializeWithType(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, wrapAndThrowMethods 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:
serializeWithTypein 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:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer<Asset>- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-