Interface InstructionSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
InstructionsModule
- All Known Implementing Classes:
CTDefinedProcedureProtocolIOD,CTPerformedProcedureProtocolIOD,InstructionSequence.SimpleHolder,XADefinedProcedureProtocolIOD,XAPerformedProcedureProtocolIOD
- Enclosing class:
- InstructionSequence
public static interface InstructionSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Instruction Sequence" (seeInstructionSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInstructionSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static InstructionSequence.Holder.Builderbuilder()static InstructionSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsInstructionSequence()default InstructionSequenceensureInstructionSequence()Adds a new Instruction Sequence (seeInstructionSequence) with initial capacity 1 (seeensureInstructionSequence(int)) if it does not already exist.default InstructionSequenceensureInstructionSequence(int initialCapacity)Adds a new Instruction Sequence (seeInstructionSequence) if it does not already exist.default InstructionSequencegetInstructionSequence()default InstructionSequencenewInstructionSequence(int initialCapacity)Adds a new Instruction Sequence.default voidremoveInstructionSequence()Removes the Instruction Sequence (seeInstructionSequencestatic InstructionSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static InstructionSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Instruction Sequence (seeInstructionSequence)- Returns:
- a wrapper object implementing the
InstructionSequence.Holderinterface.
-
builder
static InstructionSequence.Holder.Builder builder()
- Returns:
- a
InstructionSequence.Holder.Builderto create Instruction Sequence Items with a fluent API.
-
builder
static InstructionSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theInstructionSequence.Holder.Builder.- Returns:
- a
InstructionSequence.Holder.Builderto create Instruction Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getInstructionSequence
default InstructionSequence getInstructionSequence()
- Returns:
- the Instruction Sequence (see
InstructionSequence)
-
newInstructionSequence
default InstructionSequence newInstructionSequence(int initialCapacity)
Adds a new Instruction Sequence. (seeInstructionSequence)- Parameters:
initialCapacity- the initial capacity for the new Instruction Sequence- Returns:
- the newly created InstructionSequence.
-
ensureInstructionSequence
default InstructionSequence ensureInstructionSequence(int initialCapacity)
Adds a new Instruction Sequence (seeInstructionSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Instruction Sequence is created.- Returns:
- either the already existing Instruction Sequence (see
InstructionSequence) or a new one with capacityinitialCapacity.
-
ensureInstructionSequence
default InstructionSequence ensureInstructionSequence()
Adds a new Instruction Sequence (seeInstructionSequence) with initial capacity 1 (seeensureInstructionSequence(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 (seeInstructionSequence
-
-