Interface ImageBoxContentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ImageBoxContentSequence.SimpleHolder
- Enclosing class:
- ImageBoxContentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Image Box Content Sequence" (see
ImageBoxContentSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ImageBoxContentSequenceAdds a new Image Box Content Sequence (seeImageBoxContentSequence) with initial capacity 1 (seeensureImageBoxContentSequence(int)) if it does not already exist.default ImageBoxContentSequenceensureImageBoxContentSequence(int initialCapacity) Adds a new Image Box Content Sequence (seeImageBoxContentSequence) if it does not already exist.default ImageBoxContentSequencedefault ImageBoxContentSequencenewImageBoxContentSequence(int initialCapacity) Adds a new Image Box Content Sequence.default voidRemoves the Image Box Content Sequence (seeImageBoxContentSequencewrap(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 Box Content Sequence (seeImageBoxContentSequence)- Returns:
- A wrapper object implementing the
ImageBoxContentSequence.Holderinterface.
-
builder
- Returns:
- a
ImageBoxContentSequence.Holder.Builderto create Image Box Content Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theImageBoxContentSequence.Holder.Builder.- Returns:
- a
ImageBoxContentSequence.Holder.Builderto create Image Box Content Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getImageBoxContentSequence
- Returns:
- the Image Box Content Sequence (see
ImageBoxContentSequence)
-
newImageBoxContentSequence
Adds a new Image Box Content Sequence. (seeImageBoxContentSequence)- Parameters:
initialCapacity- the initial capacity for the new Image Box Content Sequence
-
ensureImageBoxContentSequence
Adds a new Image Box Content Sequence (seeImageBoxContentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Image Box Content Sequence is created.- Returns:
- Either the already existing Image Box Content Sequence (see
ImageBoxContentSequence) or a new one with capacityinitialCapacity.
-
ensureImageBoxContentSequence
Adds a new Image Box Content Sequence (seeImageBoxContentSequence) with initial capacity 1 (seeensureImageBoxContentSequence(int)) if it does not already exist.- Returns:
- Either the already existing Image Box Content Sequence (see
ImageBoxContentSequence) or a new one with capacity 1.
-
containsImageBoxContentSequence
default boolean containsImageBoxContentSequence()- Returns:
- Whether it contains the Image Box Content Sequence (see
ImageBoxContentSequence)
-
removeImageBoxContentSequence
default void removeImageBoxContentSequence()Removes the Image Box Content Sequence (seeImageBoxContentSequence
-