Class Glossary.CategoryHierarchy

java.lang.Object
com.atlan.model.assets.Glossary.CategoryHierarchy
Enclosing class:
Glossary

public static class Glossary.CategoryHierarchy extends Object
Utility class for traversing the category hierarchy in a Glossary.
  • Method Details

    • getCategory

      public GlossaryCategory getCategory(String guid)
      Retrieve a specific category from anywhere in the hierarchy by its unique identifier (GUID).
      Parameters:
      guid - of the category to retrieve
      Returns:
      the requested category
    • getRootCategories

      public List<IGlossaryCategory> getRootCategories()
      Retrieve only the root-level categories (those with no parents).
      Returns:
      the root-level categories of the Glossary
    • breadthFirst

      public List<IGlossaryCategory> breadthFirst()
      Retrieve all the categories in the hierarchy in breadth-first traversal order.
      Returns:
      all categories in breadth-first order
    • depthFirst

      public List<IGlossaryCategory> depthFirst()
      Retrieve all the categories in the hierarchy in depth-first traversal order.
      Returns:
      all categories in depth-first order