- All Implemented Interfaces:
LimsEntityLink<Lab>,LimsEntityLinkable<Lab>,LimsLink<Lab>,Linkable<Lab>,Locatable,Serializable
Lab-link is a child element type of labs and provides a URI linking to the
detailed representation of a lab.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLabLink()Constructs a new LabLink instance.Constructs a new LabLink instance from a Lab object.Constructs a new LabLink instance from a linkable object.Constructs a new LabLink instance with the specified URI.Constructs a new LabLink instance with the specified URI and name. -
Method Summary
Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.genologics.ri.LimsEntityLink
getLinkMethods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsId
-
Field Details
-
uri
The URI of the lab resource. -
name
The name of the lab.
-
-
Constructor Details
-
LabLink
public LabLink()Constructs a new LabLink instance. -
LabLink
Constructs a new LabLink instance with the specified URI.- Parameters:
uri- the URI of the lab resource.
-
LabLink
Constructs a new LabLink instance with the specified URI and name.- Parameters:
uri- the URI of the lab resource.name- the name of the lab.
-
LabLink
Constructs a new LabLink instance from a linkable object.- Parameters:
link- the linkable object to create the link from.- Throws:
NullPointerException- if link is null.
-
LabLink
Constructs a new LabLink instance from a Lab object.- Parameters:
lab- the lab to create the link from.- Throws:
NullPointerException- if lab is null.
-
-
Method Details
-
getEntityClass
Gets the entity class for this link.- Returns:
- the Lab class.
-
getName
Gets the name of the lab.- Returns:
- the name of the lab.
-
setName
Sets the name of the lab.- Parameters:
name- the name to set.
-
getUri
Gets the URI of the lab resource.- Returns:
- the URI of the lab.
-
setUri
Sets the URI of the lab resource.- Parameters:
uri- the URI to set.
-
getLimsid
Gets the LIMS id extracted from the URI.- Returns:
- the LIMS id.
-
setLimsid
Sets the LIMS id. This operation does nothing as the id is derived from the URI.- Parameters:
id- the LIMS id (ignored).
-