- 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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ResearcherLink(Linkable<Researcher> link) Constructor from a linkable object.ResearcherLink(Researcher researcher) Constructor from a researcher object.ResearcherLink(URI uri) Constructor with URI.ResearcherLink(URI uri, String firstName, String lastName) Constructor with URI and names. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class this link refers to.Gets the researcher's first name.Convenience method for returning the full name of the researcher.Gets the researcher's last name.Gets the LIMS id from the URI.getUri()Gets the URI to the researcher.voidsetFirstName(String firstName) Sets the researcher's first name.voidsetLastName(String lastName) Sets the researcher's last name.voidSets the LIMS id.voidSets the URI to 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
-
firstName
The researcher's first name. -
lastName
The researcher's last name. -
uri
The URI to the researcher.
-
-
Constructor Details
-
ResearcherLink
public ResearcherLink()Default constructor. -
ResearcherLink
Constructor with URI.- Parameters:
uri- The URI to the researcher.
-
ResearcherLink
Constructor with URI and names.- Parameters:
uri- The URI to the researcher.firstName- The researcher's first name.lastName- The researcher's last name.
-
ResearcherLink
Constructor from a linkable object.- Parameters:
link- The linkable object containing the researcher URI.
-
ResearcherLink
Constructor from a researcher object.- Parameters:
researcher- The researcher to create the link from.
-
-
Method Details
-
getEntityClass
Gets the entity class this link refers to.- Returns:
- The Researcher class.
-
getFirstName
Gets the researcher's first name.- Returns:
- The first name.
-
setFirstName
Sets the researcher's first name.- Parameters:
firstName- The first name.
-
getLastName
Gets the researcher's last name.- Returns:
- The last name.
-
setLastName
Sets the researcher's last name.- Parameters:
lastName- The last 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 to the researcher.- Returns:
- The URI.
-
setUri
Sets the URI to the researcher.- Parameters:
uri- The URI.
-
getLimsid
Gets the LIMS id from the URI.- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id. This operation does nothing for this link type.- Parameters:
id- The LIMS id.
-
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:
-