Class ControlTypeLink

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

public class ControlTypeLink extends LimsLinkBase<ControlType>
Control-type-link is a child element type of controlTypes and provides a URI linking to the detailed representation of a ControlType.

This class serves as a lightweight reference to a full ControlType entity, containing only the essential information (URI and name) needed for linking purposes in API responses.

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()
      Default constructor.
    • ControlTypeLink

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

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

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

      public ControlTypeLink(ControlType controlType)
      Constructs a control type link from a control type object.
      Parameters:
      controlType - The control type.
  • Method Details

    • getName

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

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

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

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

      public Class<ControlType> getEntityClass()
      Gets the entity class that this link refers to.
      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: