Class SampleLink

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

public class SampleLink extends LimsEntityLinkBase<Sample>
Sample is a child element of Artifact and provides a URI linking to the detailed representation of a submitted Sample for the Artifact.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of this sample.
    • limsid

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

    • SampleLink

      public SampleLink()
      Default constructor.
    • SampleLink

      public SampleLink(URI uri)
      Constructor taking a URI.
      Parameters:
      uri - The sample URI.
    • SampleLink

      public SampleLink(URI uri, String limsid)
      Constructor taking a URI and LIMS id.
      Parameters:
      uri - The sample URI.
      limsid - The sample LIMS id.
    • SampleLink

      public SampleLink(Linkable<Sample> link)
      Constructor from a Linkable.
      Parameters:
      link - The linkable object to copy.
    • SampleLink

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

    • getEntityClass

      public Class<Sample> getEntityClass()
      Gets the entity class.
      Returns:
      The Sample class.
    • getLimsid

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

      public void setLimsid(String value)
      Sets the LIMS id.
      Parameters:
      value - The sample LIMS id.
    • getUri

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

      public void setUri(URI value)
      Sets the URI.
      Parameters:
      value - The sample URI.