Class ContainerLink

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

public class ContainerLink extends LimsEntityLinkBase<Container>
Container-link is a child element type of containers and provides a URI linking to the detailed representation of a container.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the container.
    • limsid

      protected String limsid
      The LIMS id of the container.
    • name

      protected String name
      The name of the container.
  • Constructor Details

    • ContainerLink

      public ContainerLink()
      Default constructor.
    • ContainerLink

      public ContainerLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - the URI.
    • ContainerLink

      public ContainerLink(URI uri, String limsid)
      Constructor with URI and LIMS id.
      Parameters:
      uri - the URI.
      limsid - the LIMS id.
    • ContainerLink

      public ContainerLink(URI uri, String limsid, String name)
      Constructor with URI, LIMS id, and name.
      Parameters:
      uri - the URI.
      limsid - the LIMS id.
      name - the name.
    • ContainerLink

      public ContainerLink(Linkable<Container> link)
      Constructor from a linkable container.
      Parameters:
      link - the linkable container.
    • ContainerLink

      public ContainerLink(LimsEntityLinkable<Container> link)
      Constructor from a LIMS entity linkable container.
      Parameters:
      link - the LIMS entity linkable container.
    • ContainerLink

      public ContainerLink(Container container)
      Constructor from a container.
      Parameters:
      container - the container.
  • Method Details

    • getEntityClass

      public Class<Container> getEntityClass()
      Gets the entity class.
      Returns:
      the container class.
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name.
    • setName

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the name.
    • getLimsid

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

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

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

      public void setUri(URI uri)
      Sets the URI.
      Parameters:
      uri - the URI.
    • toString

      public String toString()
      Returns a string representation of the container link.
      Overrides:
      toString in class LimsLinkBase<Container>
      Returns:
      The container LIMS id and name.
      See Also: