Class ControlTypeLink

java.lang.Object
com.genologics.ri.LimsLinkBase<ControlType>
com.genologics.ri.sample.ControlTypeLink
All Implemented Interfaces:
LimsLink<ControlType>, Linkable<ControlType>, Locatable, Serializable

public class ControlTypeLink extends LimsLinkBase<ControlType>
Control Type provides a name and a URI linking to the detailed representation of the Control Type associated with the Sample. If a Control Type is associated, the Sample will not have an associated Project.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the control type.
    • name

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

    • ControlTypeLink

      public ControlTypeLink()
      Constructor for an empty control type link.
    • ControlTypeLink

      public ControlTypeLink(URI uri)
      Constructor for a control type link with a URI.
      Parameters:
      uri - The URI of the control type.
    • ControlTypeLink

      public ControlTypeLink(URI uri, String name)
      Constructor for a control type link with a URI and name.
      Parameters:
      uri - The URI of the control type.
      name - The name of the control type.
    • ControlTypeLink

      public ControlTypeLink(Linkable<ControlType> link)
      Constructor for a control type link from a linkable control type.
      Parameters:
      link - The linkable control type.
    • ControlTypeLink

      public ControlTypeLink(ControlType controlType)
      Constructor for a control type link from a control type entity.
      Parameters:
      controlType - The control type entity.
  • Method Details

    • getUri

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

      public void setUri(URI value)
      Sets the URI of the control type.
      Parameters:
      value - The control type URI.
    • getEntityClass

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

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

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

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