java.lang.Object
com.genologics.ri.Link
- All Implemented Interfaces:
Locatable
,Serializable
A link provides a URI linking to an additional resource.
The link is modelled on the link element defined by the Atom Syndication Format. The link includes a rel attribute that describes the URI of the link.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUri()
Get the URI of this object.static String
limsIdFromUri
(Locatable thing) Extract the LIMS identifier from the URI of a Locatable object.static String
limsIdFromUri
(URI uri) Extract the LIMS identifier from a URI.void
setRelative
(String rel) void
Set the URI of this object.toString()
-
Field Details
-
relative
-
uri
-
-
Constructor Details
-
Link
public Link() -
Link
-
Link
-
Link
-
-
Method Details
-
getRelative
-
setRelative
-
getUri
Description copied from interface:Locatable
Get the URI of this object. -
setUri
Description copied from interface:Locatable
Set the URI of this object. -
toString
-
limsIdFromUri
Extract the LIMS identifier from a URI. The identifier is the last part of the URI path.- Parameters:
uri
- The URI.- Returns:
- The id from the URI path, or null if
uri
is null.
-
limsIdFromUri
Extract the LIMS identifier from the URI of a Locatable object.- Parameters:
thing
- The Locatable object.- Returns:
- The id from the object's URI, or null if
thing
is null.
-