Interface ComponentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ComponentTypesSequence.Item
- Enclosing class:
- ComponentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Component Sequence" (see
ComponentSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault ComponentSequenceAdds 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 ComponentSequencedefault ComponentSequencenewComponentSequence(int initialCapacity) Adds a new Component Sequence.default voidRemoves the Component Sequence (seeComponentSequencestatic ComponentSequence.Holderwrap(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 Sequence (seeComponentSequence)- Returns:
- A wrapper object implementing the
ComponentSequence.Holderinterface.
-
getComponentSequence
- Returns:
- the Component Sequence (see
ComponentSequence)
-
newComponentSequence
Adds a new Component Sequence. (seeComponentSequence)- Parameters:
initialCapacity- the initial capacity for the new Component Sequence
-
ensureComponentSequence
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
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
-