Interface DICOMStorageSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
DICOMStorageSequence.SimpleHolder,OutputDestinationSequence.Item,OutputInformationSequence.Item
- Enclosing class:
- DICOMStorageSequence
public static interface DICOMStorageSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "DICOM Storage Sequence" (seeDICOMStorageSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDICOMStorageSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DICOMStorageSequence.Holder.Builderbuilder()static DICOMStorageSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsDICOMStorageSequence()default DICOMStorageSequenceensureDICOMStorageSequence()Adds a new DICOM Storage Sequence (seeDICOMStorageSequence) with initial capacity 1 (seeensureDICOMStorageSequence(int)) if it does not already exist.default DICOMStorageSequenceensureDICOMStorageSequence(int initialCapacity)Adds a new DICOM Storage Sequence (seeDICOMStorageSequence) if it does not already exist.default DICOMStorageSequencegetDICOMStorageSequence()default DICOMStorageSequencenewDICOMStorageSequence(int initialCapacity)Adds a new DICOM Storage Sequence.default voidremoveDICOMStorageSequence()Removes the DICOM Storage Sequence (seeDICOMStorageSequencestatic DICOMStorageSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static DICOMStorageSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the DICOM Storage Sequence (seeDICOMStorageSequence)- Returns:
- a wrapper object implementing the
DICOMStorageSequence.Holderinterface.
-
builder
static DICOMStorageSequence.Holder.Builder builder()
- Returns:
- a
DICOMStorageSequence.Holder.Builderto create DICOM Storage Sequence Items with a fluent API.
-
builder
static DICOMStorageSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theDICOMStorageSequence.Holder.Builder.- Returns:
- a
DICOMStorageSequence.Holder.Builderto create DICOM Storage Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDICOMStorageSequence
default DICOMStorageSequence getDICOMStorageSequence()
- Returns:
- the DICOM Storage Sequence (see
DICOMStorageSequence)
-
newDICOMStorageSequence
default DICOMStorageSequence newDICOMStorageSequence(int initialCapacity)
Adds a new DICOM Storage Sequence. (seeDICOMStorageSequence)- Parameters:
initialCapacity- the initial capacity for the new DICOM Storage Sequence- Returns:
- the newly created DICOMStorageSequence.
-
ensureDICOMStorageSequence
default DICOMStorageSequence ensureDICOMStorageSequence(int initialCapacity)
Adds a new DICOM Storage Sequence (seeDICOMStorageSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new DICOM Storage Sequence is created.- Returns:
- either the already existing DICOM Storage Sequence (see
DICOMStorageSequence) or a new one with capacityinitialCapacity.
-
ensureDICOMStorageSequence
default DICOMStorageSequence ensureDICOMStorageSequence()
Adds a new DICOM Storage Sequence (seeDICOMStorageSequence) with initial capacity 1 (seeensureDICOMStorageSequence(int)) if it does not already exist.- Returns:
- either the already existing DICOM Storage Sequence (see
DICOMStorageSequence) or a new one with capacity 1.
-
containsDICOMStorageSequence
default boolean containsDICOMStorageSequence()
- Returns:
- whether it contains the DICOM Storage Sequence (see
DICOMStorageSequence)
-
removeDICOMStorageSequence
default void removeDICOMStorageSequence()
Removes the DICOM Storage Sequence (seeDICOMStorageSequence
-
-