- All Implemented Interfaces:
LimsEntityLink<Researcher>,LimsEntityLinkable<Researcher>,LimsLink<Researcher>,Linkable<Researcher>,Locatable,Serializable
Researcher-link is a child element type of researchers and provides a URI
linking to the detailed representation of a researcher.
- Since:
- 2.19
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ResearcherLink(Linkable<Researcher> link) Constructor from a Linkable.ResearcherLink(Researcher researcher) Constructor from a Researcher entity.ResearcherLink(URI uri) Constructor with URI. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for this link.Gets the first name of the researcher.Convenience method for returning the full name of the researcher.Gets the last name of the researcher.Gets the LIMS id from the URI.getUri()Gets the URI of the researcher.voidsetFirstName(String firstName) Sets the first name of the researcher.voidsetLastName(String lastName) Sets the last name of the researcher.voidSets the LIMS id.voidSets the URI of the researcher.toString()Returns a string representation of this link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCodeMethods 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
-
lastName
The last name of the researcher. -
firstName
The first name of the researcher. -
uri
The URI of the researcher.
-
-
Constructor Details
-
ResearcherLink
public ResearcherLink()Default constructor. -
ResearcherLink
Constructor with URI.- Parameters:
uri- The URI of the researcher.
-
ResearcherLink
Constructor from a Linkable.- Parameters:
link- The linkable researcher.
-
ResearcherLink
Constructor from a Researcher entity.- Parameters:
researcher- The researcher entity.
-
-
Method Details
-
getLastName
Gets the last name of the researcher.- Returns:
- The researcher's last name.
-
setLastName
Sets the last name of the researcher.- Parameters:
lastName- The researcher's last name.
-
getFirstName
Gets the first name of the researcher.- Returns:
- The researcher's first name.
-
setFirstName
Sets the first name of the researcher.- Parameters:
firstName- The researcher's first name.
-
getFullName
Convenience method for returning the full name of the researcher.- Returns:
- The full name.
- Since:
- 2.31.2
- See Also:
-
getUri
Gets the URI of the researcher.- Returns:
- The researcher URI.
-
setUri
Sets the URI of the researcher.- Parameters:
uri- The researcher URI.
-
getLimsid
Gets the LIMS id from the URI.- Returns:
- The LIMS id extracted from the URI.
-
setLimsid
Sets the LIMS id. This method does nothing as the id is extracted from the URI.- Parameters:
id- The LIMS id (ignored).
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Researcher class.
-
toString
Returns a string representation of this link.- Overrides:
toStringin classLimsLinkBase<Researcher>- Returns:
- The researcher LIMS id and full name of the researcher.
- See Also:
-