Class ContainerTypeLink

java.lang.Object
com.genologics.ri.LimsLinkBase<ContainerType>
com.genologics.ri.containertype.ContainerTypeLink
All Implemented Interfaces:
LimsLink<ContainerType>, Linkable<ContainerType>, Locatable, Serializable

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

    • uri

      protected URI uri
      The URI for accessing the container type resource.
    • name

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

    • ContainerTypeLink

      public ContainerTypeLink()
      Default constructor for creating a new container type link.
    • ContainerTypeLink

      public ContainerTypeLink(URI uri)
      Constructor for creating a container type link with a specified URI.
      Parameters:
      uri - The URI of the container type resource.
    • ContainerTypeLink

      public ContainerTypeLink(URI uri, String name)
      Constructor for creating a container type link with a specified URI and name.
      Parameters:
      uri - The URI of the container type resource.
      name - The name of the container type.
    • ContainerTypeLink

      public ContainerTypeLink(Linkable<ContainerType> link)
      Constructor for creating a container type link from a linkable object.
      Parameters:
      link - A linkable object that provides the URI for the container type.
      Throws:
      NullPointerException - if link is null.
    • ContainerTypeLink

      public ContainerTypeLink(ContainerType containerType)
      Constructor for creating a container type link from a container type object.
      Parameters:
      containerType - The container type from which to extract the URI and name.
      Throws:
      NullPointerException - if containerType is null.
  • Method Details

    • getEntityClass

      public Class<ContainerType> getEntityClass()
      Get the class of the true, full LIMS entity this object links to.
      Returns:
      The real object class.
    • getName

      public String getName()
      Gets the name of the container type.
      Returns:
      The container type name.
    • setName

      public void setName(String name)
      Sets the name of the container type.
      Parameters:
      name - The container type name to set.
    • getUri

      public URI getUri()
      Gets the URI for accessing the container type resource.
      Returns:
      The container type URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI for the container type resource.
      Parameters:
      uri - The container type URI to set.
    • toString

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