public final class PaginatedIndex extends java.lang.Object implements KnowledgeIndex
This index makes it easy to slice up paginated operations and
get the resolved members. This index performs some basic validation
of the paginated trait like ensuring that the operation has input
and output, and that the members defined in the paginated trait can
be found in the input or output of the operation. Additional
validation is performed in the PaginatedTraitValidator
(which makes use of this index).
Constructor and Description |
---|
PaginatedIndex(Model model) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PaginationInfo> |
getPaginationInfo(ToShapeId service,
ToShapeId operation) |
static PaginatedIndex |
of(Model model) |
public PaginatedIndex(Model model)
public static PaginatedIndex of(Model model)
public java.util.Optional<PaginationInfo> getPaginationInfo(ToShapeId service, ToShapeId operation)