java.lang.Object
com.genologics.ri.step.InstrumentLink
- All Implemented Interfaces:
LimsEntityLink<Instrument>,LimsEntityLinkable<Instrument>,LimsLink<Instrument>,Linkable<Instrument>,Locatable,Serializable
The instrument element provides a URI to the selected instrument for the
step.
- Since:
- 2.18
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.InstrumentLink(Instrument instrument) Constructor from an instrument.InstrumentLink(Linkable<Instrument> link) Constructor from a linkable object.InstrumentLink(URI uri) Constructor with URI.InstrumentLink(URI uri, String name) Constructor with URI and name. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the entity class.Gets the LIMS id from the URI.getName()Gets the name.getUri()Gets the URI.inthashCode()voidSets the LIMS id (does nothing for this implementation).voidSets the name.voidSets the URI.toString()Produces a string representation of this instrument link.Methods 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
-
uri
URI of the instrument. -
name
Name of the instrument.
-
-
Constructor Details
-
InstrumentLink
public InstrumentLink()Default constructor. -
InstrumentLink
Constructor with URI.- Parameters:
uri- The URI of the instrument.
-
InstrumentLink
Constructor with URI and name.- Parameters:
uri- The URI of the instrument.name- The name of the instrument.
-
InstrumentLink
Constructor from a linkable object.- Parameters:
link- The linkable instrument.
-
InstrumentLink
Constructor from an instrument.- Parameters:
instrument- The instrument.
-
-
Method Details
-
getName
Gets the name.- Returns:
- The name.
-
setName
Sets the name.- Parameters:
name- The name.
-
getUri
Gets the URI.- Specified by:
getUriin interfaceLimsLink<Instrument>- Specified by:
getUriin interfaceLocatable- Returns:
- The URI.
-
setUri
Sets the URI. -
getEntityClass
Gets the entity class.- Specified by:
getEntityClassin interfaceLimsLink<Instrument>- Returns:
- The Instrument class.
-
toString
Produces a string representation of this instrument link. -
getLimsid
Gets the LIMS id from the URI.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Instrument>- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id (does nothing for this implementation).- Specified by:
setLimsidin interfaceLimsEntityLinkable<Instrument>- Parameters:
id- The LIMS id.
-
hashCode
public int hashCode() -
equals
-