- All Implemented Interfaces:
LimsEntityLink<Container>,LimsEntityLinkable<Container>,LimsLink<Container>,Linkable<Container>,Locatable,Serializable,Comparable<Location>
Location provides a URI linking to the detailed representation of a Container along with the well location within that Container.
Location is used by representations to describe their location within a Container. For example Artifact and reagent use location to describe which Container they are located in.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternPattern for splitting well position strings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this location with another location.booleanCompares this location with another object for equality.Gets the container link.Gets the entity class for this link.Gets the LIMS id of the container.getUri()Gets the URI of the container.Gets the well position.inthashCode()Computes a hash code for this location.Sets the container from a LIMS entity linkable.voidSets the LIMS id of the container.voidSets the URI of the container.voidsetWellPosition(String wellPosition) Sets the well position.toString()Returns a string representation of this location.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
-
WELL_POSITION_SPLITTER
Pattern for splitting well position strings.
-
-
Constructor Details
-
Location
public Location()Default constructor. -
Location
Constructor with container and position.- Parameters:
container- The container link.position- The well position.
-
Location
Constructor with container and position.- Parameters:
container- The linkable container.position- The well position.
-
-
Method Details
-
getContainer
Gets the container link.- Returns:
- The container link.
-
setContainer
Sets the container from a LIMS entity linkable.- Parameters:
link- The LIMS entity linkable container.- Returns:
- The new container link.
-
getWellPosition
Gets the well position.- Returns:
- The well position.
-
setWellPosition
Sets the well position.- Parameters:
wellPosition- The well position.
-
hashCode
public int hashCode()Computes a hash code for this location.- Overrides:
hashCodein classLimsLinkBase<Container>- Returns:
- The hash code.
- See Also:
-
equals
Compares this location with another object for equality.- Overrides:
equalsin classLimsLinkBase<Container>- Parameters:
obj- The object to compare with.- Returns:
trueif the objects are equal,falseotherwise.- See Also:
-
compareTo
Compares this location with another location.- Specified by:
compareToin interfaceComparable<Location>- Parameters:
o- The location to compare with.- Returns:
- A negative integer, zero, or a positive integer as this location is less than, equal to, or greater than the specified location.
-
toString
Returns a string representation of this location.- Overrides:
toStringin classLimsLinkBase<Container>- Returns:
- The container and well position as a string.
- See Also:
-
getLimsid
Gets the LIMS id of the container.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Container>- Returns:
- The LIMS id.
-
setLimsid
Sets the LIMS id of the container.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Container>- Parameters:
id- The LIMS id.
-
getUri
Gets the URI of the container. -
setUri
Sets the URI of the container. -
getEntityClass
Gets the entity class for this link.- Specified by:
getEntityClassin interfaceLimsLink<Container>- Returns:
- The Container class.
-