Class PaginatedTrait

    • Field Detail

      • ID

        public static final ShapeId ID
    • Method Detail

      • getItems

        public java.util.Optional<java.lang.String> getItems()
        Returns:
        The `items` property of the trait.
      • getInputToken

        public java.util.Optional<java.lang.String> getInputToken()
        Returns:
        The `inputToken` property of the trait.
      • getOutputToken

        public java.util.Optional<java.lang.String> getOutputToken()
        Returns:
        The `outputToken` property of the trait.
      • getPageSize

        public java.util.Optional<java.lang.String> getPageSize()
        Returns:
        The optional `pageSize` property.
      • merge

        public PaginatedTrait merge​(PaginatedTrait other)
        Merges this paginated trait with another trait.

        Values set on this trait take precedence over values of the other trait. This operation is typically performed to merge the paginated trait of an operation with the paginated trait of a service.

        If other is null, the current trait is returned as-is.

        Parameters:
        other - Other trait to merge with.
        Returns:
        Returns a newly created trait that maintains the same source location.
      • createNode

        protected Node createNode()
        Description copied from class: AbstractTrait
        The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
        Specified by:
        createNode in class AbstractTrait
        Returns:
        Returns the trait as a node.