java.lang.Object
com.genologics.ri.lab.Lab
- All Implemented Interfaces:
LimsEntity<Lab>,LimsEntityLinkable<Lab>,Linkable<Lab>,Locatable,UDFHolder,Serializable
The detailed representation of a lab.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddressThe billing address for the lab.protected List<ExternalId>The list of external identifiers for the lab.The list of user-defined fields for the lab.protected StringThe name of the lab.protected AddressThe shipping address for the lab.protected UDTThe user-defined type for the lab.protected URIThe URI of the lab resource.protected StringThe website URL of the lab. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the billing address of the lab.Gets the list of external identifiers for the lab.Gets the LIMS id extracted from the URI.getLink()Get a concrete link object to thisLimsEntityLinkableentity.getName()Gets the name of the lab.Gets the shipping address of the lab.getUri()Gets the URI of the lab resource.Get a list of user defined fields held by the entity.Gets the user-defined type of the lab.Gets the website URL of the lab.voidsetBillingAddress(Address value) Sets the billing address of the lab.voidSets the LIMS id.voidSets the name of the lab.voidsetShippingAddress(Address value) Sets the shipping address of the lab.voidSets the URI of the lab resource.setUserDefinedType(UDT value) Sets the user-defined type of the lab.setUserDefinedType(String type) Sets the user-defined type of the lab using a type name.voidsetWebsite(String value) Sets the website URL of the lab.toString()Returns a string representation of the lab.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 lab. -
billingAddress
The billing address for the lab. -
shippingAddress
The shipping address for the lab. -
type
The user-defined type for the lab. -
fields
The list of user-defined fields for the lab. -
externalIds
The list of external identifiers for the lab. -
website
The website URL of the lab. -
uri
The URI of the lab resource.
-
-
Constructor Details
-
Lab
public Lab()Constructs a new Lab instance. -
Lab
Constructs a new Lab instance with the specified URI.- Parameters:
uri- the URI of the lab resource.
-
Lab
Constructs a new Lab instance with the specified URI and name.- Parameters:
uri- the URI of the lab resource.name- the name of the lab.
-
-
Method Details
-
getName
Gets the name of the lab.- Returns:
- the name of the lab.
-
setName
Sets the name of the lab.- Parameters:
value- the name to set.
-
getBillingAddress
Gets the billing address of the lab.- Returns:
- the billing address.
-
setBillingAddress
Sets the billing address of the lab.- Parameters:
value- the billing address to set.
-
getShippingAddress
Gets the shipping address of the lab.- Returns:
- the shipping address.
-
setShippingAddress
Sets the shipping address of the lab.- Parameters:
value- the shipping address to set.
-
getUserDefinedType
Gets the user-defined type of the lab.- Returns:
- the user-defined type.
-
setUserDefinedType
Sets the user-defined type of the lab.- Parameters:
value- the user-defined type to set.- Returns:
- the user-defined type that was set.
-
setUserDefinedType
Sets the user-defined type of the lab using a type name.- Parameters:
type- the name of the user-defined type.- Returns:
- the newly created user-defined type.
-
getUserDefinedFields
Description copied from interface:UDFHolderGet a list of user defined fields held by the entity.- Specified by:
getUserDefinedFieldsin interfaceUDFHolder- Returns:
- A list of UDF objects. This should never return null.
-
getExternalid
Gets the list of external identifiers for the lab.- Returns:
- the list of external identifiers.
-
getWebsite
Gets the website URL of the lab.- Returns:
- the website URL.
-
setWebsite
Sets the website URL of the lab.- Parameters:
value- the website URL to set.
-
getUri
Gets the URI of the lab resource. -
setUri
Sets the URI of the lab resource. -
getLimsid
Gets the LIMS id extracted from the URI.- Specified by:
getLimsidin interfaceLimsEntityLinkable<Lab>- Returns:
- the LIMS id.
-
setLimsid
Sets the LIMS id. This operation does nothing as the id is derived from the URI.- Specified by:
setLimsidin interfaceLimsEntityLinkable<Lab>- Parameters:
id- the LIMS id (ignored).
-
toString
Returns a string representation of the lab. -
getLink
Get a concrete link object to thisLimsEntityLinkableentity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have correspondingLimsEntityLinklink classes available.
-