Interface SegmentAnnotationTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTSegmentAnnotationSequence.Item
- Enclosing class:
- SegmentAnnotationTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Annotation Type Code Sequence" (see
SegmentAnnotationTypeCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence) with initial capacity 1 (seeensureSegmentAnnotationTypeCodeSequence(int)) if it does not already exist.ensureSegmentAnnotationTypeCodeSequence(int initialCapacity) Adds a new Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence) if it does not already exist.newSegmentAnnotationTypeCodeSequence(int initialCapacity) Adds a new Segment Annotation Type Code Sequence.default voidRemoves the Segment Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequencewrap(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 Annotation Type Code Sequence (seeSegmentAnnotationTypeCodeSequence)- Returns:
- A wrapper object implementing the
SegmentAnnotationTypeCodeSequence.Holderinterface.
-
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
- Returns:
- the Segment Annotation Type Code Sequence (see
SegmentAnnotationTypeCodeSequence)
-
newSegmentAnnotationTypeCodeSequence
Adds a new Segment Annotation Type Code Sequence. (seeSegmentAnnotationTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Annotation Type Code Sequence
-
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
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
-