Interface ComponentInputSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ComponentInputSequence.SimpleHolder,PresentationStateClassificationComponentSequence.Item
- Enclosing class:
- ComponentInputSequence
public static interface ComponentInputSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Component Input Sequence" (seeComponentInputSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComponentInputSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ComponentInputSequence.Holder.Builderbuilder()static ComponentInputSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsComponentInputSequence()default ComponentInputSequenceensureComponentInputSequence()Adds a new Component Input Sequence (seeComponentInputSequence) with initial capacity 1 (seeensureComponentInputSequence(int)) if it does not already exist.default ComponentInputSequenceensureComponentInputSequence(int initialCapacity)Adds a new Component Input Sequence (seeComponentInputSequence) if it does not already exist.default ComponentInputSequencegetComponentInputSequence()default ComponentInputSequencenewComponentInputSequence(int initialCapacity)Adds a new Component Input Sequence.default voidremoveComponentInputSequence()Removes the Component Input Sequence (seeComponentInputSequencestatic ComponentInputSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ComponentInputSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Component Input Sequence (seeComponentInputSequence)- Returns:
- a wrapper object implementing the
ComponentInputSequence.Holderinterface.
-
builder
static ComponentInputSequence.Holder.Builder builder()
- Returns:
- a
ComponentInputSequence.Holder.Builderto create Component Input Sequence Items with a fluent API.
-
builder
static ComponentInputSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theComponentInputSequence.Holder.Builder.- Returns:
- a
ComponentInputSequence.Holder.Builderto create Component Input Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getComponentInputSequence
default ComponentInputSequence getComponentInputSequence()
- Returns:
- the Component Input Sequence (see
ComponentInputSequence)
-
newComponentInputSequence
default ComponentInputSequence newComponentInputSequence(int initialCapacity)
Adds a new Component Input Sequence. (seeComponentInputSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Input Sequence- Returns:
- the newly created ComponentInputSequence.
-
ensureComponentInputSequence
default ComponentInputSequence ensureComponentInputSequence(int initialCapacity)
Adds a new Component Input Sequence (seeComponentInputSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Component Input Sequence is created.- Returns:
- either the already existing Component Input Sequence (see
ComponentInputSequence) or a new one with capacityinitialCapacity.
-
ensureComponentInputSequence
default ComponentInputSequence ensureComponentInputSequence()
Adds a new Component Input Sequence (seeComponentInputSequence) with initial capacity 1 (seeensureComponentInputSequence(int)) if it does not already exist.- Returns:
- either the already existing Component Input Sequence (see
ComponentInputSequence) or a new one with capacity 1.
-
containsComponentInputSequence
default boolean containsComponentInputSequence()
- Returns:
- whether it contains the Component Input Sequence (see
ComponentInputSequence)
-
removeComponentInputSequence
default void removeComponentInputSequence()
Removes the Component Input Sequence (seeComponentInputSequence
-
-