Interface DACSequence.Holder

  • All Superinterfaces:
    org.dcm4che.typeddicom.AttributesWrapper
    Enclosing class:
    DACSequence

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

      • 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.
      • newDACSequence

        default DACSequence newDACSequence​(int initialCapacity)
        Adds a new DAC Sequence. (see DACSequence)
        Parameters:
        initialCapacity - the initial capacity for the new DAC Sequence
        Returns:
        the newly created DACSequence.
      • 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