Package com.atlan.serde
Class Serde
java.lang.Object
com.atlan.serde.Serde
Utility class for static objects used for serialization and deserialization.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper
Singular ObjectMapper through which to (de-)serialize raw POJOs, including all details, untranslated.static final String
static final com.fasterxml.jackson.databind.ObjectMapper
Singular ObjectMapper through which to (de-)serialize raw POJOs and YAML. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
createMapper
(AtlanClient client) Set up the tenant-specific serialization and deserialization.static com.fasterxml.jackson.databind.ObjectMapper
Set up the serialization and deserialization of tenant-agnostic YAML.static Class<?>
getAssetClassForType
(String typeName) static Class<?>
getBuilderClassForType
(String typeName) static Class<?>
getRelationshipAttributesClassForType
(String typeName)
-
Field Details
-
DELETED_AUDIT_OBJECT
- See Also:
-
allInclusiveMapper
public static final com.fasterxml.jackson.databind.ObjectMapper allInclusiveMapperSingular ObjectMapper through which to (de-)serialize raw POJOs, including all details, untranslated. -
yamlMapper
public static final com.fasterxml.jackson.databind.ObjectMapper yamlMapperSingular ObjectMapper through which to (de-)serialize raw POJOs and YAML.
-
-
Constructor Details
-
Serde
public Serde()
-
-
Method Details
-
getAssetClassForType
- Throws:
ClassNotFoundException
-
getRelationshipAttributesClassForType
public static Class<?> getRelationshipAttributesClassForType(String typeName) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getBuilderClassForType
- Throws:
ClassNotFoundException
-
createMapper
Set up the tenant-specific serialization and deserialization.- Parameters:
client
- providing connectivity to a specific Atlan tenant- Returns:
- an ObjectMapper for the tenant-specific transformations
-
createMapperYAML
public static com.fasterxml.jackson.databind.ObjectMapper createMapperYAML()Set up the serialization and deserialization of tenant-agnostic YAML.- Returns:
- an ObjectMapper for tenant-agnostic YAML transformations
-