All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.generators.AssetDocGenerator 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.ArrayList;
import java.util.List;
import java.util.Set;

public class AssetDocGenerator extends AssetTestGenerator {
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(AssetDocGenerator.class);
    public static final String DIRECTORY = "generate" + File.separator + "src" + File.separator + "main" + File.separator + "resources" + File.separator + "markdown";
    private final Set superTypes;

    public AssetDocGenerator(AssetGenerator asset, GeneratorConfig cfg) {
        super(asset, cfg);
        this.superTypes = cache.getAllSuperTypesForType(getOriginalName());
    }

    public List getTypeSpecificProperties() {
        List remaining = new ArrayList<>();
        for (TestAttribute testAttribute : getTestAttributes()) {
            if (!testAttribute.getRelationship() && !testAttribute.getInherited()) {
                remaining.add(testAttribute);
            }
        }
        return remaining;
    }

    public List getInheritedProperties() {
        List remaining = new ArrayList<>();
        for (TestAttribute testAttribute : getTestAttributes()) {
            if (!testAttribute.getRelationship() && testAttribute.getInherited()) {
                remaining.add(testAttribute);
            }
        }
        return remaining;
    }

    public List getTypeSpecificRelationships() {
        List remaining = new ArrayList<>();
        for (TestAttribute testAttribute : getTestAttributes()) {
            if (testAttribute.getRelationship() && !testAttribute.getInherited()) {
                remaining.add(testAttribute);
            }
        }
        return remaining;
    }

    public List getInheritedRelationships() {
        List remaining = new ArrayList<>();
        for (TestAttribute testAttribute : getTestAttributes()) {
            if (testAttribute.getRelationship() && testAttribute.getInherited()) {
                remaining.add(testAttribute);
            }
        }
        return remaining;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Set getSuperTypes() {
        return this.superTypes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy