Interface RecordedBlockSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
GeneralMachineVerificationSequence.Item,RecordedBlockSequence.SimpleHolder,TreatmentSessionBeamSequence.Item,TreatmentSessionIonBeamSequence.Item
- Enclosing class:
- RecordedBlockSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Recorded Block Sequence" (see
RecordedBlockSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RecordedBlockSequenceAdds a new Recorded Block Sequence (seeRecordedBlockSequence) with initial capacity 1 (seeensureRecordedBlockSequence(int)) if it does not already exist.default RecordedBlockSequenceensureRecordedBlockSequence(int initialCapacity) Adds a new Recorded Block Sequence (seeRecordedBlockSequence) if it does not already exist.default RecordedBlockSequencedefault RecordedBlockSequencenewRecordedBlockSequence(int initialCapacity) Adds a new Recorded Block Sequence.default voidRemoves the Recorded Block Sequence (seeRecordedBlockSequencestatic RecordedBlockSequence.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 Recorded Block Sequence (seeRecordedBlockSequence)- Returns:
- A wrapper object implementing the
RecordedBlockSequence.Holderinterface.
-
builder
- Returns:
- a
RecordedBlockSequence.Holder.Builderto create Recorded Block Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRecordedBlockSequence.Holder.Builder.- Returns:
- a
RecordedBlockSequence.Holder.Builderto create Recorded Block Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRecordedBlockSequence
- Returns:
- the Recorded Block Sequence (see
RecordedBlockSequence)
-
newRecordedBlockSequence
Adds a new Recorded Block Sequence. (seeRecordedBlockSequence)- Parameters:
initialCapacity- the initial capacity for the new Recorded Block Sequence
-
ensureRecordedBlockSequence
Adds a new Recorded Block Sequence (seeRecordedBlockSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Recorded Block Sequence is created.- Returns:
- Either the already existing Recorded Block Sequence (see
RecordedBlockSequence) or a new one with capacityinitialCapacity.
-
ensureRecordedBlockSequence
Adds a new Recorded Block Sequence (seeRecordedBlockSequence) with initial capacity 1 (seeensureRecordedBlockSequence(int)) if it does not already exist.- Returns:
- Either the already existing Recorded Block Sequence (see
RecordedBlockSequence) or a new one with capacity 1.
-
containsRecordedBlockSequence
default boolean containsRecordedBlockSequence()- Returns:
- Whether it contains the Recorded Block Sequence (see
RecordedBlockSequence)
-
removeRecordedBlockSequence
default void removeRecordedBlockSequence()Removes the Recorded Block Sequence (seeRecordedBlockSequence
-