Interface DeviceSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Subinterfaces:
DeviceModule
- All Known Implementing Classes:
BreastProjectionXRayImageIOD,BreastTomosynthesisImageIOD,ComputedRadiographyImageIOD,CTImageIOD,DeviceModule.SimpleWrapper,DigitalIntraOralXRayImageIOD,DigitalMammographyXRayImageIOD,DigitalXRayImageIOD,EnhancedContinuousRTImageIOD,EnhancedCTImageIOD,EnhancedMRColorImageIOD,EnhancedMRImageIOD,EnhancedRTImageIOD,EnhancedUSVolumeIOD,EnhancedXAImageIOD,EnhancedXRFImageIOD,IntravascularOpticalCoherenceTomographyImageIOD,LegacyConvertedEnhancedCTImageIOD,LegacyConvertedEnhancedMRImageIOD,MRImageIOD,MultiFrameGrayscaleByteSecondaryCaptureImageIOD,MultiFrameGrayscaleWordSecondaryCaptureImageIOD,MultiFrameSingleBitSecondaryCaptureImageIOD,MultiFrameTrueColorSecondaryCaptureImageIOD,NuclearMedicineImageIOD,OphthalmicPhotography16BitImageIOD,OphthalmicPhotography8BitImageIOD,ParametricMapIOD,PositronEmissionTomographyImageIOD,RealTimeVideoEndoscopicImageIOD,RealTimeVideoPhotographicImageIOD,RTImageIOD,SecondaryCaptureImageIOD,UltrasoundImageIOD,UltrasoundMultiFrameImageIOD,VideoEndoscopicImageIOD,VideoMicroscopicImageIOD,VideoPhotographicImageIOD,VLEndoscopicImageIOD,VLMicroscopicImageIOD,VLPhotographicImageIOD,VLSlideCoordinatesMicroscopicImageIOD,XRay3DAngiographicImageIOD,XRay3DCraniofacialImageIOD,XRayAngiographicImageIOD,XRayRadiofluoroscopicImageIOD
- Enclosing class:
- DeviceSequence
public static interface DeviceSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Device Sequence" (seeDeviceSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeviceSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeviceSequence.Holder.Builderbuilder()static DeviceSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsDeviceSequence()default DeviceSequenceensureDeviceSequence()Adds 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 DeviceSequencegetDeviceSequence()default DeviceSequencenewDeviceSequence(int initialCapacity)Adds a new Device Sequence.default voidremoveDeviceSequence()Removes the Device Sequence (seeDeviceSequencestatic DeviceSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static DeviceSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Device Sequence (seeDeviceSequence)- Returns:
- a wrapper object implementing the
DeviceSequence.Holderinterface.
-
builder
static DeviceSequence.Holder.Builder builder()
- Returns:
- a
DeviceSequence.Holder.Builderto create Device Sequence Items with a fluent API.
-
builder
static DeviceSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default DeviceSequence getDeviceSequence()
- Returns:
- the Device Sequence (see
DeviceSequence)
-
newDeviceSequence
default DeviceSequence newDeviceSequence(int initialCapacity)
Adds a new Device Sequence. (seeDeviceSequence)- Parameters:
initialCapacity- the initial capacity for the new Device Sequence- Returns:
- the newly created DeviceSequence.
-
ensureDeviceSequence
default DeviceSequence ensureDeviceSequence(int initialCapacity)
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
default DeviceSequence 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
-
-