Class Sample
java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Sample
- All Implemented Interfaces:
ICustomIdHolder<Long>,IIdentifierHolder,IIdHolder,Serializable
@JsonObject("Sample")
public final class Sample
extends Object
implements Serializable, IIdentifierHolder, IIdHolder
Immutable value object representing a sample.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classClass used to initialize a new sample instance. -
Constructor Summary
ConstructorsConstructorDescriptionSample(Sample.SampleInitializer initializer) Creates a new instance with the provided initializer -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the children.getCode()Returns the sample code.getId()Returns the sample id.Returns the sample identifier;Return the parents.Returns the sample permanent id.Return the sample registration details.Returns fetch options used to retrieved this sample object.Returns the sample type code.Returns the sample type id.Returns the space code.inthashCode()booleanisStub()toString()
-
Constructor Details
-
Method Details
-
getId
Returns the sample id.- Specified by:
getIdin interfaceICustomIdHolder<Long>- Returns:
nullif there is no Id.
-
getSpaceCode
Returns the space code. -
getPermId
Returns the sample permanent id. -
getCode
Returns the sample code. -
getIdentifier
Returns the sample identifier;- Specified by:
getIdentifierin interfaceIIdentifierHolder
-
getExperimentIdentifierOrNull
-
getSampleTypeId
Returns the sample type id. -
getSampleTypeCode
Returns the sample type code. -
getProperties
- Throws:
IllegalArgumentException
-
getMetaprojects
- Throws:
IllegalArgumentException
-
getRegistrationDetails
Return the sample registration details.- Since:
- 1.11
-
getRetrievedFetchOptions
Returns fetch options used to retrieved this sample object. -
getChildren
Return the children.- Returns:
- Children of this sample or an empty list if there are no children.
- Throws:
IllegalArgumentException- Thrown if the children were not retrieved from the server.
-
getParents
Return the parents.- Returns:
- All parents of this sample or an empty list if there are no parents.
- Throws:
IllegalArgumentException- Thrown if the parents were not retrieved from the server.
-
isStub
public boolean isStub() -
equals
-
hashCode
public int hashCode() -
toString
-
getPropertiesJson
-
getMetaprojectsJson
-
getChildrenJson
-
getParentsJson
-