Class ProcessTypes

java.lang.Object
com.genologics.ri.processtype.ProcessTypes
All Implemented Interfaces:
Batch<ProcessTypeLink>, PaginatedBatch<ProcessTypeLink>, Serializable, Iterable<ProcessTypeLink>

public class ProcessTypes extends Object implements PaginatedBatch<ProcessTypeLink>, Serializable
The representation for a list of process type links.

The system enforces a maximum number of elements when generating the list of links. When the size of the request result set is larger than the system maximum, the list represents a paged view of the overall results, and the previous-page and next-page elements provide URIs linking to the previous or next page of links in the overall results.

See Also:
  • Field Details

    • processTypes

      protected List<ProcessTypeLink> processTypes
      The list of process type links.
    • previousPage

      protected Page previousPage
      Link to the previous page of results.
    • nextPage

      protected Page nextPage
      Link to the next page of results.
  • Constructor Details

    • ProcessTypes

      public ProcessTypes()
      Constructs a new process types batch.
  • Method Details

    • getProcessTypes

      public List<ProcessTypeLink> getProcessTypes()
      Gets the list of process type links.
      Returns:
      a list of process type links.
    • getList

      public List<ProcessTypeLink> getList()
      Gets the list of process type links.
      Specified by:
      getList in interface Batch<ProcessTypeLink>
      Returns:
      a list of process type links.
    • getSize

      public int getSize()
      Gets the size of the process types list.
      Specified by:
      getSize in interface Batch<ProcessTypeLink>
      Returns:
      the number of process types in this batch.
    • getPreviousPage

      public Page getPreviousPage()
      Gets the link to the previous page of results.
      Specified by:
      getPreviousPage in interface PaginatedBatch<ProcessTypeLink>
      Returns:
      the previous page link, or null if on the first page.
    • setPreviousPage

      public void setPreviousPage(Page previousPage)
      Sets the link to the previous page of results.
      Specified by:
      setPreviousPage in interface PaginatedBatch<ProcessTypeLink>
      Parameters:
      previousPage - the previous page link.
    • getNextPage

      public Page getNextPage()
      Gets the link to the next page of results.
      Specified by:
      getNextPage in interface PaginatedBatch<ProcessTypeLink>
      Returns:
      the next page link, or null if on the last page.
    • setNextPage

      public void setNextPage(Page nextPage)
      Sets the link to the next page of results.
      Specified by:
      setNextPage in interface PaginatedBatch<ProcessTypeLink>
      Parameters:
      nextPage - the next page link.