Class SampleLink

All Implemented Interfaces:
LimsEntityLink<Sample>, LimsEntityLinkable<Sample>, LimsLink<Sample>, Linkable<Sample>, Locatable, Serializable

public class SampleLink extends LimsEntityLinkBase<Sample>
Sample-link is a child element type of samples and provides a URI linking to the detailed representation of a sample.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the sample.
    • limsid

      protected String limsid
      The LIMS id of the sample.
  • Constructor Details

    • SampleLink

      public SampleLink()
      Constructor for an empty sample link.
    • SampleLink

      public SampleLink(URI uri)
      Constructor for a sample link with a URI.
      Parameters:
      uri - The URI of the sample.
    • SampleLink

      public SampleLink(URI uri, String limsid)
      Constructor for a sample link with a URI and LIMS id.
      Parameters:
      uri - The URI of the sample.
      limsid - The LIMS id of the sample.
    • SampleLink

      public SampleLink(Linkable<Sample> link)
      Constructor for a sample link from a linkable sample.
      Parameters:
      link - The linkable sample.
    • SampleLink

      public SampleLink(LimsEntityLinkable<Sample> link)
      Constructor for a sample link from a LIMS entity linkable sample.
      Parameters:
      link - The LIMS entity linkable sample.
  • Method Details

    • getEntityClass

      public Class<Sample> getEntityClass()
      Gets the entity class for this link.
      Returns:
      The Sample class.
    • getUri

      public URI getUri()
      Gets the URI of the sample.
      Returns:
      The sample URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI of the sample.
      Parameters:
      uri - The sample URI.
    • getLimsid

      public String getLimsid()
      Gets the LIMS id of the sample.
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String limsid)
      Sets the LIMS id of the sample.
      Parameters:
      limsid - The LIMS id.