Interface RadiationTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RadiationGenerationModeSequence.Item,RadiationTypeCodeSequence.SimpleHolder
- Enclosing class:
- RadiationTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Radiation Type Code Sequence" (see
RadiationTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RadiationTypeCodeSequenceAdds a new Radiation Type Code Sequence (seeRadiationTypeCodeSequence) with initial capacity 1 (seeensureRadiationTypeCodeSequence(int)) if it does not already exist.default RadiationTypeCodeSequenceensureRadiationTypeCodeSequence(int initialCapacity) Adds a new Radiation Type Code Sequence (seeRadiationTypeCodeSequence) if it does not already exist.default RadiationTypeCodeSequencedefault RadiationTypeCodeSequencenewRadiationTypeCodeSequence(int initialCapacity) Adds a new Radiation Type Code Sequence.default voidRemoves the Radiation Type Code Sequence (seeRadiationTypeCodeSequencewrap(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 Radiation Type Code Sequence (seeRadiationTypeCodeSequence)- Returns:
- A wrapper object implementing the
RadiationTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
RadiationTypeCodeSequence.Holder.Builderto create Radiation Type Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRadiationTypeCodeSequence.Holder.Builder.- Returns:
- a
RadiationTypeCodeSequence.Holder.Builderto create Radiation Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRadiationTypeCodeSequence
- Returns:
- the Radiation Type Code Sequence (see
RadiationTypeCodeSequence)
-
newRadiationTypeCodeSequence
Adds a new Radiation Type Code Sequence. (seeRadiationTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Radiation Type Code Sequence
-
ensureRadiationTypeCodeSequence
Adds a new Radiation Type Code Sequence (seeRadiationTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Radiation Type Code Sequence is created.- Returns:
- Either the already existing Radiation Type Code Sequence (see
RadiationTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureRadiationTypeCodeSequence
Adds a new Radiation Type Code Sequence (seeRadiationTypeCodeSequence) with initial capacity 1 (seeensureRadiationTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Radiation Type Code Sequence (see
RadiationTypeCodeSequence) or a new one with capacity 1.
-
containsRadiationTypeCodeSequence
default boolean containsRadiationTypeCodeSequence()- Returns:
- Whether it contains the Radiation Type Code Sequence (see
RadiationTypeCodeSequence)
-
removeRadiationTypeCodeSequence
default void removeRadiationTypeCodeSequence()Removes the Radiation Type Code Sequence (seeRadiationTypeCodeSequence
-