Interface SegmentAnnotationTypeCodeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
RTSegmentAnnotationSequence.Item,SegmentAnnotationTypeCodeSequence.SimpleHolder
- Enclosing class:
- SegmentAnnotationTypeCodeSequence
public static interface SegmentAnnotationTypeCodeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Segment Annotation Type Code Sequence" (seeSegmentAnnotationTypeCodeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSegmentAnnotationTypeCodeSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static SegmentAnnotationTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence)- Returns:
- a wrapper object implementing the
SegmentAnnotationTypeCodeSequence.Holderinterface.
-
builder
static SegmentAnnotationTypeCodeSequence.Holder.Builder builder()
- Returns:
- a
SegmentAnnotationTypeCodeSequence.Holder.Builderto create Segment Annotation Type Code Sequence Items with a fluent API.
-
builder
static SegmentAnnotationTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theSegmentAnnotationTypeCodeSequence.Holder.Builder.- Returns:
- a
SegmentAnnotationTypeCodeSequence.Holder.Builderto create Segment Annotation Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentAnnotationTypeCodeSequence
default SegmentAnnotationTypeCodeSequence getSegmentAnnotationTypeCodeSequence()
- Returns:
- the Segment Annotation Type Code Sequence (see
SegmentAnnotationTypeCodeSequence)
-
newSegmentAnnotationTypeCodeSequence
default SegmentAnnotationTypeCodeSequence newSegmentAnnotationTypeCodeSequence(int initialCapacity)
Adds a new Segment Annotation Type Code Sequence. (seeSegmentAnnotationTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Annotation Type Code Sequence- Returns:
- the newly created SegmentAnnotationTypeCodeSequence.
-
ensureSegmentAnnotationTypeCodeSequence
default SegmentAnnotationTypeCodeSequence ensureSegmentAnnotationTypeCodeSequence(int initialCapacity)
Adds a new Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Segment Annotation Type Code Sequence is created.- Returns:
- either the already existing Segment Annotation Type Code Sequence (see
SegmentAnnotationTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentAnnotationTypeCodeSequence
default SegmentAnnotationTypeCodeSequence ensureSegmentAnnotationTypeCodeSequence()
Adds a new Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence) with initial capacity 1 (seeensureSegmentAnnotationTypeCodeSequence(int)) if it does not already exist.- Returns:
- either the already existing Segment Annotation Type Code Sequence (see
SegmentAnnotationTypeCodeSequence) or a new one with capacity 1.
-
containsSegmentAnnotationTypeCodeSequence
default boolean containsSegmentAnnotationTypeCodeSequence()
- Returns:
- whether it contains the Segment Annotation Type Code Sequence (see
SegmentAnnotationTypeCodeSequence)
-
removeSegmentAnnotationTypeCodeSequence
default void removeSegmentAnnotationTypeCodeSequence()
Removes the Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence
-
-