Interface ChannelSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ApplicationSetupSequence.Item
- Enclosing class:
- ChannelSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Channel Sequence" (see
ChannelSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault ChannelSequenceAdds a new Channel Sequence (seeChannelSequence) with initial capacity 1 (seeensureChannelSequence(int)) if it does not already exist.default ChannelSequenceensureChannelSequence(int initialCapacity) Adds a new Channel Sequence (seeChannelSequence) if it does not already exist.default ChannelSequencedefault ChannelSequencenewChannelSequence(int initialCapacity) Adds a new Channel Sequence.default voidRemoves the Channel Sequence (seeChannelSequencestatic ChannelSequence.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 Sequence (seeChannelSequence)- Returns:
- A wrapper object implementing the
ChannelSequence.Holderinterface.
-
getChannelSequence
- Returns:
- the Channel Sequence (see
ChannelSequence)
-
newChannelSequence
Adds a new Channel Sequence. (seeChannelSequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Sequence
-
ensureChannelSequence
Adds a new Channel Sequence (seeChannelSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Channel Sequence is created.- Returns:
- Either the already existing Channel Sequence (see
ChannelSequence) or a new one with capacityinitialCapacity.
-
ensureChannelSequence
Adds a new Channel Sequence (seeChannelSequence) with initial capacity 1 (seeensureChannelSequence(int)) if it does not already exist.- Returns:
- Either the already existing Channel Sequence (see
ChannelSequence) or a new one with capacity 1.
-
containsChannelSequence
default boolean containsChannelSequence()- Returns:
- Whether it contains the Channel Sequence (see
ChannelSequence)
-
removeChannelSequence
default void removeChannelSequence()Removes the Channel Sequence (seeChannelSequence
-