Interface ComponentTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ComponentTypeCodeSequence.SimpleHolder,ComponentTypesSequence.Item
- Enclosing class:
- ComponentTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Component Type Code Sequence" (see
ComponentTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ComponentTypeCodeSequenceAdds a new Component Type Code Sequence (seeComponentTypeCodeSequence) with initial capacity 1 (seeensureComponentTypeCodeSequence(int)) if it does not already exist.default ComponentTypeCodeSequenceensureComponentTypeCodeSequence(int initialCapacity) Adds a new Component Type Code Sequence (seeComponentTypeCodeSequence) if it does not already exist.default ComponentTypeCodeSequencedefault ComponentTypeCodeSequencenewComponentTypeCodeSequence(int initialCapacity) Adds a new Component Type Code Sequence.default voidRemoves the Component Type Code Sequence (seeComponentTypeCodeSequencewrap(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 Component Type Code Sequence (seeComponentTypeCodeSequence)- Returns:
- A wrapper object implementing the
ComponentTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
ComponentTypeCodeSequence.Holder.Builderto create Component Type Code Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theComponentTypeCodeSequence.Holder.Builder.- Returns:
- a
ComponentTypeCodeSequence.Holder.Builderto create Component Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getComponentTypeCodeSequence
- Returns:
- the Component Type Code Sequence (see
ComponentTypeCodeSequence)
-
newComponentTypeCodeSequence
Adds a new Component Type Code Sequence. (seeComponentTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Type Code Sequence
-
ensureComponentTypeCodeSequence
Adds a new Component Type Code Sequence (seeComponentTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Component Type Code Sequence is created.- Returns:
- Either the already existing Component Type Code Sequence (see
ComponentTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureComponentTypeCodeSequence
Adds a new Component Type Code Sequence (seeComponentTypeCodeSequence) with initial capacity 1 (seeensureComponentTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Component Type Code Sequence (see
ComponentTypeCodeSequence) or a new one with capacity 1.
-
containsComponentTypeCodeSequence
default boolean containsComponentTypeCodeSequence()- Returns:
- Whether it contains the Component Type Code Sequence (see
ComponentTypeCodeSequence)
-
removeComponentTypeCodeSequence
default void removeComponentTypeCodeSequence()Removes the Component Type Code Sequence (seeComponentTypeCodeSequence
-