java.lang.Object
com.genologics.ri.sample.SampleBase
com.genologics.ri.sample.SampleCreation
- All Implemented Interfaces:
UDFHolder,Serializable
Sample creation is the detailed representation required when creating a new
Sample in the system.
For this API, this class should not be used directly. Create
Sample objects and set their creationLocation field
for the initial location before calling ClarityAPI.create
methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LocationThe location where the sample will be created.Fields inherited from class com.genologics.ri.sample.SampleBase
artifact, bioSource, controlType, dateCompleted, dateReceived, externalIds, fields, files, limsid, name, project, submitter, type, uri -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for an empty sample creation.Construct a new object for sample creation via the API. -
Method Summary
Modifier and TypeMethodDescriptionGets the location where the sample will be created.voidsetLocation(Location value) Sets the location where the sample will be created.Methods inherited from class com.genologics.ri.sample.SampleBase
addFile, getArtifact, getBioSource, getControlType, getDateCompleted, getDateReceived, getExternalIds, getFiles, getLimsid, getName, getProject, getSubmitter, getUri, getUserDefinedFields, getUserDefinedType, isControlSample, setArtifact, setBioSource, setControlType, setDateCompleted, setDateReceived, setLimsid, setName, setProject, setSubmitter, setUri, setUserDefinedType, setUserDefinedType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.genologics.ri.userdefined.UDFHolder
getUDF, getUDF, getUDF, getUdfs, getUDFs, getUDFValue, getUDFValue, getUDFValue, getUDFValue, setUDF
-
Field Details
-
location
The location where the sample will be created.
-
-
Constructor Details
-
SampleCreation
public SampleCreation()Constructor for an empty sample creation. -
SampleCreation
Construct a new object for sample creation via the API.- Parameters:
s- The original Sample object.- Throws:
IllegalStateException- ifshas a URI set (meaning it is already known in the system) or does not have itscreationLocationfield set with a location.
-
-
Method Details
-
getLocation
Gets the location where the sample will be created.- Returns:
- The creation location.
-
setLocation
Sets the location where the sample will be created.- Parameters:
value- The creation location.
-