Interface ImageSetsSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
HangingProtocolDefinitionModule
- All Known Implementing Classes:
HangingProtocolIOD,ImageSetsSequence.SimpleHolder
- Enclosing class:
- ImageSetsSequence
public static interface ImageSetsSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Image Sets Sequence" (seeImageSetsSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classImageSetsSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ImageSetsSequence.Holder.Builderbuilder()static ImageSetsSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsImageSetsSequence()default ImageSetsSequenceensureImageSetsSequence()Adds a new Image Sets Sequence (seeImageSetsSequence) with initial capacity 1 (seeensureImageSetsSequence(int)) if it does not already exist.default ImageSetsSequenceensureImageSetsSequence(int initialCapacity)Adds a new Image Sets Sequence (seeImageSetsSequence) if it does not already exist.default ImageSetsSequencegetImageSetsSequence()default ImageSetsSequencenewImageSetsSequence(int initialCapacity)Adds a new Image Sets Sequence.default voidremoveImageSetsSequence()Removes the Image Sets Sequence (seeImageSetsSequencestatic ImageSetsSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ImageSetsSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Image Sets Sequence (seeImageSetsSequence)- Returns:
- a wrapper object implementing the
ImageSetsSequence.Holderinterface.
-
builder
static ImageSetsSequence.Holder.Builder builder()
- Returns:
- a
ImageSetsSequence.Holder.Builderto create Image Sets Sequence Items with a fluent API.
-
builder
static ImageSetsSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theImageSetsSequence.Holder.Builder.- Returns:
- a
ImageSetsSequence.Holder.Builderto create Image Sets Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getImageSetsSequence
default ImageSetsSequence getImageSetsSequence()
- Returns:
- the Image Sets Sequence (see
ImageSetsSequence)
-
newImageSetsSequence
default ImageSetsSequence newImageSetsSequence(int initialCapacity)
Adds a new Image Sets Sequence. (seeImageSetsSequence)- Parameters:
initialCapacity- the initial capacity for the new Image Sets Sequence- Returns:
- the newly created ImageSetsSequence.
-
ensureImageSetsSequence
default ImageSetsSequence ensureImageSetsSequence(int initialCapacity)
Adds a new Image Sets Sequence (seeImageSetsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Image Sets Sequence is created.- Returns:
- either the already existing Image Sets Sequence (see
ImageSetsSequence) or a new one with capacityinitialCapacity.
-
ensureImageSetsSequence
default ImageSetsSequence ensureImageSetsSequence()
Adds a new Image Sets Sequence (seeImageSetsSequence) with initial capacity 1 (seeensureImageSetsSequence(int)) if it does not already exist.- Returns:
- either the already existing Image Sets Sequence (see
ImageSetsSequence) or a new one with capacity 1.
-
containsImageSetsSequence
default boolean containsImageSetsSequence()
- Returns:
- whether it contains the Image Sets Sequence (see
ImageSetsSequence)
-
removeImageSetsSequence
default void removeImageSetsSequence()
Removes the Image Sets Sequence (seeImageSetsSequence
-
-