Interface TrackSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
TrackSequence.SimpleHolder,TrackSetSequence.Item
- Enclosing class:
- TrackSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Track Sequence" (see
TrackSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TrackSequence.Holder.Builderbuilder()static TrackSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes) default booleandefault TrackSequenceAdds a new Track Sequence (seeTrackSequence) with initial capacity 1 (seeensureTrackSequence(int)) if it does not already exist.default TrackSequenceensureTrackSequence(int initialCapacity) Adds a new Track Sequence (seeTrackSequence) if it does not already exist.default TrackSequencedefault TrackSequencenewTrackSequence(int initialCapacity) Adds a new Track Sequence.default voidRemoves the Track Sequence (seeTrackSequencestatic TrackSequence.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 Track Sequence (seeTrackSequence)- Returns:
- A wrapper object implementing the
TrackSequence.Holderinterface.
-
builder
- Returns:
- a
TrackSequence.Holder.Builderto create Track Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theTrackSequence.Holder.Builder.- Returns:
- a
TrackSequence.Holder.Builderto create Track Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getTrackSequence
- Returns:
- the Track Sequence (see
TrackSequence)
-
newTrackSequence
Adds a new Track Sequence. (seeTrackSequence)- Parameters:
initialCapacity- the initial capacity for the new Track Sequence
-
ensureTrackSequence
Adds a new Track Sequence (seeTrackSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Track Sequence is created.- Returns:
- Either the already existing Track Sequence (see
TrackSequence) or a new one with capacityinitialCapacity.
-
ensureTrackSequence
Adds a new Track Sequence (seeTrackSequence) with initial capacity 1 (seeensureTrackSequence(int)) if it does not already exist.- Returns:
- Either the already existing Track Sequence (see
TrackSequence) or a new one with capacity 1.
-
containsTrackSequence
default boolean containsTrackSequence()- Returns:
- Whether it contains the Track Sequence (see
TrackSequence)
-
removeTrackSequence
default void removeTrackSequence()Removes the Track Sequence (seeTrackSequence
-