Interface RecordedChannelSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RecordedChannelSequence.SimpleHolder,TreatmentSessionApplicationSetupSequence.Item
- Enclosing class:
- RecordedChannelSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Recorded Channel Sequence" (see
RecordedChannelSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RecordedChannelSequenceAdds a new Recorded Channel Sequence (seeRecordedChannelSequence) with initial capacity 1 (seeensureRecordedChannelSequence(int)) if it does not already exist.default RecordedChannelSequenceensureRecordedChannelSequence(int initialCapacity) Adds a new Recorded Channel Sequence (seeRecordedChannelSequence) if it does not already exist.default RecordedChannelSequencedefault RecordedChannelSequencenewRecordedChannelSequence(int initialCapacity) Adds a new Recorded Channel Sequence.default voidRemoves the Recorded Channel Sequence (seeRecordedChannelSequencewrap(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 Channel Sequence (seeRecordedChannelSequence)- Returns:
- A wrapper object implementing the
RecordedChannelSequence.Holderinterface.
-
builder
- Returns:
- a
RecordedChannelSequence.Holder.Builderto create Recorded Channel Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRecordedChannelSequence.Holder.Builder.- Returns:
- a
RecordedChannelSequence.Holder.Builderto create Recorded Channel Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRecordedChannelSequence
- Returns:
- the Recorded Channel Sequence (see
RecordedChannelSequence)
-
newRecordedChannelSequence
Adds a new Recorded Channel Sequence. (seeRecordedChannelSequence)- Parameters:
initialCapacity- the initial capacity for the new Recorded Channel Sequence
-
ensureRecordedChannelSequence
Adds a new Recorded Channel Sequence (seeRecordedChannelSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Recorded Channel Sequence is created.- Returns:
- Either the already existing Recorded Channel Sequence (see
RecordedChannelSequence) or a new one with capacityinitialCapacity.
-
ensureRecordedChannelSequence
Adds a new Recorded Channel Sequence (seeRecordedChannelSequence) with initial capacity 1 (seeensureRecordedChannelSequence(int)) if it does not already exist.- Returns:
- Either the already existing Recorded Channel Sequence (see
RecordedChannelSequence) or a new one with capacity 1.
-
containsRecordedChannelSequence
default boolean containsRecordedChannelSequence()- Returns:
- Whether it contains the Recorded Channel Sequence (see
RecordedChannelSequence)
-
removeRecordedChannelSequence
default void removeRecordedChannelSequence()Removes the Recorded Channel Sequence (seeRecordedChannelSequence
-