Interface SegmentReferenceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
SegmentReferenceModule
- All Known Implementing Classes:
RTSegmentAnnotationIOD,SegmentReferenceSequence.SimpleHolder
- Enclosing class:
- SegmentReferenceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Reference Sequence" (see
SegmentReferenceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault SegmentReferenceSequenceAdds a new Segment Reference Sequence (seeSegmentReferenceSequence) with initial capacity 1 (seeensureSegmentReferenceSequence(int)) if it does not already exist.default SegmentReferenceSequenceensureSegmentReferenceSequence(int initialCapacity) Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) if it does not already exist.default SegmentReferenceSequencedefault SegmentReferenceSequencenewSegmentReferenceSequence(int initialCapacity) Adds a new Segment Reference Sequence.default voidRemoves the Segment Reference Sequence (seeSegmentReferenceSequencewrap(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 Segment Reference Sequence (seeSegmentReferenceSequence)- Returns:
- A wrapper object implementing the
SegmentReferenceSequence.Holderinterface.
-
builder
- Returns:
- a
SegmentReferenceSequence.Holder.Builderto create Segment Reference Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theSegmentReferenceSequence.Holder.Builder.- Returns:
- a
SegmentReferenceSequence.Holder.Builderto create Segment Reference Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentReferenceSequence
- Returns:
- the Segment Reference Sequence (see
SegmentReferenceSequence)
-
newSegmentReferenceSequence
Adds a new Segment Reference Sequence. (seeSegmentReferenceSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Reference Sequence
-
ensureSegmentReferenceSequence
Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Segment Reference Sequence is created.- Returns:
- Either the already existing Segment Reference Sequence (see
SegmentReferenceSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentReferenceSequence
Adds a new Segment Reference Sequence (seeSegmentReferenceSequence) with initial capacity 1 (seeensureSegmentReferenceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Segment Reference Sequence (see
SegmentReferenceSequence) or a new one with capacity 1.
-
containsSegmentReferenceSequence
default boolean containsSegmentReferenceSequence()- Returns:
- Whether it contains the Segment Reference Sequence (see
SegmentReferenceSequence)
-
removeSegmentReferenceSequence
default void removeSegmentReferenceSequence()Removes the Segment Reference Sequence (seeSegmentReferenceSequence
-