Class Selector.StartingContext

java.lang.Object
software.amazon.smithy.model.selector.Selector.StartingContext
Enclosing interface:
Selector

public static final class Selector.StartingContext extends Object
Starting environment context object used when evaluating a selector.
  • Field Details

  • Constructor Details

    • StartingContext

      public StartingContext()
      Create a StartingContext that sends all shapes in a Model through the Selector.
    • StartingContext

      public StartingContext(Collection<? extends Shape> startingShapes)
      Parameters:
      startingShapes - A specific set of shapes to send through the Selector rather than all Model shapes.
  • Method Details

    • getStartingShapes

      public Collection<? extends Shape> getStartingShapes()
      Get the potentially null set of starting shapes to provide to the selector.
      Returns:
      Returns the custom set starting shapes to provide to the selector.