Interface BlockSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
BeamSequence.Item,BlockSequence.SimpleHolder,ExposureSequence.Item
- Enclosing class:
- BlockSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Block Sequence" (see
BlockSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockSequence.Holder.Builderbuilder()static BlockSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes) default booleandefault BlockSequenceAdds a new Block Sequence (seeBlockSequence) with initial capacity 1 (seeensureBlockSequence(int)) if it does not already exist.default BlockSequenceensureBlockSequence(int initialCapacity) Adds a new Block Sequence (seeBlockSequence) if it does not already exist.default BlockSequencedefault BlockSequencenewBlockSequence(int initialCapacity) Adds a new Block Sequence.default voidRemoves the Block Sequence (seeBlockSequencestatic BlockSequence.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 Block Sequence (seeBlockSequence)- Returns:
- A wrapper object implementing the
BlockSequence.Holderinterface.
-
builder
- Returns:
- a
BlockSequence.Holder.Builderto create Block Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theBlockSequence.Holder.Builder.- Returns:
- a
BlockSequence.Holder.Builderto create Block Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getBlockSequence
- Returns:
- the Block Sequence (see
BlockSequence)
-
newBlockSequence
Adds a new Block Sequence. (seeBlockSequence)- Parameters:
initialCapacity- the initial capacity for the new Block Sequence
-
ensureBlockSequence
Adds a new Block Sequence (seeBlockSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Block Sequence is created.- Returns:
- Either the already existing Block Sequence (see
BlockSequence) or a new one with capacityinitialCapacity.
-
ensureBlockSequence
Adds a new Block Sequence (seeBlockSequence) with initial capacity 1 (seeensureBlockSequence(int)) if it does not already exist.- Returns:
- Either the already existing Block Sequence (see
BlockSequence) or a new one with capacity 1.
-
containsBlockSequence
default boolean containsBlockSequence()- Returns:
- Whether it contains the Block Sequence (see
BlockSequence)
-
removeBlockSequence
default void removeBlockSequence()Removes the Block Sequence (seeBlockSequence
-