Interface DeviceTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
BlockDefinitionSequence.Item,BolusDefinitionSequence.Item,CompensatorDefinitionSequence.Item,DeviceTypeCodeSequence.SimpleHolder,GeneralAccessoryDefinitionSequence.Item,InterlockOriginatingDeviceSequence.Item,PatientSupportDevicesSequence.Item,PatientTreatmentPreparationDeviceSequence.Item,RTAccessoryHolderDefinitionSequence.Item,RTBeamLimitingDeviceDefinitionSequence.Item,SegmentedRTAccessoryDeviceSequence.Item,TransducerIdentificationSequence.Item,TreatmentDeviceIdentificationSequence.Item,WedgeDefinitionSequence.Item
- Enclosing class:
- DeviceTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Device Type Code Sequence" (see
DeviceTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault DeviceTypeCodeSequenceAdds a new Device Type Code Sequence (seeDeviceTypeCodeSequence) with initial capacity 1 (seeensureDeviceTypeCodeSequence(int)) if it does not already exist.default DeviceTypeCodeSequenceensureDeviceTypeCodeSequence(int initialCapacity) Adds a new Device Type Code Sequence (seeDeviceTypeCodeSequence) if it does not already exist.default DeviceTypeCodeSequencedefault DeviceTypeCodeSequencenewDeviceTypeCodeSequence(int initialCapacity) Adds a new Device Type Code Sequence.default voidRemoves the Device Type Code Sequence (seeDeviceTypeCodeSequencewrap(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 Type Code Sequence (seeDeviceTypeCodeSequence)- Returns:
- A wrapper object implementing the
DeviceTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
DeviceTypeCodeSequence.Holder.Builderto create Device Type Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theDeviceTypeCodeSequence.Holder.Builder.- Returns:
- a
DeviceTypeCodeSequence.Holder.Builderto create Device Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDeviceTypeCodeSequence
- Returns:
- the Device Type Code Sequence (see
DeviceTypeCodeSequence)
-
newDeviceTypeCodeSequence
Adds a new Device Type Code Sequence. (seeDeviceTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Device Type Code Sequence
-
ensureDeviceTypeCodeSequence
Adds a new Device Type Code Sequence (seeDeviceTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Device Type Code Sequence is created.- Returns:
- Either the already existing Device Type Code Sequence (see
DeviceTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureDeviceTypeCodeSequence
Adds a new Device Type Code Sequence (seeDeviceTypeCodeSequence) with initial capacity 1 (seeensureDeviceTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Device Type Code Sequence (see
DeviceTypeCodeSequence) or a new one with capacity 1.
-
containsDeviceTypeCodeSequence
default boolean containsDeviceTypeCodeSequence()- Returns:
- Whether it contains the Device Type Code Sequence (see
DeviceTypeCodeSequence)
-
removeDeviceTypeCodeSequence
default void removeDeviceTypeCodeSequence()Removes the Device Type Code Sequence (seeDeviceTypeCodeSequence
-