- All Implemented Interfaces:
LimsEntityLink<Sample>,LimsEntityLinkable<Sample>,LimsLink<Sample>,Linkable<Sample>,Locatable,Serializable
Sample-link is a child element type of samples and provides a URI linking to
the detailed representation of a sample.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for an empty sample link.SampleLink(LimsEntityLinkable<Sample> link) Constructor for a sample link from a LIMS entity linkable sample.SampleLink(Linkable<Sample> link) Constructor for a sample link from a linkable sample.SampleLink(URI uri) Constructor for a sample link with a URI.SampleLink(URI uri, String limsid) Constructor for a sample link with a URI and LIMS id. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for this link.Gets the LIMS id of the sample.getUri()Gets the URI of the sample.voidSets the LIMS id of the sample.voidSets the URI of the sample.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 sample. -
limsid
The LIMS id of the sample.
-
-
Constructor Details
-
SampleLink
public SampleLink()Constructor for an empty sample link. -
SampleLink
Constructor for a sample link with a URI.- Parameters:
uri- The URI of the sample.
-
SampleLink
Constructor for a sample link with a URI and LIMS id.- Parameters:
uri- The URI of the sample.limsid- The LIMS id of the sample.
-
SampleLink
Constructor for a sample link from a linkable sample.- Parameters:
link- The linkable sample.
-
SampleLink
Constructor for a sample link from a LIMS entity linkable sample.- Parameters:
link- The LIMS entity linkable sample.
-
-
Method Details
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Sample class.
-
getUri
Gets the URI of the sample.- Returns:
- The sample URI.
-
setUri
Sets the URI of the sample.- Parameters:
uri- The sample URI.
-
getLimsid
Gets the LIMS id of the sample.- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id of the sample.- Parameters:
limsid- The LIMS id.
-