Class ControlTypeLink

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

public class ControlTypeLink extends LimsLinkBase<ControlType>
Link to a control type within a process type configuration. Provides a URI linking to the detailed representation of a control type, along with its name.
Since:
2.25
See Also:
  • Field Details

    • name

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

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

    • ControlTypeLink

      public ControlTypeLink()
      Constructs a new control type link.
    • ControlTypeLink

      public ControlTypeLink(URI uri)
      Constructs a new control type link with the specified URI.
      Parameters:
      uri - the URI of the control type.
    • ControlTypeLink

      public ControlTypeLink(URI uri, String name)
      Constructs a new control type link with the specified URI and name.
      Parameters:
      uri - the URI of the control type.
      name - the name of the control type.
    • ControlTypeLink

      public ControlTypeLink(Linkable<ControlType> link)
      Constructs a new control type link from a linkable object.
      Parameters:
      link - the linkable object providing the URI.
    • ControlTypeLink

      public ControlTypeLink(ControlType controlType)
      Constructs a new 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 uri)
      Sets the URI of the control type.
      Parameters:
      uri - the control type URI.
    • 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.
    • getEntityClass

      public Class<ControlType> getEntityClass()
      Gets the entity class for this link.
      Returns:
      the ControlType class.
    • 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: