Interface SegmentedRTAccessoryDeviceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RTSegmentAnnotationSequence.Item,SegmentedRTAccessoryDeviceSequence.SimpleHolder
- Enclosing class:
- SegmentedRTAccessoryDeviceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Segmented RT Accessory Device Sequence" (see
SegmentedRTAccessoryDeviceSequence)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleanAdds a new Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence) with initial capacity 1 (seeensureSegmentedRTAccessoryDeviceSequence(int)) if it does not already exist.ensureSegmentedRTAccessoryDeviceSequence(int initialCapacity) Adds a new Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence) if it does not already exist.newSegmentedRTAccessoryDeviceSequence(int initialCapacity) Adds a new Segmented RT Accessory Device Sequence.default voidRemoves the Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequencewrap(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 Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence)- Returns:
- A wrapper object implementing the
SegmentedRTAccessoryDeviceSequence.Holderinterface.
-
builder
- Returns:
- a
SegmentedRTAccessoryDeviceSequence.Holder.Builderto create Segmented RT Accessory Device Sequence Items with a fluent API.
-
builder
static SegmentedRTAccessoryDeviceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theSegmentedRTAccessoryDeviceSequence.Holder.Builder.- Returns:
- a
SegmentedRTAccessoryDeviceSequence.Holder.Builderto create Segmented RT Accessory Device Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getSegmentedRTAccessoryDeviceSequence
- Returns:
- the Segmented RT Accessory Device Sequence (see
SegmentedRTAccessoryDeviceSequence)
-
newSegmentedRTAccessoryDeviceSequence
default SegmentedRTAccessoryDeviceSequence newSegmentedRTAccessoryDeviceSequence(int initialCapacity) Adds a new Segmented RT Accessory Device Sequence. (seeSegmentedRTAccessoryDeviceSequence)- Parameters:
initialCapacity- the initial capacity for the new Segmented RT Accessory Device Sequence
-
ensureSegmentedRTAccessoryDeviceSequence
default SegmentedRTAccessoryDeviceSequence ensureSegmentedRTAccessoryDeviceSequence(int initialCapacity) Adds a new Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Segmented RT Accessory Device Sequence is created.- Returns:
- Either the already existing Segmented RT Accessory Device Sequence (see
SegmentedRTAccessoryDeviceSequence) or a new one with capacityinitialCapacity.
-
ensureSegmentedRTAccessoryDeviceSequence
Adds a new Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence) with initial capacity 1 (seeensureSegmentedRTAccessoryDeviceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Segmented RT Accessory Device Sequence (see
SegmentedRTAccessoryDeviceSequence) or a new one with capacity 1.
-
containsSegmentedRTAccessoryDeviceSequence
default boolean containsSegmentedRTAccessoryDeviceSequence()- Returns:
- Whether it contains the Segmented RT Accessory Device Sequence (see
SegmentedRTAccessoryDeviceSequence)
-
removeSegmentedRTAccessoryDeviceSequence
default void removeSegmentedRTAccessoryDeviceSequence()Removes the Segmented RT Accessory Device Sequence (seeSegmentedRTAccessoryDeviceSequence
-