Class TopDownIndex
- java.lang.Object
- 
- software.amazon.smithy.model.knowledge.TopDownIndex
 
- 
- All Implemented Interfaces:
- KnowledgeIndex
 
 public final class TopDownIndex extends java.lang.Object implements KnowledgeIndex Provides top-down access to all resources and operations contained within a service or resource closure.
- 
- 
Constructor SummaryConstructors Constructor Description TopDownIndex(Model model)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<OperationShape>getContainedOperations(ToShapeId entity)Get all operations in service or resource closure.java.util.Set<ResourceShape>getContainedResources(ToShapeId entity)Get all resources in a service or resource closure.static TopDownIndexof(Model model)
 
- 
- 
- 
Constructor Detail- 
TopDownIndexpublic TopDownIndex(Model model) 
 
- 
 - 
Method Detail- 
ofpublic static TopDownIndex of(Model model) 
 - 
getContainedOperationspublic java.util.Set<OperationShape> getContainedOperations(ToShapeId entity) Get all operations in service or resource closure.- Parameters:
- entity- Service or resource shape ID.
- Returns:
- Returns all operations in the service closure.
 
 - 
getContainedResourcespublic java.util.Set<ResourceShape> getContainedResources(ToShapeId entity) Get all resources in a service or resource closure.- Parameters:
- entity- Service or resource shape ID.
- Returns:
- Returns all resources in the service closure.
 
 
- 
 
-