- All Implemented Interfaces:
LimsLink<ControlType>,Linkable<ControlType>,Locatable,Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ControlTypeLink(ControlType controlType) Constructs a control type link from a control type object.ControlTypeLink(Linkable<ControlType> link) Constructs a control type link from a linkable object.ControlTypeLink(URI uri) Constructs a control type link with the specified URI.ControlTypeLink(URI uri, String name) Constructs a control type link with the specified URI and name. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class that this link refers to.getName()Gets the name of the control type.getUri()Gets the URI of the control type.voidSets the name of the control type.voidSets the URI of the control type.toString()Returns a string representation of this link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
name
The name of the control type. -
uri
The URI of the control type.
-
-
Constructor Details
-
ControlTypeLink
public ControlTypeLink()Default constructor. -
ControlTypeLink
Constructs a control type link with the specified URI.- Parameters:
uri- The URI.
-
ControlTypeLink
Constructs a control type link with the specified URI and name.- Parameters:
uri- The URI.name- The name.
-
ControlTypeLink
Constructs a control type link from a linkable object.- Parameters:
link- The linkable object.
-
ControlTypeLink
Constructs a control type link from a control type object.- Parameters:
controlType- The control type.
-
-
Method Details
-
getName
Gets the name of the control type.- Returns:
- The name.
-
setName
Sets the name of the control type.- Parameters:
name- The name.
-
getUri
Gets the URI of the control type.- Returns:
- The URI of the control type resource.
-
setUri
Sets the URI of the control type.- Parameters:
uri- The URI of the control type resource.
-
getEntityClass
Gets the entity class that this link refers to.- Returns:
- The ControlType class.
-
toString
Returns a string representation of this link.- Overrides:
toStringin classLimsLinkBase<ControlType>- Returns:
- The control type LIMS id and the name.
- See Also:
-