Interface ImageSetsSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
HangingProtocolDefinitionModule
- All Known Implementing Classes:
HangingProtocolIOD,ImageSetsSequence.SimpleHolder
- Enclosing class:
- ImageSetsSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Image Sets Sequence" (see
ImageSetsSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ImageSetsSequenceAdds 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 ImageSetsSequencedefault ImageSetsSequencenewImageSetsSequence(int initialCapacity) Adds a new Image Sets Sequence.default voidRemoves the Image Sets Sequence (seeImageSetsSequencestatic ImageSetsSequence.Holderwrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Image Sets Sequence (seeImageSetsSequence)- Returns:
- A wrapper object implementing the
ImageSetsSequence.Holderinterface.
-
builder
- Returns:
- a
ImageSetsSequence.Holder.Builderto create Image Sets Sequence Items with a fluent API.
-
builder
- 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
- Returns:
- the Image Sets Sequence (see
ImageSetsSequence)
-
newImageSetsSequence
Adds a new Image Sets Sequence. (seeImageSetsSequence)- Parameters:
initialCapacity- the initial capacity for the new Image Sets Sequence
-
ensureImageSetsSequence
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
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
-