- All Implemented Interfaces:
LimsEntityLink<Artifact>,LimsEntityLinkable<Artifact>,LimsLink<Artifact>,Linkable<Artifact>,Locatable,Serializable,Comparable<Placement>
Placement is a child element of container and provides a URI linking to the
detailed representation of the artifact that is located in a specific well of
the container.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor from an artifact.Placement(LimsEntityLinkable<Artifact> artifact) Constructor from a LIMS entity linkable artifact.Placement(LimsEntityLinkable<Artifact> artifact, String wellPosition) Constructor from a LIMS entity linkable artifact with well position.Constructor with URI.Constructor with URI and well position.Constructor with URI, LIMS id, and well position. -
Method Summary
Modifier and TypeMethodDescriptionintCompares this placement to another based on well position.Gets the entity class for this placement.Gets the LIMS id of the artifact.getUri()Gets the URI of the artifact.Gets the well position in the container.voidSets the LIMS id of the artifact.voidSets the URI of the artifact.voidsetWellPosition(String wellPosition) Sets the well position in the container.toString()Returns a string representation of the placement.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
-
uri
The URI of the artifact. -
limsid
The LIMS id of the artifact. -
wellPosition
The well position in the container.
-
-
Constructor Details
-
Placement
public Placement()Default constructor. -
Placement
Constructor with URI.- Parameters:
uri- The URI.
-
Placement
Constructor with URI and well position.- Parameters:
uri- The URI.wellPosition- The well position.
-
Placement
Constructor with URI, LIMS id, and well position.- Parameters:
uri- The URI.limsid- The LIMS id.wellPosition- The well position.
-
Placement
Constructor from a LIMS entity linkable artifact.- Parameters:
artifact- The artifact.
-
Placement
Constructor from a LIMS entity linkable artifact with well position.- Parameters:
artifact- The artifact.wellPosition- The well position.
-
Placement
Constructor from an artifact. Extracts the well position from the artifact's location if available.- Parameters:
artifact- The artifact.
-
-
Method Details
-
getEntityClass
Gets the entity class for this placement.- Specified by:
getEntityClassin interfaceLimsLink<Artifact>- Returns:
- The Artifact class.
-
getUri
Gets the URI of the artifact. -
setUri
Sets the URI of the artifact. -
getLimsid
Gets the LIMS id of the artifact.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Artifact>- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id of the artifact.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Artifact>- Parameters:
limsid- The LIMS id.
-
getWellPosition
Gets the well position in the container.- Returns:
- The well position.
-
setWellPosition
Sets the well position in the container.- Parameters:
wellPosition- The well position.
-
compareTo
Compares this placement to another based on well position. Well positions are compared intelligently, taking into account numeric and alphabetic parts.- Specified by:
compareToin interfaceComparable<Placement>- Parameters:
o- The other placement to compare to.- Returns:
- A negative integer, zero, or a positive integer as this placement is less than, equal to, or greater than the specified placement.
-
toString
Returns a string representation of the placement.- Overrides:
toStringin classLimsLinkBase<Artifact>- Returns:
- A string representation containing the LIMS id and well position.
- See Also:
-