Interface SegmentAnnotationCategoryCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTSegmentAnnotationSequence.Item
- Enclosing class:
- SegmentAnnotationCategoryCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segment Annotation Category Code Sequence" (see
SegmentAnnotationCategoryCodeSequence)-
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 Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence) with initial capacity 1 (seeensureSegmentAnnotationCategoryCodeSequence(int)) if it does not already exist.ensureSegmentAnnotationCategoryCodeSequence(int initialCapacity) Adds a new Segment Annotation Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence) if it does not already exist.newSegmentAnnotationCategoryCodeSequence(int initialCapacity) Adds a new Segment Annotation Category Code Sequence.default voidRemoves the Segment Annotation Category Code Sequence (seeSegmentAnnotationCategoryCodeSequencewrap(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 Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence)- Returns:
- A wrapper object implementing the
SegmentAnnotationCategoryCodeSequence.Holderinterface.
-
builder
- Returns:
- a
SegmentAnnotationCategoryCodeSequence.Holder.Builderto create Segment Annotation Category Code Sequence Items with a fluent API.
-
builder
static SegmentAnnotationCategoryCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theSegmentAnnotationCategoryCodeSequence.Holder.Builder.- Returns:
- a
SegmentAnnotationCategoryCodeSequence.Holder.Builderto create Segment Annotation Category Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentAnnotationCategoryCodeSequence
- Returns:
- the Segment Annotation Category Code Sequence (see
SegmentAnnotationCategoryCodeSequence)
-
newSegmentAnnotationCategoryCodeSequence
default SegmentAnnotationCategoryCodeSequence newSegmentAnnotationCategoryCodeSequence(int initialCapacity) Adds a new Segment Annotation Category Code Sequence. (seeSegmentAnnotationCategoryCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Segment Annotation Category Code Sequence
-
ensureSegmentAnnotationCategoryCodeSequence
default SegmentAnnotationCategoryCodeSequence ensureSegmentAnnotationCategoryCodeSequence(int initialCapacity) Adds a new Segment Annotation Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Segment Annotation Category Code Sequence is created.- Returns:
- Either the already existing Segment Annotation Category Code Sequence (see
SegmentAnnotationCategoryCodeSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentAnnotationCategoryCodeSequence
Adds a new Segment Annotation Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence) with initial capacity 1 (seeensureSegmentAnnotationCategoryCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Segment Annotation Category Code Sequence (see
SegmentAnnotationCategoryCodeSequence) or a new one with capacity 1.
-
containsSegmentAnnotationCategoryCodeSequence
default boolean containsSegmentAnnotationCategoryCodeSequence()- Returns:
- Whether it contains the Segment Annotation Category Code Sequence (see
SegmentAnnotationCategoryCodeSequence)
-
removeSegmentAnnotationCategoryCodeSequence
default void removeSegmentAnnotationCategoryCodeSequence()Removes the Segment Annotation Category Code Sequence (seeSegmentAnnotationCategoryCodeSequence
-