Class FieldDynamicPresetDetails

java.lang.Object
com.genologics.ri.configuration.FieldDynamicPresetDetails
All Implemented Interfaces:
Locatable, Serializable

public class FieldDynamicPresetDetails extends Object implements Locatable, Serializable
The representation of a list of field dynamic UDF preset.

Illumina have said that this class is not actually released, and there's nothing in Clarity that uses it.

Since:
2.34
See Also:
  • Field Details

    • presets

      protected List<FieldDynamicPreset> presets
      The list of field dynamic presets.
    • uri

      protected URI uri
      The URI of this preset details resource.
  • Constructor Details

    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails()
      Constructor for creating an empty FieldDynamicPresetDetails object.
    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails(URI uri)
      Constructor for creating a FieldDynamicPresetDetails with a URI.
      Parameters:
      uri - The URI of the resource.
    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails(Collection<String> presets)
      Constructor for creating a FieldDynamicPresetDetails with preset values.
      Parameters:
      presets - The collection of preset values.
    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails(URI uri, Collection<String> presets)
      Constructor for creating a FieldDynamicPresetDetails with a URI and preset values.
      Parameters:
      uri - The URI of the resource.
      presets - The collection of preset values.
    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails(String... presets)
      Constructor for creating a FieldDynamicPresetDetails with preset value strings.
      Parameters:
      presets - The preset values.
    • FieldDynamicPresetDetails

      public FieldDynamicPresetDetails(URI uri, String... presets)
      Constructor for creating a FieldDynamicPresetDetails with a URI and preset value strings.
      Parameters:
      uri - The URI of the resource.
      presets - The preset values.
  • Method Details

    • getPresets

      public List<FieldDynamicPreset> getPresets()
      Gets the list of field dynamic presets. Creates a new list if one doesn't exist.
      Returns:
      The list of presets.
    • addPreset

      public FieldDynamicPreset addPreset(FieldDynamicPreset preset)
      Adds a preset to the list.
      Parameters:
      preset - The preset to add.
      Returns:
      The added preset, or null if the input was null.
    • addPreset

      public FieldDynamicPreset addPreset(String preset)
      Adds a preset value to the list, creating a new FieldDynamicPreset.
      Parameters:
      preset - The preset value to add.
      Returns:
      The created FieldDynamicPreset, or null if the input was null.
    • setPresets

      public void setPresets(String... newPresets)
      Sets the presets from an array of strings.
      Parameters:
      newPresets - The array of preset values.
    • setPresets

      public void setPresets(Collection<String> newPresets)
      Sets the presets from a collection of strings.
      Parameters:
      newPresets - The collection of preset values.
    • isEmpty

      public boolean isEmpty()
      Checks if the preset list is empty.
      Returns:
      true if the list is null or empty, false otherwise.
    • getUri

      public URI getUri()
      Gets the URI of this preset details resource.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI of this preset details resource.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The URI.
    • toString

      public String toString()
      Returns the string representation of this object, which is the URI as a string.
      Overrides:
      toString in class Object
      Returns:
      The URI as a string, or "unset" if the URI is null.