Interface ComponentSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ComponentTypesSequence.Item
- Enclosing class:
- ComponentSequence
public static interface ComponentSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Component Sequence" (seeComponentSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComponentSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ComponentSequence.Holder.Builderbuilder()static ComponentSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsComponentSequence()default ComponentSequenceensureComponentSequence()Adds a new Component Sequence (seeComponentSequence) with initial capacity 1 (seeensureComponentSequence(int)) if it does not already exist.default ComponentSequenceensureComponentSequence(int initialCapacity)Adds a new Component Sequence (seeComponentSequence) if it does not already exist.default ComponentSequencegetComponentSequence()default ComponentSequencenewComponentSequence(int initialCapacity)Adds a new Component Sequence.default voidremoveComponentSequence()Removes the Component Sequence (seeComponentSequencestatic ComponentSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ComponentSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Component Sequence (seeComponentSequence)- Returns:
- a wrapper object implementing the
ComponentSequence.Holderinterface.
-
builder
static ComponentSequence.Holder.Builder builder()
- Returns:
- a
ComponentSequence.Holder.Builderto create Component Sequence Items with a fluent API.
-
builder
static ComponentSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theComponentSequence.Holder.Builder.- Returns:
- a
ComponentSequence.Holder.Builderto create Component Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getComponentSequence
default ComponentSequence getComponentSequence()
- Returns:
- the Component Sequence (see
ComponentSequence)
-
newComponentSequence
default ComponentSequence newComponentSequence(int initialCapacity)
Adds a new Component Sequence. (seeComponentSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Sequence- Returns:
- the newly created ComponentSequence.
-
ensureComponentSequence
default ComponentSequence ensureComponentSequence(int initialCapacity)
Adds a new Component Sequence (seeComponentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Component Sequence is created.- Returns:
- either the already existing Component Sequence (see
ComponentSequence) or a new one with capacityinitialCapacity.
-
ensureComponentSequence
default ComponentSequence ensureComponentSequence()
Adds a new Component Sequence (seeComponentSequence) with initial capacity 1 (seeensureComponentSequence(int)) if it does not already exist.- Returns:
- either the already existing Component Sequence (see
ComponentSequence) or a new one with capacity 1.
-
containsComponentSequence
default boolean containsComponentSequence()
- Returns:
- whether it contains the Component Sequence (see
ComponentSequence)
-
removeComponentSequence
default void removeComponentSequence()
Removes the Component Sequence (seeComponentSequence
-
-