Interface DeviceTypeCodeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
BeamHoldOriginatingDeviceSequence.Item,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
public static interface DeviceTypeCodeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Device Type Code Sequence" (seeDeviceTypeCodeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDeviceTypeCodeSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DeviceTypeCodeSequence.Holder.Builderbuilder()static DeviceTypeCodeSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsDeviceTypeCodeSequence()default DeviceTypeCodeSequenceensureDeviceTypeCodeSequence()Adds 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 DeviceTypeCodeSequencegetDeviceTypeCodeSequence()default DeviceTypeCodeSequencenewDeviceTypeCodeSequence(int initialCapacity)Adds a new Device Type Code Sequence.default voidremoveDeviceTypeCodeSequence()Removes the Device Type Code Sequence (seeDeviceTypeCodeSequencestatic DeviceTypeCodeSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static DeviceTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Device Type Code Sequence (seeDeviceTypeCodeSequence)- Returns:
- a wrapper object implementing the
DeviceTypeCodeSequence.Holderinterface.
-
builder
static DeviceTypeCodeSequence.Holder.Builder builder()
- Returns:
- a
DeviceTypeCodeSequence.Holder.Builderto create Device Type Code Sequence Items with a fluent API.
-
builder
static DeviceTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default DeviceTypeCodeSequence getDeviceTypeCodeSequence()
- Returns:
- the Device Type Code Sequence (see
DeviceTypeCodeSequence)
-
newDeviceTypeCodeSequence
default DeviceTypeCodeSequence newDeviceTypeCodeSequence(int initialCapacity)
Adds a new Device Type Code Sequence. (seeDeviceTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Device Type Code Sequence- Returns:
- the newly created DeviceTypeCodeSequence.
-
ensureDeviceTypeCodeSequence
default DeviceTypeCodeSequence ensureDeviceTypeCodeSequence(int initialCapacity)
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
default DeviceTypeCodeSequence 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
-
-