Interface ChannelSourceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ChannelDefinitionSequence.Item,MultiplexedAudioChannelsDescriptionCodeSequence.Item
- Enclosing class:
- ChannelSourceSequence
public static interface ChannelSourceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Channel Source Sequence" (seeChannelSourceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChannelSourceSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ChannelSourceSequence.Holder.Builderbuilder()static ChannelSourceSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsChannelSourceSequence()default ChannelSourceSequenceensureChannelSourceSequence()Adds 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 ChannelSourceSequencegetChannelSourceSequence()default ChannelSourceSequencenewChannelSourceSequence(int initialCapacity)Adds a new Channel Source Sequence.default voidremoveChannelSourceSequence()Removes the Channel Source Sequence (seeChannelSourceSequencestatic ChannelSourceSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ChannelSourceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Channel Source Sequence (seeChannelSourceSequence)- Returns:
- a wrapper object implementing the
ChannelSourceSequence.Holderinterface.
-
builder
static ChannelSourceSequence.Holder.Builder builder()
- Returns:
- a
ChannelSourceSequence.Holder.Builderto create Channel Source Sequence Items with a fluent API.
-
builder
static ChannelSourceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default ChannelSourceSequence getChannelSourceSequence()
- Returns:
- the Channel Source Sequence (see
ChannelSourceSequence)
-
newChannelSourceSequence
default ChannelSourceSequence newChannelSourceSequence(int initialCapacity)
Adds a new Channel Source Sequence. (seeChannelSourceSequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Source Sequence- Returns:
- the newly created ChannelSourceSequence.
-
ensureChannelSourceSequence
default ChannelSourceSequence ensureChannelSourceSequence(int initialCapacity)
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
default ChannelSourceSequence 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
-
-