Interface UsedSegmentsSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RegistrationSequence.Item,UsedSegmentsSequence.SimpleHolder
- Enclosing class:
- UsedSegmentsSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Used Segments Sequence" (see
UsedSegmentsSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault UsedSegmentsSequenceAdds a new Used Segments Sequence (seeUsedSegmentsSequence) with initial capacity 1 (seeensureUsedSegmentsSequence(int)) if it does not already exist.default UsedSegmentsSequenceensureUsedSegmentsSequence(int initialCapacity) Adds a new Used Segments Sequence (seeUsedSegmentsSequence) if it does not already exist.default UsedSegmentsSequencedefault UsedSegmentsSequencenewUsedSegmentsSequence(int initialCapacity) Adds a new Used Segments Sequence.default voidRemoves the Used Segments Sequence (seeUsedSegmentsSequencestatic UsedSegmentsSequence.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 Used Segments Sequence (seeUsedSegmentsSequence)- Returns:
- A wrapper object implementing the
UsedSegmentsSequence.Holderinterface.
-
builder
- Returns:
- a
UsedSegmentsSequence.Holder.Builderto create Used Segments Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theUsedSegmentsSequence.Holder.Builder.- Returns:
- a
UsedSegmentsSequence.Holder.Builderto create Used Segments Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getUsedSegmentsSequence
- Returns:
- the Used Segments Sequence (see
UsedSegmentsSequence)
-
newUsedSegmentsSequence
Adds a new Used Segments Sequence. (seeUsedSegmentsSequence)- Parameters:
initialCapacity- the initial capacity for the new Used Segments Sequence
-
ensureUsedSegmentsSequence
Adds a new Used Segments Sequence (seeUsedSegmentsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Used Segments Sequence is created.- Returns:
- Either the already existing Used Segments Sequence (see
UsedSegmentsSequence) or a new one with capacityinitialCapacity.
-
ensureUsedSegmentsSequence
Adds a new Used Segments Sequence (seeUsedSegmentsSequence) with initial capacity 1 (seeensureUsedSegmentsSequence(int)) if it does not already exist.- Returns:
- Either the already existing Used Segments Sequence (see
UsedSegmentsSequence) or a new one with capacity 1.
-
containsUsedSegmentsSequence
default boolean containsUsedSegmentsSequence()- Returns:
- Whether it contains the Used Segments Sequence (see
UsedSegmentsSequence)
-
removeUsedSegmentsSequence
default void removeUsedSegmentsSequence()Removes the Used Segments Sequence (seeUsedSegmentsSequence
-