- All Implemented Interfaces:
LimsLink<ClarityFile>,Linkable<ClarityFile>,Locatable,Serializable
The file-link type provides a URI that links to information about a file in
the system.
Elements of this type are used for lists of files, or by resources that have attached files to identify and link to further information about the file.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileLink()Creates a new, empty FileLink.Creates a new FileLink from a linkable entity that references a ClarityFile, copying its URI and LIMS id.Creates a new FileLink with the specified URI.Creates a new FileLink with the specified URI and LIMS id. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class that this link references.Gets the LIMS id of the file.getUri()Gets the URI of the file resource.voidSets the LIMS id of the file.voidSets the URI of the file resource.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode, toString
-
Field Details
-
uri
The URI of the file resource. -
limsid
The LIMS id of the file.
-
-
Constructor Details
-
FileLink
public FileLink()Creates a new, empty FileLink. -
FileLink
Creates a new FileLink with the specified URI.- Parameters:
uri- The URI of the file resource.
-
FileLink
Creates a new FileLink with the specified URI and LIMS id.- Parameters:
uri- The URI of the file resource.limsid- The LIMS id of the file.
-
FileLink
Creates a new FileLink from a linkable entity that references a ClarityFile, copying its URI and LIMS id.- Parameters:
link- The linkable entity to create a link from.- Throws:
NullPointerException- if link is null.
-
-
Method Details
-
getEntityClass
Gets the entity class that this link references.- Returns:
- The ClarityFile class.
-
getUri
Gets the URI of the file resource.- Returns:
- The URI.
-
setUri
Sets the URI of the file resource.- Parameters:
uri- The URI to set.
-
getLimsid
Gets the LIMS id of the file.- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id of the file.- Parameters:
limsid- The LIMS id to set.
-