Interface InstructionSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Subinterfaces:
InstructionsModule
All Known Implementing Classes:
CTDefinedProcedureProtocolIOD, CTPerformedProcedureProtocolIOD, XADefinedProcedureProtocolIOD, XAPerformedProcedureProtocolIOD
Enclosing class:
InstructionSequence

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

    • wrap

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

      default InstructionSequence getInstructionSequence()
      Returns:
      the Instruction Sequence (see InstructionSequence)
    • newInstructionSequence

      default InstructionSequence newInstructionSequence(int initialCapacity)
      Adds a new Instruction Sequence. (see InstructionSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Instruction Sequence
    • ensureInstructionSequence

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

      default InstructionSequence ensureInstructionSequence()
      Adds a new Instruction Sequence (see InstructionSequence) with initial capacity 1 (see ensureInstructionSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Instruction Sequence (see InstructionSequence) or a new one with capacity 1.
    • containsInstructionSequence

      default boolean containsInstructionSequence()
      Returns:
      Whether it contains the Instruction Sequence (see InstructionSequence)
    • removeInstructionSequence

      default void removeInstructionSequence()
      Removes the Instruction Sequence (see InstructionSequence