Interface ROIElementalCompositionSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ROIElementalCompositionSequence.SimpleHolder,ROIPhysicalPropertiesSequence.Item
- Enclosing class:
- ROIElementalCompositionSequence
A class implementing this interface can hold attributes which contain the DICOM tag "ROI Elemental Composition Sequence" (see
ROIElementalCompositionSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ROIElementalCompositionSequenceAdds a new ROI Elemental Composition Sequence (seeROIElementalCompositionSequence) with initial capacity 1 (seeensureROIElementalCompositionSequence(int)) if it does not already exist.default ROIElementalCompositionSequenceensureROIElementalCompositionSequence(int initialCapacity) Adds a new ROI Elemental Composition Sequence (seeROIElementalCompositionSequence) if it does not already exist.default ROIElementalCompositionSequencedefault ROIElementalCompositionSequencenewROIElementalCompositionSequence(int initialCapacity) Adds a new ROI Elemental Composition Sequence.default voidRemoves the ROI Elemental Composition Sequence (seeROIElementalCompositionSequencewrap(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 ROI Elemental Composition Sequence (seeROIElementalCompositionSequence)- Returns:
- A wrapper object implementing the
ROIElementalCompositionSequence.Holderinterface.
-
builder
- Returns:
- a
ROIElementalCompositionSequence.Holder.Builderto create ROI Elemental Composition Sequence Items with a fluent API.
-
builder
static ROIElementalCompositionSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theROIElementalCompositionSequence.Holder.Builder.- Returns:
- a
ROIElementalCompositionSequence.Holder.Builderto create ROI Elemental Composition Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getROIElementalCompositionSequence
- Returns:
- the ROI Elemental Composition Sequence (see
ROIElementalCompositionSequence)
-
newROIElementalCompositionSequence
Adds a new ROI Elemental Composition Sequence. (seeROIElementalCompositionSequence)- Parameters:
initialCapacity- the initial capacity for the new ROI Elemental Composition Sequence
-
ensureROIElementalCompositionSequence
Adds a new ROI Elemental Composition Sequence (seeROIElementalCompositionSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new ROI Elemental Composition Sequence is created.- Returns:
- Either the already existing ROI Elemental Composition Sequence (see
ROIElementalCompositionSequence) or a new one with capacityinitialCapacity.
-
ensureROIElementalCompositionSequence
Adds a new ROI Elemental Composition Sequence (seeROIElementalCompositionSequence) with initial capacity 1 (seeensureROIElementalCompositionSequence(int)) if it does not already exist.- Returns:
- Either the already existing ROI Elemental Composition Sequence (see
ROIElementalCompositionSequence) or a new one with capacity 1.
-
containsROIElementalCompositionSequence
default boolean containsROIElementalCompositionSequence()- Returns:
- Whether it contains the ROI Elemental Composition Sequence (see
ROIElementalCompositionSequence)
-
removeROIElementalCompositionSequence
default void removeROIElementalCompositionSequence()Removes the ROI Elemental Composition Sequence (seeROIElementalCompositionSequence
-