Interface AnnotationContentSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
AnnotationContentSequence.SimpleHolder
- Enclosing class:
- AnnotationContentSequence
public static interface AnnotationContentSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Annotation Content Sequence" (seeAnnotationContentSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationContentSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static AnnotationContentSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Annotation Content Sequence (seeAnnotationContentSequence)- Returns:
- a wrapper object implementing the
AnnotationContentSequence.Holderinterface.
-
builder
static AnnotationContentSequence.Holder.Builder builder()
- Returns:
- a
AnnotationContentSequence.Holder.Builderto create Annotation Content Sequence Items with a fluent API.
-
builder
static AnnotationContentSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theAnnotationContentSequence.Holder.Builder.- Returns:
- a
AnnotationContentSequence.Holder.Builderto create Annotation Content Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAnnotationContentSequence
default AnnotationContentSequence getAnnotationContentSequence()
- Returns:
- the Annotation Content Sequence (see
AnnotationContentSequence)
-
newAnnotationContentSequence
default AnnotationContentSequence newAnnotationContentSequence(int initialCapacity)
Adds a new Annotation Content Sequence. (seeAnnotationContentSequence)- Parameters:
initialCapacity- the initial capacity for the new Annotation Content Sequence- Returns:
- the newly created AnnotationContentSequence.
-
ensureAnnotationContentSequence
default AnnotationContentSequence ensureAnnotationContentSequence(int initialCapacity)
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
default AnnotationContentSequence 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
-
-