Interface ImageBoxesSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
DisplaySetsSequence.Item,ImageBoxesSequence.SimpleHolder
- Enclosing class:
- ImageBoxesSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Image Boxes Sequence" (see
ImageBoxesSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ImageBoxesSequenceAdds a new Image Boxes Sequence (seeImageBoxesSequence) with initial capacity 1 (seeensureImageBoxesSequence(int)) if it does not already exist.default ImageBoxesSequenceensureImageBoxesSequence(int initialCapacity) Adds a new Image Boxes Sequence (seeImageBoxesSequence) if it does not already exist.default ImageBoxesSequencedefault ImageBoxesSequencenewImageBoxesSequence(int initialCapacity) Adds a new Image Boxes Sequence.default voidRemoves the Image Boxes Sequence (seeImageBoxesSequencestatic ImageBoxesSequence.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 Boxes Sequence (seeImageBoxesSequence)- Returns:
- A wrapper object implementing the
ImageBoxesSequence.Holderinterface.
-
builder
- Returns:
- a
ImageBoxesSequence.Holder.Builderto create Image Boxes Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theImageBoxesSequence.Holder.Builder.- Returns:
- a
ImageBoxesSequence.Holder.Builderto create Image Boxes Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getImageBoxesSequence
- Returns:
- the Image Boxes Sequence (see
ImageBoxesSequence)
-
newImageBoxesSequence
Adds a new Image Boxes Sequence. (seeImageBoxesSequence)- Parameters:
initialCapacity- the initial capacity for the new Image Boxes Sequence
-
ensureImageBoxesSequence
Adds a new Image Boxes Sequence (seeImageBoxesSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Image Boxes Sequence is created.- Returns:
- Either the already existing Image Boxes Sequence (see
ImageBoxesSequence) or a new one with capacityinitialCapacity.
-
ensureImageBoxesSequence
Adds a new Image Boxes Sequence (seeImageBoxesSequence) with initial capacity 1 (seeensureImageBoxesSequence(int)) if it does not already exist.- Returns:
- Either the already existing Image Boxes Sequence (see
ImageBoxesSequence) or a new one with capacity 1.
-
containsImageBoxesSequence
default boolean containsImageBoxesSequence()- Returns:
- Whether it contains the Image Boxes Sequence (see
ImageBoxesSequence)
-
removeImageBoxesSequence
default void removeImageBoxesSequence()Removes the Image Boxes Sequence (seeImageBoxesSequence
-