Interface ThreatSequence.Holder

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

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

    • wrap

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

      Returns:
      a ThreatSequence.Holder.Builder to create Threat Sequence Items with a fluent API.
    • builder

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

      default ThreatSequence getThreatSequence()
      Returns:
      the Threat Sequence (see ThreatSequence)
    • newThreatSequence

      default ThreatSequence newThreatSequence(int initialCapacity)
      Adds a new Threat Sequence. (see ThreatSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Threat Sequence
    • ensureThreatSequence

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

      default ThreatSequence ensureThreatSequence()
      Adds a new Threat Sequence (see ThreatSequence) with initial capacity 1 (see ensureThreatSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Threat Sequence (see ThreatSequence) or a new one with capacity 1.
    • containsThreatSequence

      default boolean containsThreatSequence()
      Returns:
      Whether it contains the Threat Sequence (see ThreatSequence)
    • removeThreatSequence

      default void removeThreatSequence()
      Removes the Threat Sequence (see ThreatSequence