Interface BlockSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
BeamSequence.Item, ExposureSequence.Item
Enclosing class:
BlockSequence

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

    • wrap

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

      default BlockSequence getBlockSequence()
      Returns:
      the Block Sequence (see BlockSequence)
    • newBlockSequence

      default BlockSequence newBlockSequence(int initialCapacity)
      Adds a new Block Sequence. (see BlockSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Block Sequence
    • ensureBlockSequence

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

      default BlockSequence ensureBlockSequence()
      Adds a new Block Sequence (see BlockSequence) with initial capacity 1 (see ensureBlockSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Block Sequence (see BlockSequence) or a new one with capacity 1.
    • containsBlockSequence

      default boolean containsBlockSequence()
      Returns:
      Whether it contains the Block Sequence (see BlockSequence)
    • removeBlockSequence

      default void removeBlockSequence()
      Removes the Block Sequence (see BlockSequence