Class ReagentTypeLink

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

public class ReagentTypeLink extends LimsEntityLinkBase<ReagentType>
Reagent-type-link is a child element type of reagent types and provides a URI linking to the detailed representation of a reagent type.
See Also:
  • Field Details

    • name

      protected String name
      The name of the reagent type.
    • uri

      protected URI uri
      The URI of the reagent type.
  • Constructor Details

    • ReagentTypeLink

      public ReagentTypeLink()
      Default constructor.
    • ReagentTypeLink

      public ReagentTypeLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the reagent type.
    • ReagentTypeLink

      public ReagentTypeLink(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The URI of the reagent type.
      name - The name of the reagent type.
    • ReagentTypeLink

      public ReagentTypeLink(Linkable<ReagentType> link)
      Constructor from a Linkable object.
      Parameters:
      link - The linkable object to extract the URI from.
    • ReagentTypeLink

      public ReagentTypeLink(ReagentType type)
      Constructor from a ReagentType entity.
      Parameters:
      type - The reagent type to create the link from.
  • Method Details

    • getEntityClass

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

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

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

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

      public void setUri(URI uri)
      Sets the URI of the reagent type.
      Parameters:
      uri - The reagent type URI.
    • toString

      public String toString()
      Returns a string representation of this link.
      Overrides:
      toString in class LimsLinkBase<ReagentType>
      Returns:
      The name of the reagent type.
      See Also:
    • getLimsid

      public String getLimsid()
      Gets the LIMS id from the URI.
      Returns:
      The LIMS id extracted from the URI.
    • setLimsid

      public void setLimsid(String id)
      Sets the LIMS id. This method does nothing as the id is extracted from the URI.
      Parameters:
      id - The LIMS id (ignored).