Interface AnnotationPropertyTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
AnnotationGroupSequence.Item,AnnotationPropertyTypeCodeSequence.SimpleHolder
- Enclosing class:
- AnnotationPropertyTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Annotation Property Type Code Sequence" (see
AnnotationPropertyTypeCodeSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence) with initial capacity 1 (seeensureAnnotationPropertyTypeCodeSequence(int)) if it does not already exist.ensureAnnotationPropertyTypeCodeSequence(int initialCapacity) Adds a new Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence) if it does not already exist.newAnnotationPropertyTypeCodeSequence(int initialCapacity) Adds a new Annotation Property Type Code Sequence.default voidRemoves the Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequencewrap(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 Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence)- Returns:
- A wrapper object implementing the
AnnotationPropertyTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
AnnotationPropertyTypeCodeSequence.Holder.Builderto create Annotation Property Type Code Sequence Items with a fluent API.
-
builder
static AnnotationPropertyTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theAnnotationPropertyTypeCodeSequence.Holder.Builder.- Returns:
- a
AnnotationPropertyTypeCodeSequence.Holder.Builderto create Annotation Property Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getAnnotationPropertyTypeCodeSequence
- Returns:
- the Annotation Property Type Code Sequence (see
AnnotationPropertyTypeCodeSequence)
-
newAnnotationPropertyTypeCodeSequence
default AnnotationPropertyTypeCodeSequence newAnnotationPropertyTypeCodeSequence(int initialCapacity) Adds a new Annotation Property Type Code Sequence. (seeAnnotationPropertyTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Annotation Property Type Code Sequence
-
ensureAnnotationPropertyTypeCodeSequence
default AnnotationPropertyTypeCodeSequence ensureAnnotationPropertyTypeCodeSequence(int initialCapacity) Adds a new Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Annotation Property Type Code Sequence is created.- Returns:
- Either the already existing Annotation Property Type Code Sequence (see
AnnotationPropertyTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureAnnotationPropertyTypeCodeSequence
Adds a new Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence) with initial capacity 1 (seeensureAnnotationPropertyTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Annotation Property Type Code Sequence (see
AnnotationPropertyTypeCodeSequence) or a new one with capacity 1.
-
containsAnnotationPropertyTypeCodeSequence
default boolean containsAnnotationPropertyTypeCodeSequence()- Returns:
- Whether it contains the Annotation Property Type Code Sequence (see
AnnotationPropertyTypeCodeSequence)
-
removeAnnotationPropertyTypeCodeSequence
default void removeAnnotationPropertyTypeCodeSequence()Removes the Annotation Property Type Code Sequence (seeAnnotationPropertyTypeCodeSequence
-