Interface DeviceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
DeviceModule
- All Known Implementing Classes:
BreastProjectionXRayImageIOD,BreastTomosynthesisImageIOD,CRImageIOD,CTImageIOD,DeviceSequence.SimpleHolder,DigitalIntraOralXRayImageIOD,DigitalMammographyXRayImageIOD,DigitalXRayImageIOD,EnhancedCTImageIOD,EnhancedMRColorImageIOD,EnhancedMRImageIOD,EnhancedUSVolumeIOD,EnhancedXAImageIOD,EnhancedXRFImageIOD,IntravascularOpticalCoherenceTomographyImageIOD,LegacyConvertedEnhancedCTImageIOD,LegacyConvertedEnhancedMRImageIOD,MRImageIOD,MultiFrameGrayscaleByteSCImageIOD,MultiFrameGrayscaleWordSCImageIOD,MultiFrameSingleBitSCImageIOD,MultiFrameTrueColorSCImageIOD,NMImageIOD,OphthalmicPhotography16BitImageIOD,OphthalmicPhotography8BitImageIOD,ParametricMapIOD,PETImageIOD,RealTimeVideoEndoscopicImageIOD,RealTimeVideoPhotographicImageIOD,RTImageIOD,SecondaryCaptureImageIOD,USImageIOD,USMultiFrameImageIOD,VideoEndoscopicImageIOD,VideoMicroscopicImageIOD,VideoPhotographicImageIOD,VLEndoscopicImageIOD,VLMicroscopicImageIOD,VLPhotographicImageIOD,VLSlideCoordinatesMicroscopicImageIOD,XRay3DAngiographicImageIOD,XRay3DCraniofacialImageIOD,XRayAngiographicImageIOD,XRayRadiofluoroscopicImageIOD
- Enclosing class:
- DeviceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Device Sequence" (see
DeviceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault DeviceSequenceAdds a new Device Sequence (seeDeviceSequence) with initial capacity 1 (seeensureDeviceSequence(int)) if it does not already exist.default DeviceSequenceensureDeviceSequence(int initialCapacity) Adds a new Device Sequence (seeDeviceSequence) if it does not already exist.default DeviceSequencedefault DeviceSequencenewDeviceSequence(int initialCapacity) Adds a new Device Sequence.default voidRemoves the Device Sequence (seeDeviceSequencestatic DeviceSequence.Holderwrap(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 Device Sequence (seeDeviceSequence)- Returns:
- A wrapper object implementing the
DeviceSequence.Holderinterface.
-
builder
- Returns:
- a
DeviceSequence.Holder.Builderto create Device Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theDeviceSequence.Holder.Builder.- Returns:
- a
DeviceSequence.Holder.Builderto create Device Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDeviceSequence
- Returns:
- the Device Sequence (see
DeviceSequence)
-
newDeviceSequence
Adds a new Device Sequence. (seeDeviceSequence)- Parameters:
initialCapacity- the initial capacity for the new Device Sequence
-
ensureDeviceSequence
Adds a new Device Sequence (seeDeviceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Device Sequence is created.- Returns:
- Either the already existing Device Sequence (see
DeviceSequence) or a new one with capacityinitialCapacity.
-
ensureDeviceSequence
Adds a new Device Sequence (seeDeviceSequence) with initial capacity 1 (seeensureDeviceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Device Sequence (see
DeviceSequence) or a new one with capacity 1.
-
containsDeviceSequence
default boolean containsDeviceSequence()- Returns:
- Whether it contains the Device Sequence (see
DeviceSequence)
-
removeDeviceSequence
default void removeDeviceSequence()Removes the Device Sequence (seeDeviceSequence
-