Class SampleCreation

java.lang.Object
com.genologics.ri.sample.SampleBase
com.genologics.ri.sample.SampleCreation
All Implemented Interfaces:
UDFHolder, Serializable

public class SampleCreation extends SampleBase
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.

See Also:
  • Field Details

    • location

      protected Location location
  • Constructor Details

    • SampleCreation

      public SampleCreation()
    • SampleCreation

      public SampleCreation(Sample s)
      Construct a new object for sample creation via the API.
      Parameters:
      s - The original Sample object.
      Throws:
      IllegalStateException - if s has a URI set (meaning it is already known in the system) or does not have its creationLocation field set with a location.
  • Method Details

    • getLocation

      public Location getLocation()
    • setLocation

      public void setLocation(Location value)