Interface ComponentTypeCodeSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ComponentTypesSequence.Item
- Enclosing class:
- ComponentTypeCodeSequence
public static interface ComponentTypeCodeSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Component Type Code Sequence" (seeComponentTypeCodeSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComponentTypeCodeSequence.Holder.Builder
-
Method Summary
-
-
-
Method Detail
-
wrap
static ComponentTypeCodeSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Component Type Code Sequence (seeComponentTypeCodeSequence)- Returns:
- a wrapper object implementing the
ComponentTypeCodeSequence.Holderinterface.
-
builder
static ComponentTypeCodeSequence.Holder.Builder builder()
- Returns:
- a
ComponentTypeCodeSequence.Holder.Builderto create Component Type Code Sequence Items with a fluent API.
-
builder
static ComponentTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- 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
default ComponentTypeCodeSequence getComponentTypeCodeSequence()
- Returns:
- the Component Type Code Sequence (see
ComponentTypeCodeSequence)
-
newComponentTypeCodeSequence
default ComponentTypeCodeSequence newComponentTypeCodeSequence(int initialCapacity)
Adds a new Component Type Code Sequence. (seeComponentTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Type Code Sequence- Returns:
- the newly created ComponentTypeCodeSequence.
-
ensureComponentTypeCodeSequence
default ComponentTypeCodeSequence ensureComponentTypeCodeSequence(int initialCapacity)
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
default ComponentTypeCodeSequence 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
-
-