java.lang.Object
com.genologics.ri.container.Container
- All Implemented Interfaces:
LimsEntity<Container>,LimsEntityLinkable<Container>,Linkable<Container>,Locatable,UDFHolder,Serializable
Container entity representing a physical container in the Clarity LIMS.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContainerTypeLinkLink to the container type.The list of user-defined fields for the container.protected StringThe LIMS id of the container.protected StringThe name of the container.protected LongThe number of occupied wells in the container.The list of placements in the container.protected ContainerStateContainer state.protected UDTThe user-defined type for the container.protected URIThe URI of the container. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Container(ContainerType containerType) Constructor with container type.Container(ContainerType containerType, String name) Constructor with container type and name.Container(Linkable<ContainerType> containerType) Constructor with container type link.Container(Linkable<ContainerType> containerType, String name) Constructor with container type link and name.Constructor for Container with a URI.Constructor for Container with a URI and LIMS id. -
Method Summary
Modifier and TypeMethodDescriptionAdds a placement to the container.addPlacement(LimsEntityLinkable<Artifact> artifact, String wellPosition) Adds a placement to the container with an artifact and well position.Gets the container type link.Gets the LIMS id.getLink()Gets a link to this container.getName()Gets the name.Gets the number of occupied wells.Gets the list of placements.getState()Gets the container state.getUri()Gets the URI.Gets the list of user-defined fields.Gets the user-defined type.voidsetContainerType(ContainerType containerType) Sets the container type.voidSets the container type from a linkable.voidSets the LIMS id.voidSets the name.voidsetOccupiedWells(Long occupiedWells) Sets the number of occupied wells.voidsetPlacements(Collection<? extends LimsEntityLinkable<Artifact>> links) Sets the placements from a collection of artifact links.voidsetState(ContainerState state) Sets the container state.voidSets the URI.setUserDefinedType(UDT type) Sets the user-defined type.setUserDefinedType(String type) Sets the user-defined type from a string.toString()Returns a string representation of the container.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.genologics.ri.LimsEntityLinkable
getLimsId, setLimsIdMethods inherited from interface com.genologics.ri.userdefined.UDFHolder
getUDF, getUDF, getUDF, getUdfs, getUDFs, getUDFValue, getUDFValue, getUDFValue, getUDFValue, setUDF
-
Field Details
-
name
The name of the container. -
containerType
Link to the container type. -
occupiedWells
The number of occupied wells in the container. -
placements
The list of placements in the container. -
type
The user-defined type for the container. -
fields
The list of user-defined fields for the container. -
state
Container state. Note this has changed from a string to an enum from release 2.31.6. -
limsid
The LIMS id of the container. -
uri
The URI of the container.
-
-
Constructor Details
-
Container
public Container()Default constructor. -
Container
Constructor for Container with a URI.- Parameters:
uri- The URI of the container.
-
Container
Constructor for Container with a URI and LIMS id.- Parameters:
uri- The URI of the container.limsid- The LIMS id of the container.
-
Container
Constructor with container type link.- Parameters:
containerType- the container type link.
-
Container
Constructor with container type link and name.- Parameters:
containerType- the container type link.name- the name of the container.
-
Container
Constructor with container type.- Parameters:
containerType- the container type.
-
Container
Constructor with container type and name.- Parameters:
containerType- the container type.name- the name of the container.
-
-
Method Details
-
getLimsid
Gets the LIMS id.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Container>- Returns:
- the LIMS id.
-
setLimsid
Sets the LIMS id.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Container>- Parameters:
value- the LIMS id.
-
getUri
Gets the URI. -
setUri
Sets the URI. -
getName
Gets the name.- Returns:
- the name.
-
setName
Sets the name.- Parameters:
name- the name.
-
getContainerType
Gets the container type link.- Returns:
- the container type link.
-
setContainerType
Sets the container type from a linkable.- Parameters:
link- the linkable container type.
-
setContainerType
Sets the container type.- Parameters:
containerType- the container type.
-
getOccupiedWells
Gets the number of occupied wells.- Returns:
- the number of occupied wells.
-
setOccupiedWells
Sets the number of occupied wells.- Parameters:
occupiedWells- the number of occupied wells.
-
getPlacements
Gets the list of placements.- Returns:
- the list of placements.
-
setPlacements
Sets the placements from a collection of artifact links.- Parameters:
links- the collection of artifact links.
-
addPlacement
Adds a placement to the container.- Parameters:
p- the placement to add.- Returns:
- the added placement.
-
addPlacement
Adds a placement to the container with an artifact and well position.- Parameters:
artifact- the artifact to place.wellPosition- the well position.- Returns:
- the added placement.
-
getUserDefinedType
Gets the user-defined type.- Returns:
- the user-defined type.
-
setUserDefinedType
Sets the user-defined type.- Parameters:
type- the user-defined type.- Returns:
- the user-defined type.
-
setUserDefinedType
Sets the user-defined type from a string.- Parameters:
type- the type name.- Returns:
- the user-defined type.
-
getUserDefinedFields
Gets the list of user-defined fields.- Specified by:
getUserDefinedFieldsin interfaceUDFHolder- Returns:
- the list of user-defined fields.
-
getState
Gets the container state.- Returns:
- the container state.
-
setState
Sets the container state.- Parameters:
state- the container state.
-
toString
Returns a string representation of the container. -
getLink
Gets a link to this container.
-