Interface ComponentSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
ComponentTypesSequence.Item
Enclosing class:
ComponentSequence

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

    • wrap

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

      default ComponentSequence getComponentSequence()
      Returns:
      the Component Sequence (see ComponentSequence)
    • newComponentSequence

      default ComponentSequence newComponentSequence(int initialCapacity)
      Adds a new Component Sequence. (see ComponentSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Component Sequence
    • ensureComponentSequence

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

      default ComponentSequence ensureComponentSequence()
      Adds a new Component Sequence (see ComponentSequence) with initial capacity 1 (see ensureComponentSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Component Sequence (see ComponentSequence) or a new one with capacity 1.
    • containsComponentSequence

      default boolean containsComponentSequence()
      Returns:
      Whether it contains the Component Sequence (see ComponentSequence)
    • removeComponentSequence

      default void removeComponentSequence()
      Removes the Component Sequence (see ComponentSequence