Interface AnnotationGroupSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
MicroscopyBulkSimpleAnnotationsModule
- All Known Implementing Classes:
AnnotationGroupSequence.SimpleHolder,MicroscopyBulkSimpleAnnotationsIOD
- Enclosing class:
- AnnotationGroupSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Annotation Group Sequence" (see
AnnotationGroupSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault AnnotationGroupSequenceAdds a new Annotation Group Sequence (seeAnnotationGroupSequence) with initial capacity 1 (seeensureAnnotationGroupSequence(int)) if it does not already exist.default AnnotationGroupSequenceensureAnnotationGroupSequence(int initialCapacity) Adds a new Annotation Group Sequence (seeAnnotationGroupSequence) if it does not already exist.default AnnotationGroupSequencedefault AnnotationGroupSequencenewAnnotationGroupSequence(int initialCapacity) Adds a new Annotation Group Sequence.default voidRemoves the Annotation Group Sequence (seeAnnotationGroupSequencewrap(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 Annotation Group Sequence (seeAnnotationGroupSequence)- Returns:
- A wrapper object implementing the
AnnotationGroupSequence.Holderinterface.
-
builder
- Returns:
- a
AnnotationGroupSequence.Holder.Builderto create Annotation Group Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theAnnotationGroupSequence.Holder.Builder.- Returns:
- a
AnnotationGroupSequence.Holder.Builderto create Annotation Group Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAnnotationGroupSequence
- Returns:
- the Annotation Group Sequence (see
AnnotationGroupSequence)
-
newAnnotationGroupSequence
Adds a new Annotation Group Sequence. (seeAnnotationGroupSequence)- Parameters:
initialCapacity- the initial capacity for the new Annotation Group Sequence
-
ensureAnnotationGroupSequence
Adds a new Annotation Group Sequence (seeAnnotationGroupSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Annotation Group Sequence is created.- Returns:
- Either the already existing Annotation Group Sequence (see
AnnotationGroupSequence) or a new one with capacityinitialCapacity.
-
ensureAnnotationGroupSequence
Adds a new Annotation Group Sequence (seeAnnotationGroupSequence) with initial capacity 1 (seeensureAnnotationGroupSequence(int)) if it does not already exist.- Returns:
- Either the already existing Annotation Group Sequence (see
AnnotationGroupSequence) or a new one with capacity 1.
-
containsAnnotationGroupSequence
default boolean containsAnnotationGroupSequence()- Returns:
- Whether it contains the Annotation Group Sequence (see
AnnotationGroupSequence)
-
removeAnnotationGroupSequence
default void removeAnnotationGroupSequence()Removes the Annotation Group Sequence (seeAnnotationGroupSequence
-