Class Lab

java.lang.Object
com.genologics.ri.lab.Lab
All Implemented Interfaces:
LimsEntity<Lab>, LimsEntityLinkable<Lab>, Linkable<Lab>, Locatable, UDFHolder, Serializable

public class Lab extends Object implements LimsEntity<Lab>, UDFHolder, Serializable
The detailed representation of a lab.
See Also:
  • Field Details

    • name

      protected String name
      The name of the lab.
    • billingAddress

      protected Address billingAddress
      The billing address for the lab.
    • shippingAddress

      protected Address shippingAddress
      The shipping address for the lab.
    • type

      protected UDT type
      The user-defined type for the lab.
    • fields

      protected List<UDF> fields
      The list of user-defined fields for the lab.
    • externalIds

      protected List<ExternalId> externalIds
      The list of external identifiers for the lab.
    • website

      protected String website
      The website URL of the lab.
    • uri

      protected URI uri
      The URI of the lab resource.
  • Constructor Details

    • Lab

      public Lab()
      Constructs a new Lab instance.
    • Lab

      public Lab(URI uri)
      Constructs a new Lab instance with the specified URI.
      Parameters:
      uri - the URI of the lab resource.
    • Lab

      public Lab(URI uri, String name)
      Constructs a new Lab instance with the specified URI and name.
      Parameters:
      uri - the URI of the lab resource.
      name - the name of the lab.
  • Method Details

    • getName

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

      public void setName(String value)
      Sets the name of the lab.
      Parameters:
      value - the name to set.
    • getBillingAddress

      public Address getBillingAddress()
      Gets the billing address of the lab.
      Returns:
      the billing address.
    • setBillingAddress

      public void setBillingAddress(Address value)
      Sets the billing address of the lab.
      Parameters:
      value - the billing address to set.
    • getShippingAddress

      public Address getShippingAddress()
      Gets the shipping address of the lab.
      Returns:
      the shipping address.
    • setShippingAddress

      public void setShippingAddress(Address value)
      Sets the shipping address of the lab.
      Parameters:
      value - the shipping address to set.
    • getUserDefinedType

      public UDT getUserDefinedType()
      Gets the user-defined type of the lab.
      Returns:
      the user-defined type.
    • setUserDefinedType

      public UDT setUserDefinedType(UDT value)
      Sets the user-defined type of the lab.
      Parameters:
      value - the user-defined type to set.
      Returns:
      the user-defined type that was set.
    • setUserDefinedType

      public UDT setUserDefinedType(String type)
      Sets the user-defined type of the lab using a type name.
      Parameters:
      type - the name of the user-defined type.
      Returns:
      the newly created user-defined type.
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Description copied from interface: UDFHolder
      Get a list of user defined fields held by the entity.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      A list of UDF objects. This should never return null.
    • getExternalid

      public List<ExternalId> getExternalid()
      Gets the list of external identifiers for the lab.
      Returns:
      the list of external identifiers.
    • getWebsite

      public String getWebsite()
      Gets the website URL of the lab.
      Returns:
      the website URL.
    • setWebsite

      public void setWebsite(String value)
      Sets the website URL of the lab.
      Parameters:
      value - the website URL to set.
    • getUri

      public URI getUri()
      Gets the URI of the lab resource.
      Specified by:
      getUri in interface Locatable
      Returns:
      the URI of the lab.
    • setUri

      public void setUri(URI value)
      Sets the URI of the lab resource.
      Specified by:
      setUri in interface Locatable
      Parameters:
      value - the URI to set.
    • getLimsid

      public String getLimsid()
      Gets the LIMS id extracted from the URI.
      Specified by:
      getLimsid in interface LimsEntityLinkable<Lab>
      Returns:
      the LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Sets the LIMS id. This operation does nothing as the id is derived from the URI.
      Specified by:
      setLimsid in interface LimsEntityLinkable<Lab>
      Parameters:
      id - the LIMS id (ignored).
    • toString

      public String toString()
      Returns a string representation of the lab.
      Overrides:
      toString in class Object
      Returns:
      a string containing the LIMS id and name.
    • getLink

      public LimsEntityLink<Lab> getLink()
      Get a concrete link object to this LimsEntityLinkable entity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have corresponding LimsEntityLink link classes available.
      Specified by:
      getLink in interface LimsEntityLinkable<Lab>
      Specified by:
      getLink in interface Linkable<Lab>
      Returns:
      A LimsEntityLink to this object.