com.atlan.generators.SerdeGenerator Maven / Gradle / Ivy
// Generated by delombok at Wed Oct 16 22:16:04 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.generators;
import java.io.File;
import java.util.*;
public class SerdeGenerator {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(SerdeGenerator.class);
public static final String DIRECTORY = "src" + File.separator + "main" + File.separator + "java" + File.separator + "com" + File.separator + "atlan" + File.separator + "serde";
private final SortedSet assetTypes;
private final String generatorName;
public SerdeGenerator(Collection assetCache, GeneratorConfig cfg) {
this.generatorName = cfg.getGeneratorName();
assetTypes = new TreeSet<>();
for (AssetGenerator generator : assetCache) {
if (!generator.isAbstract() && cfg.includeTypedef(generator.getEntityDef())) {
assetTypes.add(generator.getClassName());
}
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public SortedSet getAssetTypes() {
return this.assetTypes;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getGeneratorName() {
return this.generatorName;
}
}