Interface DACSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
DACSequence.SimpleHolder
Enclosing class:
DACSequence

public static interface DACSequence.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "DAC Sequence" (see DACSequence)
  • Method Details

    • wrap

      static DACSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the DAC Sequence (see DACSequence)
      Returns:
      A wrapper object implementing the DACSequence.Holder interface.
    • builder

      static DACSequence.Holder.Builder builder()
      Returns:
      a DACSequence.Holder.Builder to create DAC Sequence Items with a fluent API.
    • builder

      static DACSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - The Attributes to be wrapped by the DACSequence.Holder.Builder.
      Returns:
      a DACSequence.Holder.Builder to create DAC Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
    • getDACSequence

      default DACSequence getDACSequence()
      Returns:
      the DAC Sequence (see DACSequence)
    • newDACSequence

      default DACSequence newDACSequence(int initialCapacity)
      Adds a new DAC Sequence. (see DACSequence)
      Parameters:
      initialCapacity - the initial capacity for the new DAC Sequence
    • ensureDACSequence

      default DACSequence ensureDACSequence(int initialCapacity)
      Adds a new DAC Sequence (see DACSequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new DAC Sequence is created.
      Returns:
      Either the already existing DAC Sequence (see DACSequence) or a new one with capacity initialCapacity.
    • ensureDACSequence

      default DACSequence ensureDACSequence()
      Adds a new DAC Sequence (see DACSequence) with initial capacity 1 (see ensureDACSequence(int)) if it does not already exist.
      Returns:
      Either the already existing DAC Sequence (see DACSequence) or a new one with capacity 1.
    • containsDACSequence

      default boolean containsDACSequence()
      Returns:
      Whether it contains the DAC Sequence (see DACSequence)
    • removeDACSequence

      default void removeDACSequence()
      Removes the DAC Sequence (see DACSequence