Interface SourceSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Subinterfaces:
RTBrachyApplicationSetupsModule
- All Known Implementing Classes:
RTPlanIOD
- Enclosing class:
- SourceSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Source Sequence" (see
SourceSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault SourceSequenceAdds a new Source Sequence (seeSourceSequence) with initial capacity 1 (seeensureSourceSequence(int)) if it does not already exist.default SourceSequenceensureSourceSequence(int initialCapacity) Adds a new Source Sequence (seeSourceSequence) if it does not already exist.default SourceSequencedefault SourceSequencenewSourceSequence(int initialCapacity) Adds a new Source Sequence.default voidRemoves the Source Sequence (seeSourceSequencestatic SourceSequence.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 Source Sequence (seeSourceSequence)- Returns:
- A wrapper object implementing the
SourceSequence.Holderinterface.
-
getSourceSequence
- Returns:
- the Source Sequence (see
SourceSequence)
-
newSourceSequence
Adds a new Source Sequence. (seeSourceSequence)- Parameters:
initialCapacity- the initial capacity for the new Source Sequence
-
ensureSourceSequence
Adds a new Source Sequence (seeSourceSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Source Sequence is created.- Returns:
- Either the already existing Source Sequence (see
SourceSequence) or a new one with capacityinitialCapacity.
-
ensureSourceSequence
Adds a new Source Sequence (seeSourceSequence) with initial capacity 1 (seeensureSourceSequence(int)) if it does not already exist.- Returns:
- Either the already existing Source Sequence (see
SourceSequence) or a new one with capacity 1.
-
containsSourceSequence
default boolean containsSourceSequence()- Returns:
- Whether it contains the Source Sequence (see
SourceSequence)
-
removeSourceSequence
default void removeSourceSequence()Removes the Source Sequence (seeSourceSequence
-