Interface UsedSegmentsSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
RegistrationSequence.Item
Enclosing class:
UsedSegmentsSequence

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

    • wrap

      static UsedSegmentsSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the Used Segments Sequence (see UsedSegmentsSequence)
      Returns:
      A wrapper object implementing the UsedSegmentsSequence.Holder interface.
    • getUsedSegmentsSequence

      default UsedSegmentsSequence getUsedSegmentsSequence()
      Returns:
      the Used Segments Sequence (see UsedSegmentsSequence)
    • newUsedSegmentsSequence

      default UsedSegmentsSequence newUsedSegmentsSequence(int initialCapacity)
      Adds a new Used Segments Sequence. (see UsedSegmentsSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Used Segments Sequence
    • ensureUsedSegmentsSequence

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

      default UsedSegmentsSequence ensureUsedSegmentsSequence()
      Adds a new Used Segments Sequence (see UsedSegmentsSequence) with initial capacity 1 (see ensureUsedSegmentsSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Used Segments Sequence (see UsedSegmentsSequence) or a new one with capacity 1.
    • containsUsedSegmentsSequence

      default boolean containsUsedSegmentsSequence()
      Returns:
      Whether it contains the Used Segments Sequence (see UsedSegmentsSequence)
    • removeUsedSegmentsSequence

      default void removeUsedSegmentsSequence()
      Removes the Used Segments Sequence (see UsedSegmentsSequence