Class InstrumentLink

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

public class InstrumentLink extends LimsEntityLinkBase<Instrument>
Instrument-link is a child element type of instruments and provides a URI linking to the detailed representation of an instrument.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the instrument.
    • name

      protected String name
      The instrument name.
  • Constructor Details

    • InstrumentLink

      public InstrumentLink()
      Default constructor.
    • InstrumentLink

      public InstrumentLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - The instrument URI.
    • InstrumentLink

      public InstrumentLink(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The instrument URI.
      name - The instrument name.
    • InstrumentLink

      public InstrumentLink(Linkable<Instrument> link)
      Constructor from a linkable instrument.
      Parameters:
      link - The linkable instrument.
    • InstrumentLink

      public InstrumentLink(Instrument instrument)
      Constructor from an instrument.
      Parameters:
      instrument - The instrument.
  • Method Details

    • getEntityClass

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

      public String getName()
      Get the instrument name.
      Returns:
      The instrument name.
    • setName

      public void setName(String name)
      Set the instrument name.
      Parameters:
      name - The instrument name.
    • getUri

      public URI getUri()
      Get the URI of the object we are linking to.
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Set the URI of this object.
      Parameters:
      uri - The new URI.
    • getLimsid

      public String getLimsid()
      Get the LIMS id for this object.
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Set the LIMS id for this object.
      Parameters:
      id - The new LIMS id.