Interface ChannelSourceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ChannelDefinitionSequence.Item,ChannelSourceSequence.SimpleHolder,MultiplexedAudioChannelsDescriptionCodeSequence.Item
- Enclosing class:
- ChannelSourceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Channel Source Sequence" (see
ChannelSourceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ChannelSourceSequenceAdds a new Channel Source Sequence (seeChannelSourceSequence) with initial capacity 1 (seeensureChannelSourceSequence(int)) if it does not already exist.default ChannelSourceSequenceensureChannelSourceSequence(int initialCapacity) Adds a new Channel Source Sequence (seeChannelSourceSequence) if it does not already exist.default ChannelSourceSequencedefault ChannelSourceSequencenewChannelSourceSequence(int initialCapacity) Adds a new Channel Source Sequence.default voidRemoves the Channel Source Sequence (seeChannelSourceSequencestatic ChannelSourceSequence.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 Channel Source Sequence (seeChannelSourceSequence)- Returns:
- A wrapper object implementing the
ChannelSourceSequence.Holderinterface.
-
builder
- Returns:
- a
ChannelSourceSequence.Holder.Builderto create Channel Source Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theChannelSourceSequence.Holder.Builder.- Returns:
- a
ChannelSourceSequence.Holder.Builderto create Channel Source Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getChannelSourceSequence
- Returns:
- the Channel Source Sequence (see
ChannelSourceSequence)
-
newChannelSourceSequence
Adds a new Channel Source Sequence. (seeChannelSourceSequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Source Sequence
-
ensureChannelSourceSequence
Adds a new Channel Source Sequence (seeChannelSourceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Channel Source Sequence is created.- Returns:
- Either the already existing Channel Source Sequence (see
ChannelSourceSequence) or a new one with capacityinitialCapacity.
-
ensureChannelSourceSequence
Adds a new Channel Source Sequence (seeChannelSourceSequence) with initial capacity 1 (seeensureChannelSourceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Channel Source Sequence (see
ChannelSourceSequence) or a new one with capacity 1.
-
containsChannelSourceSequence
default boolean containsChannelSourceSequence()- Returns:
- Whether it contains the Channel Source Sequence (see
ChannelSourceSequence)
-
removeChannelSourceSequence
default void removeChannelSourceSequence()Removes the Channel Source Sequence (seeChannelSourceSequence
-