Interface AnnotationContentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- Enclosing class:
- AnnotationContentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Annotation Content Sequence" (see
AnnotationContentSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault AnnotationContentSequenceAdds a new Annotation Content Sequence (seeAnnotationContentSequence) with initial capacity 1 (seeensureAnnotationContentSequence(int)) if it does not already exist.default AnnotationContentSequenceensureAnnotationContentSequence(int initialCapacity) Adds a new Annotation Content Sequence (seeAnnotationContentSequence) if it does not already exist.default AnnotationContentSequencedefault AnnotationContentSequencenewAnnotationContentSequence(int initialCapacity) Adds a new Annotation Content Sequence.default voidRemoves the Annotation Content Sequence (seeAnnotationContentSequencewrap(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 Content Sequence (seeAnnotationContentSequence)- Returns:
- A wrapper object implementing the
AnnotationContentSequence.Holderinterface.
-
getAnnotationContentSequence
- Returns:
- the Annotation Content Sequence (see
AnnotationContentSequence)
-
newAnnotationContentSequence
Adds a new Annotation Content Sequence. (seeAnnotationContentSequence)- Parameters:
initialCapacity- the initial capacity for the new Annotation Content Sequence
-
ensureAnnotationContentSequence
Adds a new Annotation Content Sequence (seeAnnotationContentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Annotation Content Sequence is created.- Returns:
- Either the already existing Annotation Content Sequence (see
AnnotationContentSequence) or a new one with capacityinitialCapacity.
-
ensureAnnotationContentSequence
Adds a new Annotation Content Sequence (seeAnnotationContentSequence) with initial capacity 1 (seeensureAnnotationContentSequence(int)) if it does not already exist.- Returns:
- Either the already existing Annotation Content Sequence (see
AnnotationContentSequence) or a new one with capacity 1.
-
containsAnnotationContentSequence
default boolean containsAnnotationContentSequence()- Returns:
- Whether it contains the Annotation Content Sequence (see
AnnotationContentSequence)
-
removeAnnotationContentSequence
default void removeAnnotationContentSequence()Removes the Annotation Content Sequence (seeAnnotationContentSequence
-