Interface ShieldingDeviceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
PatientSetupSequence.Item,ShieldingDeviceSequence.SimpleHolder
- Enclosing class:
- ShieldingDeviceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Shielding Device Sequence" (see
ShieldingDeviceSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ShieldingDeviceSequenceAdds a new Shielding Device Sequence (seeShieldingDeviceSequence) with initial capacity 1 (seeensureShieldingDeviceSequence(int)) if it does not already exist.default ShieldingDeviceSequenceensureShieldingDeviceSequence(int initialCapacity) Adds a new Shielding Device Sequence (seeShieldingDeviceSequence) if it does not already exist.default ShieldingDeviceSequencedefault ShieldingDeviceSequencenewShieldingDeviceSequence(int initialCapacity) Adds a new Shielding Device Sequence.default voidRemoves the Shielding Device Sequence (seeShieldingDeviceSequencewrap(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 Shielding Device Sequence (seeShieldingDeviceSequence)- Returns:
- A wrapper object implementing the
ShieldingDeviceSequence.Holderinterface.
-
builder
- Returns:
- a
ShieldingDeviceSequence.Holder.Builderto create Shielding Device Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theShieldingDeviceSequence.Holder.Builder.- Returns:
- a
ShieldingDeviceSequence.Holder.Builderto create Shielding Device Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getShieldingDeviceSequence
- Returns:
- the Shielding Device Sequence (see
ShieldingDeviceSequence)
-
newShieldingDeviceSequence
Adds a new Shielding Device Sequence. (seeShieldingDeviceSequence)- Parameters:
initialCapacity- the initial capacity for the new Shielding Device Sequence
-
ensureShieldingDeviceSequence
Adds a new Shielding Device Sequence (seeShieldingDeviceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Shielding Device Sequence is created.- Returns:
- Either the already existing Shielding Device Sequence (see
ShieldingDeviceSequence) or a new one with capacityinitialCapacity.
-
ensureShieldingDeviceSequence
Adds a new Shielding Device Sequence (seeShieldingDeviceSequence) with initial capacity 1 (seeensureShieldingDeviceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Shielding Device Sequence (see
ShieldingDeviceSequence) or a new one with capacity 1.
-
containsShieldingDeviceSequence
default boolean containsShieldingDeviceSequence()- Returns:
- Whether it contains the Shielding Device Sequence (see
ShieldingDeviceSequence)
-
removeShieldingDeviceSequence
default void removeShieldingDeviceSequence()Removes the Shielding Device Sequence (seeShieldingDeviceSequence
-