Package com.atlan.model.assets
Class Glossary.CategoryHierarchy
java.lang.Object
com.atlan.model.assets.Glossary.CategoryHierarchy
- Enclosing class:
- Glossary
Utility class for traversing the category hierarchy in a Glossary.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all the categories in the hierarchy in breadth-first traversal order.Retrieve all the categories in the hierarchy in depth-first traversal order.getCategory
(String guid) Retrieve a specific category from anywhere in the hierarchy by its unique identifier (GUID).Retrieve only the root-level categories (those with no parents).
-
Method Details
-
getCategory
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
Retrieve only the root-level categories (those with no parents).- Returns:
- the root-level categories of the Glossary
-
breadthFirst
Retrieve all the categories in the hierarchy in breadth-first traversal order.- Returns:
- all categories in breadth-first order
-
depthFirst
Retrieve all the categories in the hierarchy in depth-first traversal order.- Returns:
- all categories in depth-first order
-