- All Implemented Interfaces:
LimsEntityLink<ReagentType>,LimsEntityLinkable<ReagentType>,LimsLink<ReagentType>,Linkable<ReagentType>,Locatable,Serializable
Reagent-type-link is a child element type of reagent types and provides a URI
linking to the detailed representation of a reagent type.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ReagentTypeLink(Linkable<ReagentType> link) Constructor from a Linkable object.ReagentTypeLink(ReagentType type) Constructor from a ReagentType entity.ReagentTypeLink(URI uri) Constructor with URI.ReagentTypeLink(URI uri, String name) Constructor with URI and name. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for this link.Gets the LIMS id from the URI.getName()Gets the name of the reagent type.getUri()Gets the URI of the reagent type.voidSets the LIMS id.voidSets the name of the reagent type.voidSets the URI of the reagent type.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
-
name
The name of the reagent type. -
uri
The URI of the reagent type.
-
-
Constructor Details
-
ReagentTypeLink
public ReagentTypeLink()Default constructor. -
ReagentTypeLink
Constructor with URI.- Parameters:
uri- The URI of the reagent type.
-
ReagentTypeLink
Constructor with URI and name.- Parameters:
uri- The URI of the reagent type.name- The name of the reagent type.
-
ReagentTypeLink
Constructor from a Linkable object.- Parameters:
link- The linkable object to extract the URI from.
-
ReagentTypeLink
Constructor from a ReagentType entity.- Parameters:
type- The reagent type to create the link from.
-
-
Method Details
-
getEntityClass
Gets the entity class for this link.- Returns:
- The ReagentType class.
-
getName
Gets the name of the reagent type.- Returns:
- The reagent type name.
-
setName
Sets the name of the reagent type.- Parameters:
name- The reagent type name.
-
getUri
Gets the URI of the reagent type.- Returns:
- The reagent type URI.
-
setUri
Sets the URI of the reagent type.- Parameters:
uri- The reagent type URI.
-
toString
Returns a string representation of this link.- Overrides:
toStringin classLimsLinkBase<ReagentType>- Returns:
- The name of the reagent type.
- See Also:
-
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).
-