Class Page

java.lang.Object
com.genologics.ri.Page
All Implemented Interfaces:
Locatable, Serializable

public class Page extends Object implements Locatable, Serializable
The link to a page of additional content.

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.

The previous-page and next-page elements are represented using the page type.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected URI
    The URI to the page.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the URI to the page.
    void
    setUri(URI uri)
    Sets the URI to the page.
    Gets a string representation of the page.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • uri

      protected URI uri
      The URI to the page.
  • Constructor Details

    • Page

      public Page()
      Default constructor.
  • Method Details

    • getUri

      public URI getUri()
      Gets the URI to the page.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI to the page.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The URI.
    • toString

      public String toString()
      Gets a string representation of the page.
      Overrides:
      toString in class Object
      Returns:
      The URI as a string, or "unset" if the URI is null.