Interface AnnotationGroupSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
MicroscopyBulkSimpleAnnotationsModule
- All Known Implementing Classes:
AnnotationGroupSequence.SimpleHolder,MicroscopyBulkSimpleAnnotationsIOD
- Enclosing class:
- AnnotationGroupSequence
public static interface AnnotationGroupSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Annotation Group Sequence" (seeAnnotationGroupSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationGroupSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static AnnotationGroupSequence.Holder.Builderbuilder()static AnnotationGroupSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsAnnotationGroupSequence()default AnnotationGroupSequenceensureAnnotationGroupSequence()Adds 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 AnnotationGroupSequencegetAnnotationGroupSequence()default AnnotationGroupSequencenewAnnotationGroupSequence(int initialCapacity)Adds a new Annotation Group Sequence.default voidremoveAnnotationGroupSequence()Removes the Annotation Group Sequence (seeAnnotationGroupSequencestatic AnnotationGroupSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static AnnotationGroupSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Annotation Group Sequence (seeAnnotationGroupSequence)- Returns:
- a wrapper object implementing the
AnnotationGroupSequence.Holderinterface.
-
builder
static AnnotationGroupSequence.Holder.Builder builder()
- Returns:
- a
AnnotationGroupSequence.Holder.Builderto create Annotation Group Sequence Items with a fluent API.
-
builder
static AnnotationGroupSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default AnnotationGroupSequence getAnnotationGroupSequence()
- Returns:
- the Annotation Group Sequence (see
AnnotationGroupSequence)
-
newAnnotationGroupSequence
default AnnotationGroupSequence newAnnotationGroupSequence(int initialCapacity)
Adds a new Annotation Group Sequence. (seeAnnotationGroupSequence)- Parameters:
initialCapacity- the initial capacity for the new Annotation Group Sequence- Returns:
- the newly created AnnotationGroupSequence.
-
ensureAnnotationGroupSequence
default AnnotationGroupSequence ensureAnnotationGroupSequence(int initialCapacity)
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
default AnnotationGroupSequence 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
-
-