Interface InterlockCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
InterlockSequence.Item
- Enclosing class:
- InterlockCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Interlock Code Sequence" (see
InterlockCodeSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault InterlockCodeSequenceAdds a new Interlock Code Sequence (seeInterlockCodeSequence) with initial capacity 1 (seeensureInterlockCodeSequence(int)) if it does not already exist.default InterlockCodeSequenceensureInterlockCodeSequence(int initialCapacity) Adds a new Interlock Code Sequence (seeInterlockCodeSequence) if it does not already exist.default InterlockCodeSequencedefault InterlockCodeSequencenewInterlockCodeSequence(int initialCapacity) Adds a new Interlock Code Sequence.default voidRemoves the Interlock Code Sequence (seeInterlockCodeSequencestatic InterlockCodeSequence.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 Interlock Code Sequence (seeInterlockCodeSequence)- Returns:
- A wrapper object implementing the
InterlockCodeSequence.Holderinterface.
-
getInterlockCodeSequence
- Returns:
- the Interlock Code Sequence (see
InterlockCodeSequence)
-
newInterlockCodeSequence
Adds a new Interlock Code Sequence. (seeInterlockCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Interlock Code Sequence
-
ensureInterlockCodeSequence
Adds a new Interlock Code Sequence (seeInterlockCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Interlock Code Sequence is created.- Returns:
- Either the already existing Interlock Code Sequence (see
InterlockCodeSequence) or a new one with capacityinitialCapacity.
-
ensureInterlockCodeSequence
Adds a new Interlock Code Sequence (seeInterlockCodeSequence) with initial capacity 1 (seeensureInterlockCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Interlock Code Sequence (see
InterlockCodeSequence) or a new one with capacity 1.
-
containsInterlockCodeSequence
default boolean containsInterlockCodeSequence()- Returns:
- Whether it contains the Interlock Code Sequence (see
InterlockCodeSequence)
-
removeInterlockCodeSequence
default void removeInterlockCodeSequence()Removes the Interlock Code Sequence (seeInterlockCodeSequence
-